From 8c9282e45dc7dbf4a89d9414cf2dfbfa3d7cf249 Mon Sep 17 00:00:00 2001 From: OCI DEX Release Bot Automation Date: Tue, 22 Sep 2026 16:29:12 +0000 Subject: [PATCH 1/2] Releasing version 2.98.0 --- CHANGELOG.md | 78 + bmc-accessgovernancecp/pom.xml | 4 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-graalvm-addon/pom.xml | 10 +- .../graalvm/SdkAutomaticFeatureMetadata.java | 2 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 4 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- bmc-addons/bmc-sasl/pom.xml | 4 +- 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 | 8 +- .../MaintenanceWindowRecurrenceType.java | 25 +- .../model/MaintenanceWindowSchedule.java | 99 +- .../model/MaintenanceWindowScheduleType.java | 55 + bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-batch/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- .../src/main/java/com/oracle/bmc/bds/Bds.java | 189 ++ .../java/com/oracle/bmc/bds/BdsAsync.java | 250 ++ .../com/oracle/bmc/bds/BdsAsyncClient.java | 789 ++++++ .../java/com/oracle/bmc/bds/BdsClient.java | 600 +++++ .../com/oracle/bmc/bds/BdsPaginators.java | 390 +++ .../java/com/oracle/bmc/bds/BdsWaiters.java | 234 ++ ...cityReservationConfigurationConverter.java | 103 +- ...pacityReservationCompartmentConverter.java | 148 ++ ...cityReservationConfigurationConverter.java | 196 ++ ...CreateBdsCapacityReservationConverter.java | 179 ++ ...cityReservationConfigurationConverter.java | 175 ++ ...cityReservationConfigurationConverter.java | 144 + ...DeleteBdsCapacityReservationConverter.java | 132 + ...cityReservationConfigurationConverter.java | 93 +- .../GetBdsCapacityReservationConverter.java | 145 + ...tionAssociatedConfigurationsConverter.java | 114 +- ...ityReservationConfigurationsConverter.java | 207 ++ .../ListBdsCapacityReservationsConverter.java | 199 ++ ...cityReservationConfigurationConverter.java | 173 ++ ...UpdateBdsCapacityReservationConverter.java | 158 ++ .../bmc/bds/model/BdsCapacityReservation.java | 566 ++++ ...tionAssociatedConfigurationCollection.java | 139 + ...rvationAssociatedConfigurationSummary.java | 440 +++ .../BdsCapacityReservationCollection.java | 136 + .../BdsCapacityReservationConfiguration.java | 443 +++ ...ityReservationConfigurationCollection.java | 138 + ...pacityReservationConfigurationSummary.java | 393 +++ .../model/BdsCapacityReservationSummary.java | 515 ++++ .../com/oracle/bmc/bds/model/BdsInstance.java | 54 + ...CapacityReservationCompartmentDetails.java | 140 + .../model/ComputeCapacityReservations.java | 234 ++ ...pacityReservationConfigurationDetails.java | 183 ++ .../CreateBdsCapacityReservationDetails.java | 313 +++ .../bds/model/CreateBdsInstanceDetails.java | 57 + .../java/com/oracle/bmc/bds/model/Node.java | 46 + ...pacityReservationConfigurationDetails.java | 183 ++ .../UpdateBdsCapacityReservationDetails.java | 123 +- ...pacityReservationConfigurationRequest.java | 205 +- ...CapacityReservationCompartmentRequest.java | 172 +- ...pacityReservationConfigurationRequest.java | 327 +++ .../CreateBdsCapacityReservationRequest.java | 285 ++ ...pacityReservationConfigurationRequest.java | 228 +- ...pacityReservationConfigurationRequest.java | 293 ++ .../DeleteBdsCapacityReservationRequest.java | 254 ++ ...pacityReservationConfigurationRequest.java | 241 ++ .../GetBdsCapacityReservationRequest.java | 75 +- ...vationAssociatedConfigurationsRequest.java | 480 ++++ ...acityReservationConfigurationsRequest.java | 441 +++ .../ListBdsCapacityReservationsRequest.java | 435 +++ ...pacityReservationConfigurationRequest.java | 244 +- .../UpdateBdsCapacityReservationRequest.java | 375 +++ ...acityReservationConfigurationResponse.java | 86 +- ...apacityReservationCompartmentResponse.java | 133 + ...acityReservationConfigurationResponse.java | 353 +++ .../CreateBdsCapacityReservationResponse.java | 344 +++ ...acityReservationConfigurationResponse.java | 229 ++ ...acityReservationConfigurationResponse.java | 133 + .../DeleteBdsCapacityReservationResponse.java | 131 + ...acityReservationConfigurationResponse.java | 229 ++ .../GetBdsCapacityReservationResponse.java | 216 ++ ...ationAssociatedConfigurationsResponse.java | 95 +- ...cityReservationConfigurationsResponse.java | 240 ++ .../ListBdsCapacityReservationsResponse.java | 235 ++ ...acityReservationConfigurationResponse.java | 229 ++ .../UpdateBdsCapacityReservationResponse.java | 216 ++ bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 378 +-- 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 +- .../pom.xml | 10 +- .../oracle/bmc/clusterhealth/Diagnosis.java | 257 ++ .../bmc/clusterhealth/DiagnosisAsync.java | 295 ++ .../clusterhealth/DiagnosisAsyncClient.java | 1129 ++++++++ .../bmc/clusterhealth/DiagnosisClient.java | 751 ++---- .../clusterhealth/DiagnosisPaginators.java | 491 ++++ .../bmc/clusterhealth/DiagnosisWaiters.java | 189 ++ .../bmc/clusterhealth/SdkClientsMetadata.java | 11 + .../http/CancelWorkRequestConverter.java | 129 + ...ngeDiagnosisStoreCompartmentConverter.java | 151 ++ .../http/CreateDiagnosisStoreConverter.java | 182 ++ .../http/DeleteDiagnosisStoreConverter.java | 142 + .../http/GetDiagnosisStoreConverter.java | 146 + .../http/GetWorkRequestConverter.java | 62 +- .../http/ListDiagnosisStoresConverter.java | 208 ++ .../http/ListWorkRequestErrorsConverter.java | 49 +- .../http/ListWorkRequestLogsConverter.java | 49 +- .../http/ListWorkRequestsConverter.java | 206 ++ ...eryDiagnosisByHealthCheckKeyConverter.java | 158 ++ .../http/QueryDiagnosisSummaryConverter.java | 172 ++ .../http/RequestDiagnosisConverter.java | 149 ++ .../http/UpdateDiagnosisStoreConverter.java | 145 + .../bmc/clusterhealth}/model/ActionType.java | 4 +- ...hangeDiagnosisStoreCompartmentDetails.java | 36 +- .../model/CreateDiagnosisStoreDetails.java | 386 +++ .../clusterhealth/model/DiagnosisResults.java | 138 + .../clusterhealth/model/DiagnosisStore.java | 824 ++++++ .../model/DiagnosisStoreCollection.java | 135 + .../model/DiagnosisStoreSummary.java | 628 +++++ .../clusterhealth/model/DiagnosisSummary.java | 517 ++++ .../model/DiagnosisSummaryCollection.java | 135 + .../bmc/clusterhealth/model/FailedTest.java | 172 ++ .../bmc/clusterhealth/model/Metadata.java | 348 +++ .../clusterhealth}/model/OperationStatus.java | 8 +- .../clusterhealth/model/OperationType.java | 58 + ...QueryDiagnosisByHealthCheckKeyDetails.java | 139 + .../model/QueryDiagnosisSummaryDetails.java | 307 +++ .../clusterhealth/model/Recommendation.java | 385 +++ .../model/RecommendationReport.java | 414 +++ .../model/RequestDiagnosisDetails.java | 69 +- .../bmc/clusterhealth}/model/SortOrder.java | 8 +- .../model/UpdateDiagnosisStoreDetails.java | 340 +++ .../bmc/clusterhealth/model/WorkRequest.java | 551 ++++ .../clusterhealth/model/WorkRequestError.java | 223 ++ .../model/WorkRequestErrorCollection.java | 14 +- .../model/WorkRequestLogEntry.java | 116 +- .../model/WorkRequestLogEntryCollection.java | 14 +- .../model/WorkRequestResource.java | 316 +++ .../model/WorkRequestResourceMetadataKey.java | 6 +- .../model/WorkRequestSummary.java | 550 ++++ .../model/WorkRequestSummaryCollection.java | 14 +- .../requests/CancelWorkRequestRequest.java | 261 ++ ...hangeDiagnosisStoreCompartmentRequest.java | 331 +++ .../requests/CreateDiagnosisStoreRequest.java | 300 +++ .../requests/DeleteDiagnosisStoreRequest.java | 262 ++ .../requests/GetDiagnosisStoreRequest.java | 211 ++ .../requests/GetWorkRequestRequest.java | 211 ++ .../requests/ListDiagnosisStoresRequest.java | 521 ++++ .../ListWorkRequestErrorsRequest.java | 406 +++ .../requests/ListWorkRequestLogsRequest.java | 405 +++ .../requests/ListWorkRequestsRequest.java | 503 ++++ ...QueryDiagnosisByHealthCheckKeyRequest.java | 283 ++ .../QueryDiagnosisSummaryRequest.java | 368 +++ .../requests/RequestDiagnosisRequest.java | 277 ++ .../requests/UpdateDiagnosisStoreRequest.java | 328 +++ .../responses/CancelWorkRequestResponse.java | 130 + ...angeDiagnosisStoreCompartmentResponse.java | 34 +- .../CreateDiagnosisStoreResponse.java | 337 +++ .../DeleteDiagnosisStoreResponse.java | 34 +- .../responses/GetDiagnosisStoreResponse.java | 213 ++ .../responses/GetWorkRequestResponse.java | 245 ++ .../ListDiagnosisStoresResponse.java | 227 ++ .../ListWorkRequestErrorsResponse.java | 230 ++ .../ListWorkRequestLogsResponse.java | 230 ++ .../responses/ListWorkRequestsResponse.java | 230 ++ ...ueryDiagnosisByHealthCheckKeyResponse.java | 215 ++ .../QueryDiagnosisSummaryResponse.java | 230 ++ .../responses/RequestDiagnosisResponse.java | 213 ++ .../UpdateDiagnosisStoreResponse.java | 181 ++ bmc-clusterplacementgroups/pom.xml | 4 +- bmc-common/pom.xml | 4 +- .../src/main/java/com/oracle/bmc/Region.java | 105 +- ...nfigFileAuthenticationDetailsProvider.java | 2 +- .../test/java/com/oracle/bmc/RegionTest.java | 96 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- .../ComputeInstanceAgent.java | 7 + .../ComputeInstanceAgentAsync.java | 7 + .../ComputeInstanceAgentAsyncClient.java | 15 +- .../ComputeInstanceAgentClient.java | 15 +- .../bmc/computeinstanceagent/Plugin.java | 7 + .../bmc/computeinstanceagent/PluginAsync.java | 7 + .../PluginAsyncClient.java | 15 +- .../computeinstanceagent/PluginClient.java | 15 +- .../computeinstanceagent/Pluginconfig.java | 7 + .../PluginconfigAsync.java | 7 + .../PluginconfigAsyncClient.java | 15 +- .../PluginconfigClient.java | 15 +- .../CancelInstanceAgentCommandConverter.java | 8 +- .../CreateInstanceAgentCommandConverter.java | 7 +- .../GetInstanceAgentCommandConverter.java | 8 +- ...nstanceAgentCommandExecutionConverter.java | 9 +- .../http/GetInstanceAgentPluginConverter.java | 10 +- ...stanceAgentCommandExecutionsConverter.java | 9 +- .../ListInstanceAgentCommandsConverter.java | 8 +- .../ListInstanceAgentPluginsConverter.java | 9 +- ...nstanceagentAvailablePluginsConverter.java | 13 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-containerregistry/pom.xml | 4 +- bmc-core/pom.xml | 6 +- .../bmc/core/model/CreateVtapDetails.java | 1 + .../bmc/core/model/UpdateVtapDetails.java | 1 + .../java/com/oracle/bmc/core/model/Vtap.java | 1 + bmc-costad/pom.xml | 4 +- .../oracle/bmc/costad/CostAdAsyncClient.java | 77 +- .../com/oracle/bmc/costad/CostAdClient.java | 77 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- .../com/oracle/bmc/database/Database.java | 75 + .../oracle/bmc/database/DatabaseAsync.java | 93 + .../bmc/database/DatabaseAsyncClient.java | 279 ++ .../oracle/bmc/database/DatabaseClient.java | 220 ++ .../bmc/database/DatabasePaginators.java | 235 ++ .../oracle/bmc/database/DatabaseWaiters.java | 215 ++ .../internal/http/CreateGiHomeConverter.java | 149 ++ .../internal/http/DeleteGiHomeConverter.java | 138 + .../internal/http/GetGiHomeConverter.java | 137 + ...tAvailableMaintenanceWindowsConverter.java | 113 +- .../internal/http/ListGiHomesConverter.java | 209 ++ .../internal/http/UpdateGiHomeConverter.java | 144 + .../database/model/AutonomousDatabase.java | 82 + ...usDatabaseMaintenanceWindowCollection.java | 49 +- ...omousDatabaseMaintenanceWindowSummary.java | 107 +- .../model/AutonomousDatabaseSummary.java | 82 + .../database/model/AutonomousDwDatabase.java | 82 + .../com/oracle/bmc/database/model/Backup.java | 2 + ...BackupDestinationConfigurationSummary.java | 39 +- .../model/BackupDestinationDetails.java | 39 +- .../BackupDestinationDetailsSummary.java | 39 +- .../bmc/database/model/BackupSummary.java | 2 + ...ateDatabaseFromAnotherDatabaseDetails.java | 113 +- .../CreateDatabaseFromBackupDetails.java | 111 +- .../CreateDatabaseSoftwareImageDetails.java | 48 +- .../database/model/CreateGiHomeDetails.java | 327 +++ .../bmc/database/model/ExadbVmCluster.java | 1 + .../database/model/ExadbVmClusterSummary.java | 1 + .../com/oracle/bmc/database/model/GiHome.java | 1013 +++++++ .../bmc/database/model/GiHomeCollection.java | 132 + .../bmc/database/model/GiHomeSummary.java | 1020 +++++++ .../model/TdeWalletBackupDestination.java | 232 ++ .../UpdateAutonomousDatabaseDetails.java | 82 + .../bmc/database/model/UpdateDetails.java | 52 + .../database/model/UpdateGiHomeDetails.java | 240 ++ .../model/VmClusterUpdateDetails.java | 52 + .../requests/CreateGiHomeRequest.java | 281 ++ .../requests/DeleteGiHomeRequest.java | 240 ++ .../database/requests/GetGiHomeRequest.java | 197 ++ ...istAvailableMaintenanceWindowsRequest.java | 269 ++ .../database/requests/ListGiHomesRequest.java | 532 ++++ .../requests/UpdateGiHomeRequest.java | 303 +++ .../responses/CreateGiHomeResponse.java | 247 ++ .../responses/DeleteGiHomeResponse.java | 50 +- .../database/responses/GetGiHomeResponse.java | 205 ++ ...stAvailableMaintenanceWindowsResponse.java | 242 ++ .../responses/ListGiHomesResponse.java | 225 ++ .../responses/UpdateGiHomeResponse.java | 206 ++ bmc-databasemanagement/pom.xml | 4 +- bmc-databasemigration/pom.xml | 4 +- .../databasemigration/DatabaseMigration.java | 73 + .../DatabaseMigrationAsync.java | 95 + .../DatabaseMigrationAsyncClient.java | 262 ++ .../DatabaseMigrationClient.java | 198 ++ .../DatabaseMigrationPaginators.java | 390 +++ .../DatabaseMigrationWaiters.java | 114 + .../GetDataVerificationDetailConverter.java | 85 +- ...taVerificationObjectStatusesConverter.java | 245 ++ ...VerificationObjectTypeCountsConverter.java | 239 ++ ...taVerificationTableRowCountsConverter.java | 237 ++ .../http/RunDataVerificationConverter.java | 97 +- .../model/CloneOracleMigrationSettings.java | 85 + ...OracleOfflineLogicalMigrationSettings.java | 103 + ...eOracleOnlineLogicalMigrationSettings.java | 150 ++ ...eOracleOnlineStandbyMigrationSettings.java | 197 ++ .../model/CreateOracleMigrationDetails.java | 32 +- .../model/CreateOracleMigrationSettings.java | 85 + ...OracleOfflineLogicalMigrationSettings.java | 378 +++ ...eOracleOnlineLogicalMigrationSettings.java | 476 ++++ ...eOracleOnlineStandbyMigrationSettings.java | 523 ++++ .../model/DataVerificationDetail.java | 492 ++++ ...ataVerificationObjectStatusCollection.java | 176 ++ .../DataVerificationObjectStatusSummary.java | 177 ++ ...VerificationObjectTypeCountCollection.java | 177 ++ ...ataVerificationObjectTypeCountSummary.java | 195 ++ ...taVerificationTableRowCountCollection.java | 176 ++ .../DataVerificationTableRowCountSummary.java | 217 ++ .../DefaultRunDataVerificationDetails.java | 41 +- ...qlDataVerificationObjectStatusSummary.java | 198 ++ ...ataVerificationObjectTypeCountSummary.java | 285 ++ ...lDataVerificationTableRowCountSummary.java | 294 ++ .../model/MySqlDatabaseObjectTypes.java | 67 + .../model/OracleCloneMigrationDetails.java | 34 +- ...leDataVerificationObjectStatusSummary.java | 198 ++ ...ataVerificationObjectTypeCountSummary.java | 285 ++ ...eDataVerificationTableRowCountSummary.java | 294 ++ .../model/OracleDatabaseObjectTypes.java | 86 + .../model/OracleMigration.java | 34 +- .../model/OracleMigrationMethods.java | 56 + .../model/OracleMigrationSettings.java | 84 + .../model/OracleMigrationSettingsSummary.java | 85 + .../model/OracleMigrationSummary.java | 34 +- ...OracleOfflineLogicalMigrationSettings.java | 234 ++ ...fflineLogicalMigrationSettingsSummary.java | 104 + .../OracleOnlineLogicalMigrationSettings.java | 332 +++ ...OnlineLogicalMigrationSettingsSummary.java | 151 ++ .../OracleOnlineStandbyMigrationSettings.java | 379 +++ ...OnlineStandbyMigrationSettingsSummary.java | 198 ++ .../model/RunDataVerificationDetails.java | 117 + .../model/UpdateOracleMigrationDetails.java | 34 +- .../model/UpdateOracleMigrationSettings.java | 85 + ...OracleOfflineLogicalMigrationSettings.java | 236 ++ ...eOracleOnlineLogicalMigrationSettings.java | 334 +++ ...eOracleOnlineStandbyMigrationSettings.java | 381 +++ .../GetDataVerificationDetailRequest.java | 257 ++ ...DataVerificationObjectStatusesRequest.java | 705 +++++ ...taVerificationObjectTypeCountsRequest.java | 675 +++++ ...DataVerificationTableRowCountsRequest.java | 659 +++++ .../requests/RunDataVerificationRequest.java | 167 +- .../GetDataVerificationDetailResponse.java | 73 +- ...ataVerificationObjectStatusesResponse.java | 237 ++ ...aVerificationObjectTypeCountsResponse.java | 239 ++ ...ataVerificationTableRowCountsResponse.java | 78 +- .../RunDataVerificationResponse.java | 68 +- bmc-databasetools/pom.xml | 4 +- .../DatabaseToolsAsyncClient.java | 133 +- .../databasetools/DatabaseToolsClient.java | 133 +- bmc-databasetoolsruntime/pom.xml | 4 +- .../DatabaseToolsRuntimeAsyncClient.java | 91 +- .../DatabaseToolsRuntimeClient.java | 91 +- 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 | 240 ++ .../oracle/bmc/datasafe/DataSafeAsync.java | 320 +++ .../bmc/datasafe/DataSafeAsyncClient.java | 1031 ++++++- .../oracle/bmc/datasafe/DataSafeClient.java | 851 +++++- .../bmc/datasafe/DataSafePaginators.java | 1105 ++++++++ .../oracle/bmc/datasafe/DataSafeWaiters.java | 105 + .../http/ActivateTargetDatabaseConverter.java | 3 - ...eCryptoAssessmentCompartmentConverter.java | 65 +- .../http/DeleteCryptoAssessmentConverter.java | 140 + ...wnloadCryptoAssessmentReportConverter.java | 90 +- ...nerateCryptoAssessmentReportConverter.java | 72 +- .../http/GetCryptoAssessmentConverter.java | 143 + ...toAssessmentSqlnetParametersConverter.java | 199 ++ ...stCryptoAssessmentBackupSetsConverter.java | 157 +- ...istCryptoAssessmentCbomItemsConverter.java | 84 +- ...CryptoAssessmentCertificatesConverter.java | 302 +++ ...toAssessmentFindingAnalyticsConverter.java | 245 ++ ...yptoAssessmentFindingTargetsConverter.java | 267 ++ ...ListCryptoAssessmentFindingsConverter.java | 210 ++ .../ListCryptoAssessmentKeysConverter.java | 276 ++ ...stCryptoAssessmentTdeObjectsConverter.java | 282 ++ .../ListCryptoAssessmentWalletsConverter.java | 263 ++ .../http/ListCryptoAssessmentsConverter.java | 290 ++ .../RefreshCryptoAssessmentConverter.java | 73 +- .../http/UpdateCryptoAssessmentConverter.java | 143 + .../ChangeAuditProfileCompartmentDetails.java | 2 +- ...ngeCryptoAssessmentCompartmentDetails.java | 144 + .../bmc/datasafe/model/CryptoAssessment.java | 1458 ++++++++++ .../CryptoAssessmentBackupSetCollection.java | 137 + .../CryptoAssessmentBackupSetSummary.java | 768 ++++++ .../CryptoAssessmentCbomItemCollection.java | 137 + .../CryptoAssessmentCbomItemSummary.java | 429 +++ ...CryptoAssessmentCertificateCollection.java | 137 + .../CryptoAssessmentCertificateSummary.java | 940 +++++++ .../model/CryptoAssessmentCollection.java | 135 + ...oAssessmentFindingAnalyticsCollection.java | 46 +- ...yptoAssessmentFindingAnalyticsSummary.java | 525 ++++ ...ryptoAssessmentFindingCategorySummary.java | 213 ++ .../CryptoAssessmentFindingCollection.java | 291 ++ .../model/CryptoAssessmentFindingSummary.java | 805 ++++++ ...CryptoAssessmentFindingSummaryMetrics.java | 499 ++++ ...yptoAssessmentFindingTargetCollection.java | 44 +- .../CryptoAssessmentFindingTargetSummary.java | 481 ++++ .../model/CryptoAssessmentKeyCollection.java | 135 + .../model/CryptoAssessmentKeySummary.java | 759 ++++++ .../CryptoAssessmentSqlnetParameters.java | 161 ++ .../model/CryptoAssessmentSummary.java | 1111 ++++++++ .../CryptoAssessmentTdeObjectCollection.java | 137 + .../CryptoAssessmentTdeObjectSummary.java | 551 ++++ .../CryptoAssessmentWalletCollection.java | 136 + .../model/CryptoAssessmentWalletSummary.java | 531 ++++ .../bmc/datasafe/model/CryptoFeature.java | 56 + .../datasafe/model/CryptoFeatureStatus.java | 59 + .../datasafe/model/CryptoFindingCategory.java | 46 + .../datasafe/model/CryptoFindingStatus.java | 60 + .../datasafe/model/CryptoKeyCacheStatus.java | 57 + .../datasafe/model/CryptoKeystoreType.java | 31 +- .../bmc/datasafe/model/CryptoNnePosture.java | 527 ++++ .../model/CryptoObservedBooleanValue.java | 56 + .../bmc/datasafe/model/CryptoPosture.java | 485 ++++ .../datasafe/model/CryptoPostureCategory.java | 56 + .../model/CryptoQuantumReadiness.java | 58 + .../datasafe/model/CryptoSqlnetParameter.java | 202 ++ .../model/CryptoSqlnetParameterSource.java | 180 ++ .../model/CryptoSqlnetParameterValue.java | 221 ++ .../bmc/datasafe/model/CryptoTdePosture.java | 751 ++++++ .../bmc/datasafe/model/CryptoTlsPosture.java | 482 ++++ ...DownloadCryptoAssessmentReportDetails.java | 171 ++ ...GenerateCryptoAssessmentReportDetails.java | 171 ++ ...teOnPremConnectorConfigurationDetails.java | 8 +- .../bmc/datasafe/model/ReportDefinition.java | 1 + .../model/ReportDefinitionDataSource.java | 1 + .../model/ReportDefinitionSummary.java | 1 + .../model/RunCryptoAssessmentDetails.java | 324 +++ .../model/RunSecurityAssessmentDetails.java | 8 +- .../model/RunUserAssessmentDetails.java | 8 +- .../model/UpdateCryptoAssessmentDetails.java | 378 +++ .../bmc/datasafe/model/WorkRequest.java | 8 + .../datasafe/model/WorkRequestResource.java | 32 +- .../datasafe/model/WorkRequestSummary.java | 8 + .../ActivateTargetDatabaseRequest.java | 70 +- ...ngeCryptoAssessmentCompartmentRequest.java | 176 +- .../DeleteCryptoAssessmentRequest.java | 252 ++ ...DownloadCryptoAssessmentReportRequest.java | 269 +- ...GenerateCryptoAssessmentReportRequest.java | 371 +++ .../requests/GetCryptoAssessmentRequest.java | 197 ++ ...yptoAssessmentSqlnetParametersRequest.java | 333 +++ .../requests/ListAlertAnalyticsRequest.java | 16 +- .../datasafe/requests/ListAlertsRequest.java | 16 +- ...ListCryptoAssessmentBackupSetsRequest.java | 738 +++++ .../ListCryptoAssessmentCbomItemsRequest.java | 199 ++ ...stCryptoAssessmentCertificatesRequest.java | 933 +++++++ ...yptoAssessmentFindingAnalyticsRequest.java | 643 +++++ ...CryptoAssessmentFindingTargetsRequest.java | 751 ++++++ .../ListCryptoAssessmentFindingsRequest.java | 429 +++ .../ListCryptoAssessmentKeysRequest.java | 812 ++++++ ...ListCryptoAssessmentTdeObjectsRequest.java | 892 +++++++ .../ListCryptoAssessmentWalletsRequest.java | 751 ++++++ .../ListCryptoAssessmentsRequest.java | 897 +++++++ .../ListReportDefinitionsRequest.java | 1 + .../RefreshCryptoAssessmentRequest.java | 287 +- .../UpdateCryptoAssessmentRequest.java | 318 +++ ...geCryptoAssessmentCompartmentResponse.java | 42 +- .../DeleteCryptoAssessmentResponse.java | 173 ++ ...ownloadCryptoAssessmentReportResponse.java | 85 +- ...enerateCryptoAssessmentReportResponse.java | 42 +- .../GetCryptoAssessmentResponse.java | 209 ++ ...ptoAssessmentSqlnetParametersResponse.java | 273 ++ ...istCryptoAssessmentBackupSetsResponse.java | 271 ++ ...ListCryptoAssessmentCbomItemsResponse.java | 88 +- ...tCryptoAssessmentCertificatesResponse.java | 272 ++ ...ptoAssessmentFindingAnalyticsResponse.java | 276 ++ ...ryptoAssessmentFindingTargetsResponse.java | 273 ++ .../ListCryptoAssessmentFindingsResponse.java | 223 ++ .../ListCryptoAssessmentKeysResponse.java | 270 ++ ...istCryptoAssessmentTdeObjectsResponse.java | 271 ++ .../ListCryptoAssessmentWalletsResponse.java | 271 ++ .../ListCryptoAssessmentsResponse.java | 267 ++ .../RefreshCryptoAssessmentResponse.java | 173 ++ .../UpdateCryptoAssessmentResponse.java | 173 ++ bmc-datascience/pom.xml | 4 +- .../model/InstanceConfiguration.java | 51 +- ...teClusterInstanceConfigurationDetails.java | 45 + ...JobInfrastructureConfigurationDetails.java | 51 +- ...JobInfrastructureConfigurationDetails.java | 52 +- .../model/NotebookSessionConfigDetails.java | 48 + .../NotebookSessionConfigurationDetails.java | 48 + ...ineInfrastructureConfigurationDetails.java | 54 +- ...JobInfrastructureConfigurationDetails.java | 47 + ...teClusterInstanceConfigurationDetails.java | 48 +- 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 | 105 +- .../DistributedAutonomousDbServiceAsync.java | 135 +- ...ributedAutonomousDbServiceAsyncClient.java | 425 ++- .../DistributedAutonomousDbServiceClient.java | 333 ++- ...tributedAutonomousDbServicePaginators.java | 2 +- ...DistributedAutonomousDbServiceWaiters.java | 2 +- .../DistributedDbPrivateEndpointService.java | 16 +- ...tributedDbPrivateEndpointServiceAsync.java | 21 +- ...edDbPrivateEndpointServiceAsyncClient.java | 76 +- ...ributedDbPrivateEndpointServiceClient.java | 60 +- ...tedDbPrivateEndpointServicePaginators.java | 2 +- ...ibutedDbPrivateEndpointServiceWaiters.java | 2 +- .../DistributedDbService.java | 108 +- .../DistributedDbServiceAsync.java | 133 +- .../DistributedDbServiceAsyncClient.java | 405 ++- .../DistributedDbServiceClient.java | 319 ++- .../DistributedDbServicePaginators.java | 2 +- .../DistributedDbServiceWaiters.java | 2 +- .../DistributedDbWorkRequestService.java | 2 +- .../DistributedDbWorkRequestServiceAsync.java | 2 +- ...ibutedDbWorkRequestServiceAsyncClient.java | 10 +- ...DistributedDbWorkRequestServiceClient.java | 10 +- ...ributedDbWorkRequestServicePaginators.java | 2 +- ...istributedDbWorkRequestServiceWaiters.java | 2 +- .../SdkClientsMetadata.java | 2 +- ...nomousDatabaseGdsControlNodeConverter.java | 4 +- ...ibutedDatabaseGdsControlNodeConverter.java | 4 +- ...utonomousDatabaseCompartmentConverter.java | 4 +- ...utedAutonomousDbBackupConfigConverter.java | 4 +- ...stributedDatabaseCompartmentConverter.java | 4 +- ...sePrivateEndpointCompartmentConverter.java | 4 +- ...ngeDistributedDbBackupConfigConverter.java | 4 +- ...tabaseAutoResourceManagementConverter.java | 40 +- ...dAutonomousDatabaseGsmWalletConverter.java | 4 +- ...ibutedAutonomousDatabaseGsmsConverter.java | 4 +- ...edAutonomousDatabaseShardingConverter.java | 4 +- ...tabaseAutoResourceManagementConverter.java | 40 +- ...igureDistributedDatabaseGsmsConverter.java | 4 +- ...eDistributedDatabaseShardingConverter.java | 4 +- ...istributedAutonomousDatabaseConverter.java | 4 +- .../CreateDistributedDatabaseConverter.java | 4 +- ...butedDatabasePrivateEndpointConverter.java | 4 +- ...istributedAutonomousDatabaseConverter.java | 4 +- .../DeleteDistributedDatabaseConverter.java | 12 +- ...butedDatabasePrivateEndpointConverter.java | 4 +- ...GsmCertificateSigningRequestConverter.java | 187 -- ...GsmCertificateSigningRequestConverter.java | 185 -- ...GsmCertificateSigningRequestConverter.java | 171 -- ...utedAutonomousDatabaseWalletConverter.java | 4 +- ...GsmCertificateSigningRequestConverter.java | 168 -- ...ateDistributedDatabaseWalletConverter.java | 4 +- ...istributedAutonomousDatabaseConverter.java | 4 +- ...AutonomousDatabaseRaftMetricConverter.java | 4 +- ...utonomousDatabaseRuChangeLogConverter.java | 40 +- .../http/GetDistributedDatabaseConverter.java | 4 +- ...butedDatabasePrivateEndpointConverter.java | 4 +- ...istributedDatabaseRaftMetricConverter.java | 4 +- ...stributedDatabaseRuChangeLogConverter.java | 40 +- .../http/GetWorkRequestConverter.java | 4 +- ...stributedAutonomousDatabasesConverter.java | 22 +- ...utedDatabasePrivateEndpointsConverter.java | 12 +- .../ListDistributedDatabasesConverter.java | 22 +- .../http/ListWorkRequestErrorsConverter.java | 4 +- .../http/ListWorkRequestLogsConverter.java | 4 +- .../http/ListWorkRequestsConverter.java | 4 +- ...omousDatabaseReplicationUnitConverter.java | 4 +- ...butedDatabaseReplicationUnitConverter.java | 4 +- ...istributedAutonomousDatabaseConverter.java | 4 +- .../PatchDistributedDatabaseConverter.java | 4 +- ...butedDatabasePrivateEndpointConverter.java | 32 +- ...edAutonomousDatabaseResourceConverter.java | 12 +- ...dDistributedDatabaseResourceConverter.java | 12 +- .../http/ReinstateProxyInstanceConverter.java | 4 +- ...dAutonomousDatabasePasswordsConverter.java | 15 +- ...DistributedDatabasePasswordsConverter.java | 15 +- ...ibutedAutonomousDatabaseGsmsConverter.java | 32 +- ...ScaleDistributedDatabaseGsmsConverter.java | 33 +- ...istributedAutonomousDatabaseConverter.java | 4 +- .../StartDistributedDatabaseConverter.java | 4 +- ...istributedAutonomousDatabaseConverter.java | 4 +- .../StopDistributedDatabaseConverter.java | 4 +- ...istributedAutonomousDatabaseConverter.java | 4 +- .../UpdateDistributedDatabaseConverter.java | 4 +- ...butedDatabasePrivateEndpointConverter.java | 4 +- ...CertificateAndGenerateWalletConverter.java | 167 -- ...CertificateAndGenerateWalletConverter.java | 164 -- ...edAutonomousDatabaseCaBundleConverter.java | 4 +- ...tedAutonomousDatabaseNetworkConverter.java | 20 +- ...teDistributedDatabaseNetworkConverter.java | 20 +- .../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 | 670 ----- .../model/CatalogPeerWithExadbXs.java | 553 ---- ...alogPeerWithExadbXsNewVaultAndCluster.java | 616 ----- ...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 | 343 --- .../CreateCatalogPeerWithExadbXsDetails.java | 219 -- ...rWithExadbXsNewVaultAndClusterDetails.java | 288 -- ...teCompositeDataGuardShardSpaceDetails.java | 2 +- ...siteDataGuardShardSpaceReplicaDetails.java | 2 +- .../CreateCompositeRaftShardSpaceDetails.java | 2 +- ...CompositeShardSpaceRaftClusterDetails.java | 2 +- ...abaseCatalogWithDedicatedInfraDetails.java | 486 +++- ...eDistributedAutonomousDatabaseDetails.java | 676 +++-- ...utonomousDatabaseShardDatabaseDetails.java | 2 +- ...atabaseShardWithDedicatedInfraDetails.java | 526 ++-- ...ributedDatabaseCatalogDatabaseDetails.java | 117 +- ...abaseCatalogDatabaseWithDbHomeDetails.java | 152 +- ...baseCatalogDatabaseWithExadbXdDetails.java | 152 +- ...baseCatalogDatabaseWithExadbXsDetails.java | 152 +- ...eateDistributedDatabaseCatalogDetails.java | 171 +- ...tributedDatabaseCatalogReplicaDetails.java | 2 +- ...utedDatabaseCatalogWithExadbXsDetails.java | 443 --- ...seCatalogWithExadbXsNewClusterDetails.java | 152 +- ...gWithExadbXsNewVaultAndClusterDetails.java | 315 ++- .../CreateDistributedDatabaseDetails.java | 661 +++-- ...ributedDatabasePrivateEndpointDetails.java | 52 +- ...stributedDatabaseShardDatabaseDetails.java | 248 ++ ...atabaseShardDatabaseWithDbHomeDetails.java | 152 +- ...tabaseShardDatabaseWithExadbXdDetails.java | 152 +- ...tabaseShardDatabaseWithExadbXsDetails.java | 152 +- ...ibutedDatabaseShardWithExadbXsDetails.java | 442 --- ...baseShardWithExadbXsNewClusterDetails.java | 152 +- ...dWithExadbXsNewVaultAndClusterDetails.java | 307 ++- ...ateShardPeerWithDedicatedInfraDetails.java | 343 --- .../CreateShardPeerWithExadbXsDetails.java | 219 -- ...rWithExadbXsNewVaultAndClusterDetails.java | 288 -- .../CreateSystemDataGuardDatabaseDetails.java | 2 +- .../CreateSystemDataGuardReplicaDetails.java | 2 +- .../model/CreateSystemRaftClusterDetails.java | 2 +- .../model/CreateUserShardSpaceDetails.java | 2 +- .../CreateUserShardSpaceReplicaDetails.java | 2 +- .../model/DbStorageVaultDetails.java | 186 +- .../model/DistributedAutonomousDatabase.java | 1110 +++++--- ...DatabaseAssociatedWithPrivateEndpoint.java | 181 -- ...DatabaseAutoResourceManagementDetails.java | 2 +- .../DistributedAutonomousDatabaseCatalog.java | 198 +- ...utedAutonomousDatabaseCatalogDatabase.java | 2 +- ...butedAutonomousDatabaseCatalogReplica.java | 2 +- ...mousDatabaseCatalogWithDedicatedInfra.java | 521 ++-- ...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 | 181 -- ...ibutedAutonomousDatabaseShardDatabase.java | 2 +- ...nomousDatabaseShardWithDedicatedInfra.java | 548 ++-- .../DistributedAutonomousDatabaseSummary.java | 556 ++-- .../DistributedAutonomousDbBackupConfig.java | 2 +- ...tributedAutonomousDbBackupDestination.java | 83 +- .../DistributedAutonomousDbMetadata.java | 2 +- ...DistributedAutonomousDbProtectionMode.java | 2 +- .../model/DistributedDatabase.java | 1089 +++++--- ...DatabaseAssociatedWithPrivateEndpoint.java | 180 -- ...DatabaseAutoResourceManagementDetails.java | 2 +- .../model/DistributedDatabaseCatalog.java | 205 +- .../DistributedDatabaseCatalogDatabase.java | 2 +- ...utedDatabaseCatalogDatabaseWithDbHome.java | 2 +- ...tedDatabaseCatalogDatabaseWithExadbXd.java | 2 +- ...tedDatabaseCatalogDatabaseWithExadbXs.java | 2 +- ...eCatalogDatabaseWithExadbXsNewCluster.java | 2 +- ...DatabaseWithExadbXsNewVaultAndCluster.java | 2 +- ...tributedDatabaseCatalogReplicaDetails.java | 2 +- ...DistributedDatabaseCatalogWithExadbXs.java | 626 ----- ...eCatalogWithExadbXsNewVaultAndCluster.java | 689 ----- .../model/DistributedDatabaseCollection.java | 2 +- .../DistributedDatabaseGdsControlNode.java | 2 +- .../model/DistributedDatabaseGsm.java | 18 +- .../DistributedDatabasePrivateEndpoint.java | 166 +- ...utedDatabasePrivateEndpointCollection.java | 2 +- ...ributedDatabasePrivateEndpointSummary.java | 52 +- .../model/DistributedDatabaseRaftMetric.java | 2 +- .../model/DistributedDatabaseRuChangeLog.java | 2 +- ...DistributedDatabaseRuChangeLogSummary.java | 2 +- .../model/DistributedDatabaseShard.java | 188 -- .../DistributedDatabaseShardDatabase.java | 2 +- ...ibutedDatabaseShardDatabaseWithDbHome.java | 2 +- ...butedDatabaseShardDatabaseWithExadbXd.java | 2 +- ...butedDatabaseShardDatabaseWithExadbXs.java | 2 +- ...aseShardDatabaseWithExadbXsNewCluster.java | 2 +- ...DatabaseWithExadbXsNewVaultAndCluster.java | 2 +- .../DistributedDatabaseShardWithExadbXs.java | 673 ----- ...aseShardWithExadbXsNewVaultAndCluster.java | 736 ----- .../model/DistributedDatabaseSummary.java | 516 ++-- .../model/DistributedDbBackupConfig.java | 2 +- .../model/DistributedDbBackupDestination.java | 127 +- .../model/DistributedDbConnectionString.java | 2 +- .../DistributedDbGdsControlNodeImage.java | 2 +- .../model/DistributedDbGsmImage.java | 50 +- .../model/DistributedDbMetadata.java | 2 +- .../model/DistributedDbProtectionMode.java | 2 +- .../model/DistributedDbStorageVault.java | 194 +- .../model/DistributedDbTransportType.java | 4 +- .../model/DistributedDbVmCluster.java | 106 +- ...ibutedAutonomousDatabaseWalletDetails.java | 39 +- ...erateDistributedDatabaseWalletDetails.java | 39 +- ...onomousDatabaseReplicationUnitDetails.java | 2 +- ...ributedDatabaseReplicationUnitDetails.java | 2 +- .../model/OperationStatus.java | 2 +- .../model/OperationType.java | 13 +- ...hDistributedAutonomousDatabaseDetails.java | 4 +- .../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 | 670 ----- .../model/ShardPeerWithExadbXs.java | 552 ---- ...hardPeerWithExadbXsNewVaultAndCluster.java | 615 ----- .../distributeddatabase/model/SortOrder.java | 2 +- .../model/SystemDataGuardDatabase.java | 2 +- .../model/SystemDataGuardReplica.java | 2 +- .../model/SystemRaftCluster.java | 2 +- ...eDistributedAutonomousDatabaseDetails.java | 64 +- .../UpdateDistributedDatabaseDetails.java | 64 +- ...ributedDatabasePrivateEndpointDetails.java | 53 +- ...edCertificateAndGenerateWalletDetails.java | 153 -- ...edCertificateAndGenerateWalletDetails.java | 147 - .../model/UserShardSpace.java | 2 +- .../model/UserShardSpaceReplica.java | 2 +- .../model/VcnNsgIdsDetails.java | 2 +- .../model/VmClusterDetails.java | 96 +- .../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 | 46 +- ...ibutedAutonomousDatabaseWalletRequest.java | 10 +- ...erateDistributedDatabaseWalletRequest.java | 10 +- ...edAutonomousDatabaseRaftMetricRequest.java | 10 +- ...tDistributedAutonomousDatabaseRequest.java | 18 +- ...dAutonomousDatabaseRuChangeLogRequest.java | 6 +- ...ributedDatabasePrivateEndpointRequest.java | 2 +- ...tDistributedDatabaseRaftMetricRequest.java | 10 +- .../GetDistributedDatabaseRequest.java | 18 +- ...DistributedDatabaseRuChangeLogRequest.java | 6 +- .../requests/GetWorkRequestRequest.java | 2 +- ...DistributedAutonomousDatabasesRequest.java | 118 +- ...ibutedDatabasePrivateEndpointsRequest.java | 41 +- .../ListDistributedDatabasesRequest.java | 116 +- .../ListWorkRequestErrorsRequest.java | 14 +- .../requests/ListWorkRequestLogsRequest.java | 14 +- .../requests/ListWorkRequestsRequest.java | 2 +- ...onomousDatabaseReplicationUnitRequest.java | 10 +- ...ributedDatabaseReplicationUnitRequest.java | 10 +- ...hDistributedAutonomousDatabaseRequest.java | 10 +- ...ributedDatabasePrivateEndpointRequest.java | 25 +- .../PatchDistributedDatabaseRequest.java | 10 +- ...utedAutonomousDatabaseResourceRequest.java | 56 +- ...ledDistributedDatabaseResourceRequest.java | 56 +- .../ReinstateProxyInstanceRequest.java | 2 +- ...tedAutonomousDatabasePasswordsRequest.java | 201 +- ...teDistributedDatabasePasswordsRequest.java | 194 +- ...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 | 412 --- ...edCertificateAndGenerateWalletRequest.java | 405 --- ...utedAutonomousDatabaseCaBundleRequest.java | 10 +- ...butedAutonomousDatabaseNetworkRequest.java | 84 +- ...dateDistributedDatabaseNetworkRequest.java | 84 +- ...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 | 293 -- ...eGsmCertificateSigningRequestResponse.java | 182 -- ...butedAutonomousDatabaseWalletResponse.java | 2 +- ...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 +- ...tedAutonomousDatabaseCaBundleResponse.java | 2 +- ...utedAutonomousDatabaseNetworkResponse.java | 2 +- ...ateDistributedDatabaseNetworkResponse.java | 2 +- .../DistributedAutonomousDbService.java | 428 --- .../DistributedAutonomousDbServiceAsync.java | 522 ---- ...ributedAutonomousDbServiceAsyncClient.java | 1898 ------------- .../DistributedAutonomousDbServiceClient.java | 1656 ------------ ...tributedAutonomousDbServicePaginators.java | 167 -- ...tedDbPrivateEndpointServicePaginators.java | 172 -- ...ibutedDbPrivateEndpointServiceWaiters.java | 154 -- .../DistributedDbService.java | 389 --- .../DistributedDbServiceAsync.java | 466 ---- .../DistributedDbServiceAsyncClient.java | 1694 ------------ .../SdkClientsMetadata.java | 20 - ...nomousDatabaseGdsControlNodeConverter.java | 165 -- ...ibutedDatabaseGdsControlNodeConverter.java | 163 -- ...utonomousDatabaseCompartmentConverter.java | 165 -- ...utedAutonomousDbBackupConfigConverter.java | 165 -- ...sePrivateEndpointCompartmentConverter.java | 165 -- ...ngeDistributedDbBackupConfigConverter.java | 161 -- ...dAutonomousDatabaseGsmWalletConverter.java | 165 -- ...ibutedAutonomousDatabaseGsmsConverter.java | 165 -- ...edAutonomousDatabaseShardingConverter.java | 186 -- ...igureDistributedDatabaseGsmsConverter.java | 161 -- ...eDistributedDatabaseShardingConverter.java | 168 -- ...istributedAutonomousDatabaseConverter.java | 158 -- ...butedDatabasePrivateEndpointConverter.java | 160 -- ...utedAutonomousDatabaseWalletConverter.java | 189 -- ...omousDatabaseReplicationUnitConverter.java | 165 -- ...butedDatabaseReplicationUnitConverter.java | 164 -- ...istributedAutonomousDatabaseConverter.java | 160 -- .../PatchDistributedDatabaseConverter.java | 156 -- ...edAutonomousDatabaseResourceConverter.java | 169 -- ...dDistributedDatabaseResourceConverter.java | 168 -- ...dAutonomousDatabasePasswordsConverter.java | 165 -- ...DistributedDatabasePasswordsConverter.java | 161 -- ...istributedAutonomousDatabaseConverter.java | 159 -- ...istributedAutonomousDatabaseConverter.java | 159 -- ...edAutonomousDatabaseCaBundleConverter.java | 162 -- ...tedAutonomousDatabaseNetworkConverter.java | 170 -- ...teDistributedDatabaseNetworkConverter.java | 166 -- ...tonomousDatabaseGdsControlNodeDetails.java | 178 -- ...tributedDatabaseGdsControlNodeDetails.java | 177 -- ...ibutedAutonomousDbBackupConfigDetails.java | 127 - ...tedAutonomousDatabaseGsmWalletDetails.java | 180 -- ...tributedAutonomousDatabaseGsmsDetails.java | 188 -- ...nfigureDistributedDatabaseGsmsDetails.java | 187 -- ...abaseCatalogWithDedicatedInfraDetails.java | 732 ----- ...eDistributedAutonomousDatabaseDetails.java | 1257 --------- ...atabaseShardWithDedicatedInfraDetails.java | 775 ------ ...eateDistributedDatabaseCatalogDetails.java | 169 -- ...gWithExadbXsNewVaultAndClusterDetails.java | 505 ---- .../CreateDistributedDatabaseDetails.java | 1270 --------- ...dWithExadbXsNewVaultAndClusterDetails.java | 505 ---- .../model/DbStorageVaultDetails.java | 366 --- .../model/DistributedAutonomousDatabase.java | 2013 -------------- .../DistributedAutonomousDatabaseCatalog.java | 169 -- ...mousDatabaseCatalogWithDedicatedInfra.java | 865 ------ .../DistributedAutonomousDatabaseGsm.java | 543 ---- ...stributedAutonomousDatabaseRaftMetric.java | 175 -- ...nomousDatabaseShardWithDedicatedInfra.java | 861 ------ .../DistributedAutonomousDatabaseSummary.java | 1440 ---------- .../DistributedAutonomousDbBackupConfig.java | 201 -- ...tributedAutonomousDbBackupDestination.java | 404 --- .../model/DistributedDatabase.java | 2000 -------------- .../model/DistributedDatabaseCatalog.java | 167 -- .../model/DistributedDatabaseGsm.java | 543 ---- .../model/DistributedDatabaseRaftMetric.java | 175 -- .../model/DistributedDatabaseSummary.java | 1398 ---------- .../model/DistributedDbBackupConfig.java | 813 ------ .../model/DistributedDbBackupDestination.java | 403 --- .../model/DistributedDbStorageVault.java | 447 ---- .../model/DistributedDbVmCluster.java | 1022 ------- ...ibutedAutonomousDatabaseWalletDetails.java | 163 -- ...erateDistributedDatabaseWalletDetails.java | 163 -- ...onomousDatabaseReplicationUnitDetails.java | 229 -- ...ributedDatabaseReplicationUnitDetails.java | 229 -- .../model/OperationType.java | 91 - .../model/PatchInstruction.java | 145 - .../model/VmClusterDetails.java | 927 ------- ...tonomousDatabaseGdsControlNodeRequest.java | 399 --- ...dAutonomousDatabaseCompartmentRequest.java | 395 --- ...basePrivateEndpointCompartmentRequest.java | 399 --- ...tedAutonomousDatabaseGsmWalletRequest.java | 397 --- ...tributedAutonomousDatabaseGsmsRequest.java | 394 --- ...utedAutonomousDatabaseShardingRequest.java | 422 --- ...eDistributedAutonomousDatabaseRequest.java | 310 --- ...ributedDatabasePrivateEndpointRequest.java | 313 --- ...ibutedAutonomousDatabaseWalletRequest.java | 394 --- ...tDistributedAutonomousDatabaseRequest.java | 291 -- ...DistributedAutonomousDatabasesRequest.java | 621 ----- ...onomousDatabaseReplicationUnitRequest.java | 401 --- ...ributedDatabaseReplicationUnitRequest.java | 393 --- ...hDistributedAutonomousDatabaseRequest.java | 389 --- ...ledDistributedDatabaseResourceRequest.java | 345 --- ...tedAutonomousDatabasePasswordsRequest.java | 395 --- ...teDistributedDatabasePasswordsRequest.java | 387 --- ...pDistributedAutonomousDatabaseRequest.java | 310 --- ...eDistributedAutonomousDatabaseRequest.java | 335 --- ...ributedDatabasePrivateEndpointRequest.java | 395 --- ...utedAutonomousDatabaseCaBundleRequest.java | 312 --- ...dateDistributedDatabaseNetworkRequest.java | 340 --- ...butedAutonomousDbBackupConfigResponse.java | 179 -- ...asePrivateEndpointCompartmentResponse.java | 179 -- ...edAutonomousDatabaseGsmWalletResponse.java | 179 -- ...tedAutonomousDatabaseShardingResponse.java | 179 -- ...dAutonomousDatabaseRaftMetricResponse.java | 189 -- ...nomousDatabaseReplicationUnitResponse.java | 179 -- ...tedAutonomousDatabaseResourceResponse.java | 179 -- ...edDistributedDatabaseResourceResponse.java | 179 -- ...edAutonomousDatabasePasswordsResponse.java | 179 -- ...eDistributedDatabasePasswordsResponse.java | 179 -- ...DistributedAutonomousDatabaseResponse.java | 179 -- ...tedAutonomousDatabaseCaBundleResponse.java | 179 -- ...utedAutonomousDatabaseNetworkResponse.java | 179 -- ...ateDistributedDatabaseNetworkResponse.java | 179 -- bmc-dns/pom.xml | 6 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 8 +- .../internal/DecryptionHandler.java | 120 +- .../internal/DecryptionHandlerTest.java | 361 ++- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 14 +- .../src/main/java/InvokeFunctionExample.java | 2365 +++++++++-------- bmc-filestorage/pom.xml | 4 +- bmc-fleetappsmanagement/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 14 +- bmc-functions/pom.xml | 4 +- .../oracle/bmc/functions/FunctionsInvoke.java | 2 +- .../bmc/functions/FunctionsInvokeAsync.java | 2 +- .../functions/FunctionsInvokeAsyncClient.java | 4 +- .../bmc/functions/FunctionsInvokeClient.java | 4 +- .../bmc/functions/FunctionsManagement.java | 58 +- .../functions/FunctionsManagementAsync.java | 73 +- .../FunctionsManagementAsyncClient.java | 233 +- .../functions/FunctionsManagementClient.java | 188 +- .../FunctionsManagementPaginators.java | 240 +- .../functions/FunctionsManagementWaiters.java | 218 +- .../bmc/functions/SdkClientsMetadata.java | 6 +- .../bmc/functions/WorkRequestManagement.java | 141 + .../functions/WorkRequestManagementAsync.java | 35 +- .../WorkRequestManagementAsyncClient.java | 107 +- .../WorkRequestManagementClient.java | 112 +- .../WorkRequestManagementPaginators.java | 67 +- .../WorkRequestManagementWaiters.java | 19 +- .../http/CancelWorkRequestConverter.java | 127 + ...ChangeApplicationCompartmentConverter.java | 15 +- .../http/CreateApplicationConverter.java | 15 +- .../http/CreateFunctionConverter.java | 15 +- .../http/DeleteApplicationConverter.java | 15 +- .../http/DeleteFunctionConverter.java | 15 +- .../http/GetApplicationConverter.java | 4 +- .../internal/http/GetFunctionConverter.java | 4 +- .../http/GetFunctionsRuntimeConverter.java | 143 + .../GetFunctionsRuntimeVersionConverter.java | 153 ++ .../internal/http/GetPbfListingConverter.java | 4 +- .../http/GetPbfListingVersionConverter.java | 4 +- .../http/GetWorkRequestConverter.java | 152 ++ .../http/InvokeFunctionConverter.java | 4 +- .../http/ListApplicationsConverter.java | 4 +- .../internal/http/ListFunctionsConverter.java | 4 +- ...ListFunctionsRuntimeVersionsConverter.java | 153 +- .../http/ListFunctionsRuntimesConverter.java | 231 ++ .../http/ListPbfListingVersionsConverter.java | 4 +- .../http/ListPbfListingsConverter.java | 4 +- .../internal/http/ListTriggersConverter.java | 4 +- .../http/ListWorkRequestErrorsConverter.java | 182 ++ .../http/ListWorkRequestLogsConverter.java | 181 ++ .../http/ListWorkRequestsConverter.java | 50 +- .../http/UpdateApplicationConverter.java | 41 +- .../http/UpdateFunctionConverter.java | 39 +- .../bmc/functions/model/ActionType.java | 58 + .../bmc/functions/model/Application.java | 2 +- .../model/ApplicationLoggingConfig.java | 2 +- .../functions/model/ApplicationSummary.java | 2 +- .../model/ApplicationTraceConfig.java | 2 +- .../model/ArchiveFunctionSourceDetails.java | 247 ++ .../functions/model/ArchiveSourceDetails.java | 133 + .../ChangeApplicationCompartmentDetails.java | 2 +- .../bmc/functions/model/ConfigDetails.java | 2 +- .../ConstantProvisionedConcurrencyConfig.java | 2 +- .../ContainerImageFunctionSourceDetails.java | 201 ++ .../model/CreateApplicationDetails.java | 2 +- .../CreateArchiveFunctionSourceDetails.java | 200 ++ .../model/CreateArchiveSourceDetails.java | 120 + ...teContainerImageFunctionSourceDetails.java | 202 ++ .../CreateDirectArchiveSourceDetails.java | 152 ++ .../model/CreateFunctionDetails.java | 116 +- .../model/CreateFunctionSourceDetails.java | 56 +- .../CreateFunctionUpdateRuntimeConfig.java | 95 +- .../model/CreateManualRuntimeConfig.java | 193 ++ ...eateObjectStorageArchiveSourceDetails.java | 257 ++ .../CreatePreBuiltFunctionSourceDetails.java | 89 +- .../functions/model/CreateRuntimeConfig.java | 49 +- .../model/DirectArchiveSourceDetails.java | 103 + .../model/FailureDestinationDetails.java | 2 +- .../oracle/bmc/functions/model/Function.java | 106 +- .../FunctionProvisionedConcurrencyConfig.java | 2 +- .../model/FunctionSourceDetails.java | 14 +- .../bmc/functions/model/FunctionSummary.java | 106 +- .../functions/model/FunctionTraceConfig.java | 2 +- .../model/FunctionUpdateRuntimeConfig.java | 193 ++ .../bmc/functions/model/FunctionsRuntime.java | 787 ++++++ .../model/FunctionsRuntimeCollection.java | 135 + .../model/FunctionsRuntimeSummary.java | 725 +++++ .../model/FunctionsRuntimeVersion.java | 788 ++++++ .../FunctionsRuntimeVersionCollection.java | 136 + .../model/FunctionsRuntimeVersionSummary.java | 723 +++++ .../functions/model/ImagePolicyConfig.java | 2 +- .../bmc/functions/model/KeyDetails.java | 2 +- .../functions/model/ManualRuntimeConfig.java | 192 ++ .../model/NoneFailureDestinationDetails.java | 2 +- .../NoneProvisionedConcurrencyConfig.java | 2 +- .../model/NoneSuccessDestinationDetails.java | 2 +- ...NotificationFailureDestinationDetails.java | 2 +- ...NotificationSuccessDestinationDetails.java | 2 +- .../ObjectStorageArchiveSourceDetails.java | 257 ++ .../bmc/functions/model/OperationStatus.java | 61 + .../bmc/functions/model/OperationType.java | 38 +- .../bmc/functions/model/PbfListing.java | 2 +- .../functions/model/PbfListingSummary.java | 2 +- .../functions/model/PbfListingVersion.java | 2 +- .../model/PbfListingVersionSummary.java | 2 +- .../model/PbfListingVersionsCollection.java | 2 +- .../model/PbfListingsCollection.java | 2 +- .../bmc/functions/model/PolicyDetails.java | 2 +- .../model/PreBuiltFunctionSourceDetails.java | 2 +- .../bmc/functions/model/PublisherDetails.java | 2 +- .../model/QueueFailureDestinationDetails.java | 2 +- .../model/QueueSuccessDestinationDetails.java | 2 +- .../functions/model/RequirementDetails.java | 2 +- .../bmc/functions/model/RuntimeConfig.java | 131 + .../StreamFailureDestinationDetails.java | 2 +- .../StreamSuccessDestinationDetails.java | 2 +- .../model/SuccessDestinationDetails.java | 2 +- .../oracle/bmc/functions/model/Trigger.java | 2 +- .../bmc/functions/model/TriggerSummary.java | 2 +- .../functions/model/TriggersCollection.java | 2 +- .../model/UpdateApplicationDetails.java | 2 +- .../UpdateArchiveFunctionSourceDetails.java | 200 ++ .../model/UpdateArchiveSourceDetails.java | 118 + ...teContainerImageFunctionSourceDetails.java | 202 ++ .../UpdateDirectArchiveSourceDetails.java | 150 ++ .../model/UpdateFunctionDetails.java | 138 +- .../model/UpdateFunctionSourceDetails.java | 48 +- .../UpdateFunctionUpdateRuntimeConfig.java | 148 ++ .../model/UpdateManualRuntimeConfig.java | 193 ++ ...dateObjectStorageArchiveSourceDetails.java | 255 ++ .../functions/model/UpdateRuntimeConfig.java | 118 + .../bmc/functions}/model/WorkRequest.java | 175 +- .../functions}/model/WorkRequestError.java | 46 +- .../model/WorkRequestErrorCollection.java | 135 + .../functions}/model/WorkRequestLogEntry.java | 30 +- .../model/WorkRequestLogEntryCollection.java | 135 + .../functions}/model/WorkRequestResource.java | 52 +- .../model/WorkRequestResourceMetadataKey.java | 54 + .../functions/model/WorkRequestSummary.java | 550 ++++ .../model/WorkRequestSummaryCollection.java | 135 + .../requests/CancelWorkRequestRequest.java | 249 ++ .../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 | 205 ++ .../GetFunctionsRuntimeVersionRequest.java | 210 ++ .../requests/GetPbfListingRequest.java | 2 +- .../requests/GetPbfListingVersionRequest.java | 2 +- .../requests/GetWorkRequestRequest.java | 32 +- .../requests/InvokeFunctionRequest.java | 2 +- .../requests/ListApplicationsRequest.java | 2 +- .../requests/ListFunctionsRequest.java | 2 +- .../ListFunctionsRuntimeVersionsRequest.java | 697 +++++ .../ListFunctionsRuntimesRequest.java | 649 +++++ .../ListPbfListingVersionsRequest.java | 2 +- .../requests/ListPbfListingsRequest.java | 2 +- .../requests/ListTriggersRequest.java | 2 +- .../ListWorkRequestErrorsRequest.java | 146 +- .../requests/ListWorkRequestLogsRequest.java | 146 +- .../requests/ListWorkRequestsRequest.java | 547 ++++ .../requests/UpdateApplicationRequest.java | 2 +- .../requests/UpdateFunctionRequest.java | 2 +- .../responses/CancelWorkRequestResponse.java | 130 + .../ChangeApplicationCompartmentResponse.java | 76 +- .../responses/CreateApplicationResponse.java | 49 +- .../responses/CreateFunctionResponse.java | 49 +- .../responses/DeleteApplicationResponse.java | 77 +- .../responses/DeleteFunctionResponse.java | 77 +- .../responses/GetApplicationResponse.java | 2 +- .../responses/GetFunctionResponse.java | 2 +- .../GetFunctionsRuntimeResponse.java | 213 ++ .../GetFunctionsRuntimeVersionResponse.java | 216 ++ .../responses/GetPbfListingResponse.java | 2 +- .../GetPbfListingVersionResponse.java | 2 +- .../responses/GetWorkRequestResponse.java | 58 +- .../responses/InvokeFunctionResponse.java | 2 +- .../responses/ListApplicationsResponse.java | 2 +- .../responses/ListFunctionsResponse.java | 2 +- .../ListFunctionsRuntimeVersionsResponse.java | 235 ++ .../ListFunctionsRuntimesResponse.java | 232 ++ .../ListPbfListingVersionsResponse.java | 2 +- .../responses/ListPbfListingsResponse.java | 2 +- .../responses/ListTriggersResponse.java | 2 +- .../ListWorkRequestErrorsResponse.java | 102 +- .../ListWorkRequestLogsResponse.java | 100 +- .../responses/ListWorkRequestsResponse.java | 16 +- .../responses/UpdateApplicationResponse.java | 97 +- .../responses/UpdateFunctionResponse.java | 97 +- bmc-fusionapps/pom.xml | 4 +- bmc-gdp/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- .../oracle/bmc/generativeai/GenerativeAi.java | 87 + .../bmc/generativeai/GenerativeAiAsync.java | 116 + .../generativeai/GenerativeAiAsyncClient.java | 350 +++ .../bmc/generativeai/GenerativeAiClient.java | 277 ++ .../generativeai/GenerativeAiPaginators.java | 227 ++ .../bmc/generativeai/GenerativeAiWaiters.java | 107 + ...ngeRoutingProfileCompartmentConverter.java | 150 ++ .../http/CreateRoutingProfileConverter.java | 151 ++ .../http/DeleteRoutingProfileConverter.java | 136 + .../http/GetRoutingProfileConverter.java | 149 ++ .../http/ListModelDiscoveryConverter.java | 258 ++ .../http/ListRoutingProfilesConverter.java | 212 ++ .../http/UpdateRoutingProfileConverter.java | 158 ++ .../bmc/generativeai/model/Availability.java | 392 +++ ...hangeRoutingProfileCompartmentDetails.java | 139 + .../CreateDedicatedAiClusterDetails.java | 104 +- .../CreateHostedApplicationBaseDetails.java | 16 +- .../model/CreateHostedApplicationDetails.java | 16 +- .../CreateHostedApplicationIamDetails.java | 16 +- ...CreateHostedApplicationStorageDetails.java | 8 +- .../model/CreateRoutingProfileDetails.java | 396 +++ .../model/CreateSemanticStoreDetails.java | 90 + .../CustomSemanticStoreModelSelection.java | 138 + .../model/DedicatedAiCluster.java | 30 +- .../model/DedicatedAiClusterSummary.java | 8 +- .../DefaultSemanticStoreModelSelection.java | 101 + .../generativeai/model/HostedApplication.java | 8 +- .../model/HostedApplicationBase.java | 8 +- .../model/HostedApplicationIam.java | 8 +- .../model/HostedApplicationStorage.java | 12 +- .../HostedApplicationStorageSummary.java | 10 +- .../generativeai/model/InboundAuthConfig.java | 18 +- .../generativeai/model/ModelDiscovery.java | 478 ++++ .../model/ModelDiscoveryCollection.java | 137 + .../bmc/generativeai/model/ModelModality.java | 57 + .../model/ModelModalitySupport.java | 172 ++ .../model/ModelRoutingPolicy.java | 150 ++ .../bmc/generativeai/model/Parameter.java | 346 +++ .../model/PreviousRoutingProfileState.java | 654 +++++ .../model/RegionRoutingPolicy.java | 150 ++ .../generativeai/model/RoutingProfile.java | 734 +++++ .../model/RoutingProfileCollection.java | 135 + .../model/RoutingProfileSummary.java | 406 ++- .../bmc/generativeai/model/SemanticStore.java | 90 + .../model/SemanticStoreModelSelection.java | 85 +- .../model/SemanticStoreSummary.java | 90 + .../bmc/generativeai/model/ServingMode.java | 55 + .../bmc/generativeai/model/StorageConfig.java | 8 +- .../model/UpdateRoutingProfileDetails.java | 354 +++ .../model/UpdateSemanticStoreDetails.java | 90 + ...hangeRoutingProfileCompartmentRequest.java | 268 +- .../requests/CreateRoutingProfileRequest.java | 300 +++ .../requests/DeleteRoutingProfileRequest.java | 262 ++ .../requests/GetRoutingProfileRequest.java | 211 ++ .../requests/ListModelDiscoveryRequest.java | 756 ++++++ .../requests/ListRoutingProfilesRequest.java | 511 ++++ .../requests/UpdateRoutingProfileRequest.java | 328 +++ ...angeRoutingProfileCompartmentResponse.java | 131 + .../CreateRoutingProfileResponse.java | 213 ++ .../DeleteRoutingProfileResponse.java | 130 + .../responses/GetRoutingProfileResponse.java | 213 ++ .../responses/ListModelDiscoveryResponse.java | 226 ++ .../ListRoutingProfilesResponse.java | 226 ++ .../UpdateRoutingProfileResponse.java | 213 ++ bmc-generativeaiagent/pom.xml | 4 +- bmc-generativeaiagentruntime/pom.xml | 4 +- bmc-generativeaidata/pom.xml | 4 +- .../bmc/generativeaidata/EnrichmentJob.java | 45 +- ...tJobAsync.java => EnrichmentJobAsync.java} | 56 +- ...ent.java => EnrichmentJobAsyncClient.java} | 180 +- .../generativeaidata/EnrichmentJobClient.java | 727 +++++ ...tors.java => EnrichmentJobPaginators.java} | 8 +- ...Waiters.java => EnrichmentJobWaiters.java} | 10 +- .../GenerateEnrichmentJob.java | 74 - ...GetEnrichmentJob.java => GenerateSql.java} | 40 +- ...mNlJobAsync.java => GenerateSqlAsync.java} | 36 +- ...lient.java => GenerateSqlAsyncClient.java} | 83 +- ...tJobClient.java => GenerateSqlClient.java} | 103 +- .../GenerateSqlFromNlJobClient.java | 527 ---- .../generativeaidata/GenerateSqlWaiters.java | 108 +- .../GetEnrichmentJobAsync.java | 76 - .../generativeaidata/ListEnrichmentJobs.java | 83 - .../ListEnrichmentJobsAsyncClient.java | 519 ---- .../ListEnrichmentJobsClient.java | 529 ---- .../generativeaidata/SdkClientsMetadata.java | 14 +- .../http/CancelEnrichmentJobConverter.java | 29 +- .../GetGenerateSqlFromNlJobConverter.java | 148 ++ .../model/CompletionMode.java | 42 + ...eltaRefreshEnrichmentJobConfiguration.java | 11 +- .../generativeaidata/model/EnrichmentJob.java | 66 +- .../model/EnrichmentJobSummary.java | 72 +- .../model/EnrichmentJobType.java | 2 +- .../model/GenerateEnrichmentJobDetails.java | 8 +- .../model/GenerateSqlFromNlDetails.java | 94 + .../model/GenerateSqlFromNlJob.java | 106 +- .../bmc/generativeaidata/model/JobOutput.java | 2 + .../GetGenerateSqlFromNlJobRequest.java | 133 +- .../CancelEnrichmentJobResponse.java | 90 +- .../responses/GenerateSqlFromNlResponse.java | 12 +- .../GetGenerateSqlFromNlJobResponse.java | 176 ++ 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 +- .../src/main/java/com/oracle/bmc/iot/Iot.java | 130 + .../java/com/oracle/bmc/iot/IotAsync.java | 169 ++ .../com/oracle/bmc/iot/IotAsyncClient.java | 502 ++++ .../java/com/oracle/bmc/iot/IotClient.java | 400 +++ .../com/oracle/bmc/iot/IotPaginators.java | 113 + .../java/com/oracle/bmc/iot/IotWaiters.java | 103 + .../http/ActivateIotFlowRuntimeConverter.java | 144 + ...ngeIotFlowRuntimeCompartmentConverter.java | 152 ++ .../http/CreateIotFlowRuntimeConverter.java | 173 ++ .../DeactivateIotFlowRuntimeConverter.java | 145 + .../http/DeleteIotFlowRuntimeConverter.java | 138 + .../http/GetIotFlowRuntimeConverter.java | 139 + .../http/GetIotFlowRuntimeFlowsConverter.java | 142 + .../http/ListIotFlowRuntimesConverter.java | 222 ++ .../http/UpdateIotFlowRuntimeConverter.java | 141 + .../UpdateIotFlowRuntimeFlowsConverter.java | 148 ++ ...hangeIotFlowRuntimeCompartmentDetails.java | 41 +- .../CreateDigitalTwinInstanceDetails.java | 8 +- .../model/CreateIotFlowRuntimeDetails.java | 517 ++++ .../DigitalTwinAdapterEnvelopeMapping.java | 4 + .../model/DigitalTwinAdapterInboundRoute.java | 88 + .../bmc/iot/model/DigitalTwinInstance.java | 8 +- .../iot/model/DigitalTwinInstanceSummary.java | 8 +- .../com/oracle/bmc/iot/model/FileFamily.java | 96 + .../iot/model/FileStorageMountDetails.java | 213 ++ .../oracle/bmc/iot/model/IotFlowRuntime.java | 852 ++++++ .../iot/model/IotFlowRuntimeCollection.java | 135 + .../bmc/iot/model/IotFlowRuntimeSummary.java | 705 +++++ .../java/com/oracle/bmc/iot/model/Log.java | 96 + .../bmc/iot/model/LogConfigDetails.java | 170 ++ .../com/oracle/bmc/iot/model/LogGroup.java | 96 + .../bmc/iot/model/NetworkConfigDetails.java | 223 ++ .../bmc/iot/model/NetworkSecurityGroup.java | 55 +- .../oracle/bmc/iot/model/OperationType.java | 6 + .../java/com/oracle/bmc/iot/model/Subnet.java | 96 + .../UpdateDigitalTwinInstanceDetails.java | 46 +- .../model/UpdateIotFlowRuntimeDetails.java | 436 +++ .../ActivateIotFlowRuntimeRequest.java | 148 +- ...hangeIotFlowRuntimeCompartmentRequest.java | 213 +- .../requests/CreateIotFlowRuntimeRequest.java | 289 ++ .../DeactivateIotFlowRuntimeRequest.java | 149 +- .../requests/DeleteIotFlowRuntimeRequest.java | 258 ++ .../GetIotFlowRuntimeFlowsRequest.java | 204 ++ .../requests/GetIotFlowRuntimeRequest.java | 203 ++ .../ListDigitalTwinAdaptersRequest.java | 8 +- .../ListDigitalTwinInstancesRequest.java | 8 +- .../ListDigitalTwinModelsRequest.java | 8 +- .../ListDigitalTwinRelationshipsRequest.java | 8 +- .../requests/ListIotDomainGroupsRequest.java | 8 +- .../requests/ListIotFlowRuntimesRequest.java | 586 ++++ .../UpdateIotFlowRuntimeFlowsRequest.java | 312 +++ .../requests/UpdateIotFlowRuntimeRequest.java | 321 +++ .../ActivateIotFlowRuntimeResponse.java | 34 +- ...angeIotFlowRuntimeCompartmentResponse.java | 34 +- .../CreateIotFlowRuntimeResponse.java | 238 +- .../DeactivateIotFlowRuntimeResponse.java | 33 +- .../DeleteIotFlowRuntimeResponse.java | 34 +- .../GetIotFlowRuntimeFlowsResponse.java | 210 ++ .../responses/GetIotFlowRuntimeResponse.java | 212 ++ .../ListIotFlowRuntimesResponse.java | 268 ++ .../UpdateIotFlowRuntimeFlowsResponse.java | 210 ++ .../UpdateIotFlowRuntimeResponse.java | 34 +- 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 | 20 +- .../AdministratorArtifactAsync.java | 21 +- .../AdministratorArtifactAsyncClient.java | 83 +- .../AdministratorArtifactClient.java | 70 +- .../AdministratorPublisher.java | 19 +- .../AdministratorPublisherAsync.java | 21 +- .../AdministratorPublisherAsyncClient.java | 76 +- .../AdministratorPublisherClient.java | 66 +- .../MarketplaceAdministrator.java | 292 ++ .../MarketplaceAdministratorAsync.java | 349 +++ .../MarketplaceAdministratorAsyncClient.java | 1300 +++++++++ .../MarketplaceAdministratorClient.java | 1138 ++++++++ .../MarketplaceAdministratorPaginators.java | 998 +++++++ .../MarketplacePublisher.java | 123 +- .../MarketplacePublisherAsync.java | 129 +- .../MarketplacePublisherAsyncClient.java | 395 +++ .../MarketplacePublisherClient.java | 323 +++ .../MarketplacePublisherPaginators.java | 129 + .../MarketplacePublisherWaiters.java | 119 + .../SdkClientsMetadata.java | 11 +- ...geListingRevisionStatusToNewConverter.java | 100 +- .../internal/http/CreateMarketConverter.java | 136 + .../http/CreatePublisherConverter.java | 148 ++ ...CustomerInstanceReportExportConverter.java | 142 + ...CustomerInstanceReportExportConverter.java | 101 +- .../http/GetAdminArtifactConverter.java | 150 ++ .../http/GetAdminListingConverter.java | 150 ++ ...minListingRevisionAttachmentConverter.java | 160 ++ .../GetAdminListingRevisionConverter.java | 154 ++ ...tAdminListingRevisionPackageConverter.java | 159 ++ .../http/GetAdminPublisherConverter.java | 150 ++ .../internal/http/GetAdminTermConverter.java | 147 + .../http/GetAdminTermVersionConverter.java | 151 ++ ...rInstanceReportExportContentConverter.java | 142 + ...CustomerInstanceReportExportConverter.java | 160 ++ .../http/ListAdminArtifactsConverter.java | 227 ++ ...inListingRevisionAttachmentsConverter.java | 218 ++ ...AdminListingRevisionPackagesConverter.java | 217 ++ .../ListAdminListingRevisionsConverter.java | 292 ++ .../http/ListAdminPublisherSkusConverter.java | 164 ++ .../http/ListAdminTermVersionsConverter.java | 202 ++ .../http/ListAdminTermsConverter.java | 193 ++ .../http/ListAdminWorkRequestsConverter.java | 210 ++ ...ustomerInstanceReportExportsConverter.java | 297 +++ ...ustomerInstanceReportRecordsConverter.java | 103 +- .../UpdateAdminArtifactStatusConverter.java | 160 ++ ...ListingRevisionBannerContentConverter.java | 174 ++ .../model/AdditionalFilter.java | 52 + .../model/AdminAiAgentListingRevision.java | 1052 ++++++++ .../model/AdminArtifact.java | 377 +++ .../model/AdminArtifactCollection.java | 135 + .../model/AdminArtifactSummary.java | 633 +++++ .../model/AdminBillToCountries.java | 172 ++ .../model/AdminContainerImageArtifact.java | 325 +++ .../model/AdminContainerPackage.java | 387 +++ .../model/AdminCustomerSuccessAttachment.java | 518 ++++ .../model/AdminHelmChartPackage.java | 387 +++ .../model/AdminKubernetesImageArtifact.java | 368 +++ .../model/AdminLeadGenListingRevision.java | 948 +++++++ .../model/AdminListing.java | 813 ++++++ .../model/AdminListingProduct.java | 303 +++ .../model/AdminListingRevision.java | 734 +++++ .../model/AdminListingRevisionAttachment.java | 358 +++ ...inListingRevisionAttachmentCollection.java | 47 +- ...AdminListingRevisionAttachmentSummary.java | 811 ++++++ .../model/AdminListingRevisionCollection.java | 135 + .../model/AdminListingRevisionPackage.java | 524 ++++ ...AdminListingRevisionPackageCollection.java | 137 + .../AdminListingRevisionPackageSummary.java | 812 ++++++ .../model/AdminListingRevisionSummary.java | 1460 ++++++++++ .../model/AdminMachineImageArtifact.java | 323 +++ .../model/AdminMachineImagePackage.java | 416 +++ .../model/AdminMarket.java | 251 ++ .../model/AdminOciListingRevision.java | 1128 ++++++++ .../model/AdminOpnPartnerSummary.java | 974 +++++++ .../model/AdminPublisher.java | 1754 ++++++++++++ .../model/AdminPublisherSku.java | 252 ++ .../model/AdminPublisherSkuCollection.java | 135 + .../model/AdminPublisherSummary.java | 1530 +++++++++++ .../model/AdminRelatedDocumentAttachment.java | 401 +++ .../AdminReviewSupportDocumentAttachment.java | 479 ++++ .../model/AdminScreenShotAttachment.java | 401 +++ .../model/AdminServiceListingRevision.java | 845 ++++++ .../model/AdminSkuPricingRate.java | 172 ++ .../model/AdminStackArtifact.java | 322 +++ .../model/AdminStackPackage.java | 387 +++ .../AdminSupportedServiceAttachment.java | 518 ++++ .../marketplacepublisher/model/AdminTerm.java | 631 +++++ .../model/AdminTermCollection.java | 134 + .../model/AdminTermSummary.java | 591 ++++ .../model/AdminTermVersion.java | 832 ++++++ .../model/AdminTermVersionAttachment.java | 220 ++ .../model/AdminTermVersionCollection.java | 135 + .../model/AdminTermVersionSummary.java | 594 +++++ .../model/AdminVideoAttachment.java | 362 +++ .../model/AdminWorkRequestSummary.java | 25 +- .../AdminWorkRequestSummaryCollection.java | 136 + .../model/BillToCountry.java | 170 ++ ...CreateAdminListingRevisionNoteDetails.java | 177 ++ .../CreateCustomerSuccessAttachment.java | 43 +- .../model/CreateMarketDetails.java | 254 ++ .../CreateOciListingRevisionDetails.java | 169 +- .../model/CreatePublisherDetails.java | 721 +++++ ...reateRelatedDocumentAttachmentDetails.java | 123 +- ...CreateReviewSupportDocumentAttachment.java | 43 +- .../CreateScreenShotAttachmentDetails.java | 44 +- .../CreateSupportedServiceAttachment.java | 43 +- .../model/CreateVideoDetails.java | 46 +- .../model/CustomerInstanceReportExport.java | 1387 ++++++++++ ...ustomerInstanceReportExportCollection.java | 137 + .../CustomerInstanceReportExportSummary.java | 1333 ++++++++++ .../model/CustomerInstanceReportRecord.java | 92 +- .../model/CustomerSuccessAttachment.java | 15 + .../model/DisbursementReportRecord.java | 46 + ...teCustomerInstanceReportExportDetails.java | 884 ++++++ .../model/HybridPricingPlan.java | 505 ++++ .../model/LeadGenListingRevision.java | 15 + .../model/ListingPart.java | 118 +- .../model/ListingRevision.java | 13 + .../model/ListingRevisionAttachment.java | 71 + .../ListingRevisionAttachmentSummary.java | 40 + .../ListingRevisionBannerAttachment.java | 211 ++ .../model/ListingRevisionNote.java | 40 + .../model/ListingRevisionNoteSummary.java | 40 + .../model/MetricType.java | 57 + .../model/OciListingRevision.java | 184 +- .../model/OperationType.java | 6 + .../model/OpnMembership.java | 59 +- .../model/PartnerPortalOptions.java | 1104 ++++++++ .../model/PricingPlan.java | 10 + .../marketplacepublisher/model/Publisher.java | 464 +++- .../model/PublisherStatus.java | 59 + .../model/PublisherSummary.java | 330 +++ .../model/RelatedDocumentAttachment.java | 15 + .../ReviewSupportDocumentAttachment.java | 15 + .../model/SaaSPricingPlan.java | 139 +- .../model/ScreenShotAttachment.java | 15 + .../model/ServiceListingRevision.java | 15 + .../model/SupportedServiceAttachment.java | 15 + .../UpdateAdminArtifactStatusDetails.java | 67 +- .../UpdateOciListingRevisionDetails.java | 169 +- ...pdateRelatedDocumentAttachmentDetails.java | 43 +- .../UpdateSupportedServiceAttachment.java | 43 +- .../model/UsageBasedPricingPlan.java | 505 ++++ .../model/UsageDimension.java | 491 ++++ .../model/VideoAttachment.java | 15 + ...angeListingRevisionStatusToNewRequest.java | 251 ++ .../requests/CreateMarketRequest.java | 108 +- .../requests/CreatePublisherRequest.java | 95 +- ...teCustomerInstanceReportExportRequest.java | 256 ++ ...teCustomerInstanceReportExportRequest.java | 192 +- .../requests/GetAdminArtifactRequest.java | 193 ++ .../requests/GetAdminListingRequest.java | 193 ++ ...AdminListingRevisionAttachmentRequest.java | 204 ++ ...GetAdminListingRevisionPackageRequest.java | 203 ++ .../GetAdminListingRevisionRequest.java | 196 ++ .../requests/GetAdminPublisherRequest.java | 193 ++ .../requests/GetAdminTermRequest.java | 193 ++ .../requests/GetAdminTermVersionRequest.java | 195 ++ ...merInstanceReportExportContentRequest.java | 78 +- ...etCustomerInstanceReportExportRequest.java | 203 ++ .../requests/ListAdminArtifactsRequest.java | 374 +-- ...dminListingRevisionAttachmentsRequest.java | 474 ++++ ...stAdminListingRevisionPackagesRequest.java | 185 +- .../ListAdminListingRevisionsRequest.java | 819 ++++++ .../ListAdminPublisherSkusRequest.java | 225 ++ .../ListAdminTermVersionsRequest.java | 431 +++ .../requests/ListAdminTermsRequest.java | 398 +++ .../ListAdminWorkRequestsRequest.java | 53 +- ...tCustomerInstanceReportExportsRequest.java | 857 ++++++ ...tCustomerInstanceReportRecordsRequest.java | 551 +++- .../ListDisbursementReportRecordsRequest.java | 4 + .../UpdateAdminArtifactStatusRequest.java | 204 +- ...teListingRevisionBannerContentRequest.java | 229 +- ...ngeListingRevisionStatusToNewResponse.java | 73 +- .../responses/CreateMarketResponse.java | 20 +- .../responses/CreatePublisherResponse.java | 210 ++ ...eCustomerInstanceReportExportResponse.java | 74 +- ...eCustomerInstanceReportExportResponse.java | 67 +- .../responses/GetAdminArtifactResponse.java | 213 ++ .../responses/GetAdminListingResponse.java | 211 ++ ...dminListingRevisionAttachmentResponse.java | 77 +- ...etAdminListingRevisionPackageResponse.java | 222 ++ .../GetAdminListingRevisionResponse.java | 225 ++ .../responses/GetAdminPublisherResponse.java | 213 ++ .../responses/GetAdminTermResponse.java | 210 ++ .../GetAdminTermVersionResponse.java | 213 ++ ...erInstanceReportExportContentResponse.java | 74 +- ...tCustomerInstanceReportExportResponse.java | 222 ++ .../responses/ListAdminArtifactsResponse.java | 233 ++ ...minListingRevisionAttachmentsResponse.java | 239 ++ ...tAdminListingRevisionPackagesResponse.java | 236 ++ .../ListAdminListingRevisionsResponse.java | 234 ++ .../ListAdminPublisherSkusResponse.java | 234 ++ .../ListAdminTermVersionsResponse.java | 234 ++ .../responses/ListAdminTermsResponse.java | 223 ++ .../ListAdminWorkRequestsResponse.java | 235 ++ ...CustomerInstanceReportExportsResponse.java | 237 ++ .../UpdateAdminArtifactStatusResponse.java | 210 ++ ...eListingRevisionBannerContentResponse.java | 215 ++ bmc-mediaservices/pom.xml | 4 +- bmc-mngdmac/pom.xml | 4 +- bmc-modeldeployment/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-multicloud/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- .../bmc/mysql/BlueGreenDeployments.java | 115 +- .../bmc/mysql/BlueGreenDeploymentsAsync.java | 149 +- .../BlueGreenDeploymentsAsyncClient.java | 408 ++- .../bmc/mysql/BlueGreenDeploymentsClient.java | 280 +- .../mysql/BlueGreenDeploymentsPaginators.java | 108 +- .../mysql/BlueGreenDeploymentsWaiters.java | 86 +- .../oracle/bmc/mysql/SdkClientsMetadata.java | 2 + ...ueGreenDeploymentCompartmentConverter.java | 97 +- .../CreateBlueGreenDeploymentConverter.java | 109 +- .../DeleteBlueGreenDeploymentConverter.java | 141 + .../http/GetBlueGreenDeploymentConverter.java | 153 ++ .../ListBlueGreenDeploymentsConverter.java | 213 ++ ...witchoverBlueGreenDeploymentConverter.java | 115 +- .../UpdateBlueGreenDeploymentConverter.java | 144 + .../bmc/mysql/model/BlueGreenDeployment.java | 874 ++++++ .../model/BlueGreenDeploymentCollection.java | 40 +- .../model/BlueGreenDeploymentSummary.java | 598 ++--- .../BlueGreenDeploymentSwitchoverStatus.java | 60 + ...eGreenDeploymentTargetDbSystemDetails.java | 288 ++ ...BlueGreenDeploymentCompartmentDetails.java | 41 +- ...eateBlueGreenDeploymentChannelDetails.java | 374 +++ .../CreateBlueGreenDeploymentDetails.java | 216 +- ...eGreenDeploymentTargetDbSystemDetails.java | 308 +++ .../com/oracle/bmc/mysql/model/SslMode.java | 16 +- .../SwitchoverBlueGreenDeploymentDetails.java | 84 +- .../UpdateBlueGreenDeploymentDetails.java | 82 +- .../mysql/model/WorkRequestOperationType.java | 5 + ...BlueGreenDeploymentCompartmentRequest.java | 396 +++ .../CreateBlueGreenDeploymentRequest.java | 301 +++ .../DeleteBlueGreenDeploymentRequest.java | 264 ++ .../GetBlueGreenDeploymentRequest.java | 150 +- .../ListBlueGreenDeploymentsRequest.java | 573 ++++ .../SwitchoverBlueGreenDeploymentRequest.java | 390 +++ .../UpdateBlueGreenDeploymentRequest.java | 331 +++ ...lueGreenDeploymentCompartmentResponse.java | 30 +- .../CreateBlueGreenDeploymentResponse.java | 140 +- .../DeleteBlueGreenDeploymentResponse.java | 30 +- .../GetBlueGreenDeploymentResponse.java | 207 +- .../ListBlueGreenDeploymentsResponse.java | 73 +- ...SwitchoverBlueGreenDeploymentResponse.java | 147 +- .../UpdateBlueGreenDeploymentResponse.java | 94 +- 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 | 6 +- .../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 +- .../java/com/oracle/bmc/ocvp/Cluster.java | 13 + .../com/oracle/bmc/ocvp/ClusterAsync.java | 18 + .../oracle/bmc/ocvp/ClusterAsyncClient.java | 53 + .../com/oracle/bmc/ocvp/ClusterClient.java | 41 + .../main/java/com/oracle/bmc/ocvp/Sddc.java | 27 + .../java/com/oracle/bmc/ocvp/SddcAsync.java | 36 + .../com/oracle/bmc/ocvp/SddcAsyncClient.java | 107 + .../java/com/oracle/bmc/ocvp/SddcClient.java | 85 + ...nerateHostDistributionReportConverter.java | 156 ++ ...rateVmwareBinaryDownloadInfoConverter.java | 95 +- .../http/RetrieveVmwareBinariesConverter.java | 166 ++ .../com/oracle/bmc/ocvp/model/Cluster.java | 53 + .../bmc/ocvp/model/CreateClusterDetails.java | 53 + .../bmc/ocvp/model/CreateEsxiHostDetails.java | 53 + .../com/oracle/bmc/ocvp/model/EsxiHost.java | 101 + .../bmc/ocvp/model/EsxiHostSummary.java | 48 + .../FaultDomainHostDistributionModes.java | 55 + .../FaultDomainHostDistributionState.java | 43 + ...nerateVmwareBinaryDownloadInfoDetails.java | 71 +- .../model/HostDistributionReportDetails.java | 182 ++ .../model/InitialClusterConfiguration.java | 53 + .../bmc/ocvp/model/InplaceUpgradeDetails.java | 64 +- .../bmc/ocvp/model/ReplaceHostDetails.java | 66 +- .../oracle/bmc/ocvp/model/VmwareBinary.java | 255 ++ .../ocvp/model/VmwareBinaryCollection.java | 135 + .../ocvp/model/VmwareBinaryDownloadInfo.java | 235 ++ ...GenerateHostDistributionReportRequest.java | 263 ++ ...nerateVmwareBinaryDownloadInfoRequest.java | 212 +- .../RetrieveVmwareBinariesRequest.java | 233 +- ...enerateHostDistributionReportResponse.java | 220 ++ ...erateVmwareBinaryDownloadInfoResponse.java | 178 ++ .../RetrieveVmwareBinariesResponse.java | 224 ++ 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-psa/pom.xml | 4 +- bmc-psql/pom.xml | 4 +- .../com/oracle/bmc/psql/model/Backup.java | 40 + .../bmc/psql/model/BackupCopyDetails.java | 47 +- .../bmc/psql/model/BackupCopyPolicy.java | 47 +- .../model/OciOptimizedStorageDetails.java | 21 +- .../oracle/bmc/psql/model/StorageDetails.java | 23 +- .../model/UpdateStorageDetailsParams.java | 47 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- .../oracle/bmc/recovery/DatabaseRecovery.java | 79 + .../bmc/recovery/DatabaseRecoveryAsync.java | 103 + .../recovery/DatabaseRecoveryAsyncClient.java | 300 +++ .../bmc/recovery/DatabaseRecoveryClient.java | 241 ++ .../recovery/DatabaseRecoveryPaginators.java | 113 + .../bmc/recovery/DatabaseRecoveryWaiters.java | 105 + .../http/CancelLongTermBackupConverter.java | 145 + ...celProtectedDatabaseDeletionConverter.java | 4 + ...ProtectedDatabaseCompartmentConverter.java | 4 + ...rotectedDatabaseSubscriptionConverter.java | 4 + ...eProtectionPolicyCompartmentConverter.java | 4 + ...veryServiceSubnetCompartmentConverter.java | 4 + .../http/CreateLongTermBackupConverter.java | 107 +- .../http/DeleteLongTermBackupConverter.java | 139 + ...otectedDatabaseConfigurationConverter.java | 4 + .../http/GetLongTermBackupConverter.java | 142 + .../http/ListLongTermBackupsConverter.java | 214 ++ .../http/ListProtectedDatabasesConverter.java | 21 +- .../http/ListProtectionPoliciesConverter.java | 21 +- .../ListRecoveryServiceSubnetsConverter.java | 13 +- .../http/ListWorkRequestsConverter.java | 13 +- ...uleProtectedDatabaseDeletionConverter.java | 4 + .../http/UpdateLongTermBackupConverter.java | 142 + .../recovery/model/BackupCloudLocation.java | 57 + .../model/CreateLongTermBackupDetails.java | 408 +++ .../CreateRecoveryServiceSubnetDetails.java | 61 + .../bmc/recovery/model/LongTermBackup.java | 1122 ++++++++ .../model/LongTermBackupCollection.java | 135 + .../recovery/model/LongTermBackupSummary.java | 1020 +++++++ .../bmc/recovery/model/OperationType.java | 4 + .../bmc/recovery/model/ProtectedDatabase.java | 44 + .../model/ProtectedDatabaseSummary.java | 44 + .../recovery/model/RecoveryServiceSubnet.java | 61 + .../model/RecoveryServiceSubnetSummary.java | 61 + .../recovery/model/RetentionPeriodValue.java | 228 ++ .../model/UpdateLongTermBackupDetails.java | 107 +- .../UpdateRecoveryServiceSubnetDetails.java | 61 + .../requests/CancelLongTermBackupRequest.java | 140 +- ...ancelProtectedDatabaseDeletionRequest.java | 56 +- ...geProtectedDatabaseCompartmentRequest.java | 56 +- ...eProtectedDatabaseSubscriptionRequest.java | 56 +- ...ngeProtectionPolicyCompartmentRequest.java | 56 +- ...coveryServiceSubnetCompartmentRequest.java | 56 +- .../requests/CreateLongTermBackupRequest.java | 283 ++ .../requests/DeleteLongTermBackupRequest.java | 250 ++ ...ProtectedDatabaseConfigurationRequest.java | 56 +- .../requests/GetLongTermBackupRequest.java | 195 ++ .../requests/ListLongTermBackupsRequest.java | 527 ++++ .../ListProtectedDatabasesRequest.java | 39 +- .../ListProtectionPoliciesRequest.java | 40 +- ...eduleProtectedDatabaseDeletionRequest.java | 56 +- .../requests/UpdateLongTermBackupRequest.java | 315 +++ .../CancelLongTermBackupResponse.java | 28 +- .../CreateLongTermBackupResponse.java | 199 +- .../DeleteLongTermBackupResponse.java | 177 ++ .../responses/GetLongTermBackupResponse.java | 212 ++ .../ListLongTermBackupsResponse.java | 228 ++ .../UpdateLongTermBackupResponse.java | 177 ++ bmc-redis/pom.xml | 4 +- .../com/oracle/bmc/redis/RedisCluster.java | 38 + .../oracle/bmc/redis/RedisClusterAsync.java | 46 + .../bmc/redis/RedisClusterAsyncClient.java | 151 ++ .../oracle/bmc/redis/RedisClusterClient.java | 120 + .../ConvertToSecondaryClusterConverter.java | 149 ++ .../ConvertToStandaloneClusterConverter.java | 147 + .../internal/http/SwitchoverConverter.java | 140 + .../model/ClusterReplicationTopology.java | 165 ++ .../ConvertToSecondaryClusterDetails.java | 139 + .../model/CreateRedisClusterDetails.java | 42 + .../oracle/bmc/redis/model/MemberCluster.java | 111 +- .../oracle/bmc/redis/model/OperationType.java | 6 + .../oracle/bmc/redis/model/RedisCluster.java | 164 ++ .../bmc/redis/model/RedisClusterSummary.java | 82 + .../ConvertToSecondaryClusterRequest.java | 134 +- .../ConvertToStandaloneClusterRequest.java | 180 +- .../bmc/redis/requests/SwitchoverRequest.java | 181 +- .../ConvertToSecondaryClusterResponse.java | 28 +- .../ConvertToStandaloneClusterResponse.java | 28 +- .../redis/responses/SwitchoverResponse.java | 28 +- bmc-resourceanalytics/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcescheduler/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-securityattribute/pom.xml | 4 +- bmc-self/pom.xml | 4 +- .../oracle/bmc/self/PartnerIntegeration.java | 45 +- .../bmc/self/PartnerIntegerationAsync.java | 60 +- .../self/PartnerIntegerationAsyncClient.java | 167 ++ .../bmc/self/PartnerIntegerationClient.java | 127 + .../self/PartnerIntegerationPaginators.java | 120 + ...tivateSubscriptionDeprecatedConverter.java | 164 ++ ...stingSubscriptionsDeprecatedConverter.java | 193 ++ ...esolveSubscriptionDeprecatedConverter.java | 156 ++ .../CreateSubscriptionUsageRecordDetails.java | 42 - ...SubmitSubscriptionUsageRecordsDetails.java | 8 +- ...ActivateSubscriptionDeprecatedRequest.java | 380 +++ ...ListingSubscriptionsDeprecatedRequest.java | 426 +++ .../ResolveSubscriptionDeprecatedRequest.java | 346 +++ .../SubmitSubscriptionUsageBatchRequest.java | 8 +- ...ctivateSubscriptionDeprecatedResponse.java | 217 ++ ...istingSubscriptionsDeprecatedResponse.java | 229 ++ ...ResolveSubscriptionDeprecatedResponse.java | 64 +- 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 | 10 +- 1844 files changed, 222146 insertions(+), 78089 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 (62%) 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/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java => bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ActivateBdsCapacityReservationConfigurationConverter.java (66%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ChangeBdsCapacityReservationCompartmentConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConfigurationConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeactivateBdsCapacityReservationConfigurationConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConfigurationConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java => bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConfigurationConverter.java (65%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java => bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationAssociatedConfigurationsConverter.java (72%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationConfigurationsConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationsConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConfigurationConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConverter.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java => bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java (64%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java => bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java (64%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java => bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java (60%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java => bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java (64%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java => bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.java (66%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java => bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java (56%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java => bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java (62%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java => bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java (62%) create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java create mode 100644 bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java rename {bmc-distributeddatabasev26 => bmc-clusterhealth}/pom.xml (74%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java (56%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/SdkClientsMetadata.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CancelWorkRequestConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ChangeDiagnosisStoreCompartmentConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CreateDiagnosisStoreConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/DeleteDiagnosisStoreConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetDiagnosisStoreConverter.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/internal/http/GetWorkRequestConverter.java (75%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListDiagnosisStoresConverter.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/internal/http/ListWorkRequestErrorsConverter.java (81%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/internal/http/ListWorkRequestLogsConverter.java (82%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestsConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisByHealthCheckKeyConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisSummaryConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/RequestDiagnosisConverter.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/UpdateDiagnosisStoreConverter.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/ActionType.java (95%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.java (76%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/OperationStatus.java (94%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.java (61%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/SortOrder.java (83%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/WorkRequestErrorCollection.java (92%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntry.java (50%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/WorkRequestLogEntryCollection.java (92%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/WorkRequestResourceMetadataKey.java (92%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth}/model/WorkRequestSummaryCollection.java (92%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CancelWorkRequestResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java (77%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java => bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.java (78%) create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestErrorsResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestLogsResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.java create mode 100644 bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateGiHomeConverter.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteGiHomeConverter.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetGiHomeConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java => bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAvailableMaintenanceWindowsConverter.java (64%) create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiHomesConverter.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateGiHomeConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java => bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.java (70%) create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/TdeWalletBackupDestination.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java => bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.java (68%) create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.java create mode 100644 bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetDataVerificationDetailConverter.java (69%) create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectStatusesConverter.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectTypeCountsConverter.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationTableRowCountsConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RunDataVerificationConverter.java (67%) create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusCollection.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectStatusSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountCollection.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationObjectTypeCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountCollection.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationTableRowCountSummary.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java (70%) create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java (65%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java (67%) create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.java create mode 100644 bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.java (70%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java => bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java (71%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ChangeCryptoAssessmentCompartmentConverter.java (72%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DeleteCryptoAssessmentConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DownloadCryptoAssessmentReportConverter.java (66%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GenerateCryptoAssessmentReportConverter.java (72%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentSqlnetParametersConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentBackupSetsConverter.java (67%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCbomItemsConverter.java (65%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCertificatesConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingAnalyticsConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingTargetsConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingsConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentKeysConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentTdeObjectsConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentWalletsConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentsConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/RefreshCryptoAssessmentConverter.java (71%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/UpdateCryptoAssessmentConverter.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java 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 rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsCollection.java (72%) 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 create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java 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 (59%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoNnePosture.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java 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 create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateCryptoAssessmentReportDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java 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 (62%) 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/ConfigureDistributedDatabaseGsmsRequest.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java (61%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java (62%) 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 (74%) create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java 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 (70%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java => bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java (74%) 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 (56%) 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 create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java (90%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java (90%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java (89%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/GetDistributedDatabaseRuChangeLogConverter.java (88%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java (90%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java (90%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/internal/http/ScaleDistributedDatabaseGsmsConverter.java (88%) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java 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 delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.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 (95%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java (95%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java (96%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/GetDistributedDatabaseRuChangeLogRequest.java (96%) 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 (94%) rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase}/requests/ScaleDistributedDatabaseGsmsRequest.java (92%) 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/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.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 (91%) 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-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/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/DistributedDbService.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/SdkClientsMetadata.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.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/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/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/PatchInstruction.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/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/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/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/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/ValidateDistributedAutonomousDatabaseCaBundleRequest.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/ChangeDistributedAutonomousDbBackupConfigResponse.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/ConfigureDistributedAutonomousDatabaseShardingResponse.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/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 create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java 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 (88%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementClient.java (89%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementPaginators.java (87%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java => bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagementWaiters.java (88%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CancelWorkRequestConverter.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeConverter.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeVersionConverter.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetWorkRequestConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java => bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimeVersionsConverter.java (69%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimesConverter.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestErrorsConverter.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestLogsConverter.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/internal/http/ListWorkRequestsConverter.java (82%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.java 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 create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionSourceDetails.java (66%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionUpdateRuntimeConfig.java (53%) 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/PatchInsertInstruction.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreatePreBuiltFunctionSourceDetails.java (56%) rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateRuntimeConfig.java (69%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java 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 create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java => bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java (50%) 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 create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateContainerImageFunctionSourceDetails.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java 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 (71%) 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%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestLogEntry.java (86%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.java rename {bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26 => bmc-functions/src/main/java/com/oracle/bmc/functions}/model/WorkRequestResource.java (81%) create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummary.java create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.java 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 create mode 100644 bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java 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 (79%) 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/internal/http/ChangeRoutingProfileCompartmentConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateRoutingProfileConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteRoutingProfileConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetRoutingProfileConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelDiscoveryConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListRoutingProfilesConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateRoutingProfileConverter.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Availability.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java 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/CustomSemanticStoreModelSelection.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/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 create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java 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 create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java 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 (66%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java => bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java (54%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java 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 (51%) create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java 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 create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java 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 create mode 100644 bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java => bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java (73%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{CancelEnrichmentJobAsync.java => EnrichmentJobAsync.java} (53%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{CancelEnrichmentJobAsyncClient.java => EnrichmentJobAsyncClient.java} (75%) create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{ListEnrichmentJobsPaginators.java => EnrichmentJobPaginators.java} (97%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GetEnrichmentJobWaiters.java => EnrichmentJobWaiters.java} (97%) delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GetEnrichmentJob.java => GenerateSql.java} (55%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GenerateSqlFromNlJobAsync.java => GenerateSqlAsync.java} (60%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GenerateSqlFromNlJobAsyncClient.java => GenerateSqlAsyncClient.java} (88%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/{GetEnrichmentJobClient.java => GenerateSqlClient.java} (88%) delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java => bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java (50%) delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/GetGenerateSqlFromNlJobConverter.java create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java => bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java (50%) create mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ActivateIotFlowRuntimeConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ChangeIotFlowRuntimeCompartmentConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/CreateIotFlowRuntimeConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeactivateIotFlowRuntimeConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeleteIotFlowRuntimeConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeFlowsConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListIotFlowRuntimesConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeConverter.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeFlowsConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java => bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.java (75%) create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/Log.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java => bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.java (57%) create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java => bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.java (76%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java => bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java (66%) create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java => bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.java (74%) create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java => bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java (78%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java => bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java (77%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java => bmc-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.java (51%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java => bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java (78%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java => bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.java (78%) create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java create mode 100644 bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java => bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.java (78%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java (79%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java (80%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java (90%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java (92%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java (81%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java (81%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java (91%) rename bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java (92%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java 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 rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ChangeListingRevisionStatusToNewConverter.java (65%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreateMarketConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreatePublisherConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/DeleteCustomerInstanceReportExportConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GenerateCustomerInstanceReportExportConverter.java (65%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminArtifactConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionAttachmentConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionPackageConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminPublisherConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermVersionConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportContentConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminArtifactsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionAttachmentsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionPackagesConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminPublisherSkusConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermVersionsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminWorkRequestsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportExportsConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateAdminArtifactStatusConverter.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateListingRevisionBannerContentConverter.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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java 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 rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentCollection.java (73%) 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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java 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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java 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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/CreateMarketRequest.java (64%) 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%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java (62%) 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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java 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 (51%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionPackagesRequest.java (70%) 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/GetDistributedAutonomousDatabaseResponse.java => bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ChangeListingRevisionStatusToNewResponse.java (68%) 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 (90%) 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/ConfigureDistributedDatabaseShardingResponse.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%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java 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%) create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminArtifactsResponse.java create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java 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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java 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 create mode 100644 bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java 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 rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java (59%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java (55%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java (64%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java (76%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java (56%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java (61%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ChangeBlueGreenDeploymentCompartmentConverter.java (71%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CreateBlueGreenDeploymentConverter.java (67%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/DeleteBlueGreenDeploymentConverter.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/GetBlueGreenDeploymentConverter.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ListBlueGreenDeploymentsConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/SwitchoverBlueGreenDeploymentConverter.java (70%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/UpdateBlueGreenDeploymentConverter.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java (75%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java (64%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.java (79%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java (63%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.java (55%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java (74%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java (66%) create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java create mode 100644 bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java (83%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java (73%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java (82%) rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java (56%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java (73%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java (69%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java => bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java (79%) create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateHostDistributionReportConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java => bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateVmwareBinaryDownloadInfoConverter.java (61%) create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/RetrieveVmwareBinariesConverter.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionModes.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java => bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java (59%) create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateHostDistributionReportRequest.java rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java => bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java (55%) rename bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java => bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java (54%) create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateHostDistributionReportResponse.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java create mode 100644 bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelLongTermBackupConverter.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java => bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CreateLongTermBackupConverter.java (66%) create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/DeleteLongTermBackupConverter.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/GetLongTermBackupConverter.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListLongTermBackupsConverter.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/UpdateLongTermBackupConverter.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java => bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java (64%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java => bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java (77%) create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java => bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java (82%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java => bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java (65%) create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java create mode 100644 bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToSecondaryClusterConverter.java create mode 100644 bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToStandaloneClusterConverter.java create mode 100644 bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/SwitchoverConverter.java create mode 100644 bmc-redis/src/main/java/com/oracle/bmc/redis/model/ClusterReplicationTopology.java create mode 100644 bmc-redis/src/main/java/com/oracle/bmc/redis/model/ConvertToSecondaryClusterDetails.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java => bmc-redis/src/main/java/com/oracle/bmc/redis/model/MemberCluster.java (53%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java => bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToSecondaryClusterRequest.java (68%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java => bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToStandaloneClusterRequest.java (78%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java => bmc-redis/src/main/java/com/oracle/bmc/redis/requests/SwitchoverRequest.java (78%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java => bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToSecondaryClusterResponse.java (84%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java => bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToStandaloneClusterResponse.java (84%) rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java => bmc-redis/src/main/java/com/oracle/bmc/redis/responses/SwitchoverResponse.java (84%) create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ActivateSubscriptionDeprecatedConverter.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ListingSubscriptionsDeprecatedConverter.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ResolveSubscriptionDeprecatedConverter.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java create mode 100644 bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java rename bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java => bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java (72%) diff --git a/CHANGELOG.md b/CHANGELOG.md index b31f9538a1a..6287b33d143 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,84 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 2.98.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 +- Support for higher usage submission limits for metered SaaS listings and legacy subscription endpoints in the Service Enablement Lifecycle Framework service +- Support for customer-managed encryption keys for database systems and cross-region backup copies in the PostgreSQL service +- Support for listing available VMware binaries and generating download links in the Oracle Cloud VMware Solution service +- Support for data verification using database object counts, object statuses, and estimated table row counts in the Database Migration service +- Support for settings specific to online logical, offline logical, and online standby Oracle migrations in the Database Migration service +- Support for configurable fault-domain preferences during provisioning in the Oracle Cloud VMware Solution service +- Support for code-only functions with managed runtimes and automated image builds in the Functions service +- Support for out-of-place Grid Infrastructure patching and upgrades with Oracle-provided or custom Grid Infrastructure software images in the Database service +- Support for active-passive cross-region replication in the OCI Cache service +- Support for the Cluster Health service +- Support for scheduling and canceling maintenance window changes after provisioning Autonomous Database Serverless instances in the Database service +- Support for quick launches of BaseDB Database systems in the Database service +- Support for IoT Flow Runtime (Node-RED) resources in the OCI Internet of Things (OCI IoT) service +- Support for blue/green deployments in the MySQL HeatWave service +- Support for capacity reservations, capacity reservation configurations, and associating reservations when creating instances in the Big Data service +- Support for Zero Trust Packet Routing (ZPR) security attributes on recovery subnets in the Autonomous Recovery service +- Support for network firewall as a Virtual Test Access Points (VTAP) source in the Networking service +- Support for NL2SQL model selection, annotation, background mode and delta enrichment in the Generative AI service +- Support for NL2SQL model selection, annotation, background mode and delta enrichment in the Generative AI Data service +- Support for B200, B300, L40S, and MI300X dedicated AI cluster unit shapes in the Generative AI service +- Support for creating databases from another database with additional input fields and source encryption-key location details in the Database service +- Support for IPv6 dual-stack endpoints in the Compute Instance Agent 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 +- Method `public java.lang.String getUsageRecordId()` has been removed from the model `com.oracle.bmc.self.model.CreateSubscriptionUsageRecordDetails` in the Service Enablement Lifecycle Framework service +- Client-side decryption using `KmsMasterKeyProvider(KmsMasterKey)` now rejects encrypted blobs whose master key ID, vault ID, or region differs from the configured key. To decrypt data encrypted with different KMS keys, use `KmsMasterKeyProvider(BasicAuthenticationDetailsProvider)` +- Client-side decryption using `KmsMasterKeyProvider(BasicAuthenticationDetailsProvider)` now requires the region to be known independently of the encrypted blob through built-in SDK definitions, `Region.register(...)`, supported region metadata configuration, opted-in Instance Metadata Service (IMDS), or an exact region match on `ConfigFileAuthenticationDetailsProvider` or `SessionTokenAuthenticationDetailsProvider`. A region resolved only through implicit OC1 or `OCI_DEFAULT_REALM` fallback is rejected. If a region is not yet included in this SDK release, register it or supply region metadata before decrypting +- Class `com.oracle.bmc.generativeaidata.CancelEnrichmentJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.CancelEnrichmentJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateEnrichmentJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateEnrichmentJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateSqlFromNlJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GenerateSqlFromNlJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GetEnrichmentJob` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GetEnrichmentJobClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.GetEnrichmentJobWaiters` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.ListEnrichmentJobs` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.ListEnrichmentJobsClient$Builder` has been removed from the Generative AI Data service +- Class `com.oracle.bmc.generativeaidata.ListEnrichmentJobsPaginators` has been removed from the Generative AI Data service + +### Changed +- Updated `jackson-core` and `jackson-databind` to version `2.21.5` to address CVE-2026-54515 + ## 2.97.0 - 2026-08-11 ### Added - Support for the OCI Device Data FHIR (Fast Healthcare Interoperability Resources) Service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index b90b93dc7e1..73e6097140b 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 02b28058204..79b9877ee6b 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 2.97.0 + 2.98.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-addons/bmc-graalvm-addon/pom.xml b/bmc-addons/bmc-graalvm-addon/pom.xml index cb1c0d26a27..3e99733b010 100644 --- a/bmc-addons/bmc-graalvm-addon/pom.xml +++ b/bmc-addons/bmc-graalvm-addon/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-addons-graalvm @@ -127,24 +127,24 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.97.0 + 2.98.0 test com.oracle.oci.sdk oci-java-sdk-identity - 2.97.0 + 2.98.0 test com.oracle.oci.sdk oci-java-sdk-core - 2.97.0 + 2.98.0 test diff --git a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java index cf5f25ab859..2ba8e777410 100644 --- a/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java +++ b/bmc-addons/bmc-graalvm-addon/src/main/java/com/oracle/bmc/graalvm/SdkAutomaticFeatureMetadata.java @@ -36,6 +36,7 @@ "com.oracle.bmc.cloudbridge.SdkClientsMetadata", "com.oracle.bmc.cloudguard.SdkClientsMetadata", "com.oracle.bmc.cloudmigrations.SdkClientsMetadata", + "com.oracle.bmc.clusterhealth.SdkClientsMetadata", "com.oracle.bmc.clusterplacementgroups.SdkClientsMetadata", "com.oracle.bmc.computecloudatcustomer.SdkClientsMetadata", "com.oracle.bmc.computeinstanceagent.SdkClientsMetadata", @@ -68,7 +69,6 @@ "com.oracle.bmc.dif.SdkClientsMetadata", "com.oracle.bmc.disasterrecovery.SdkClientsMetadata", "com.oracle.bmc.distributeddatabase.SdkClientsMetadata", - "com.oracle.bmc.distributeddatabasev26.SdkClientsMetadata", "com.oracle.bmc.dns.SdkClientsMetadata", "com.oracle.bmc.email.SdkClientsMetadata", "com.oracle.bmc.emaildataplane.SdkClientsMetadata", diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index d1d0c5b4f4d..34a5a41b4c2 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 - 2.97.0 + 2.98.0 4.0.0 @@ -38,7 +38,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.fasterxml.jackson.core diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index ceb0dac2e6a..a7c90ccf976 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 2.97.0 + 2.98.0 ../pom.xml @@ -25,7 +25,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 998b93f0793..3c11155b6cf 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -7,7 +7,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -62,7 +62,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 85c705b0323..dab8f6176d8 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index ef6de865d36..0996b7f2078 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-adm @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 9970e533052..b9da06d2374 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 4fd557a6c70..befd00177aa 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-aidocument @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 6133fccbc9b..975c61ce10d 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-ailanguage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index b15ac411fc8..7f1f3f44b6d 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-aispeech @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index cd1de43ca21..39da994cebd 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-aivision @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 36425b46535..e7a24bd17b0 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-analytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 4cca8b0f08e..8b4fb6f4c66 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-announcementsservice @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index ca5855530c4..014be433711 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 017308b2396..6b7163a66b8 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apigateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index 8bf15cb1d5c..b11661dfd04 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 6fe900d6558..6febbddb442 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apmconfig @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 584943d73d9..1090e1bb2f1 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 5621efc147d..d6a078f173c 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 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 5a29649bf7a..b9e78cbf8c6 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 @@ -45,13 +45,13 @@ 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 **/ @@ -110,13 +110,13 @@ 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 **/ public String getOverrideDnsIp() { 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 62% 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 b0c3be641a9..01be5fb26d4 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,16 +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.model; +package com.oracle.bmc.apmsynthetics.model; /** - * The transport type to use for this Data Guard association. + * Maintenance window recurrence type. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum DistributedDbTransportType { - Sync("SYNC"), - Async("ASYNC"), - Fastsync("FASTSYNC"), +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public enum MaintenanceWindowRecurrenceType { + Weekly("WEEKLY"), + Monthly("MONTHLY"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -20,21 +19,21 @@ public enum DistributedDbTransportType { 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; } @@ -44,12 +43,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 2e704f83288..fa01d1be372 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 @@ -22,15 +22,42 @@ public final class MaintenanceWindowSchedule extends com.oracle.bmc.http.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 2020-02-12T22:47:12.613Z} @@ -71,13 +98,33 @@ 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); } @@ -86,12 +133,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; } } @@ -107,6 +160,20 @@ 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 2020-02-12T22:47:12.613Z} @@ -143,6 +210,20 @@ 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); @@ -157,8 +238,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(); } @@ -173,8 +256,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); } @@ -182,8 +267,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..7625c8566da --- /dev/null +++ b/bmc-apmsynthetics/src/main/java/com/oracle/bmc/apmsynthetics/model/MaintenanceWindowScheduleType.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.apmsynthetics.model; + +/** + * Maintenance window schedule type. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") +public enum MaintenanceWindowScheduleType { + 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-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 7bdc0781e7a..aea8e27428d 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-apmtraces @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 0ef3c436bb4..23a7f4b4dcb 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 6b535056cbb..b8a0893a8ee 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-artifacts @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 96cc3eed6ae..d2bbf994553 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index d98cc9fde86..e66a36e927e 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-autoscaling @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index c51def22d3f..dc8aae90b76 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-bastion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index c79b526a8d5..c8427d1f47c 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 4c76caa6965..38c9340fb4d 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-bds @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java index b53ece4f8f3..4b94c214f3c 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/Bds.java @@ -60,6 +60,19 @@ public interface Bds extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the BDS capacity reservation configuration identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ActivateBdsCapacityReservationConfiguration API. + */ + ActivateBdsCapacityReservationConfigurationResponse activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request); + /** * Activate specified metastore configuration. * @@ -232,6 +245,19 @@ BdsInstanceResetPasswordResponse bdsInstanceResetPassword( */ CertificateServiceInfoResponse certificateServiceInfo(CertificateServiceInfoRequest request); + /** + * Moves a BDS capacity reservation into a different compartment. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ChangeBdsCapacityReservationCompartment API. + */ + ChangeBdsCapacityReservationCompartmentResponse changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request); + /** * Moves a Big Data Service cluster into a different compartment. * @@ -285,6 +311,34 @@ ChangeBdsInstanceCompartmentResponse changeBdsInstanceCompartment( */ CreateBdsCapacityReportResponse createBdsCapacityReport(CreateBdsCapacityReportRequest request); + /** + * Creates a reusable BDS capacity reservation resource. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateBdsCapacityReservation API. + */ + CreateBdsCapacityReservationResponse createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request); + + /** + * Creates a configuration between the specified BDS cluster and a BDS capacity reservation. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateBdsCapacityReservationConfiguration API. + */ + CreateBdsCapacityReservationConfigurationResponse createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request); + /** * Create a BDS certificate configuration for the cluster. * @@ -381,6 +435,20 @@ CreateNodeReplaceConfigurationResponse createNodeReplaceConfiguration( CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfiguration( CreateResourcePrincipalConfigurationRequest request); + /** + * Deactivates the BDS capacity reservation configuration identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeactivateBdsCapacityReservationConfiguration API. + */ + DeactivateBdsCapacityReservationConfigurationResponse + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request); + /** * Deactivate the IAM user sync configuration. * @param request The request object containing the details to send @@ -419,6 +487,32 @@ DeactivateUpstConfigurationResponse deactivateUpstConfiguration( */ DeleteBdsApiKeyResponse deleteBdsApiKey(DeleteBdsApiKeyRequest request); + /** + * Deletes the BDS capacity reservation identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteBdsCapacityReservation API. + */ + DeleteBdsCapacityReservationResponse deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request); + + /** + * Deletes the BDS capacity reservation configuration identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteBdsCapacityReservationConfiguration API. + */ + DeleteBdsCapacityReservationConfigurationResponse deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request); + /** * Delete the BDS certificate configuration for the given ID. * @param request The request object containing the details to send @@ -587,6 +681,32 @@ GetAutoScalingConfigurationResponse getAutoScalingConfiguration( */ GetBdsApiKeyResponse getBdsApiKey(GetBdsApiKeyRequest request); + /** + * Returns information about the BDS capacity reservation identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetBdsCapacityReservation API. + */ + GetBdsCapacityReservationResponse getBdsCapacityReservation( + GetBdsCapacityReservationRequest request); + + /** + * Returns information about the BDS capacity reservation configuration identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetBdsCapacityReservationConfiguration API. + */ + GetBdsCapacityReservationConfigurationResponse getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request); + /** * Returns details of the BdsCertificateConfiguration identified by the given ID. * @@ -797,6 +917,49 @@ ListAutoScalingConfigurationsResponse listAutoScalingConfigurations( */ ListBdsApiKeysResponse listBdsApiKeys(ListBdsApiKeysRequest request); + /** + * Returns a list of BDS capacity reservation configurations associated with the specified BDS capacity reservation. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListBdsCapacityReservationAssociatedConfigurations API. + */ + ListBdsCapacityReservationAssociatedConfigurationsResponse + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request); + + /** + * Returns a list of BDS capacity reservation configurations for the specified BDS cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListBdsCapacityReservationConfigurations API. + */ + ListBdsCapacityReservationConfigurationsResponse listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request); + + /** + * Returns a list of BDS capacity reservations in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListBdsCapacityReservations API. + */ + ListBdsCapacityReservationsResponse listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request); + /** * Returns a list of BDS certificate configurations associated with this Big Data Service cluster. * @@ -1262,6 +1425,32 @@ TestBdsObjectStorageConnectionResponse testBdsObjectStorageConnection( UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( UpdateAutoScalingConfigurationRequest request); + /** + * Updates the BDS capacity reservation identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateBdsCapacityReservation API. + */ + UpdateBdsCapacityReservationResponse updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request); + + /** + * Updates the BDS capacity reservation configuration identified by the given ID. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation will not retry by default, users can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to enable retries for it. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateBdsCapacityReservationConfiguration API. + */ + UpdateBdsCapacityReservationConfigurationResponse updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request); + /** * Updates the Big Data Service cluster identified by the given ID. * @param request The request object containing the details to send diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java index 20c2e04260a..68af308700b 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsync.java @@ -59,6 +59,24 @@ public interface BdsAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse> + handler); + /** * Activate specified metastore configuration. * @@ -272,6 +290,24 @@ java.util.concurrent.Future certificateServiceIn CertificateServiceInfoRequest, CertificateServiceInfoResponse> handler); + /** + * Moves a BDS capacity reservation into a different compartment. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse> + handler); + /** * Moves a Big Data Service cluster into a different compartment. * @@ -338,6 +374,43 @@ java.util.concurrent.Future createBdsCapacityRe CreateBdsCapacityReportRequest, CreateBdsCapacityReportResponse> handler); + /** + * Creates a reusable BDS capacity reservation resource. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationRequest, + CreateBdsCapacityReservationResponse> + handler); + + /** + * Creates a configuration between the specified BDS cluster and a BDS capacity reservation. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse> + handler); + /** * Create a BDS certificate configuration for the cluster. * @@ -466,6 +539,24 @@ java.util.concurrent.Future createIdentityC CreateResourcePrincipalConfigurationResponse> handler); + /** + * Deactivates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse> + handler); + /** * Deactivate the IAM user sync configuration. * @@ -515,6 +606,41 @@ java.util.concurrent.Future deleteBdsApiKey( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationRequest, + DeleteBdsCapacityReservationResponse> + handler); + + /** + * Deletes the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse> + handler); + /** * Delete the BDS certificate configuration for the given ID. * @@ -735,6 +861,40 @@ java.util.concurrent.Future getBdsApiKey( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns information about the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + handler); + + /** + * Returns information about the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + handler); + /** * Returns details of the BdsCertificateConfiguration identified by the given ID. * @@ -1003,6 +1163,61 @@ java.util.concurrent.Future listBdsApiKeys( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns a list of BDS capacity reservation configurations associated with the specified BDS capacity reservation. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + handler); + + /** + * Returns a list of BDS capacity reservation configurations for the specified BDS cluster. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse> + handler); + + /** + * Returns a list of BDS capacity reservations in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse> + handler); + /** * Returns a list of BDS certificate configurations associated with this Big Data Service cluster. * @@ -1600,6 +1815,41 @@ java.util.concurrent.Future stopBdsInstance( UpdateAutoScalingConfigurationResponse> handler); + /** + * Updates the BDS capacity reservation identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationRequest, + UpdateBdsCapacityReservationResponse> + handler); + + /** + * Updates the BDS capacity reservation configuration identified by the given ID. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse> + handler); + /** * Updates the Big Data Service cluster identified by the given ID. * diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java index ac0b37bbc2c..a22847f9490 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsAsyncClient.java @@ -470,6 +470,63 @@ public void close() { client.close(); } + @Override + public java.util.concurrent.Future + activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse> + handler) { + LOG.trace("Called async activateBdsCapacityReservationConfiguration"); + final ActivateBdsCapacityReservationConfigurationRequest interceptedRequest = + ActivateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ActivateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ActivateBdsCapacityReservationConfiguration"); + final java.util.function.Function< + javax.ws.rs.core.Response, + ActivateBdsCapacityReservationConfigurationResponse> + transformer = + ActivateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse>, + java.util.concurrent.Future< + ActivateBdsCapacityReservationConfigurationResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ActivateBdsCapacityReservationConfigurationRequest, + ActivateBdsCapacityReservationConfigurationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future activateBdsMetastoreConfiguration( @@ -1159,6 +1216,68 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse> + handler) { + LOG.trace("Called async changeBdsCapacityReservationCompartment"); + final ChangeBdsCapacityReservationCompartmentRequest interceptedRequest = + ChangeBdsCapacityReservationCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeBdsCapacityReservationCompartmentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ChangeBdsCapacityReservationCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ChangeBdsCapacityReservationCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeBdsCapacityReservationCompartmentResponse> + transformer = + ChangeBdsCapacityReservationCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse>, + java.util.concurrent.Future< + ChangeBdsCapacityReservationCompartmentResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getChangeBdsCapacityReservationCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeBdsCapacityReservationCompartmentRequest, + ChangeBdsCapacityReservationCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeBdsInstanceCompartment( @@ -1372,6 +1491,126 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationRequest, + CreateBdsCapacityReservationResponse> + handler) { + LOG.trace("Called async createBdsCapacityReservation"); + final CreateBdsCapacityReservationRequest interceptedRequest = + CreateBdsCapacityReservationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "CreateBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/CreateBdsCapacityReservation"); + final java.util.function.Function< + javax.ws.rs.core.Response, CreateBdsCapacityReservationResponse> + transformer = + CreateBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationRequest, CreateBdsCapacityReservationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationRequest, + CreateBdsCapacityReservationResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateBdsCapacityReservationDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateBdsCapacityReservationRequest, CreateBdsCapacityReservationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse> + handler) { + LOG.trace("Called async createBdsCapacityReservationConfiguration"); + final CreateBdsCapacityReservationConfigurationRequest interceptedRequest = + CreateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "CreateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/CreateBdsCapacityReservationConfiguration"); + final java.util.function.Function< + javax.ws.rs.core.Response, + CreateBdsCapacityReservationConfigurationResponse> + transformer = + CreateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse>, + java.util.concurrent.Future< + CreateBdsCapacityReservationConfigurationResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getCreateBdsCapacityReservationConfigurationDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateBdsCapacityReservationConfigurationRequest, + CreateBdsCapacityReservationConfigurationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createBdsCertificateConfiguration( @@ -1774,6 +2013,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse> + handler) { + LOG.trace("Called async deactivateBdsCapacityReservationConfiguration"); + final DeactivateBdsCapacityReservationConfigurationRequest interceptedRequest = + DeactivateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeactivateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "DeactivateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeactivateBdsCapacityReservationConfiguration"); + final java.util.function.Function< + javax.ws.rs.core.Response, + DeactivateBdsCapacityReservationConfigurationResponse> + transformer = + DeactivateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse>, + java.util.concurrent.Future< + DeactivateBdsCapacityReservationConfigurationResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeactivateBdsCapacityReservationConfigurationRequest, + DeactivateBdsCapacityReservationConfigurationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deactivateIamUserSyncConfiguration( @@ -1936,6 +2232,113 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationRequest, + DeleteBdsCapacityReservationResponse> + handler) { + LOG.trace("Called async deleteBdsCapacityReservation"); + final DeleteBdsCapacityReservationRequest interceptedRequest = + DeleteBdsCapacityReservationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "DeleteBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/DeleteBdsCapacityReservation"); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteBdsCapacityReservationResponse> + transformer = + DeleteBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationRequest, DeleteBdsCapacityReservationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationRequest, + DeleteBdsCapacityReservationResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteBdsCapacityReservationRequest, DeleteBdsCapacityReservationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse> + handler) { + LOG.trace("Called async deleteBdsCapacityReservationConfiguration"); + final DeleteBdsCapacityReservationConfigurationRequest interceptedRequest = + DeleteBdsCapacityReservationConfigurationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "DeleteBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeleteBdsCapacityReservationConfiguration"); + final java.util.function.Function< + javax.ws.rs.core.Response, + DeleteBdsCapacityReservationConfigurationResponse> + transformer = + DeleteBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse>, + java.util.concurrent.Future< + DeleteBdsCapacityReservationConfigurationResponse>> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteBdsCapacityReservationConfigurationRequest, + DeleteBdsCapacityReservationConfigurationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteBdsCertificateConfiguration( @@ -2599,6 +3002,109 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + handler) { + LOG.trace("Called async getBdsCapacityReservation"); + final GetBdsCapacityReservationRequest interceptedRequest = + GetBdsCapacityReservationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "GetBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/GetBdsCapacityReservation"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetBdsCapacityReservationResponse> + transformer = + GetBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationRequest, + GetBdsCapacityReservationResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + handler) { + LOG.trace("Called async getBdsCapacityReservationConfiguration"); + final GetBdsCapacityReservationConfigurationRequest interceptedRequest = + GetBdsCapacityReservationConfigurationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "GetBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/GetBdsCapacityReservationConfiguration"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetBdsCapacityReservationConfigurationResponse> + transformer = + GetBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getBdsCertificateConfiguration( @@ -3383,6 +3889,169 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + handler) { + LOG.trace("Called async listBdsCapacityReservationAssociatedConfigurations"); + final ListBdsCapacityReservationAssociatedConfigurationsRequest interceptedRequest = + ListBdsCapacityReservationAssociatedConfigurationsConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBdsCapacityReservationAssociatedConfigurationsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ListBdsCapacityReservationAssociatedConfigurations", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationAssociatedConfigurations"); + final java.util.function.Function< + javax.ws.rs.core.Response, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + transformer = + ListBdsCapacityReservationAssociatedConfigurationsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>, + java.util.concurrent.Future< + ListBdsCapacityReservationAssociatedConfigurationsResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse> + handler) { + LOG.trace("Called async listBdsCapacityReservationConfigurations"); + final ListBdsCapacityReservationConfigurationsRequest interceptedRequest = + ListBdsCapacityReservationConfigurationsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBdsCapacityReservationConfigurationsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ListBdsCapacityReservationConfigurations", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationConfigurations"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListBdsCapacityReservationConfigurationsResponse> + transformer = + ListBdsCapacityReservationConfigurationsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>, + java.util.concurrent.Future< + ListBdsCapacityReservationConfigurationsResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse> + handler) { + LOG.trace("Called async listBdsCapacityReservations"); + final ListBdsCapacityReservationsRequest interceptedRequest = + ListBdsCapacityReservationsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBdsCapacityReservationsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ListBdsCapacityReservations", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ListBdsCapacityReservations"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListBdsCapacityReservationsResponse> + transformer = + ListBdsCapacityReservationsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listBdsCertificateConfigurations( @@ -5186,6 +5855,126 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationRequest, + UpdateBdsCapacityReservationResponse> + handler) { + LOG.trace("Called async updateBdsCapacityReservation"); + final UpdateBdsCapacityReservationRequest interceptedRequest = + UpdateBdsCapacityReservationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "UpdateBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/UpdateBdsCapacityReservation"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateBdsCapacityReservationResponse> + transformer = + UpdateBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationRequest, UpdateBdsCapacityReservationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationRequest, + UpdateBdsCapacityReservationResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateBdsCapacityReservationDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateBdsCapacityReservationRequest, UpdateBdsCapacityReservationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse> + handler) { + LOG.trace("Called async updateBdsCapacityReservationConfiguration"); + final UpdateBdsCapacityReservationConfigurationRequest interceptedRequest = + UpdateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "UpdateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/UpdateBdsCapacityReservationConfiguration"); + final java.util.function.Function< + javax.ws.rs.core.Response, + UpdateBdsCapacityReservationConfigurationResponse> + transformer = + UpdateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse>, + java.util.concurrent.Future< + UpdateBdsCapacityReservationConfigurationResponse>> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest + .getUpdateBdsCapacityReservationConfigurationDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateBdsCapacityReservationConfigurationRequest, + UpdateBdsCapacityReservationConfigurationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateBdsInstance( UpdateBdsInstanceRequest request, diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java index 1fccf2b9684..6045f2f5c5c 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsClient.java @@ -558,6 +558,50 @@ public void close() { client.close(); } + @Override + public ActivateBdsCapacityReservationConfigurationResponse + activateBdsCapacityReservationConfiguration( + ActivateBdsCapacityReservationConfigurationRequest request) { + LOG.trace("Called activateBdsCapacityReservationConfiguration"); + final ActivateBdsCapacityReservationConfigurationRequest interceptedRequest = + ActivateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ActivateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ActivateBdsCapacityReservationConfiguration"); + java.util.function.Function< + javax.ws.rs.core.Response, + ActivateBdsCapacityReservationConfigurationResponse> + transformer = + ActivateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ActivateBdsMetastoreConfigurationResponse activateBdsMetastoreConfiguration( ActivateBdsMetastoreConfigurationRequest request) { @@ -1104,6 +1148,52 @@ public CertificateServiceInfoResponse certificateServiceInfo( }); } + @Override + public ChangeBdsCapacityReservationCompartmentResponse changeBdsCapacityReservationCompartment( + ChangeBdsCapacityReservationCompartmentRequest request) { + LOG.trace("Called changeBdsCapacityReservationCompartment"); + final ChangeBdsCapacityReservationCompartmentRequest interceptedRequest = + ChangeBdsCapacityReservationCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeBdsCapacityReservationCompartmentConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ChangeBdsCapacityReservationCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ChangeBdsCapacityReservationCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeBdsCapacityReservationCompartmentResponse> + transformer = + ChangeBdsCapacityReservationCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeBdsCapacityReservationCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeBdsInstanceCompartmentResponse changeBdsInstanceCompartment( ChangeBdsInstanceCompartmentRequest request) { @@ -1273,6 +1363,98 @@ public CreateBdsCapacityReportResponse createBdsCapacityReport( }); } + @Override + public CreateBdsCapacityReservationResponse createBdsCapacityReservation( + CreateBdsCapacityReservationRequest request) { + LOG.trace("Called createBdsCapacityReservation"); + final CreateBdsCapacityReservationRequest interceptedRequest = + CreateBdsCapacityReservationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "CreateBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/CreateBdsCapacityReservation"); + java.util.function.Function + transformer = + CreateBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getCreateBdsCapacityReservationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateBdsCapacityReservationConfigurationResponse + createBdsCapacityReservationConfiguration( + CreateBdsCapacityReservationConfigurationRequest request) { + LOG.trace("Called createBdsCapacityReservationConfiguration"); + final CreateBdsCapacityReservationConfigurationRequest interceptedRequest = + CreateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "CreateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/CreateBdsCapacityReservationConfiguration"); + java.util.function.Function< + javax.ws.rs.core.Response, + CreateBdsCapacityReservationConfigurationResponse> + transformer = + CreateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getCreateBdsCapacityReservationConfigurationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateBdsCertificateConfigurationResponse createBdsCertificateConfiguration( CreateBdsCertificateConfigurationRequest request) { @@ -1585,6 +1767,50 @@ public CreateResourcePrincipalConfigurationResponse createResourcePrincipalConfi }); } + @Override + public DeactivateBdsCapacityReservationConfigurationResponse + deactivateBdsCapacityReservationConfiguration( + DeactivateBdsCapacityReservationConfigurationRequest request) { + LOG.trace("Called deactivateBdsCapacityReservationConfiguration"); + final DeactivateBdsCapacityReservationConfigurationRequest interceptedRequest = + DeactivateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeactivateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "DeactivateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeactivateBdsCapacityReservationConfiguration"); + java.util.function.Function< + javax.ws.rs.core.Response, + DeactivateBdsCapacityReservationConfigurationResponse> + transformer = + DeactivateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeactivateIamUserSyncConfigurationResponse deactivateIamUserSyncConfiguration( DeactivateIamUserSyncConfigurationRequest request) { @@ -1712,6 +1938,88 @@ public DeleteBdsApiKeyResponse deleteBdsApiKey(DeleteBdsApiKeyRequest request) { }); } + @Override + public DeleteBdsCapacityReservationResponse deleteBdsCapacityReservation( + DeleteBdsCapacityReservationRequest request) { + LOG.trace("Called deleteBdsCapacityReservation"); + final DeleteBdsCapacityReservationRequest interceptedRequest = + DeleteBdsCapacityReservationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "DeleteBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/DeleteBdsCapacityReservation"); + java.util.function.Function + transformer = + DeleteBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteBdsCapacityReservationConfigurationResponse + deleteBdsCapacityReservationConfiguration( + DeleteBdsCapacityReservationConfigurationRequest request) { + LOG.trace("Called deleteBdsCapacityReservationConfiguration"); + final DeleteBdsCapacityReservationConfigurationRequest interceptedRequest = + DeleteBdsCapacityReservationConfigurationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "DeleteBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/DeleteBdsCapacityReservationConfiguration"); + java.util.function.Function< + javax.ws.rs.core.Response, + DeleteBdsCapacityReservationConfigurationResponse> + transformer = + DeleteBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteBdsCertificateConfigurationResponse deleteBdsCertificateConfiguration( DeleteBdsCertificateConfigurationRequest request) { @@ -2236,6 +2544,84 @@ public GetBdsApiKeyResponse getBdsApiKey(GetBdsApiKeyRequest request) { }); } + @Override + public GetBdsCapacityReservationResponse getBdsCapacityReservation( + GetBdsCapacityReservationRequest request) { + LOG.trace("Called getBdsCapacityReservation"); + final GetBdsCapacityReservationRequest interceptedRequest = + GetBdsCapacityReservationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "GetBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/GetBdsCapacityReservation"); + java.util.function.Function + transformer = + GetBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetBdsCapacityReservationConfigurationResponse getBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request) { + LOG.trace("Called getBdsCapacityReservationConfiguration"); + final GetBdsCapacityReservationConfigurationRequest interceptedRequest = + GetBdsCapacityReservationConfigurationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "GetBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/GetBdsCapacityReservationConfiguration"); + java.util.function.Function< + javax.ws.rs.core.Response, GetBdsCapacityReservationConfigurationResponse> + transformer = + GetBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetBdsCertificateConfigurationResponse getBdsCertificateConfiguration( GetBdsCertificateConfigurationRequest request) { @@ -2845,6 +3231,128 @@ public ListBdsApiKeysResponse listBdsApiKeys(ListBdsApiKeysRequest request) { }); } + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse + listBdsCapacityReservationAssociatedConfigurations( + ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + LOG.trace("Called listBdsCapacityReservationAssociatedConfigurations"); + final ListBdsCapacityReservationAssociatedConfigurationsRequest interceptedRequest = + ListBdsCapacityReservationAssociatedConfigurationsConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBdsCapacityReservationAssociatedConfigurationsConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ListBdsCapacityReservationAssociatedConfigurations", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationAssociatedConfigurations"); + java.util.function.Function< + javax.ws.rs.core.Response, + ListBdsCapacityReservationAssociatedConfigurationsResponse> + transformer = + ListBdsCapacityReservationAssociatedConfigurationsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListBdsCapacityReservationConfigurationsResponse + listBdsCapacityReservationConfigurations( + ListBdsCapacityReservationConfigurationsRequest request) { + LOG.trace("Called listBdsCapacityReservationConfigurations"); + final ListBdsCapacityReservationConfigurationsRequest interceptedRequest = + ListBdsCapacityReservationConfigurationsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBdsCapacityReservationConfigurationsConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ListBdsCapacityReservationConfigurations", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/ListBdsCapacityReservationConfigurations"); + java.util.function.Function< + javax.ws.rs.core.Response, ListBdsCapacityReservationConfigurationsResponse> + transformer = + ListBdsCapacityReservationConfigurationsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListBdsCapacityReservationsResponse listBdsCapacityReservations( + ListBdsCapacityReservationsRequest request) { + LOG.trace("Called listBdsCapacityReservations"); + final ListBdsCapacityReservationsRequest interceptedRequest = + ListBdsCapacityReservationsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListBdsCapacityReservationsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "ListBdsCapacityReservations", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/ListBdsCapacityReservations"); + java.util.function.Function + transformer = + ListBdsCapacityReservationsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListBdsCertificateConfigurationsResponse listBdsCertificateConfigurations( ListBdsCertificateConfigurationsRequest request) { @@ -4257,6 +4765,98 @@ public UpdateAutoScalingConfigurationResponse updateAutoScalingConfiguration( }); } + @Override + public UpdateBdsCapacityReservationResponse updateBdsCapacityReservation( + UpdateBdsCapacityReservationRequest request) { + LOG.trace("Called updateBdsCapacityReservation"); + final UpdateBdsCapacityReservationRequest interceptedRequest = + UpdateBdsCapacityReservationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateBdsCapacityReservationConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "UpdateBdsCapacityReservation", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservation/UpdateBdsCapacityReservation"); + java.util.function.Function + transformer = + UpdateBdsCapacityReservationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateBdsCapacityReservationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateBdsCapacityReservationConfigurationResponse + updateBdsCapacityReservationConfiguration( + UpdateBdsCapacityReservationConfigurationRequest request) { + LOG.trace("Called updateBdsCapacityReservationConfiguration"); + final UpdateBdsCapacityReservationConfigurationRequest interceptedRequest = + UpdateBdsCapacityReservationConfigurationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateBdsCapacityReservationConfigurationConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Bds", + "UpdateBdsCapacityReservationConfiguration", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsCapacityReservationConfiguration/UpdateBdsCapacityReservationConfiguration"); + java.util.function.Function< + javax.ws.rs.core.Response, + UpdateBdsCapacityReservationConfigurationResponse> + transformer = + UpdateBdsCapacityReservationConfigurationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateBdsCapacityReservationConfigurationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateBdsInstanceResponse updateBdsInstance(UpdateBdsInstanceRequest request) { LOG.trace("Called updateBdsInstance"); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java index d9963bb92bb..1c9481aa1ff 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsPaginators.java @@ -264,6 +264,396 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listBdsCapacityReservationAssociatedConfigurations operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listBdsCapacityReservationAssociatedConfigurationsResponseIterator( + final ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder, + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>( + new java.util.function.Supplier< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationAssociatedConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsResponse, String>() { + @Override + public String apply( + ListBdsCapacityReservationAssociatedConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>, + ListBdsCapacityReservationAssociatedConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest + .Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse apply( + ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return client.listBdsCapacityReservationAssociatedConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary} objects + * contained in responses from the listBdsCapacityReservationAssociatedConfigurations operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBdsCapacityReservationAssociatedConfigurationsRecordIterator( + final ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder, + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse, + com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationSummary>( + new java.util.function.Supplier< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationAssociatedConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsResponse, String>() { + @Override + public String apply( + ListBdsCapacityReservationAssociatedConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest.Builder>, + ListBdsCapacityReservationAssociatedConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationAssociatedConfigurationsRequest + .Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsRequest, + ListBdsCapacityReservationAssociatedConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationAssociatedConfigurationsResponse apply( + ListBdsCapacityReservationAssociatedConfigurationsRequest request) { + return client.listBdsCapacityReservationAssociatedConfigurations(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationAssociatedConfigurationsResponse, + java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationSummary> + apply( + ListBdsCapacityReservationAssociatedConfigurationsResponse + response) { + return response.getBdsCapacityReservationAssociatedConfigurationCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listBdsCapacityReservationConfigurations operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listBdsCapacityReservationConfigurationsResponseIterator( + final ListBdsCapacityReservationConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsCapacityReservationConfigurationsRequest.Builder, + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>( + new java.util.function.Supplier< + ListBdsCapacityReservationConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsResponse, String>() { + @Override + public String apply(ListBdsCapacityReservationConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.Builder>, + ListBdsCapacityReservationConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationConfigurationsResponse apply( + ListBdsCapacityReservationConfigurationsRequest request) { + return client.listBdsCapacityReservationConfigurations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary} objects + * contained in responses from the listBdsCapacityReservationConfigurations operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBdsCapacityReservationConfigurationsRecordIterator( + final ListBdsCapacityReservationConfigurationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsCapacityReservationConfigurationsRequest.Builder, + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse, + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationSummary>( + new java.util.function.Supplier< + ListBdsCapacityReservationConfigurationsRequest.Builder>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest.Builder get() { + return ListBdsCapacityReservationConfigurationsRequest.builder() + .copy(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsResponse, String>() { + @Override + public String apply(ListBdsCapacityReservationConfigurationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.Builder>, + ListBdsCapacityReservationConfigurationsRequest>() { + @Override + public ListBdsCapacityReservationConfigurationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationConfigurationsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsRequest, + ListBdsCapacityReservationConfigurationsResponse>() { + @Override + public ListBdsCapacityReservationConfigurationsResponse apply( + ListBdsCapacityReservationConfigurationsRequest request) { + return client.listBdsCapacityReservationConfigurations(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationConfigurationsResponse, + java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationSummary> + apply(ListBdsCapacityReservationConfigurationsResponse response) { + return response.getBdsCapacityReservationConfigurationCollection() + .getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listBdsCapacityReservations operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listBdsCapacityReservationsResponseIterator( + final ListBdsCapacityReservationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBdsCapacityReservationsRequest.Builder, ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse>( + new java.util.function.Supplier() { + @Override + public ListBdsCapacityReservationsRequest.Builder get() { + return ListBdsCapacityReservationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBdsCapacityReservationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.Builder>, + ListBdsCapacityReservationsRequest>() { + @Override + public ListBdsCapacityReservationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse>() { + @Override + public ListBdsCapacityReservationsResponse apply( + ListBdsCapacityReservationsRequest request) { + return client.listBdsCapacityReservations(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.bds.model.BdsCapacityReservationSummary} objects + * contained in responses from the listBdsCapacityReservations operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.bds.model.BdsCapacityReservationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBdsCapacityReservationsRecordIterator( + final ListBdsCapacityReservationsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBdsCapacityReservationsRequest.Builder, ListBdsCapacityReservationsRequest, + ListBdsCapacityReservationsResponse, + com.oracle.bmc.bds.model.BdsCapacityReservationSummary>( + new java.util.function.Supplier() { + @Override + public ListBdsCapacityReservationsRequest.Builder get() { + return ListBdsCapacityReservationsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListBdsCapacityReservationsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.Builder>, + ListBdsCapacityReservationsRequest>() { + @Override + public ListBdsCapacityReservationsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBdsCapacityReservationsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListBdsCapacityReservationsRequest, ListBdsCapacityReservationsResponse>() { + @Override + public ListBdsCapacityReservationsResponse apply( + ListBdsCapacityReservationsRequest request) { + return client.listBdsCapacityReservations(request); + } + }, + new java.util.function.Function< + ListBdsCapacityReservationsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListBdsCapacityReservationsResponse response) { + return response.getBdsCapacityReservationCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listBdsCertificateConfigurations operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java index 4e4501e9667..b011b78e569 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/BdsWaiters.java @@ -233,6 +233,240 @@ public boolean test(GetBdsApiKeyResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forBdsCapacityReservation( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forBdsCapacityReservation( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + GetBdsCapacityReservationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forBdsCapacityReservation( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for BdsCapacityReservation. + private com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationRequest, GetBdsCapacityReservationResponse> + forBdsCapacityReservation( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBdsCapacityReservationRequest request, + final com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetBdsCapacityReservationRequest, + GetBdsCapacityReservationResponse>() { + @Override + public GetBdsCapacityReservationResponse apply( + GetBdsCapacityReservationRequest request) { + return client.getBdsCapacityReservation(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetBdsCapacityReservationResponse response) { + return targetStatesSet.contains( + response.getBdsCapacityReservation().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forBdsCapacityReservationConfiguration( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forBdsCapacityReservationConfiguration( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + GetBdsCapacityReservationConfigurationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forBdsCapacityReservationConfiguration( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for BdsCapacityReservationConfiguration. + private com.oracle.bmc.waiter.Waiter< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse> + forBdsCapacityReservationConfiguration( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBdsCapacityReservationConfigurationRequest request, + final com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + .LifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetBdsCapacityReservationConfigurationRequest, + GetBdsCapacityReservationConfigurationResponse>() { + @Override + public GetBdsCapacityReservationConfigurationResponse apply( + GetBdsCapacityReservationConfigurationRequest request) { + return client.getBdsCapacityReservationConfiguration(request); + } + }, + new java.util.function.Predicate< + GetBdsCapacityReservationConfigurationResponse>() { + @Override + public boolean test( + GetBdsCapacityReservationConfigurationResponse response) { + return targetStatesSet.contains( + response.getBdsCapacityReservationConfiguration() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + .LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ActivateBdsCapacityReservationConfigurationConverter.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ActivateBdsCapacityReservationConfigurationConverter.java index 01c04816f83..94108843cc9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ActivateBdsCapacityReservationConfigurationConverter.java @@ -2,29 +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.internal.http; +package com.oracle.bmc.bds.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabasePrivateEndpointConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateBdsCapacityReservationConfigurationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger( - UpdateDistributedDatabasePrivateEndpointConverter.class); + ActivateBdsCapacityReservationConfigurationConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedDatabasePrivateEndpointRequest + public static com.oracle.bmc.bds.requests.ActivateBdsCapacityReservationConfigurationRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedDatabasePrivateEndpointRequest + com.oracle.bmc.bds.requests.ActivateBdsCapacityReservationConfigurationRequest request) { return request; @@ -32,37 +30,40 @@ public class UpdateDistributedDatabasePrivateEndpointConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedDatabasePrivateEndpointRequest + com.oracle.bmc.bds.requests.ActivateBdsCapacityReservationConfigurationRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - Validate.notNull( - request.getUpdateDistributedDatabasePrivateEndpointDetails(), - "updateDistributedDatabasePrivateEndpointDetails is required"); + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") + .path("/20190531") + .path("bdsInstances") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationConfigurationId())) + .path("actions") + .path("activate"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } @@ -75,71 +76,71 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse>() { + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse + public com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.UpdateDistributedDatabasePrivateEndpointResponse"); + "Transform function invoked for com.oracle.bmc.bds.responses.ActivateBdsCapacityReservationConfigurationResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint>> + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint> + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabasePrivateEndpoint(response.getItem()); + builder.bdsCapacityReservationConfiguration(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -161,8 +162,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.bds.responses + .ActivateBdsCapacityReservationConfigurationResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ChangeBdsCapacityReservationCompartmentConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ChangeBdsCapacityReservationCompartmentConverter.java new file mode 100644 index 00000000000..c62e395023e --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ChangeBdsCapacityReservationCompartmentConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ChangeBdsCapacityReservationCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + ChangeBdsCapacityReservationCompartmentConverter.class); + + public static com.oracle.bmc.bds.requests.ChangeBdsCapacityReservationCompartmentRequest + interceptRequest( + com.oracle.bmc.bds.requests.ChangeBdsCapacityReservationCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.ChangeBdsCapacityReservationCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Validate.notNull( + request.getChangeBdsCapacityReservationCompartmentDetails(), + "changeBdsCapacityReservationCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsCapacityReservations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ChangeBdsCapacityReservationCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ChangeBdsCapacityReservationCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .ChangeBdsCapacityReservationCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .ChangeBdsCapacityReservationCompartmentResponse>() { + @Override + public com.oracle.bmc.bds.responses + .ChangeBdsCapacityReservationCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.ChangeBdsCapacityReservationCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses + .ChangeBdsCapacityReservationCompartmentResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .ChangeBdsCapacityReservationCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.bds.responses + .ChangeBdsCapacityReservationCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConfigurationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConfigurationConverter.java new file mode 100644 index 00000000000..e44e8839897 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConfigurationConverter.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationConfigurationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + CreateBdsCapacityReservationConfigurationConverter.class); + + public static com.oracle.bmc.bds.requests.CreateBdsCapacityReservationConfigurationRequest + interceptRequest( + com.oracle.bmc.bds.requests.CreateBdsCapacityReservationConfigurationRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.CreateBdsCapacityReservationConfigurationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Validate.notNull( + request.getCreateBdsCapacityReservationConfigurationDetails(), + "createBdsCapacityReservationConfigurationDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationConfigurationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationConfigurationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationConfigurationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationConfigurationResponse>() { + @Override + public com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationConfigurationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.CreateBdsCapacityReservationConfigurationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationConfigurationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationConfigurationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservationConfiguration(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLocationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-location"); + if (contentLocationHeader.isPresent()) { + builder.contentLocation( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-location", + contentLocationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationConfigurationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConverter.java new file mode 100644 index 00000000000..4e9cdc9c50d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/CreateBdsCapacityReservationConverter.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateBdsCapacityReservationConverter.class); + + public static com.oracle.bmc.bds.requests.CreateBdsCapacityReservationRequest interceptRequest( + com.oracle.bmc.bds.requests.CreateBdsCapacityReservationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.CreateBdsCapacityReservationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateBdsCapacityReservationDetails(), + "createBdsCapacityReservationDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190531").path("bdsCapacityReservations"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationResponse>() { + @Override + public com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservation>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model.BdsCapacityReservation + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model.BdsCapacityReservation + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model.BdsCapacityReservation> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .CreateBdsCapacityReservationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservation(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLocationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-location"); + if (contentLocationHeader.isPresent()) { + builder.contentLocation( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-location", + contentLocationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.bds.responses.CreateBdsCapacityReservationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeactivateBdsCapacityReservationConfigurationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeactivateBdsCapacityReservationConfigurationConverter.java new file mode 100644 index 00000000000..e4b5edaad9b --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeactivateBdsCapacityReservationConfigurationConverter.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateBdsCapacityReservationConfigurationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + DeactivateBdsCapacityReservationConfigurationConverter.class); + + public static com.oracle.bmc.bds.requests.DeactivateBdsCapacityReservationConfigurationRequest + interceptRequest( + com.oracle.bmc.bds.requests.DeactivateBdsCapacityReservationConfigurationRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.DeactivateBdsCapacityReservationConfigurationRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationConfigurationId())) + .path("actions") + .path("deactivate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse>() { + @Override + public com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.DeactivateBdsCapacityReservationConfigurationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservationConfiguration(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.bds.responses + .DeactivateBdsCapacityReservationConfigurationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConfigurationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConfigurationConverter.java new file mode 100644 index 00000000000..e3a593bc41c --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConfigurationConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationConfigurationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + DeleteBdsCapacityReservationConfigurationConverter.class); + + public static com.oracle.bmc.bds.requests.DeleteBdsCapacityReservationConfigurationRequest + interceptRequest( + com.oracle.bmc.bds.requests.DeleteBdsCapacityReservationConfigurationRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.DeleteBdsCapacityReservationConfigurationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationConfigurationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationConfigurationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationConfigurationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationConfigurationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationConfigurationResponse>() { + @Override + public com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationConfigurationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationConfigurationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationConfigurationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationConfigurationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationConfigurationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConverter.java new file mode 100644 index 00000000000..40a40997eeb --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/DeleteBdsCapacityReservationConverter.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteBdsCapacityReservationConverter.class); + + public static com.oracle.bmc.bds.requests.DeleteBdsCapacityReservationRequest interceptRequest( + com.oracle.bmc.bds.requests.DeleteBdsCapacityReservationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.DeleteBdsCapacityReservationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsCapacityReservations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationResponse>() { + @Override + public com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .DeleteBdsCapacityReservationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.bds.responses.DeleteBdsCapacityReservationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConfigurationConverter.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConfigurationConverter.java index 2ae1694b4d2..b37bc802628 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConfigurationConverter.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.internal.http; +package com.oracle.bmc.bds.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabasePrivateEndpointConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationConfigurationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabasePrivateEndpointConverter.class); + org.slf4j.LoggerFactory.getLogger( + GetBdsCapacityReservationConfigurationConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabasePrivateEndpointRequest + public static com.oracle.bmc.bds.requests.GetBdsCapacityReservationConfigurationRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabasePrivateEndpointRequest + com.oracle.bmc.bds.requests.GetBdsCapacityReservationConfigurationRequest request) { return request; @@ -31,30 +30,29 @@ public class GetDistributedDatabasePrivateEndpointConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabasePrivateEndpointRequest - request) { + com.oracle.bmc.bds.requests.GetBdsCapacityReservationConfigurationRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") + .path("/20190531") + .path("bdsInstances") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationConfigurationId())); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getIfNoneMatch() != null) { - ib.header("if-none-match", request.getIfNoneMatch()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } @@ -67,71 +65,68 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.bds.responses.GetBdsCapacityReservationConfigurationResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.bds.responses.GetBdsCapacityReservationConfigurationResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.bds.responses.GetBdsCapacityReservationConfigurationResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse>() { + com.oracle.bmc.bds.responses + .GetBdsCapacityReservationConfigurationResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse + public com.oracle.bmc.bds.responses + .GetBdsCapacityReservationConfigurationResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabasePrivateEndpointResponse"); + "Transform function invoked for com.oracle.bmc.bds.responses.GetBdsCapacityReservationConfigurationResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint>> + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint> + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.bds.responses + .GetBdsCapacityReservationConfigurationResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.bds.responses + .GetBdsCapacityReservationConfigurationResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabasePrivateEndpoint(response.getItem()); + builder.bdsCapacityReservationConfiguration(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -153,8 +148,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.bds.responses + .GetBdsCapacityReservationConfigurationResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConverter.java new file mode 100644 index 00000000000..331a3fcdb73 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/GetBdsCapacityReservationConverter.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetBdsCapacityReservationConverter.class); + + public static com.oracle.bmc.bds.requests.GetBdsCapacityReservationRequest interceptRequest( + com.oracle.bmc.bds.requests.GetBdsCapacityReservationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.GetBdsCapacityReservationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsCapacityReservations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse>() { + @Override + public com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservation>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model.BdsCapacityReservation + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model.BdsCapacityReservation + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model.BdsCapacityReservation> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .GetBdsCapacityReservationResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservation(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.bds.responses.GetBdsCapacityReservationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationAssociatedConfigurationsConverter.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationAssociatedConfigurationsConverter.java index fc2a9ecb4a0..cc4581704ee 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationAssociatedConfigurationsConverter.java @@ -2,29 +2,29 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.bds.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationAssociatedConfigurationsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger( - ListDistributedDatabasePrivateEndpointsConverter.class); + ListBdsCapacityReservationAssociatedConfigurationsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedDatabasePrivateEndpointsRequest + public static com.oracle.bmc.bds.requests + .ListBdsCapacityReservationAssociatedConfigurationsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedDatabasePrivateEndpointsRequest + com.oracle.bmc.bds.requests + .ListBdsCapacityReservationAssociatedConfigurationsRequest request) { return request; @@ -32,16 +32,22 @@ public class ListDistributedDatabasePrivateEndpointsConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedDatabasePrivateEndpointsRequest + com.oracle.bmc.bds.requests.ListBdsCapacityReservationAssociatedConfigurationsRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints"); + .path("/20190531") + .path("bdsCapacityReservations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationId())) + .path("associatedConfigurations"); target = target.queryParam( @@ -49,20 +55,20 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getCompartmentId())); - if (request.getCompartmentIdInSubtree() != null) { + if (request.getLifecycleState() != null) { target = target.queryParam( - "compartmentIdInSubtree", + "lifecycleState", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentIdInSubtree())); + request.getLifecycleState().getValue())); } - if (request.getLifecycleState() != null) { + if (request.getPage() != null) { target = target.queryParam( - "lifecycleState", + "page", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); + request.getPage())); } if (request.getLimit() != null) { @@ -73,12 +79,12 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getLimit())); } - if (request.getPage() != null) { + if (request.getSortBy() != null) { target = target.queryParam( - "page", + "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); + request.getSortBy().getValue())); } if (request.getSortOrder() != null) { @@ -89,14 +95,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortOrder().getValue())); } - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - if (request.getDisplayName() != null) { target = target.queryParam( @@ -121,71 +119,71 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse> + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse> + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse> + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse>() { + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse + public com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListDistributedDatabasePrivateEndpointsResponse"); + "Transform function invoked for com.oracle.bmc.bds.responses.ListBdsCapacityReservationAssociatedConfigurationsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection>> + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection> + com.oracle.bmc.bds.model + .BdsCapacityReservationAssociatedConfigurationCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabasePrivateEndpointCollection( + builder.bdsCapacityReservationAssociatedConfigurationCollection( response.getItem()); java.util.Optional> opcRequestIdHeader = @@ -210,8 +208,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationAssociatedConfigurationsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationConfigurationsConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationConfigurationsConverter.java new file mode 100644 index 00000000000..f258aef0a04 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationConfigurationsConverter.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.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationConfigurationsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + ListBdsCapacityReservationConfigurationsConverter.class); + + public static com.oracle.bmc.bds.requests.ListBdsCapacityReservationConfigurationsRequest + interceptRequest( + com.oracle.bmc.bds.requests.ListBdsCapacityReservationConfigurationsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.ListBdsCapacityReservationConfigurationsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations"); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ListBdsCapacityReservationConfigurationsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ListBdsCapacityReservationConfigurationsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationConfigurationsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationConfigurationsResponse>() { + @Override + public com.oracle.bmc.bds.responses + .ListBdsCapacityReservationConfigurationsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.ListBdsCapacityReservationConfigurationsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfigurationCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationConfigurationsResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationConfigurationsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservationConfigurationCollection( + response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationConfigurationsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationsConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationsConverter.java new file mode 100644 index 00000000000..81759179797 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/ListBdsCapacityReservationsConverter.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.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListBdsCapacityReservationsConverter.class); + + public static com.oracle.bmc.bds.requests.ListBdsCapacityReservationsRequest interceptRequest( + com.oracle.bmc.bds.requests.ListBdsCapacityReservationsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.ListBdsCapacityReservationsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190531").path("bdsCapacityReservations"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationsResponse>() { + @Override + public com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .ListBdsCapacityReservationsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservationCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.bds.responses.ListBdsCapacityReservationsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConfigurationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConfigurationConverter.java new file mode 100644 index 00000000000..ce7e9673508 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConfigurationConverter.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.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationConfigurationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + UpdateBdsCapacityReservationConfigurationConverter.class); + + public static com.oracle.bmc.bds.requests.UpdateBdsCapacityReservationConfigurationRequest + interceptRequest( + com.oracle.bmc.bds.requests.UpdateBdsCapacityReservationConfigurationRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.UpdateBdsCapacityReservationConfigurationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getBdsInstanceId(), "bdsInstanceId must not be blank"); + Validate.notBlank( + request.getBdsCapacityReservationConfigurationId(), + "bdsCapacityReservationConfigurationId must not be blank"); + Validate.notNull( + request.getUpdateBdsCapacityReservationConfigurationDetails(), + "updateBdsCapacityReservationConfigurationDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsInstances") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsInstanceId())) + .path("bdsCapacityReservationConfigurations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationConfigurationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationConfigurationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationConfigurationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationConfigurationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationConfigurationResponse>() { + @Override + public com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationConfigurationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationConfigurationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservationConfiguration> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationConfigurationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationConfigurationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservationConfiguration(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationConfigurationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConverter.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConverter.java new file mode 100644 index 00000000000..302f9f320b8 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/internal/http/UpdateBdsCapacityReservationConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.bds.model.*; +import com.oracle.bmc.bds.requests.*; +import com.oracle.bmc.bds.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateBdsCapacityReservationConverter.class); + + public static com.oracle.bmc.bds.requests.UpdateBdsCapacityReservationRequest interceptRequest( + com.oracle.bmc.bds.requests.UpdateBdsCapacityReservationRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.bds.requests.UpdateBdsCapacityReservationRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBdsCapacityReservationId(), + "bdsCapacityReservationId must not be blank"); + Validate.notNull( + request.getUpdateBdsCapacityReservationDetails(), + "updateBdsCapacityReservationDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190531") + .path("bdsCapacityReservations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBdsCapacityReservationId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationResponse>() { + @Override + public com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model + .BdsCapacityReservation>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model.BdsCapacityReservation + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.bds.model.BdsCapacityReservation + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.bds.model.BdsCapacityReservation> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse + .Builder + builder = + com.oracle.bmc.bds.responses + .UpdateBdsCapacityReservationResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.bdsCapacityReservation(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.bds.responses.UpdateBdsCapacityReservationResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java new file mode 100644 index 00000000000..04b7d5f14a4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservation.java @@ -0,0 +1,566 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * A reusable BDS capacity reservation resource. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservation.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservation + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "computeCapacityReservations", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public BdsCapacityReservation( + String id, + String displayName, + String compartmentId, + ComputeCapacityReservations computeCapacityReservations, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.computeCapacityReservations = computeCapacityReservations; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name for the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the compartment that contains the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** + * The lifecycle state of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservation build() { + BdsCapacityReservation model = + new BdsCapacityReservation( + this.id, + this.displayName, + this.compartmentId, + this.computeCapacityReservations, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservation model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name for the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** + * The lifecycle state of the BDS capacity reservation. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The lifecycle state of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservation("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservation)) { + return false; + } + + BdsCapacityReservation other = (BdsCapacityReservation) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java new file mode 100644 index 00000000000..7089af1b81c --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationCollection.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Results of a BDS capacity reservation associated configuration search. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationAssociatedConfigurationCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationAssociatedConfigurationCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BdsCapacityReservationAssociatedConfigurationCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity reservation. + * @param items the value to set + * @return this builder + **/ + public Builder items( + java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationAssociatedConfigurationCollection build() { + BdsCapacityReservationAssociatedConfigurationCollection model = + new BdsCapacityReservationAssociatedConfigurationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationAssociatedConfigurationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of BDS capacity reservation configuration summaries associated with a BDS capacity reservation. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationAssociatedConfigurationCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationAssociatedConfigurationCollection)) { + return false; + } + + BdsCapacityReservationAssociatedConfigurationCollection other = + (BdsCapacityReservationAssociatedConfigurationCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java new file mode 100644 index 00000000000..b60bd3c870d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationAssociatedConfigurationSummary.java @@ -0,0 +1,440 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Summary of a BDS capacity reservation configuration associated with a BDS capacity reservation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationAssociatedConfigurationSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationAssociatedConfigurationSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "displayName", + "compartmentId", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public BdsCapacityReservationAssociatedConfigurationSummary( + String id, + String bdsInstanceId, + String displayName, + String compartmentId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the BDS cluster linked through the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the BDS cluster linked through the BDS capacity reservation configuration. + * @param bdsInstanceId the value to set + * @return this builder + **/ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * The display name of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the compartment that contains the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the BDS cluster. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the configuration was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the configuration was created, shown as an RFC 3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the configuration was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the configuration was updated, shown as an RFC 3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationAssociatedConfigurationSummary build() { + BdsCapacityReservationAssociatedConfigurationSummary model = + new BdsCapacityReservationAssociatedConfigurationSummary( + this.id, + this.bdsInstanceId, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationAssociatedConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the BDS cluster linked through the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the BDS cluster linked through the BDS capacity reservation configuration. + * @return the value + **/ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * The display name of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the compartment that contains the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the BDS cluster. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the configuration was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the configuration was created, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the configuration was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the configuration was updated, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationAssociatedConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationAssociatedConfigurationSummary)) { + return false; + } + + BdsCapacityReservationAssociatedConfigurationSummary other = + (BdsCapacityReservationAssociatedConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java new file mode 100644 index 00000000000..a305f1645e7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationCollection.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Results of a BDS capacity reservation search. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BdsCapacityReservationCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of BDS capacity reservation summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of BDS capacity reservation summaries. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationCollection build() { + BdsCapacityReservationCollection model = + new BdsCapacityReservationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of BDS capacity reservation summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of BDS capacity reservation summaries. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationCollection)) { + return false; + } + + BdsCapacityReservationCollection other = (BdsCapacityReservationCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java new file mode 100644 index 00000000000..ee555acdf5c --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfiguration.java @@ -0,0 +1,443 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * A configuration between a BDS cluster and a BDS capacity reservation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationConfiguration.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationConfiguration + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "bdsCapacityReservationId", + "displayName", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public BdsCapacityReservationConfiguration( + String id, + String bdsInstanceId, + String bdsCapacityReservationId, + String displayName, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * @param bdsInstanceId the value to set + * @return this builder + **/ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * @param bdsCapacityReservationId the value to set + * @return this builder + **/ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + /** + * The display name of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationConfiguration build() { + BdsCapacityReservationConfiguration model = + new BdsCapacityReservationConfiguration( + this.id, + this.bdsInstanceId, + this.bdsCapacityReservationId, + this.displayName, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationConfiguration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * @return the value + **/ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * @return the value + **/ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + /** + * The display name of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationConfiguration)) { + return false; + } + + BdsCapacityReservationConfiguration other = (BdsCapacityReservationConfiguration) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java new file mode 100644 index 00000000000..5ddd41f2d32 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationCollection.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Results of a BDS capacity reservation configuration search. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationConfigurationCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationConfigurationCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public BdsCapacityReservationConfigurationCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of BDS capacity reservation configuration summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of BDS capacity reservation configuration summaries. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationConfigurationCollection build() { + BdsCapacityReservationConfigurationCollection model = + new BdsCapacityReservationConfigurationCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationConfigurationCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of BDS capacity reservation configuration summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of BDS capacity reservation configuration summaries. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationConfigurationCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationConfigurationCollection)) { + return false; + } + + BdsCapacityReservationConfigurationCollection other = + (BdsCapacityReservationConfigurationCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java new file mode 100644 index 00000000000..9ed5babb4ad --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationConfigurationSummary.java @@ -0,0 +1,393 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Summary of a configuration between a BDS cluster and a BDS capacity reservation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationConfigurationSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationConfigurationSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "bdsInstanceId", + "bdsCapacityReservationId", + "displayName", + "lifecycleState", + "timeCreated", + "timeUpdated" + }) + public BdsCapacityReservationConfigurationSummary( + String id, + String bdsInstanceId, + String bdsCapacityReservationId, + String displayName, + BdsCapacityReservationConfiguration.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.bdsInstanceId = bdsInstanceId; + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * @param bdsInstanceId the value to set + * @return this builder + **/ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + this.__explicitlySet__.add("bdsInstanceId"); + return this; + } + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * @param bdsCapacityReservationId the value to set + * @return this builder + **/ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + /** + * The display name of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private BdsCapacityReservationConfiguration.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState( + BdsCapacityReservationConfiguration.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationConfigurationSummary build() { + BdsCapacityReservationConfigurationSummary model = + new BdsCapacityReservationConfigurationSummary( + this.id, + this.bdsInstanceId, + this.bdsCapacityReservationId, + this.displayName, + this.lifecycleState, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationConfigurationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("bdsInstanceId")) { + this.bdsInstanceId(model.getBdsInstanceId()); + } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation configuration. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsInstanceId") + private final String bdsInstanceId; + + /** + * The OCID of the BDS cluster associated with the BDS capacity reservation. + * @return the value + **/ + public String getBdsInstanceId() { + return bdsInstanceId; + } + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation associated with the BDS cluster. + * @return the value + **/ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + /** + * The display name of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the BDS capacity reservation configuration. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The lifecycle state of the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final BdsCapacityReservationConfiguration.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @return the value + **/ + public BdsCapacityReservationConfiguration.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation configuration was created, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation configuration was updated, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationConfigurationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(", bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationConfigurationSummary)) { + return false; + } + + BdsCapacityReservationConfigurationSummary other = + (BdsCapacityReservationConfigurationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java new file mode 100644 index 00000000000..67c5a4314d3 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsCapacityReservationSummary.java @@ -0,0 +1,515 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Summary of a BDS capacity reservation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BdsCapacityReservationSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BdsCapacityReservationSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "computeCapacityReservations", + "lifecycleState", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public BdsCapacityReservationSummary( + String id, + String displayName, + String compartmentId, + ComputeCapacityReservations computeCapacityReservations, + BdsCapacityReservation.LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.computeCapacityReservations = computeCapacityReservations; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the BDS capacity reservation. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name for the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the compartment that contains the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** + * The lifecycle state of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private BdsCapacityReservation.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(BdsCapacityReservation.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BdsCapacityReservationSummary build() { + BdsCapacityReservationSummary model = + new BdsCapacityReservationSummary( + this.id, + this.displayName, + this.compartmentId, + this.computeCapacityReservations, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BdsCapacityReservationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the BDS capacity reservation. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name for the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the BDS capacity reservation. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** + * The lifecycle state of the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final BdsCapacityReservation.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + * @return the value + **/ + public BdsCapacityReservation.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the BDS capacity reservation was created, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the BDS capacity reservation was updated, shown as an RFC 3339 formatted datetime string. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BdsCapacityReservationSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BdsCapacityReservationSummary)) { + return false; + } + + BdsCapacityReservationSummary other = (BdsCapacityReservationSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java index 28874e532d0..10e07ba0c07 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/BdsInstance.java @@ -34,6 +34,7 @@ public final class BdsInstance extends com.oracle.bmc.http.internal.ExplicitlySe "networkConfig", "clusterDetails", "nodes", + "bdsCapacityReservationConfigurations", "cloudSqlDetails", "createdBy", "timeCreated", @@ -63,6 +64,8 @@ public BdsInstance( NetworkConfig networkConfig, ClusterDetails clusterDetails, java.util.List nodes, + java.util.List + bdsCapacityReservationConfigurations, CloudSqlDetails cloudSqlDetails, String createdBy, java.util.Date timeCreated, @@ -91,6 +94,7 @@ public BdsInstance( this.networkConfig = networkConfig; this.clusterDetails = clusterDetails; this.nodes = nodes; + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; this.cloudSqlDetails = cloudSqlDetails; this.createdBy = createdBy; this.timeCreated = timeCreated; @@ -318,6 +322,25 @@ public Builder nodes(java.util.List nodes) { this.__explicitlySet__.add("nodes"); return this; } + /** + * The list of BDS capacity reservation configurations associated with the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private java.util.List + bdsCapacityReservationConfigurations; + + /** + * The list of BDS capacity reservation configurations associated with the cluster. + * @param bdsCapacityReservationConfigurations the value to set + * @return this builder + **/ + public Builder bdsCapacityReservationConfigurations( + java.util.List + bdsCapacityReservationConfigurations) { + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; + this.__explicitlySet__.add("bdsCapacityReservationConfigurations"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("cloudSqlDetails") private CloudSqlDetails cloudSqlDetails; @@ -544,6 +567,7 @@ public BdsInstance build() { this.networkConfig, this.clusterDetails, this.nodes, + this.bdsCapacityReservationConfigurations, this.cloudSqlDetails, this.createdBy, this.timeCreated, @@ -607,6 +631,10 @@ public Builder copy(BdsInstance model) { if (model.wasPropertyExplicitlySet("nodes")) { this.nodes(model.getNodes()); } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationConfigurations")) { + this.bdsCapacityReservationConfigurations( + model.getBdsCapacityReservationConfigurations()); + } if (model.wasPropertyExplicitlySet("cloudSqlDetails")) { this.cloudSqlDetails(model.getCloudSqlDetails()); } @@ -952,6 +980,22 @@ public java.util.List getNodes() { return nodes; } + /** + * The list of BDS capacity reservation configurations associated with the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private final java.util.List + bdsCapacityReservationConfigurations; + + /** + * The list of BDS capacity reservation configurations associated with the cluster. + * @return the value + **/ + public java.util.List + getBdsCapacityReservationConfigurations() { + return bdsCapacityReservationConfigurations; + } + @com.fasterxml.jackson.annotation.JsonProperty("cloudSqlDetails") private final CloudSqlDetails cloudSqlDetails; @@ -1209,6 +1253,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); sb.append(", clusterDetails=").append(String.valueOf(this.clusterDetails)); sb.append(", nodes=").append(String.valueOf(this.nodes)); + sb.append(", bdsCapacityReservationConfigurations=") + .append(String.valueOf(this.bdsCapacityReservationConfigurations)); sb.append(", cloudSqlDetails=").append(String.valueOf(this.cloudSqlDetails)); sb.append(", createdBy=").append(String.valueOf(this.createdBy)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -1253,6 +1299,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkConfig, other.networkConfig) && java.util.Objects.equals(this.clusterDetails, other.clusterDetails) && java.util.Objects.equals(this.nodes, other.nodes) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurations, + other.bdsCapacityReservationConfigurations) && java.util.Objects.equals(this.cloudSqlDetails, other.cloudSqlDetails) && java.util.Objects.equals(this.createdBy, other.createdBy) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -1314,6 +1363,11 @@ public int hashCode() { (result * PRIME) + (this.clusterDetails == null ? 43 : this.clusterDetails.hashCode()); result = (result * PRIME) + (this.nodes == null ? 43 : this.nodes.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurations == null + ? 43 + : this.bdsCapacityReservationConfigurations.hashCode()); result = (result * PRIME) + (this.cloudSqlDetails == null ? 43 : this.cloudSqlDetails.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java new file mode 100644 index 00000000000..669289c44a7 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ChangeBdsCapacityReservationCompartmentDetails.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details for moving a BDS capacity reservation to a different compartment. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeBdsCapacityReservationCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeBdsCapacityReservationCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeBdsCapacityReservationCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment to move the BDS capacity reservation to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment to move the BDS capacity reservation to. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeBdsCapacityReservationCompartmentDetails build() { + ChangeBdsCapacityReservationCompartmentDetails model = + new ChangeBdsCapacityReservationCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeBdsCapacityReservationCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the compartment to move the BDS capacity reservation to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment to move the BDS capacity reservation to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeBdsCapacityReservationCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBdsCapacityReservationCompartmentDetails)) { + return false; + } + + ChangeBdsCapacityReservationCompartmentDetails other = + (ChangeBdsCapacityReservationCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.java new file mode 100644 index 00000000000..b4ba88fc6b8 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/ComputeCapacityReservations.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.bds.model; + +/** + * Compute capacity reservation ID mappings by domain. For a multi-AD region, domain1, domain2, + * and domain3 correspond to AD1, AD2, and AD3 respectively. For a single-AD region, domain1, + * domain2, and domain3 correspond to FD1, FD2, and FD3 respectively. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ComputeCapacityReservations.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ComputeCapacityReservations + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "domain1ReservationId", + "domain2ReservationId", + "domain3ReservationId" + }) + public ComputeCapacityReservations( + String domain1ReservationId, String domain2ReservationId, String domain3ReservationId) { + super(); + this.domain1ReservationId = domain1ReservationId; + this.domain2ReservationId = domain2ReservationId; + this.domain3ReservationId = domain3ReservationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain1ReservationId") + private String domain1ReservationId; + + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region. + * @param domain1ReservationId the value to set + * @return this builder + **/ + public Builder domain1ReservationId(String domain1ReservationId) { + this.domain1ReservationId = domain1ReservationId; + this.__explicitlySet__.add("domain1ReservationId"); + return this; + } + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain2ReservationId") + private String domain2ReservationId; + + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region. + * @param domain2ReservationId the value to set + * @return this builder + **/ + public Builder domain2ReservationId(String domain2ReservationId) { + this.domain2ReservationId = domain2ReservationId; + this.__explicitlySet__.add("domain2ReservationId"); + return this; + } + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain3ReservationId") + private String domain3ReservationId; + + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region. + * @param domain3ReservationId the value to set + * @return this builder + **/ + public Builder domain3ReservationId(String domain3ReservationId) { + this.domain3ReservationId = domain3ReservationId; + this.__explicitlySet__.add("domain3ReservationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ComputeCapacityReservations build() { + ComputeCapacityReservations model = + new ComputeCapacityReservations( + this.domain1ReservationId, + this.domain2ReservationId, + this.domain3ReservationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ComputeCapacityReservations model) { + if (model.wasPropertyExplicitlySet("domain1ReservationId")) { + this.domain1ReservationId(model.getDomain1ReservationId()); + } + if (model.wasPropertyExplicitlySet("domain2ReservationId")) { + this.domain2ReservationId(model.getDomain2ReservationId()); + } + if (model.wasPropertyExplicitlySet("domain3ReservationId")) { + this.domain3ReservationId(model.getDomain3ReservationId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain1ReservationId") + private final String domain1ReservationId; + + /** + * Capacity reservation OCID corresponding to AD1 for a multi-AD region or FD1 for a single-AD region. + * @return the value + **/ + public String getDomain1ReservationId() { + return domain1ReservationId; + } + + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain2ReservationId") + private final String domain2ReservationId; + + /** + * Capacity reservation OCID corresponding to AD2 for a multi-AD region or FD2 for a single-AD region. + * @return the value + **/ + public String getDomain2ReservationId() { + return domain2ReservationId; + } + + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("domain3ReservationId") + private final String domain3ReservationId; + + /** + * Capacity reservation OCID corresponding to AD3 for a multi-AD region or FD3 for a single-AD region. + * @return the value + **/ + public String getDomain3ReservationId() { + return domain3ReservationId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ComputeCapacityReservations("); + sb.append("super=").append(super.toString()); + sb.append("domain1ReservationId=").append(String.valueOf(this.domain1ReservationId)); + sb.append(", domain2ReservationId=").append(String.valueOf(this.domain2ReservationId)); + sb.append(", domain3ReservationId=").append(String.valueOf(this.domain3ReservationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ComputeCapacityReservations)) { + return false; + } + + ComputeCapacityReservations other = (ComputeCapacityReservations) o; + return java.util.Objects.equals(this.domain1ReservationId, other.domain1ReservationId) + && java.util.Objects.equals(this.domain2ReservationId, other.domain2ReservationId) + && java.util.Objects.equals(this.domain3ReservationId, other.domain3ReservationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.domain1ReservationId == null + ? 43 + : this.domain1ReservationId.hashCode()); + result = + (result * PRIME) + + (this.domain2ReservationId == null + ? 43 + : this.domain2ReservationId.hashCode()); + result = + (result * PRIME) + + (this.domain3ReservationId == null + ? 43 + : this.domain3ReservationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java new file mode 100644 index 00000000000..1009855c34d --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationConfigurationDetails.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details for associating a BDS capacity reservation with a BDS cluster. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBdsCapacityReservationConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateBdsCapacityReservationConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "bdsCapacityReservationId"}) + public CreateBdsCapacityReservationConfigurationDetails( + String displayName, String bdsCapacityReservationId) { + super(); + this.displayName = displayName; + this.bdsCapacityReservationId = bdsCapacityReservationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name for the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * @param bdsCapacityReservationId the value to set + * @return this builder + **/ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBdsCapacityReservationConfigurationDetails build() { + CreateBdsCapacityReservationConfigurationDetails model = + new CreateBdsCapacityReservationConfigurationDetails( + this.displayName, this.bdsCapacityReservationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBdsCapacityReservationConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name for the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * @return the value + **/ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBdsCapacityReservationConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationConfigurationDetails)) { + return false; + } + + CreateBdsCapacityReservationConfigurationDetails other = + (CreateBdsCapacityReservationConfigurationDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java new file mode 100644 index 00000000000..5c9de248274 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsCapacityReservationDetails.java @@ -0,0 +1,313 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details for creating a BDS capacity reservation. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBdsCapacityReservationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateBdsCapacityReservationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "compartmentId", + "computeCapacityReservations", + "freeformTags", + "definedTags" + }) + public CreateBdsCapacityReservationDetails( + String displayName, + String compartmentId, + ComputeCapacityReservations computeCapacityReservations, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.compartmentId = compartmentId; + this.computeCapacityReservations = computeCapacityReservations; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name for the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the compartment in which to create the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment in which to create the BDS capacity reservation. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBdsCapacityReservationDetails build() { + CreateBdsCapacityReservationDetails model = + new CreateBdsCapacityReservationDetails( + this.displayName, + this.compartmentId, + this.computeCapacityReservations, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBdsCapacityReservationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name for the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the compartment in which to create the BDS capacity reservation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment in which to create the BDS capacity reservation. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; + + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; + } + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBdsCapacityReservationDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationDetails)) { + return false; + } + + CreateBdsCapacityReservationDetails other = (CreateBdsCapacityReservationDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservations == null + ? 43 + : this.computeCapacityReservations.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java index 9160ab52ccb..0029f6000e1 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/CreateBdsInstanceDetails.java @@ -35,6 +35,8 @@ public CreateBdsInstanceDetails( NetworkConfig networkConfig, String bootstrapScriptUrl, java.util.List nodes, + java.util.List + bdsCapacityReservationConfigurations, String kerberosRealmName, java.util.Map freeformTags, java.util.Map> definedTags, @@ -55,6 +57,7 @@ public CreateBdsInstanceDetails( this.networkConfig = networkConfig; this.bootstrapScriptUrl = bootstrapScriptUrl; this.nodes = nodes; + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; this.kerberosRealmName = kerberosRealmName; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -78,6 +81,7 @@ public CreateBdsInstanceDetails( "networkConfig", "bootstrapScriptUrl", "nodes", + "bdsCapacityReservationConfigurations", "kerberosRealmName", "freeformTags", "definedTags", @@ -98,6 +102,8 @@ public CreateBdsInstanceDetails( NetworkConfig networkConfig, String bootstrapScriptUrl, java.util.List nodes, + java.util.List + bdsCapacityReservationConfigurations, String kerberosRealmName, java.util.Map freeformTags, java.util.Map> definedTags, @@ -117,6 +123,7 @@ public CreateBdsInstanceDetails( this.networkConfig = networkConfig; this.bootstrapScriptUrl = bootstrapScriptUrl; this.nodes = nodes; + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; this.kerberosRealmName = kerberosRealmName; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -320,6 +327,25 @@ public Builder nodes(java.util.List nodes) { this.__explicitlySet__.add("nodes"); return this; } + /** + * Optional BDS capacity reservation configurations to associate with the cluster during creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private java.util.List + bdsCapacityReservationConfigurations; + + /** + * Optional BDS capacity reservation configurations to associate with the cluster during creation. + * @param bdsCapacityReservationConfigurations the value to set + * @return this builder + **/ + public Builder bdsCapacityReservationConfigurations( + java.util.List + bdsCapacityReservationConfigurations) { + this.bdsCapacityReservationConfigurations = bdsCapacityReservationConfigurations; + this.__explicitlySet__.add("bdsCapacityReservationConfigurations"); + return this; + } /** * The user-defined kerberos realm name. **/ @@ -437,6 +463,7 @@ public CreateBdsInstanceDetails build() { this.networkConfig, this.bootstrapScriptUrl, this.nodes, + this.bdsCapacityReservationConfigurations, this.kerberosRealmName, this.freeformTags, this.definedTags, @@ -487,6 +514,10 @@ public Builder copy(CreateBdsInstanceDetails model) { if (model.wasPropertyExplicitlySet("nodes")) { this.nodes(model.getNodes()); } + if (model.wasPropertyExplicitlySet("bdsCapacityReservationConfigurations")) { + this.bdsCapacityReservationConfigurations( + model.getBdsCapacityReservationConfigurations()); + } if (model.wasPropertyExplicitlySet("kerberosRealmName")) { this.kerberosRealmName(model.getKerberosRealmName()); } @@ -693,6 +724,22 @@ public java.util.List getNodes() { return nodes; } + /** + * Optional BDS capacity reservation configurations to associate with the cluster during creation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationConfigurations") + private final java.util.List + bdsCapacityReservationConfigurations; + + /** + * Optional BDS capacity reservation configurations to associate with the cluster during creation. + * @return the value + **/ + public java.util.List + getBdsCapacityReservationConfigurations() { + return bdsCapacityReservationConfigurations; + } + /** * The user-defined kerberos realm name. **/ @@ -804,6 +851,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); sb.append(", bootstrapScriptUrl=").append(String.valueOf(this.bootstrapScriptUrl)); sb.append(", nodes=").append(String.valueOf(this.nodes)); + sb.append(", bdsCapacityReservationConfigurations=") + .append(String.valueOf(this.bdsCapacityReservationConfigurations)); sb.append(", kerberosRealmName=").append(String.valueOf(this.kerberosRealmName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -837,6 +886,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkConfig, other.networkConfig) && java.util.Objects.equals(this.bootstrapScriptUrl, other.bootstrapScriptUrl) && java.util.Objects.equals(this.nodes, other.nodes) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurations, + other.bdsCapacityReservationConfigurations) && java.util.Objects.equals(this.kerberosRealmName, other.kerberosRealmName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -885,6 +937,11 @@ public int hashCode() { ? 43 : this.bootstrapScriptUrl.hashCode()); result = (result * PRIME) + (this.nodes == null ? 43 : this.nodes.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurations == null + ? 43 + : this.bdsCapacityReservationConfigurations.hashCode()); result = (result * PRIME) + (this.kerberosRealmName == null ? 43 : this.kerberosRealmName.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java index fb81d24a54c..42941d335bf 100644 --- a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/Node.java @@ -33,6 +33,7 @@ public final class Node extends com.oracle.bmc.http.internal.ExplicitlySetBmcMod "sshFingerprint", "availabilityDomain", "faultDomain", + "computeCapacityReservationId", "timeCreated", "timeUpdated", "ocpus", @@ -61,6 +62,7 @@ public Node( String sshFingerprint, String availabilityDomain, String faultDomain, + String computeCapacityReservationId, java.util.Date timeCreated, java.util.Date timeUpdated, Integer ocpus, @@ -88,6 +90,7 @@ public Node( this.sshFingerprint = sshFingerprint; this.availabilityDomain = availabilityDomain; this.faultDomain = faultDomain; + this.computeCapacityReservationId = computeCapacityReservationId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.ocpus = ocpus; @@ -314,6 +317,22 @@ public Builder faultDomain(String faultDomain) { this.__explicitlySet__.add("faultDomain"); return this; } + /** + * The OCID of the Compute capacity reservation used by this node. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservationId") + private String computeCapacityReservationId; + + /** + * The OCID of the Compute capacity reservation used by this node. + * @param computeCapacityReservationId the value to set + * @return this builder + **/ + public Builder computeCapacityReservationId(String computeCapacityReservationId) { + this.computeCapacityReservationId = computeCapacityReservationId; + this.__explicitlySet__.add("computeCapacityReservationId"); + return this; + } /** * The time the node was created, shown as an RFC 3339 formatted datetime string. **/ @@ -542,6 +561,7 @@ public Node build() { this.sshFingerprint, this.availabilityDomain, this.faultDomain, + this.computeCapacityReservationId, this.timeCreated, this.timeUpdated, this.ocpus, @@ -602,6 +622,9 @@ public Builder copy(Node model) { if (model.wasPropertyExplicitlySet("faultDomain")) { this.faultDomain(model.getFaultDomain()); } + if (model.wasPropertyExplicitlySet("computeCapacityReservationId")) { + this.computeCapacityReservationId(model.getComputeCapacityReservationId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -948,6 +971,20 @@ public String getFaultDomain() { return faultDomain; } + /** + * The OCID of the Compute capacity reservation used by this node. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservationId") + private final String computeCapacityReservationId; + + /** + * The OCID of the Compute capacity reservation used by this node. + * @return the value + **/ + public String getComputeCapacityReservationId() { + return computeCapacityReservationId; + } + /** * The time the node was created, shown as an RFC 3339 formatted datetime string. **/ @@ -1157,6 +1194,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sshFingerprint=").append(String.valueOf(this.sshFingerprint)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); + sb.append(", computeCapacityReservationId=") + .append(String.valueOf(this.computeCapacityReservationId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", ocpus=").append(String.valueOf(this.ocpus)); @@ -1200,6 +1239,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.sshFingerprint, other.sshFingerprint) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.faultDomain, other.faultDomain) + && java.util.Objects.equals( + this.computeCapacityReservationId, other.computeCapacityReservationId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.ocpus, other.ocpus) @@ -1248,6 +1289,11 @@ public int hashCode() { ? 43 : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); + result = + (result * PRIME) + + (this.computeCapacityReservationId == null + ? 43 + : this.computeCapacityReservationId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.ocpus == null ? 43 : this.ocpus.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java new file mode 100644 index 00000000000..47db8471230 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationConfigurationDetails.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.model; + +/** + * Details for updating a BDS capacity reservation configuration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateBdsCapacityReservationConfigurationDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateBdsCapacityReservationConfigurationDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"bdsCapacityReservationId", "displayName"}) + public UpdateBdsCapacityReservationConfigurationDetails( + String bdsCapacityReservationId, String displayName) { + super(); + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.displayName = displayName; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * @param bdsCapacityReservationId the value to set + * @return this builder + **/ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + this.__explicitlySet__.add("bdsCapacityReservationId"); + return this; + } + /** + * A user-friendly name for the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateBdsCapacityReservationConfigurationDetails build() { + UpdateBdsCapacityReservationConfigurationDetails model = + new UpdateBdsCapacityReservationConfigurationDetails( + this.bdsCapacityReservationId, this.displayName); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateBdsCapacityReservationConfigurationDetails model) { + if (model.wasPropertyExplicitlySet("bdsCapacityReservationId")) { + this.bdsCapacityReservationId(model.getBdsCapacityReservationId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bdsCapacityReservationId") + private final String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation to associate with the BDS cluster. + * @return the value + **/ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + + /** + * A user-friendly name for the BDS capacity reservation configuration. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name for the BDS capacity reservation configuration. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateBdsCapacityReservationConfigurationDetails("); + sb.append("super=").append(super.toString()); + sb.append("bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationConfigurationDetails)) { + return false; + } + + UpdateBdsCapacityReservationConfigurationDetails other = + (UpdateBdsCapacityReservationConfigurationDetails) o; + return java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.displayName, other.displayName) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.java index 2cad304e985..f8d435c2713 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/model/UpdateBdsCapacityReservationDetails.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.bds.model; /** - * The details of Globally distributed database to be updated. + * Details for updating a BDS capacity reservation. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,28 +14,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDistributedDatabaseDetails.Builder.class + builder = UpdateBdsCapacityReservationDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateDistributedDatabaseDetails +public final class UpdateBdsCapacityReservationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "displayName", - "notificationTopicIds", + "computeCapacityReservations", "freeformTags", "definedTags" }) - public UpdateDistributedDatabaseDetails( + public UpdateBdsCapacityReservationDetails( String displayName, - java.util.List notificationTopicIds, + ComputeCapacityReservations computeCapacityReservations, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; - this.notificationTopicIds = notificationTopicIds; + this.computeCapacityReservations = computeCapacityReservations; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -43,13 +43,13 @@ public UpdateDistributedDatabaseDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Display name of the Globally distributed database. + * A user-friendly name for the BDS capacity reservation. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display name of the Globally distributed database. + * A user-friendly name for the BDS capacity reservation. * @param displayName the value to set * @return this builder **/ @@ -58,37 +58,27 @@ 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"); + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private ComputeCapacityReservations computeCapacityReservations; + + public Builder computeCapacityReservations( + ComputeCapacityReservations computeCapacityReservations) { + this.computeCapacityReservations = computeCapacityReservations; + this.__explicitlySet__.add("computeCapacityReservations"); return this; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} * * @param freeformTags the value to set * @return this builder @@ -100,7 +90,7 @@ public Builder freeformTags(java.util.Map freeformTags) { } /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") @@ -108,7 +98,7 @@ public Builder freeformTags(java.util.Map freeformTags) { /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} * * @param definedTags the value to set * @return this builder @@ -123,11 +113,11 @@ public Builder definedTags( @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateDistributedDatabaseDetails build() { - UpdateDistributedDatabaseDetails model = - new UpdateDistributedDatabaseDetails( + public UpdateBdsCapacityReservationDetails build() { + UpdateBdsCapacityReservationDetails model = + new UpdateBdsCapacityReservationDetails( this.displayName, - this.notificationTopicIds, + this.computeCapacityReservations, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -137,12 +127,12 @@ public UpdateDistributedDatabaseDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDistributedDatabaseDetails model) { + public Builder copy(UpdateBdsCapacityReservationDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); + if (model.wasPropertyExplicitlySet("computeCapacityReservations")) { + this.computeCapacityReservations(model.getComputeCapacityReservations()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -166,48 +156,37 @@ public Builder toBuilder() { } /** - * Display name of the Globally distributed database. + * A user-friendly name for the BDS capacity reservation. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display name of the Globally distributed database. + * A user-friendly name for the BDS capacity reservation. * @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; + @com.fasterxml.jackson.annotation.JsonProperty("computeCapacityReservations") + private final ComputeCapacityReservations computeCapacityReservations; - /** - * 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; + public ComputeCapacityReservations getComputeCapacityReservations() { + return computeCapacityReservations; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} * **/ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} + * Simple key-value pair that is applied without any predefined name, type, or scope. + * Exists for cross-compatibility only. For example, {@code {"bar-key": "value"}} * * @return the value **/ @@ -217,7 +196,7 @@ 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"}}} + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") @@ -225,7 +204,7 @@ 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"}}} + * For example, {@code {"foo-namespace": {"bar-key": "value"}}} * * @return the value **/ @@ -245,10 +224,11 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDistributedDatabaseDetails("); + sb.append("UpdateBdsCapacityReservationDetails("); sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", computeCapacityReservations=") + .append(String.valueOf(this.computeCapacityReservations)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -260,13 +240,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabaseDetails)) { + if (!(o instanceof UpdateBdsCapacityReservationDetails)) { return false; } - UpdateDistributedDatabaseDetails other = (UpdateDistributedDatabaseDetails) o; + UpdateBdsCapacityReservationDetails other = (UpdateBdsCapacityReservationDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals( + this.computeCapacityReservations, other.computeCapacityReservations) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -279,9 +260,9 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) - + (this.notificationTopicIds == null + + (this.computeCapacityReservations == null ? 43 - : this.notificationTopicIds.hashCode()); + : this.computeCapacityReservations.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java index 2e2abe2871c..0577cb5e2e0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ActivateBdsCapacityReservationConfigurationRequest.java @@ -2,46 +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.bds.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; /** - * Example: Click here to see how to use ConfigureDistributedDatabaseShardingRequest. + * Example: Click here to see how to use ActivateBdsCapacityReservationConfigurationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseShardingRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateBdsCapacityReservationConfigurationRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier. + * The OCID of the cluster. */ - private String distributedDatabaseId; + private String bdsInstanceId; /** - * Globally distributed database identifier. + * The OCID of the cluster. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getBdsInstanceId() { + return bdsInstanceId; } /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * + * The OCID of the BDS capacity reservation configuration. */ - private Boolean isRebalanceRequired; + private String bdsCapacityReservationConfigurationId; /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * + * The OCID of the BDS capacity reservation configuration. + */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. */ - public Boolean getIsRebalanceRequired() { - return isRebalanceRequired; + 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 + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -50,8 +57,8 @@ public Boolean getIsRebalanceRequired() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -59,17 +66,6 @@ public Boolean getIsRebalanceRequired() { 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 @@ -94,49 +90,61 @@ public String getIfMatch() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ConfigureDistributedDatabaseShardingRequest, java.lang.Void> { + ActivateBdsCapacityReservationConfigurationRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The OCID of the cluster. */ - private String distributedDatabaseId = null; + private String bdsInstanceId = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The OCID of the cluster. + * @param bdsInstanceId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; return this; } /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * + * The OCID of the BDS capacity reservation configuration. */ - private Boolean isRebalanceRequired = null; + private String bdsCapacityReservationConfigurationId = 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 + * The OCID of the BDS capacity reservation configuration. + * @param bdsCapacityReservationConfigurationId the value to set * @return this builder instance */ - public Builder isRebalanceRequired(Boolean isRebalanceRequired) { - this.isRebalanceRequired = isRebalanceRequired; + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -145,8 +153,8 @@ public Builder isRebalanceRequired(Boolean isRebalanceRequired) { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -158,21 +166,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; - } - /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -225,11 +218,11 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - isRebalanceRequired(o.getIsRebalanceRequired()); - opcRetryToken(o.getOpcRetryToken()); + public Builder copy(ActivateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -237,40 +230,41 @@ public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { } /** - * Build the instance of ConfigureDistributedDatabaseShardingRequest as configured by this builder + * Build the instance of ActivateBdsCapacityReservationConfigurationRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ConfigureDistributedDatabaseShardingRequest + * @return instance of ActivateBdsCapacityReservationConfigurationRequest */ - public ConfigureDistributedDatabaseShardingRequest build() { - ConfigureDistributedDatabaseShardingRequest request = buildWithoutInvocationCallback(); + public ActivateBdsCapacityReservationConfigurationRequest build() { + ActivateBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ConfigureDistributedDatabaseShardingRequest as configured by this builder + * Build the instance of ActivateBdsCapacityReservationConfigurationRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ConfigureDistributedDatabaseShardingRequest + * @return instance of ActivateBdsCapacityReservationConfigurationRequest */ - public ConfigureDistributedDatabaseShardingRequest buildWithoutInvocationCallback() { - ConfigureDistributedDatabaseShardingRequest request = - new ConfigureDistributedDatabaseShardingRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.isRebalanceRequired = isRebalanceRequired; - request.opcRetryToken = opcRetryToken; + public ActivateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + ActivateBdsCapacityReservationConfigurationRequest request = + new ActivateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; return request; - // new ConfigureDistributedDatabaseShardingRequest(distributedDatabaseId, isRebalanceRequired, opcRetryToken, opcRequestId, ifMatch); + // new ActivateBdsCapacityReservationConfigurationRequest(bdsInstanceId, bdsCapacityReservationConfigurationId, opcRequestId, opcRetryToken, ifMatch); } } @@ -280,10 +274,10 @@ public ConfigureDistributedDatabaseShardingRequest buildWithoutInvocationCallbac */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .isRebalanceRequired(isRebalanceRequired) - .opcRetryToken(opcRetryToken) + .bdsInstanceId(bdsInstanceId) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch); } @@ -300,10 +294,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(",isRebalanceRequired=").append(String.valueOf(this.isRebalanceRequired)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); return sb.toString(); @@ -314,17 +309,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedDatabaseShardingRequest)) { + if (!(o instanceof ActivateBdsCapacityReservationConfigurationRequest)) { return false; } - ConfigureDistributedDatabaseShardingRequest other = - (ConfigureDistributedDatabaseShardingRequest) o; + ActivateBdsCapacityReservationConfigurationRequest other = + (ActivateBdsCapacityReservationConfigurationRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.isRebalanceRequired, other.isRebalanceRequired) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @@ -334,18 +331,16 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); result = (result * PRIME) - + (this.isRebalanceRequired == null + + (this.bdsCapacityReservationConfigurationId == null ? 43 - : this.isRebalanceRequired.hashCode()); + : this.bdsCapacityReservationConfigurationId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.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/ChangeDistributedDatabaseCompartmentRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java similarity index 60% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java index 7d93eac4f30..54890c34676 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ChangeBdsCapacityReservationCompartmentRequest.java @@ -2,41 +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.bds.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; /** - * Example: Click here to see how to use ChangeDistributedDatabaseCompartmentRequest. + * Example: Click here to see how to use ChangeBdsCapacityReservationCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDatabaseCompartmentRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ChangeBdsCapacityReservationCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDatabaseCompartmentDetails> { + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails> { /** - * Request to move the Globally distributed database to a different compartment. + * The OCID of the BDS capacity reservation. */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails - changeDistributedDatabaseCompartmentDetails; + private String bdsCapacityReservationId; /** - * Request to move the Globally distributed database to a different compartment. + * The OCID of the BDS capacity reservation. */ - public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails - getChangeDistributedDatabaseCompartmentDetails() { - return changeDistributedDatabaseCompartmentDetails; + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; } /** - * Globally distributed database identifier. + * Details for moving the BDS capacity reservation to a different compartment. */ - private String distributedDatabaseId; + private com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + changeBdsCapacityReservationCompartmentDetails; /** - * Globally distributed database identifier. + * Details for moving the BDS capacity reservation to a different compartment. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + getChangeBdsCapacityReservationCompartmentDetails() { + return changeBdsCapacityReservationCompartmentDetails; } /** * The client request ID for tracing. @@ -72,8 +71,8 @@ public String getIfMatch() { } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -82,8 +81,8 @@ public String getIfMatch() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -98,53 +97,49 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDatabaseCompartmentDetails - getBody$() { - return changeDistributedDatabaseCompartmentDetails; + public com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails getBody$() { + return changeBdsCapacityReservationCompartmentDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeDistributedDatabaseCompartmentRequest, - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDatabaseCompartmentDetails> { + ChangeBdsCapacityReservationCompartmentRequest, + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Request to move the Globally distributed database to a different compartment. + * The OCID of the BDS capacity reservation. */ - private com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDatabaseCompartmentDetails - changeDistributedDatabaseCompartmentDetails = null; + private String bdsCapacityReservationId = null; /** - * Request to move the Globally distributed database to a different compartment. - * @param changeDistributedDatabaseCompartmentDetails the value to set + * The OCID of the BDS capacity reservation. + * @param bdsCapacityReservationId the value to set * @return this builder instance */ - public Builder changeDistributedDatabaseCompartmentDetails( - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDatabaseCompartmentDetails - changeDistributedDatabaseCompartmentDetails) { - this.changeDistributedDatabaseCompartmentDetails = - changeDistributedDatabaseCompartmentDetails; + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; return this; } /** - * Globally distributed database identifier. + * Details for moving the BDS capacity reservation to a different compartment. */ - private String distributedDatabaseId = null; + private com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + changeBdsCapacityReservationCompartmentDetails = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * Details for moving the BDS capacity reservation to a different compartment. + * @param changeBdsCapacityReservationCompartmentDetails the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder changeBdsCapacityReservationCompartmentDetails( + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails + changeBdsCapacityReservationCompartmentDetails) { + this.changeBdsCapacityReservationCompartmentDetails = + changeBdsCapacityReservationCompartmentDetails; return this; } @@ -190,8 +185,8 @@ 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 + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -200,8 +195,8 @@ 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 + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -240,10 +235,10 @@ public Builder retryConfiguration( * 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()); + public Builder copy(ChangeBdsCapacityReservationCompartmentRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + changeBdsCapacityReservationCompartmentDetails( + o.getChangeBdsCapacityReservationCompartmentDetails()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); @@ -253,17 +248,18 @@ public Builder copy(ChangeDistributedDatabaseCompartmentRequest o) { } /** - * Build the instance of ChangeDistributedDatabaseCompartmentRequest as configured by this builder + * Build the instance of ChangeBdsCapacityReservationCompartmentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ChangeDistributedDatabaseCompartmentRequest + * @return instance of ChangeBdsCapacityReservationCompartmentRequest */ - public ChangeDistributedDatabaseCompartmentRequest build() { - ChangeDistributedDatabaseCompartmentRequest request = buildWithoutInvocationCallback(); + public ChangeBdsCapacityReservationCompartmentRequest build() { + ChangeBdsCapacityReservationCompartmentRequest request = + buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -276,32 +272,30 @@ public ChangeDistributedDatabaseCompartmentRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDatabaseCompartmentDetails - body) { - changeDistributedDatabaseCompartmentDetails(body); + com.oracle.bmc.bds.model.ChangeBdsCapacityReservationCompartmentDetails body) { + changeBdsCapacityReservationCompartmentDetails(body); return this; } /** - * Build the instance of ChangeDistributedDatabaseCompartmentRequest as configured by this builder + * Build the instance of ChangeBdsCapacityReservationCompartmentRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ChangeDistributedDatabaseCompartmentRequest + * @return instance of ChangeBdsCapacityReservationCompartmentRequest */ - public ChangeDistributedDatabaseCompartmentRequest buildWithoutInvocationCallback() { - ChangeDistributedDatabaseCompartmentRequest request = - new ChangeDistributedDatabaseCompartmentRequest(); - request.changeDistributedDatabaseCompartmentDetails = - changeDistributedDatabaseCompartmentDetails; - request.distributedDatabaseId = distributedDatabaseId; + public ChangeBdsCapacityReservationCompartmentRequest buildWithoutInvocationCallback() { + ChangeBdsCapacityReservationCompartmentRequest request = + new ChangeBdsCapacityReservationCompartmentRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.changeBdsCapacityReservationCompartmentDetails = + changeBdsCapacityReservationCompartmentDetails; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; return request; - // new ChangeDistributedDatabaseCompartmentRequest(changeDistributedDatabaseCompartmentDetails, distributedDatabaseId, opcRequestId, ifMatch, opcRetryToken); + // new ChangeBdsCapacityReservationCompartmentRequest(bdsCapacityReservationId, changeBdsCapacityReservationCompartmentDetails, opcRequestId, ifMatch, opcRetryToken); } } @@ -311,9 +305,9 @@ public ChangeDistributedDatabaseCompartmentRequest buildWithoutInvocationCallbac */ public Builder toBuilder() { return new Builder() - .changeDistributedDatabaseCompartmentDetails( - changeDistributedDatabaseCompartmentDetails) - .distributedDatabaseId(distributedDatabaseId) + .bdsCapacityReservationId(bdsCapacityReservationId) + .changeBdsCapacityReservationCompartmentDetails( + changeBdsCapacityReservationCompartmentDetails) .opcRequestId(opcRequestId) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); @@ -332,9 +326,10 @@ 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(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",changeBdsCapacityReservationCompartmentDetails=") + .append(String.valueOf(this.changeBdsCapacityReservationCompartmentDetails)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); @@ -347,17 +342,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDatabaseCompartmentRequest)) { + if (!(o instanceof ChangeBdsCapacityReservationCompartmentRequest)) { return false; } - ChangeDistributedDatabaseCompartmentRequest other = - (ChangeDistributedDatabaseCompartmentRequest) o; + ChangeBdsCapacityReservationCompartmentRequest other = + (ChangeBdsCapacityReservationCompartmentRequest) o; return super.equals(o) && java.util.Objects.equals( - this.changeDistributedDatabaseCompartmentDetails, - other.changeDistributedDatabaseCompartmentDetails) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals( + this.changeBdsCapacityReservationCompartmentDetails, + other.changeBdsCapacityReservationCompartmentDetails) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); @@ -369,14 +365,14 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.changeDistributedDatabaseCompartmentDetails == null + + (this.bdsCapacityReservationId == null ? 43 - : this.changeDistributedDatabaseCompartmentDetails.hashCode()); + : this.bdsCapacityReservationId.hashCode()); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.changeBdsCapacityReservationCompartmentDetails == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.changeBdsCapacityReservationCompartmentDetails.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-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..5e943f45c31 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationConfigurationRequest.java @@ -0,0 +1,327 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use CreateBdsCapacityReservationConfigurationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails> { + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId; + + /** + * The OCID of the cluster. + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * Details for creating the BDS capacity reservation configuration. + */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + createBdsCapacityReservationConfigurationDetails; + + /** + * Details for creating the BDS capacity reservation configuration. + */ + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + getCreateBdsCapacityReservationConfigurationDetails() { + return createBdsCapacityReservationConfigurationDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails getBody$() { + return createBdsCapacityReservationConfigurationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBdsCapacityReservationConfigurationRequest, + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * Details for creating the BDS capacity reservation configuration. + */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + createBdsCapacityReservationConfigurationDetails = null; + + /** + * Details for creating the BDS capacity reservation configuration. + * @param createBdsCapacityReservationConfigurationDetails the value to set + * @return this builder instance + */ + public Builder createBdsCapacityReservationConfigurationDetails( + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails + createBdsCapacityReservationConfigurationDetails) { + this.createBdsCapacityReservationConfigurationDetails = + createBdsCapacityReservationConfigurationDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + createBdsCapacityReservationConfigurationDetails( + o.getCreateBdsCapacityReservationConfigurationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationConfigurationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateBdsCapacityReservationConfigurationRequest + */ + public CreateBdsCapacityReservationConfigurationRequest build() { + CreateBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.bds.model.CreateBdsCapacityReservationConfigurationDetails body) { + createBdsCapacityReservationConfigurationDetails(body); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationConfigurationRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateBdsCapacityReservationConfigurationRequest + */ + public CreateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + CreateBdsCapacityReservationConfigurationRequest request = + new CreateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.createBdsCapacityReservationConfigurationDetails = + createBdsCapacityReservationConfigurationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateBdsCapacityReservationConfigurationRequest(bdsInstanceId, createBdsCapacityReservationConfigurationDetails, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsInstanceId(bdsInstanceId) + .createBdsCapacityReservationConfigurationDetails( + createBdsCapacityReservationConfigurationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",createBdsCapacityReservationConfigurationDetails=") + .append(String.valueOf(this.createBdsCapacityReservationConfigurationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationConfigurationRequest)) { + return false; + } + + CreateBdsCapacityReservationConfigurationRequest other = + (CreateBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.createBdsCapacityReservationConfigurationDetails, + other.createBdsCapacityReservationConfigurationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.createBdsCapacityReservationConfigurationDetails == null + ? 43 + : this.createBdsCapacityReservationConfigurationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..7a276022a8f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/CreateBdsCapacityReservationRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use CreateBdsCapacityReservationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails> { + + /** + * Details for the new BDS capacity reservation. + */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + createBdsCapacityReservationDetails; + + /** + * Details for the new BDS capacity reservation. + */ + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + getCreateBdsCapacityReservationDetails() { + return createBdsCapacityReservationDetails; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails getBody$() { + return createBdsCapacityReservationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBdsCapacityReservationRequest, + com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new BDS capacity reservation. + */ + private com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + createBdsCapacityReservationDetails = null; + + /** + * Details for the new BDS capacity reservation. + * @param createBdsCapacityReservationDetails the value to set + * @return this builder instance + */ + public Builder createBdsCapacityReservationDetails( + com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails + createBdsCapacityReservationDetails) { + this.createBdsCapacityReservationDetails = createBdsCapacityReservationDetails; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBdsCapacityReservationRequest o) { + createBdsCapacityReservationDetails(o.getCreateBdsCapacityReservationDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateBdsCapacityReservationRequest + */ + public CreateBdsCapacityReservationRequest build() { + CreateBdsCapacityReservationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.bds.model.CreateBdsCapacityReservationDetails body) { + createBdsCapacityReservationDetails(body); + return this; + } + + /** + * Build the instance of CreateBdsCapacityReservationRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateBdsCapacityReservationRequest + */ + public CreateBdsCapacityReservationRequest buildWithoutInvocationCallback() { + CreateBdsCapacityReservationRequest request = new CreateBdsCapacityReservationRequest(); + request.createBdsCapacityReservationDetails = createBdsCapacityReservationDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateBdsCapacityReservationRequest(createBdsCapacityReservationDetails, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createBdsCapacityReservationDetails(createBdsCapacityReservationDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createBdsCapacityReservationDetails=") + .append(String.valueOf(this.createBdsCapacityReservationDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationRequest)) { + return false; + } + + CreateBdsCapacityReservationRequest other = (CreateBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createBdsCapacityReservationDetails, + other.createBdsCapacityReservationDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createBdsCapacityReservationDetails == null + ? 43 + : this.createBdsCapacityReservationDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java index 46fe040ff9b..005b3b79718 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeactivateBdsCapacityReservationConfigurationRequest.java @@ -2,39 +2,37 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.bds.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; /** - * Example: Click here to see how to use RecreateFailedDistributedAutonomousDatabaseResourceRequest. + * Example: Click here to see how to use DeactivateBdsCapacityReservationConfigurationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RecreateFailedDistributedAutonomousDatabaseResourceRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateBdsCapacityReservationConfigurationRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed autonomous database identifier. + * The OCID of the cluster. */ - private String distributedAutonomousDatabaseId; + private String bdsInstanceId; /** - * Globally distributed autonomous database identifier. + * The OCID of the cluster. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + public String getBdsInstanceId() { + return bdsInstanceId; } /** - * Specify the name of the shard, catalog, or GSM. - * + * The OCID of the BDS capacity reservation configuration. */ - private String resourceName; + private String bdsCapacityReservationConfigurationId; /** - * Specify the name of the shard, catalog, or GSM. - * + * The OCID of the BDS capacity reservation configuration. */ - public String getResourceName() { - return resourceName; + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; } /** * The client request ID for tracing. @@ -47,6 +45,27 @@ public String getResourceName() { 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 @@ -68,64 +87,42 @@ 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. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, java.lang.Void> { + DeactivateBdsCapacityReservationConfigurationRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed autonomous database identifier. + * The OCID of the cluster. */ - private String distributedAutonomousDatabaseId = null; + private String bdsInstanceId = null; /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set + * The OCID of the cluster. + * @param bdsInstanceId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; return this; } /** - * Specify the name of the shard, catalog, or GSM. - * + * The OCID of the BDS capacity reservation configuration. */ - private String resourceName = null; + private String bdsCapacityReservationConfigurationId = null; /** - * Specify the name of the shard, catalog, or GSM. - * - * @param resourceName the value to set + * The OCID of the BDS capacity reservation configuration. + * @param bdsCapacityReservationConfigurationId the value to set * @return this builder instance */ - public Builder resourceName(String resourceName) { - this.resourceName = resourceName; + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; return this; } @@ -144,6 +141,31 @@ public Builder opcRequestId(String 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 @@ -169,31 +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. * @param invocationCallback the invocation callback to be set for the request @@ -221,29 +218,29 @@ public Builder retryConfiguration( * 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()); + public Builder copy(DeactivateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of RecreateFailedDistributedAutonomousDatabaseResourceRequest as configured by this builder + * Build the instance of DeactivateBdsCapacityReservationConfigurationRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of RecreateFailedDistributedAutonomousDatabaseResourceRequest + * @return instance of DeactivateBdsCapacityReservationConfigurationRequest */ - public RecreateFailedDistributedAutonomousDatabaseResourceRequest build() { - RecreateFailedDistributedAutonomousDatabaseResourceRequest request = + public DeactivateBdsCapacityReservationConfigurationRequest build() { + DeactivateBdsCapacityReservationConfigurationRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); @@ -251,24 +248,24 @@ public RecreateFailedDistributedAutonomousDatabaseResourceRequest build() { } /** - * Build the instance of RecreateFailedDistributedAutonomousDatabaseResourceRequest as configured by this builder + * Build the instance of DeactivateBdsCapacityReservationConfigurationRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of RecreateFailedDistributedAutonomousDatabaseResourceRequest + * @return instance of DeactivateBdsCapacityReservationConfigurationRequest */ - public RecreateFailedDistributedAutonomousDatabaseResourceRequest + public DeactivateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { - RecreateFailedDistributedAutonomousDatabaseResourceRequest request = - new RecreateFailedDistributedAutonomousDatabaseResourceRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.resourceName = resourceName; + DeactivateBdsCapacityReservationConfigurationRequest request = + new DeactivateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; return request; - // new RecreateFailedDistributedAutonomousDatabaseResourceRequest(distributedAutonomousDatabaseId, resourceName, opcRequestId, ifMatch, opcRetryToken); + // new DeactivateBdsCapacityReservationConfigurationRequest(bdsInstanceId, bdsCapacityReservationConfigurationId, opcRequestId, opcRetryToken, ifMatch); } } @@ -278,11 +275,11 @@ public RecreateFailedDistributedAutonomousDatabaseResourceRequest build() { */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .resourceName(resourceName) + .bdsInstanceId(bdsInstanceId) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .opcRetryToken(opcRetryToken) + .ifMatch(ifMatch); } /** @@ -298,12 +295,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(",resourceName=").append(String.valueOf(this.resourceName)); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); return sb.toString(); } @@ -313,19 +310,20 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof RecreateFailedDistributedAutonomousDatabaseResourceRequest)) { + if (!(o instanceof DeactivateBdsCapacityReservationConfigurationRequest)) { return false; } - RecreateFailedDistributedAutonomousDatabaseResourceRequest other = - (RecreateFailedDistributedAutonomousDatabaseResourceRequest) o; + DeactivateBdsCapacityReservationConfigurationRequest other = + (DeactivateBdsCapacityReservationConfigurationRequest) o; return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.resourceName, other.resourceName) + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) && 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.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @Override @@ -334,15 +332,17 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurationId == null ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); + : this.bdsCapacityReservationConfigurationId.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.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; } } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..30c23db6633 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationConfigurationRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use DeleteBdsCapacityReservationConfigurationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId; + + /** + * The OCID of the cluster. + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * The OCID of the BDS capacity reservation configuration. + */ + private String bdsCapacityReservationConfigurationId; + + /** + * The OCID of the BDS capacity reservation configuration. + */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteBdsCapacityReservationConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * The OCID of the BDS capacity reservation configuration. + */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBdsCapacityReservationConfigurationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteBdsCapacityReservationConfigurationRequest + */ + public DeleteBdsCapacityReservationConfigurationRequest build() { + DeleteBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBdsCapacityReservationConfigurationRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteBdsCapacityReservationConfigurationRequest + */ + public DeleteBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + DeleteBdsCapacityReservationConfigurationRequest request = + new DeleteBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBdsCapacityReservationConfigurationRequest(bdsInstanceId, bdsCapacityReservationConfigurationId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsInstanceId(bdsInstanceId) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBdsCapacityReservationConfigurationRequest)) { + return false; + } + + DeleteBdsCapacityReservationConfigurationRequest other = + (DeleteBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..c043a8f4b78 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/DeleteBdsCapacityReservationRequest.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use DeleteBdsCapacityReservationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the BDS capacity reservation. + */ + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation. + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteBdsCapacityReservationRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the BDS capacity reservation. + */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBdsCapacityReservationRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBdsCapacityReservationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteBdsCapacityReservationRequest + */ + public DeleteBdsCapacityReservationRequest build() { + DeleteBdsCapacityReservationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBdsCapacityReservationRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteBdsCapacityReservationRequest + */ + public DeleteBdsCapacityReservationRequest buildWithoutInvocationCallback() { + DeleteBdsCapacityReservationRequest request = new DeleteBdsCapacityReservationRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBdsCapacityReservationRequest(bdsCapacityReservationId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsCapacityReservationId(bdsCapacityReservationId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBdsCapacityReservationRequest)) { + return false; + } + + DeleteBdsCapacityReservationRequest other = (DeleteBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.java new file mode 100644 index 00000000000..3013089efc5 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationConfigurationRequest.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.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use GetBdsCapacityReservationConfigurationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationConfigurationRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId; + + /** + * The OCID of the cluster. + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * The OCID of the BDS capacity reservation configuration. + */ + private String bdsCapacityReservationConfigurationId; + + /** + * The OCID of the BDS capacity reservation configuration. + */ + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetBdsCapacityReservationConfigurationRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * The OCID of the BDS capacity reservation configuration. + */ + private String bdsCapacityReservationConfigurationId = null; + + /** + * The OCID of the BDS capacity reservation configuration. + * @param bdsCapacityReservationConfigurationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetBdsCapacityReservationConfigurationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetBdsCapacityReservationConfigurationRequest + */ + public GetBdsCapacityReservationConfigurationRequest build() { + GetBdsCapacityReservationConfigurationRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetBdsCapacityReservationConfigurationRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetBdsCapacityReservationConfigurationRequest + */ + public GetBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + GetBdsCapacityReservationConfigurationRequest request = + new GetBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.opcRequestId = opcRequestId; + return request; + // new GetBdsCapacityReservationConfigurationRequest(bdsInstanceId, bdsCapacityReservationConfigurationId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsInstanceId(bdsInstanceId) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBdsCapacityReservationConfigurationRequest)) { + return false; + } + + GetBdsCapacityReservationConfigurationRequest other = + (GetBdsCapacityReservationConfigurationRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurationId == null + ? 43 + : this.bdsCapacityReservationConfigurationId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.java index 25b8df18b85..fc9aae343fc 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/GetBdsCapacityReservationRequest.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.bds.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; /** - * Example: Click here to see how to use GetDistributedDatabaseRaftMetricRequest. + * Example: Click here to see how to use GetBdsCapacityReservationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier. + * The OCID of the BDS capacity reservation. */ - private String distributedDatabaseId; + private String bdsCapacityReservationId; /** - * Globally distributed database identifier. + * The OCID of the BDS capacity reservation. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; } /** * The client request ID for tracing. @@ -37,23 +37,23 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedDatabaseRaftMetricRequest, java.lang.Void> { + GetBdsCapacityReservationRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The OCID of the BDS capacity reservation. */ - private String distributedDatabaseId = null; + private String bdsCapacityReservationId = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The OCID of the BDS capacity reservation. + * @param bdsCapacityReservationId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; return this; } @@ -99,8 +99,8 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); + public Builder copy(GetBdsCapacityReservationRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -108,37 +108,36 @@ public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { } /** - * Build the instance of GetDistributedDatabaseRaftMetricRequest as configured by this builder + * Build the instance of GetBdsCapacityReservationRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of GetDistributedDatabaseRaftMetricRequest + * @return instance of GetBdsCapacityReservationRequest */ - public GetDistributedDatabaseRaftMetricRequest build() { - GetDistributedDatabaseRaftMetricRequest request = buildWithoutInvocationCallback(); + public GetBdsCapacityReservationRequest build() { + GetBdsCapacityReservationRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GetDistributedDatabaseRaftMetricRequest as configured by this builder + * Build the instance of GetBdsCapacityReservationRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of GetDistributedDatabaseRaftMetricRequest + * @return instance of GetBdsCapacityReservationRequest */ - public GetDistributedDatabaseRaftMetricRequest buildWithoutInvocationCallback() { - GetDistributedDatabaseRaftMetricRequest request = - new GetDistributedDatabaseRaftMetricRequest(); - request.distributedDatabaseId = distributedDatabaseId; + public GetBdsCapacityReservationRequest buildWithoutInvocationCallback() { + GetBdsCapacityReservationRequest request = new GetBdsCapacityReservationRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; request.opcRequestId = opcRequestId; return request; - // new GetDistributedDatabaseRaftMetricRequest(distributedDatabaseId, opcRequestId); + // new GetBdsCapacityReservationRequest(bdsCapacityReservationId, opcRequestId); } } @@ -148,7 +147,7 @@ public GetDistributedDatabaseRaftMetricRequest buildWithoutInvocationCallback() */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) + .bdsCapacityReservationId(bdsCapacityReservationId) .opcRequestId(opcRequestId); } @@ -165,7 +164,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(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -176,13 +176,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabaseRaftMetricRequest)) { + if (!(o instanceof GetBdsCapacityReservationRequest)) { return false; } - GetDistributedDatabaseRaftMetricRequest other = (GetDistributedDatabaseRaftMetricRequest) o; + GetBdsCapacityReservationRequest other = (GetBdsCapacityReservationRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -192,9 +193,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.bdsCapacityReservationId == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.bdsCapacityReservationId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java new file mode 100644 index 00000000000..2d099ebd4e8 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationAssociatedConfigurationsRequest.java @@ -0,0 +1,480 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use ListBdsCapacityReservationAssociatedConfigurationsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationAssociatedConfigurationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the BDS capacity reservation. + */ + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation. + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** + * The OCID of the compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The lifecycle state of the BDS capacity reservation configuration. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. + */ + public String getDisplayName() { + return displayName; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBdsCapacityReservationAssociatedConfigurationsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the BDS capacity reservation. + */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + return this; + } + + /** + * The OCID of the compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The lifecycle state of the BDS capacity reservation configuration. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState = null; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.bds.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either 'asc' or 'desc'. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.bds.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBdsCapacityReservationAssociatedConfigurationsRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsCapacityReservationAssociatedConfigurationsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListBdsCapacityReservationAssociatedConfigurationsRequest + */ + public ListBdsCapacityReservationAssociatedConfigurationsRequest build() { + ListBdsCapacityReservationAssociatedConfigurationsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsCapacityReservationAssociatedConfigurationsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBdsCapacityReservationAssociatedConfigurationsRequest + */ + public ListBdsCapacityReservationAssociatedConfigurationsRequest + buildWithoutInvocationCallback() { + ListBdsCapacityReservationAssociatedConfigurationsRequest request = + new ListBdsCapacityReservationAssociatedConfigurationsRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListBdsCapacityReservationAssociatedConfigurationsRequest(bdsCapacityReservationId, compartmentId, lifecycleState, page, limit, sortBy, sortOrder, displayName, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsCapacityReservationId(bdsCapacityReservationId) + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationAssociatedConfigurationsRequest)) { + return false; + } + + ListBdsCapacityReservationAssociatedConfigurationsRequest other = + (ListBdsCapacityReservationAssociatedConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java new file mode 100644 index 00000000000..1b648991ac4 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationConfigurationsRequest.java @@ -0,0 +1,441 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use ListBdsCapacityReservationConfigurationsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationConfigurationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId; + + /** + * The OCID of the cluster. + */ + public String getBdsInstanceId() { + return bdsInstanceId; + } + /** + * The lifecycle state of the BDS capacity reservation configuration. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. + */ + public String getDisplayName() { + return displayName; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBdsCapacityReservationConfigurationsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the cluster. + */ + private String bdsInstanceId = null; + + /** + * The OCID of the cluster. + * @param bdsInstanceId the value to set + * @return this builder instance + */ + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; + return this; + } + + /** + * The lifecycle state of the BDS capacity reservation configuration. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState = null; + + /** + * The lifecycle state of the BDS capacity reservation configuration. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.bds.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either 'asc' or 'desc'. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.bds.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBdsCapacityReservationConfigurationsRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + lifecycleState(o.getLifecycleState()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsCapacityReservationConfigurationsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListBdsCapacityReservationConfigurationsRequest + */ + public ListBdsCapacityReservationConfigurationsRequest build() { + ListBdsCapacityReservationConfigurationsRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsCapacityReservationConfigurationsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBdsCapacityReservationConfigurationsRequest + */ + public ListBdsCapacityReservationConfigurationsRequest buildWithoutInvocationCallback() { + ListBdsCapacityReservationConfigurationsRequest request = + new ListBdsCapacityReservationConfigurationsRequest(); + request.bdsInstanceId = bdsInstanceId; + request.lifecycleState = lifecycleState; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListBdsCapacityReservationConfigurationsRequest(bdsInstanceId, lifecycleState, page, limit, sortBy, sortOrder, displayName, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsInstanceId(bdsInstanceId) + .lifecycleState(lifecycleState) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationConfigurationsRequest)) { + return false; + } + + ListBdsCapacityReservationConfigurationsRequest other = + (ListBdsCapacityReservationConfigurationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java new file mode 100644 index 00000000000..e3943a798a2 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/ListBdsCapacityReservationsRequest.java @@ -0,0 +1,435 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use ListBdsCapacityReservationsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the compartment. + */ + private String compartmentId; + + /** + * The OCID of the compartment. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The lifecycle state of the BDS capacity reservation. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState lifecycleState; + + /** + * The lifecycle state of the BDS capacity reservation. + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The maximum number of items to return. + */ + private Integer limit; + + /** + * The maximum number of items to return. + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.bds.model.SortOrders sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + public com.oracle.bmc.bds.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. + */ + public String getDisplayName() { + return displayName; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBdsCapacityReservationsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the compartment. + */ + private String compartmentId = null; + + /** + * The OCID of the compartment. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The lifecycle state of the BDS capacity reservation. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState lifecycleState = + null; + + /** + * The lifecycle state of the BDS capacity reservation. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.bds.model.BdsCapacityReservation.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The maximum number of items to return. + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + */ + private com.oracle.bmc.bds.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either 'asc' or 'desc'. + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.bds.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display name given. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBdsCapacityReservationsRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBdsCapacityReservationsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListBdsCapacityReservationsRequest + */ + public ListBdsCapacityReservationsRequest build() { + ListBdsCapacityReservationsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBdsCapacityReservationsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBdsCapacityReservationsRequest + */ + public ListBdsCapacityReservationsRequest buildWithoutInvocationCallback() { + ListBdsCapacityReservationsRequest request = new ListBdsCapacityReservationsRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListBdsCapacityReservationsRequest(compartmentId, lifecycleState, page, limit, sortBy, sortOrder, displayName, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .lifecycleState(lifecycleState) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationsRequest)) { + return false; + } + + ListBdsCapacityReservationsRequest other = (ListBdsCapacityReservationsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java similarity index 56% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java index f38cde44846..3172c3a5fe1 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationConfigurationRequest.java @@ -2,54 +2,51 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.bds.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; /** - * Example: Click here to see how to use ChangeDistributedAutonomousDbBackupConfigRequest. + * Example: Click here to see how to use UpdateBdsCapacityReservationConfigurationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDbBackupConfigRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationConfigurationRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails> { + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails> { /** - * Globally distributed autonomous database identifier. + * The OCID of the cluster. */ - private String distributedAutonomousDatabaseId; + private String bdsInstanceId; /** - * Globally distributed autonomous database identifier. + * The OCID of the cluster. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + public String getBdsInstanceId() { + return bdsInstanceId; } /** - * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed autonomous database. + * The OCID of the BDS capacity reservation configuration. */ - private com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails - changeDistributedAutonomousDbBackupConfigDetails; + private String bdsCapacityReservationConfigurationId; /** - * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed autonomous database. + * The OCID of the BDS capacity reservation configuration. */ - public com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails - getChangeDistributedAutonomousDbBackupConfigDetails() { - return changeDistributedAutonomousDbBackupConfigDetails; + public String getBdsCapacityReservationConfigurationId() { + return bdsCapacityReservationConfigurationId; } /** - * The client request ID for tracing. + * Details for updating the BDS capacity reservation configuration. */ - private String opcRequestId; + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + updateBdsCapacityReservationConfigurationDetails; /** - * The client request ID for tracing. + * Details for updating the BDS capacity reservation configuration. */ - public String getOpcRequestId() { - return opcRequestId; + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + getUpdateBdsCapacityReservationConfigurationDetails() { + return updateBdsCapacityReservationConfigurationDetails; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -72,10 +69,21 @@ 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; + } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -84,8 +92,8 @@ public String getIfMatch() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -100,69 +108,65 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails - getBody$() { - return changeDistributedAutonomousDbBackupConfigDetails; + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails getBody$() { + return updateBdsCapacityReservationConfigurationDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeDistributedAutonomousDbBackupConfigRequest, - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails> { + UpdateBdsCapacityReservationConfigurationRequest, + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed autonomous database identifier. + * The OCID of the cluster. */ - private String distributedAutonomousDatabaseId = null; + private String bdsInstanceId = null; /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set + * The OCID of the cluster. + * @param bdsInstanceId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder bdsInstanceId(String bdsInstanceId) { + this.bdsInstanceId = bdsInstanceId; return this; } /** - * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed autonomous database. + * The OCID of the BDS capacity reservation configuration. */ - private com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails - changeDistributedAutonomousDbBackupConfigDetails = null; + private String bdsCapacityReservationConfigurationId = null; /** - * Details of the DistributedAutonomousDbBackupConfig for the Globally distributed autonomous database. - * @param changeDistributedAutonomousDbBackupConfigDetails the value to set + * The OCID of the BDS capacity reservation configuration. + * @param bdsCapacityReservationConfigurationId the value to set * @return this builder instance */ - public Builder changeDistributedAutonomousDbBackupConfigDetails( - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails - changeDistributedAutonomousDbBackupConfigDetails) { - this.changeDistributedAutonomousDbBackupConfigDetails = - changeDistributedAutonomousDbBackupConfigDetails; + public Builder bdsCapacityReservationConfigurationId( + String bdsCapacityReservationConfigurationId) { + this.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; return this; } /** - * The client request ID for tracing. + * Details for updating the BDS capacity reservation configuration. */ - private String opcRequestId = null; + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + updateBdsCapacityReservationConfigurationDetails = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * Details for updating the BDS capacity reservation configuration. + * @param updateBdsCapacityReservationConfigurationDetails the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder updateBdsCapacityReservationConfigurationDetails( + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails + updateBdsCapacityReservationConfigurationDetails) { + this.updateBdsCapacityReservationConfigurationDetails = + updateBdsCapacityReservationConfigurationDetails; return this; } @@ -191,10 +195,25 @@ 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; + } + /** * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -203,8 +222,8 @@ 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 + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource * has been deleted and purged from the system, then a retry of the original creation request * might be rejected. * @@ -243,12 +262,13 @@ public Builder retryConfiguration( * 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()); + public Builder copy(UpdateBdsCapacityReservationConfigurationRequest o) { + bdsInstanceId(o.getBdsInstanceId()); + bdsCapacityReservationConfigurationId(o.getBdsCapacityReservationConfigurationId()); + updateBdsCapacityReservationConfigurationDetails( + o.getUpdateBdsCapacityReservationConfigurationDetails()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -256,17 +276,17 @@ public Builder copy(ChangeDistributedAutonomousDbBackupConfigRequest o) { } /** - * Build the instance of ChangeDistributedAutonomousDbBackupConfigRequest as configured by this builder + * Build the instance of UpdateBdsCapacityReservationConfigurationRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ChangeDistributedAutonomousDbBackupConfigRequest + * @return instance of UpdateBdsCapacityReservationConfigurationRequest */ - public ChangeDistributedAutonomousDbBackupConfigRequest build() { - ChangeDistributedAutonomousDbBackupConfigRequest request = + public UpdateBdsCapacityReservationConfigurationRequest build() { + UpdateBdsCapacityReservationConfigurationRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); @@ -280,32 +300,31 @@ public ChangeDistributedAutonomousDbBackupConfigRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedAutonomousDbBackupConfigDetails - body) { - changeDistributedAutonomousDbBackupConfigDetails(body); + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationConfigurationDetails body) { + updateBdsCapacityReservationConfigurationDetails(body); return this; } /** - * Build the instance of ChangeDistributedAutonomousDbBackupConfigRequest as configured by this builder + * Build the instance of UpdateBdsCapacityReservationConfigurationRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ChangeDistributedAutonomousDbBackupConfigRequest + * @return instance of UpdateBdsCapacityReservationConfigurationRequest */ - public ChangeDistributedAutonomousDbBackupConfigRequest buildWithoutInvocationCallback() { - ChangeDistributedAutonomousDbBackupConfigRequest request = - new ChangeDistributedAutonomousDbBackupConfigRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.changeDistributedAutonomousDbBackupConfigDetails = - changeDistributedAutonomousDbBackupConfigDetails; - request.opcRequestId = opcRequestId; + public UpdateBdsCapacityReservationConfigurationRequest buildWithoutInvocationCallback() { + UpdateBdsCapacityReservationConfigurationRequest request = + new UpdateBdsCapacityReservationConfigurationRequest(); + request.bdsInstanceId = bdsInstanceId; + request.bdsCapacityReservationConfigurationId = bdsCapacityReservationConfigurationId; + request.updateBdsCapacityReservationConfigurationDetails = + updateBdsCapacityReservationConfigurationDetails; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new ChangeDistributedAutonomousDbBackupConfigRequest(distributedAutonomousDatabaseId, changeDistributedAutonomousDbBackupConfigDetails, opcRequestId, ifMatch, opcRetryToken); + // new UpdateBdsCapacityReservationConfigurationRequest(bdsInstanceId, bdsCapacityReservationConfigurationId, updateBdsCapacityReservationConfigurationDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -315,11 +334,12 @@ public ChangeDistributedAutonomousDbBackupConfigRequest buildWithoutInvocationCa */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .changeDistributedAutonomousDbBackupConfigDetails( - changeDistributedAutonomousDbBackupConfigDetails) - .opcRequestId(opcRequestId) + .bdsInstanceId(bdsInstanceId) + .bdsCapacityReservationConfigurationId(bdsCapacityReservationConfigurationId) + .updateBdsCapacityReservationConfigurationDetails( + updateBdsCapacityReservationConfigurationDetails) .ifMatch(ifMatch) + .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); } @@ -336,12 +356,13 @@ 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(",bdsInstanceId=").append(String.valueOf(this.bdsInstanceId)); + sb.append(",bdsCapacityReservationConfigurationId=") + .append(String.valueOf(this.bdsCapacityReservationConfigurationId)); + sb.append(",updateBdsCapacityReservationConfigurationDetails=") + .append(String.valueOf(this.updateBdsCapacityReservationConfigurationDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); @@ -352,20 +373,22 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigRequest)) { + if (!(o instanceof UpdateBdsCapacityReservationConfigurationRequest)) { return false; } - ChangeDistributedAutonomousDbBackupConfigRequest other = - (ChangeDistributedAutonomousDbBackupConfigRequest) o; + UpdateBdsCapacityReservationConfigurationRequest other = + (UpdateBdsCapacityReservationConfigurationRequest) o; return super.equals(o) + && java.util.Objects.equals(this.bdsInstanceId, other.bdsInstanceId) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + this.bdsCapacityReservationConfigurationId, + other.bdsCapacityReservationConfigurationId) && java.util.Objects.equals( - this.changeDistributedAutonomousDbBackupConfigDetails, - other.changeDistributedAutonomousDbBackupConfigDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + this.updateBdsCapacityReservationConfigurationDetails, + other.updateBdsCapacityReservationConfigurationDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -375,16 +398,19 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null + + (this.bdsInstanceId == null ? 43 : this.bdsInstanceId.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurationId == null ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); + : this.bdsCapacityReservationConfigurationId.hashCode()); result = (result * PRIME) - + (this.changeDistributedAutonomousDbBackupConfigDetails == null + + (this.updateBdsCapacityReservationConfigurationDetails == null ? 43 - : this.changeDistributedAutonomousDbBackupConfigDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + : this.updateBdsCapacityReservationConfigurationDetails.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java new file mode 100644 index 00000000000..6434aaa1061 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/requests/UpdateBdsCapacityReservationRequest.java @@ -0,0 +1,375 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.requests; + +import com.oracle.bmc.bds.model.*; +/** + * Example: Click here to see how to use UpdateBdsCapacityReservationRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails> { + + /** + * The OCID of the BDS capacity reservation. + */ + private String bdsCapacityReservationId; + + /** + * The OCID of the BDS capacity reservation. + */ + public String getBdsCapacityReservationId() { + return bdsCapacityReservationId; + } + /** + * Details for updating the BDS capacity reservation. + */ + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + updateBdsCapacityReservationDetails; + + /** + * Details for updating the BDS capacity reservation. + */ + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + getUpdateBdsCapacityReservationDetails() { + return updateBdsCapacityReservationDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails getBody$() { + return updateBdsCapacityReservationDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateBdsCapacityReservationRequest, + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the BDS capacity reservation. + */ + private String bdsCapacityReservationId = null; + + /** + * The OCID of the BDS capacity reservation. + * @param bdsCapacityReservationId the value to set + * @return this builder instance + */ + public Builder bdsCapacityReservationId(String bdsCapacityReservationId) { + this.bdsCapacityReservationId = bdsCapacityReservationId; + return this; + } + + /** + * Details for updating the BDS capacity reservation. + */ + private com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + updateBdsCapacityReservationDetails = null; + + /** + * Details for updating the BDS capacity reservation. + * @param updateBdsCapacityReservationDetails the value to set + * @return this builder instance + */ + public Builder updateBdsCapacityReservationDetails( + com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails + updateBdsCapacityReservationDetails) { + this.updateBdsCapacityReservationDetails = updateBdsCapacityReservationDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error, without risk of executing that same action again. Retry tokens expire after 24 + * hours but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateBdsCapacityReservationRequest o) { + bdsCapacityReservationId(o.getBdsCapacityReservationId()); + updateBdsCapacityReservationDetails(o.getUpdateBdsCapacityReservationDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateBdsCapacityReservationRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateBdsCapacityReservationRequest + */ + public UpdateBdsCapacityReservationRequest build() { + UpdateBdsCapacityReservationRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.bds.model.UpdateBdsCapacityReservationDetails body) { + updateBdsCapacityReservationDetails(body); + return this; + } + + /** + * Build the instance of UpdateBdsCapacityReservationRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateBdsCapacityReservationRequest + */ + public UpdateBdsCapacityReservationRequest buildWithoutInvocationCallback() { + UpdateBdsCapacityReservationRequest request = new UpdateBdsCapacityReservationRequest(); + request.bdsCapacityReservationId = bdsCapacityReservationId; + request.updateBdsCapacityReservationDetails = updateBdsCapacityReservationDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new UpdateBdsCapacityReservationRequest(bdsCapacityReservationId, updateBdsCapacityReservationDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .bdsCapacityReservationId(bdsCapacityReservationId) + .updateBdsCapacityReservationDetails(updateBdsCapacityReservationDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",bdsCapacityReservationId=") + .append(String.valueOf(this.bdsCapacityReservationId)); + sb.append(",updateBdsCapacityReservationDetails=") + .append(String.valueOf(this.updateBdsCapacityReservationDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationRequest)) { + return false; + } + + UpdateBdsCapacityReservationRequest other = (UpdateBdsCapacityReservationRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.bdsCapacityReservationId, other.bdsCapacityReservationId) + && java.util.Objects.equals( + this.updateBdsCapacityReservationDetails, + other.updateBdsCapacityReservationDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.bdsCapacityReservationId == null + ? 43 + : this.bdsCapacityReservationId.hashCode()); + result = + (result * PRIME) + + (this.updateBdsCapacityReservationDetails == null + ? 43 + : this.updateBdsCapacityReservationDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java similarity index 62% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java index a8d829dc282..60f7247dddf 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ActivateBdsCapacityReservationConfigurationResponse.java @@ -2,23 +2,23 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.bds.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabasePrivateEndpointResponse +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ActivateBdsCapacityReservationConfigurationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * */ private String opcRequestId; /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * * @return the value */ @@ -42,18 +42,18 @@ public String getEtag() { } /** - * The returned DistributedDatabasePrivateEndpoint instance. + * The returned BdsCapacityReservationConfiguration instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; /** - * The returned DistributedDatabasePrivateEndpoint instance. + * The returned BdsCapacityReservationConfiguration instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - getDistributedDatabasePrivateEndpoint() { - return distributedDatabasePrivateEndpoint; + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; } @java.beans.ConstructorProperties({ @@ -61,19 +61,19 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabasePrivateEndpoint" + "bdsCapacityReservationConfiguration" }) - private UpdateDistributedDatabasePrivateEndpointResponse( + private ActivateBdsCapacityReservationConfigurationResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint) { + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; } public static class Builder { @@ -93,14 +93,14 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * */ private String opcRequestId; /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * * @param opcRequestId the value to set * @return this builder @@ -128,20 +128,20 @@ public Builder etag(String etag) { } /** - * The returned DistributedDatabasePrivateEndpoint instance. + * The returned BdsCapacityReservationConfiguration instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; /** - * The returned DistributedDatabasePrivateEndpoint instance. - * @param distributedDatabasePrivateEndpoint the value to set + * The returned BdsCapacityReservationConfiguration instance. + * @param bdsCapacityReservationConfiguration the value to set * @return this builder */ - public Builder distributedDatabasePrivateEndpoint( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint) { - this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; return this; } @@ -149,12 +149,12 @@ public Builder distributedDatabasePrivateEndpoint( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateDistributedDatabasePrivateEndpointResponse o) { + public Builder copy(ActivateBdsCapacityReservationConfigurationResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); return this; } @@ -163,13 +163,13 @@ public Builder copy(UpdateDistributedDatabasePrivateEndpointResponse o) { * Build the response object. * @return the response object */ - public UpdateDistributedDatabasePrivateEndpointResponse build() { - return new UpdateDistributedDatabasePrivateEndpointResponse( + public ActivateBdsCapacityReservationConfigurationResponse build() { + return new ActivateBdsCapacityReservationConfigurationResponse( __httpStatusCode__, headers, opcRequestId, etag, - distributedDatabasePrivateEndpoint); + bdsCapacityReservationConfiguration); } } @@ -188,8 +188,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(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); sb.append(")"); return sb.toString(); } @@ -199,18 +199,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabasePrivateEndpointResponse)) { + if (!(o instanceof ActivateBdsCapacityReservationConfigurationResponse)) { return false; } - UpdateDistributedDatabasePrivateEndpointResponse other = - (UpdateDistributedDatabasePrivateEndpointResponse) o; + ActivateBdsCapacityReservationConfigurationResponse other = + (ActivateBdsCapacityReservationConfigurationResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals( - this.distributedDatabasePrivateEndpoint, - other.distributedDatabasePrivateEndpoint); + this.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); } @Override @@ -221,9 +221,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpoint == null + + (this.bdsCapacityReservationConfiguration == null ? 43 - : this.distributedDatabasePrivateEndpoint.hashCode()); + : this.bdsCapacityReservationConfiguration.hashCode()); return result; } } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.java new file mode 100644 index 00000000000..bf2161c329a --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ChangeBdsCapacityReservationCompartmentResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ChangeBdsCapacityReservationCompartmentResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private ChangeBdsCapacityReservationCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeBdsCapacityReservationCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeBdsCapacityReservationCompartmentResponse build() { + return new ChangeBdsCapacityReservationCompartmentResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBdsCapacityReservationCompartmentResponse)) { + return false; + } + + ChangeBdsCapacityReservationCompartmentResponse other = + (ChangeBdsCapacityReservationCompartmentResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..ef552082008 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationConfigurationResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The URI of the created resource. + * + */ + private String location; + + /** + * The URI of the created resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The URI of the resource representation returned in the response body. + * + */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "location", + "contentLocation", + "etag", + "bdsCapacityReservationConfiguration" + }) + private CreateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The URI of the created resource. + * + */ + private String location; + + /** + * The URI of the created resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The URI of the resource representation returned in the response body. + * + */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateBdsCapacityReservationConfigurationResponse build() { + return new CreateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + location, + contentLocation, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + CreateBdsCapacityReservationConfigurationResponse other = + (CreateBdsCapacityReservationConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..cefbbb91dc0 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/CreateBdsCapacityReservationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class CreateBdsCapacityReservationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * The URI of the created resource. + * + */ + private String location; + + /** + * The URI of the created resource. + * + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * The URI of the resource representation returned in the response body. + * + */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservation instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned BdsCapacityReservation instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation getBdsCapacityReservation() { + return bdsCapacityReservation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId", + "location", + "contentLocation", + "etag", + "bdsCapacityReservation" + }) + private CreateBdsCapacityReservationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcWorkRequestId, + String location, + String contentLocation, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.bdsCapacityReservation = bdsCapacityReservation; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * The URI of the created resource. + * + */ + private String location; + + /** + * The URI of the created resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * The URI of the resource representation returned in the response body. + * + */ + private String contentLocation; + + /** + * The URI of the resource representation returned in the response body. + * + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservation instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned BdsCapacityReservation instance. + * @param bdsCapacityReservation the value to set + * @return this builder + */ + public Builder bdsCapacityReservation( + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + this.bdsCapacityReservation = bdsCapacityReservation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + bdsCapacityReservation(o.getBdsCapacityReservation()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateBdsCapacityReservationResponse build() { + return new CreateBdsCapacityReservationResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcWorkRequestId, + location, + contentLocation, + etag, + bdsCapacityReservation); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservation=").append(String.valueOf(bdsCapacityReservation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBdsCapacityReservationResponse)) { + return false; + } + + CreateBdsCapacityReservationResponse other = (CreateBdsCapacityReservationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservation, other.bdsCapacityReservation); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservation == null + ? 43 + : this.bdsCapacityReservation.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..91d77017a87 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeactivateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeactivateBdsCapacityReservationConfigurationResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private DeactivateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeactivateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeactivateBdsCapacityReservationConfigurationResponse build() { + return new DeactivateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeactivateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + DeactivateBdsCapacityReservationConfigurationResponse other = + (DeactivateBdsCapacityReservationConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..8f5d19f6c5f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationConfigurationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationConfigurationResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteBdsCapacityReservationConfigurationResponse build() { + return new DeleteBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBdsCapacityReservationConfigurationResponse)) { + return false; + } + + DeleteBdsCapacityReservationConfigurationResponse other = + (DeleteBdsCapacityReservationConfigurationResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..a75b46df88f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/DeleteBdsCapacityReservationResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class DeleteBdsCapacityReservationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteBdsCapacityReservationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteBdsCapacityReservationResponse build() { + return new DeleteBdsCapacityReservationResponse( + __httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBdsCapacityReservationResponse)) { + return false; + } + + DeleteBdsCapacityReservationResponse other = (DeleteBdsCapacityReservationResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..cd85b088aeb --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationConfigurationResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private GetBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetBdsCapacityReservationConfigurationResponse build() { + return new GetBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBdsCapacityReservationConfigurationResponse)) { + return false; + } + + GetBdsCapacityReservationConfigurationResponse other = + (GetBdsCapacityReservationConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..b3fc38858ca --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/GetBdsCapacityReservationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class GetBdsCapacityReservationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservation instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned BdsCapacityReservation instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation getBdsCapacityReservation() { + return bdsCapacityReservation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservation" + }) + private GetBdsCapacityReservationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservation = bdsCapacityReservation; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservation instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned BdsCapacityReservation instance. + * @param bdsCapacityReservation the value to set + * @return this builder + */ + public Builder bdsCapacityReservation( + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + this.bdsCapacityReservation = bdsCapacityReservation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservation(o.getBdsCapacityReservation()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetBdsCapacityReservationResponse build() { + return new GetBdsCapacityReservationResponse( + __httpStatusCode__, headers, opcRequestId, etag, bdsCapacityReservation); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservation=").append(String.valueOf(bdsCapacityReservation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetBdsCapacityReservationResponse)) { + return false; + } + + GetBdsCapacityReservationResponse other = (GetBdsCapacityReservationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservation, other.bdsCapacityReservation); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservation == null + ? 43 + : this.bdsCapacityReservation.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java similarity index 62% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java rename to bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java index 12103ddf240..c81ff2c0b38 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationAssociatedConfigurationsResponse.java @@ -2,23 +2,23 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.bds.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.bds.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsResponse +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationAssociatedConfigurationsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * */ private String opcRequestId; /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * * @return the value */ @@ -46,18 +46,18 @@ public String getOpcNextPage() { } /** - * The returned DistributedDatabasePrivateEndpointCollection instance. + * The returned BdsCapacityReservationAssociatedConfigurationCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection; + private com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection; /** - * The returned DistributedDatabasePrivateEndpointCollection instance. + * The returned BdsCapacityReservationAssociatedConfigurationCollection instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - getDistributedDatabasePrivateEndpointCollection() { - return distributedDatabasePrivateEndpointCollection; + public com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + getBdsCapacityReservationAssociatedConfigurationCollection() { + return bdsCapacityReservationAssociatedConfigurationCollection; } @java.beans.ConstructorProperties({ @@ -65,20 +65,20 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", - "distributedDatabasePrivateEndpointCollection" + "bdsCapacityReservationAssociatedConfigurationCollection" }) - private ListDistributedDatabasePrivateEndpointsResponse( + private ListBdsCapacityReservationAssociatedConfigurationsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection) { + com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.distributedDatabasePrivateEndpointCollection = - distributedDatabasePrivateEndpointCollection; + this.bdsCapacityReservationAssociatedConfigurationCollection = + bdsCapacityReservationAssociatedConfigurationCollection; } public static class Builder { @@ -98,14 +98,14 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * */ private String opcRequestId; /** * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Oracle about a request, provide this request ID. * * @param opcRequestId the value to set * @return this builder @@ -137,23 +137,21 @@ public Builder opcNextPage(String opcNextPage) { } /** - * The returned DistributedDatabasePrivateEndpointCollection instance. + * The returned BdsCapacityReservationAssociatedConfigurationCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection; + private com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection; /** - * The returned DistributedDatabasePrivateEndpointCollection instance. - * @param distributedDatabasePrivateEndpointCollection the value to set + * The returned BdsCapacityReservationAssociatedConfigurationCollection instance. + * @param bdsCapacityReservationAssociatedConfigurationCollection the value to set * @return this builder */ - public Builder distributedDatabasePrivateEndpointCollection( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection) { - this.distributedDatabasePrivateEndpointCollection = - distributedDatabasePrivateEndpointCollection; + public Builder bdsCapacityReservationAssociatedConfigurationCollection( + com.oracle.bmc.bds.model.BdsCapacityReservationAssociatedConfigurationCollection + bdsCapacityReservationAssociatedConfigurationCollection) { + this.bdsCapacityReservationAssociatedConfigurationCollection = + bdsCapacityReservationAssociatedConfigurationCollection; return this; } @@ -161,13 +159,13 @@ public Builder distributedDatabasePrivateEndpointCollection( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListDistributedDatabasePrivateEndpointsResponse o) { + public Builder copy(ListBdsCapacityReservationAssociatedConfigurationsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - distributedDatabasePrivateEndpointCollection( - o.getDistributedDatabasePrivateEndpointCollection()); + bdsCapacityReservationAssociatedConfigurationCollection( + o.getBdsCapacityReservationAssociatedConfigurationCollection()); return this; } @@ -176,13 +174,13 @@ public Builder copy(ListDistributedDatabasePrivateEndpointsResponse o) { * Build the response object. * @return the response object */ - public ListDistributedDatabasePrivateEndpointsResponse build() { - return new ListDistributedDatabasePrivateEndpointsResponse( + public ListBdsCapacityReservationAssociatedConfigurationsResponse build() { + return new ListBdsCapacityReservationAssociatedConfigurationsResponse( __httpStatusCode__, headers, opcRequestId, opcNextPage, - distributedDatabasePrivateEndpointCollection); + bdsCapacityReservationAssociatedConfigurationCollection); } } @@ -201,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(",distributedDatabasePrivateEndpointCollection=") - .append(String.valueOf(distributedDatabasePrivateEndpointCollection)); + sb.append(",bdsCapacityReservationAssociatedConfigurationCollection=") + .append(String.valueOf(bdsCapacityReservationAssociatedConfigurationCollection)); sb.append(")"); return sb.toString(); } @@ -212,18 +210,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasePrivateEndpointsResponse)) { + if (!(o instanceof ListBdsCapacityReservationAssociatedConfigurationsResponse)) { return false; } - ListDistributedDatabasePrivateEndpointsResponse other = - (ListDistributedDatabasePrivateEndpointsResponse) o; + ListBdsCapacityReservationAssociatedConfigurationsResponse other = + (ListBdsCapacityReservationAssociatedConfigurationsResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointCollection, - other.distributedDatabasePrivateEndpointCollection); + this.bdsCapacityReservationAssociatedConfigurationCollection, + other.bdsCapacityReservationAssociatedConfigurationCollection); } @Override @@ -234,9 +232,10 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpointCollection == null + + (this.bdsCapacityReservationAssociatedConfigurationCollection == null ? 43 - : this.distributedDatabasePrivateEndpointCollection.hashCode()); + : this.bdsCapacityReservationAssociatedConfigurationCollection + .hashCode()); return result; } } diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java new file mode 100644 index 00000000000..366750a1385 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationConfigurationsResponse.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationConfigurationsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned BdsCapacityReservationConfigurationCollection instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection; + + /** + * The returned BdsCapacityReservationConfigurationCollection instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + getBdsCapacityReservationConfigurationCollection() { + return bdsCapacityReservationConfigurationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "bdsCapacityReservationConfigurationCollection" + }) + private ListBdsCapacityReservationConfigurationsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.bdsCapacityReservationConfigurationCollection = + bdsCapacityReservationConfigurationCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned BdsCapacityReservationConfigurationCollection instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection; + + /** + * The returned BdsCapacityReservationConfigurationCollection instance. + * @param bdsCapacityReservationConfigurationCollection the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfigurationCollection( + com.oracle.bmc.bds.model.BdsCapacityReservationConfigurationCollection + bdsCapacityReservationConfigurationCollection) { + this.bdsCapacityReservationConfigurationCollection = + bdsCapacityReservationConfigurationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBdsCapacityReservationConfigurationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + bdsCapacityReservationConfigurationCollection( + o.getBdsCapacityReservationConfigurationCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListBdsCapacityReservationConfigurationsResponse build() { + return new ListBdsCapacityReservationConfigurationsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + bdsCapacityReservationConfigurationCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",bdsCapacityReservationConfigurationCollection=") + .append(String.valueOf(bdsCapacityReservationConfigurationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationConfigurationsResponse)) { + return false; + } + + ListBdsCapacityReservationConfigurationsResponse other = + (ListBdsCapacityReservationConfigurationsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.bdsCapacityReservationConfigurationCollection, + other.bdsCapacityReservationConfigurationCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfigurationCollection == null + ? 43 + : this.bdsCapacityReservationConfigurationCollection.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.java new file mode 100644 index 00000000000..2509847da8c --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/ListBdsCapacityReservationsResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class ListBdsCapacityReservationsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned BdsCapacityReservationCollection instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection; + + /** + * The returned BdsCapacityReservationCollection instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationCollection + getBdsCapacityReservationCollection() { + return bdsCapacityReservationCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "bdsCapacityReservationCollection" + }) + private ListBdsCapacityReservationsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.bdsCapacityReservationCollection = bdsCapacityReservationCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned BdsCapacityReservationCollection instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection; + + /** + * The returned BdsCapacityReservationCollection instance. + * @param bdsCapacityReservationCollection the value to set + * @return this builder + */ + public Builder bdsCapacityReservationCollection( + com.oracle.bmc.bds.model.BdsCapacityReservationCollection + bdsCapacityReservationCollection) { + this.bdsCapacityReservationCollection = bdsCapacityReservationCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBdsCapacityReservationsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + bdsCapacityReservationCollection(o.getBdsCapacityReservationCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListBdsCapacityReservationsResponse build() { + return new ListBdsCapacityReservationsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + bdsCapacityReservationCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",bdsCapacityReservationCollection=") + .append(String.valueOf(bdsCapacityReservationCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBdsCapacityReservationsResponse)) { + return false; + } + + ListBdsCapacityReservationsResponse other = (ListBdsCapacityReservationsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.bdsCapacityReservationCollection, + other.bdsCapacityReservationCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationCollection == null + ? 43 + : this.bdsCapacityReservationCollection.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java new file mode 100644 index 00000000000..7ff00cacf19 --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationConfigurationResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationConfigurationResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + getBdsCapacityReservationConfiguration() { + return bdsCapacityReservationConfiguration; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservationConfiguration" + }) + private UpdateBdsCapacityReservationConfigurationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservationConfiguration instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration; + + /** + * The returned BdsCapacityReservationConfiguration instance. + * @param bdsCapacityReservationConfiguration the value to set + * @return this builder + */ + public Builder bdsCapacityReservationConfiguration( + com.oracle.bmc.bds.model.BdsCapacityReservationConfiguration + bdsCapacityReservationConfiguration) { + this.bdsCapacityReservationConfiguration = bdsCapacityReservationConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateBdsCapacityReservationConfigurationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservationConfiguration(o.getBdsCapacityReservationConfiguration()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateBdsCapacityReservationConfigurationResponse build() { + return new UpdateBdsCapacityReservationConfigurationResponse( + __httpStatusCode__, + headers, + opcRequestId, + etag, + bdsCapacityReservationConfiguration); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservationConfiguration=") + .append(String.valueOf(bdsCapacityReservationConfiguration)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationConfigurationResponse)) { + return false; + } + + UpdateBdsCapacityReservationConfigurationResponse other = + (UpdateBdsCapacityReservationConfigurationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservationConfiguration, + other.bdsCapacityReservationConfiguration); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservationConfiguration == null + ? 43 + : this.bdsCapacityReservationConfiguration.hashCode()); + return result; + } +} diff --git a/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.java new file mode 100644 index 00000000000..ab1afd1b25f --- /dev/null +++ b/bmc-bds/src/main/java/com/oracle/bmc/bds/responses/UpdateBdsCapacityReservationResponse.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.bds.responses; + +import com.oracle.bmc.bds.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") +public class UpdateBdsCapacityReservationResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned BdsCapacityReservation instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned BdsCapacityReservation instance. + * @return the value + */ + public com.oracle.bmc.bds.model.BdsCapacityReservation getBdsCapacityReservation() { + return bdsCapacityReservation; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "bdsCapacityReservation" + }) + private UpdateBdsCapacityReservationResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.bdsCapacityReservation = bdsCapacityReservation; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a request, provide this request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The returned BdsCapacityReservation instance. + */ + private com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation; + + /** + * The returned BdsCapacityReservation instance. + * @param bdsCapacityReservation the value to set + * @return this builder + */ + public Builder bdsCapacityReservation( + com.oracle.bmc.bds.model.BdsCapacityReservation bdsCapacityReservation) { + this.bdsCapacityReservation = bdsCapacityReservation; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateBdsCapacityReservationResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + bdsCapacityReservation(o.getBdsCapacityReservation()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateBdsCapacityReservationResponse build() { + return new UpdateBdsCapacityReservationResponse( + __httpStatusCode__, headers, opcRequestId, etag, bdsCapacityReservation); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",bdsCapacityReservation=").append(String.valueOf(bdsCapacityReservation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBdsCapacityReservationResponse)) { + return false; + } + + UpdateBdsCapacityReservationResponse other = (UpdateBdsCapacityReservationResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.bdsCapacityReservation, other.bdsCapacityReservation); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.bdsCapacityReservation == null + ? 43 + : this.bdsCapacityReservation.hashCode()); + return result; + } +} diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 99df0f06135..b0e056243d3 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-blockchain @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index cc15726553e..97bfc3aaeb4 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-bom @@ -19,1091 +19,1091 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-audit - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-core - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-database - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dns - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-email - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-identity - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-addons-graalvm - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-waas - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-ons - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-budget - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-limits - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-functions - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-events - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-oce - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-oda - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-integration - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-vault - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-bds - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-cims - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-logging - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-sch - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-rover - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-jms - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-devops - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-waf - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-usage - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-adm - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-waa - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-opa - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-queue - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-redis - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-psql - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 2.97.0 - false - - - com.oracle.oci.sdk - oci-java-sdk-distributeddatabase - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-iot - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-psa - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-dif - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-batch - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-self - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-costad - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-datacc - 2.97.0 + 2.98.0 false com.oracle.oci.sdk oci-java-sdk-ddfs - 2.97.0 + 2.98.0 false com.oracle.oci.sdk - oci-java-sdk-distributeddatabasev26 - 2.97.0 + oci-java-sdk-clusterhealth + 2.98.0 + false + + + com.oracle.oci.sdk + oci-java-sdk-distributeddatabase + 2.98.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 361a061be5b..7e9a30986c9 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-budget @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index b011eccdda9..202b6585582 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index fb09cad403b..1244f179adc 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-certificates @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index c4124366517..9e45ccd01df 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 737ae1bb780..da9be50bcf5 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-cims @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 89520d09a36..499601bdaf1 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index d82617c6724..9210733e2c5 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-cloudbridge @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 7c432087395..b8acf02898b 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-cloudguard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index bd869f40db7..5436bdf28f5 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-distributeddatabasev26/pom.xml b/bmc-clusterhealth/pom.xml similarity index 74% rename from bmc-distributeddatabasev26/pom.xml rename to bmc-clusterhealth/pom.xml index 5fd36bcbf1f..fdceb4552bb 100644 --- a/bmc-distributeddatabasev26/pom.xml +++ b/bmc-clusterhealth/pom.xml @@ -4,18 +4,18 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.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 + oci-java-sdk-clusterhealth + Oracle Cloud Infrastructure SDK - Cluster Health + This project contains the SDK used for Oracle Cloud Infrastructure Cluster Health https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.java new file mode 100644 index 00000000000..a3dfa125380 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/Diagnosis.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Use the ITV Control Plane Diagnosis Store API to manage diagnosis. + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public interface Diagnosis extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Cancels a work request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CancelWorkRequest API. + */ + CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request); + + /** + * Moves a Diagnosis 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 ChangeDiagnosisStoreCompartment API. + */ + ChangeDiagnosisStoreCompartmentResponse changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request); + + /** + * Creates a Diagnosis Store. + * + * @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 CreateDiagnosisStore API. + */ + CreateDiagnosisStoreResponse createDiagnosisStore(CreateDiagnosisStoreRequest request); + + /** + * Deletes a Diagnosis Store. + * @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 DeleteDiagnosisStore API. + */ + DeleteDiagnosisStoreResponse deleteDiagnosisStore(DeleteDiagnosisStoreRequest request); + + /** + * Gets information about a Diagnosis Store. + * @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 GetDiagnosisStore API. + */ + GetDiagnosisStoreResponse getDiagnosisStore(GetDiagnosisStoreRequest request); + + /** + * Gets the details of a work request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Gets a list of Diagnosis Stores. + * + * @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 ListDiagnosisStores API. + */ + ListDiagnosisStoresResponse listDiagnosisStores(ListDiagnosisStoresRequest request); + + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestLogs API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequests API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Query latest diagnosis result summaries. + * + * @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 QueryDiagnosisByHealthCheckKey API. + */ + QueryDiagnosisByHealthCheckKeyResponse queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request); + + /** + * Query latest diagnosis result summaries. + * + * @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 QueryDiagnosisSummary API. + */ + QueryDiagnosisSummaryResponse queryDiagnosisSummary(QueryDiagnosisSummaryRequest request); + + /** + * Request a diagnosis to be analyzed. + * + * @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 RequestDiagnosis API. + */ + RequestDiagnosisResponse requestDiagnosis(RequestDiagnosisRequest request); + + /** + * Updates a Diagnosis Store. + * @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 UpdateDiagnosisStore API. + */ + UpdateDiagnosisStoreResponse updateDiagnosisStore(UpdateDiagnosisStoreRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + DiagnosisWaiters 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. + */ + DiagnosisPaginators getPaginators(); +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java new file mode 100644 index 00000000000..0f26209bf68 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsync.java @@ -0,0 +1,295 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Use the ITV Control Plane Diagnosis Store API to manage diagnosis. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public interface DiagnosisAsync extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Cancels a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler); + + /** + * Moves a Diagnosis 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 + changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse> + handler); + + /** + * Creates a Diagnosis Store. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createDiagnosisStore( + CreateDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse> + handler); + + /** + * Deletes a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteDiagnosisStore( + DeleteDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse> + handler); + + /** + * Gets information about a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse> + handler); + + /** + * Gets the details of a work request. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Gets a list of Diagnosis Stores. + * + * + * @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 listDiagnosisStores( + ListDiagnosisStoresRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse> + handler); + + /** + * Lists the errors for a work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler); + + /** + * Lists the logs for a work request. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler); + + /** + * Lists the work requests in a compartment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Query latest diagnosis result summaries. + * + * + * @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 + queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request, + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisByHealthCheckKeyRequest, + QueryDiagnosisByHealthCheckKeyResponse> + handler); + + /** + * Query latest diagnosis result summaries. + * + * + * @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 queryDiagnosisSummary( + QueryDiagnosisSummaryRequest request, + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse> + handler); + + /** + * Request a diagnosis to be analyzed. + * + * + * @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 requestDiagnosis( + RequestDiagnosisRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Updates a Diagnosis Store. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateDiagnosisStore( + UpdateDiagnosisStoreRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse> + handler); +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.java new file mode 100644 index 00000000000..631b32139e2 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisAsyncClient.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.clusterhealth; + +import com.oracle.bmc.clusterhealth.internal.http.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Async client implementation for Diagnosis 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 + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DiagnosisAsyncClient implements DiagnosisAsync { + /** + * Service instance for Diagnosis. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(DiagnosisClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DiagnosisAsyncClient.class); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public DiagnosisAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public DiagnosisAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public DiagnosisAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + public DiagnosisAsyncClient( + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + public DiagnosisAsyncClient( + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public DiagnosisAsyncClient( + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public DiagnosisAsyncClient( + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DiagnosisAsyncClient( + 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, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + 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 DiagnosisAsyncClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new DiagnosisAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler) { + LOG.trace("Called async cancelWorkRequest"); + final CancelWorkRequestRequest interceptedRequest = + CancelWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + CancelWorkRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CancelWorkRequestRequest, CancelWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse> + handler) { + LOG.trace("Called async changeDiagnosisStoreCompartment"); + final ChangeDiagnosisStoreCompartmentRequest interceptedRequest = + ChangeDiagnosisStoreCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeDiagnosisStoreCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", + "ChangeDiagnosisStoreCompartment", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeDiagnosisStoreCompartmentResponse> + transformer = + ChangeDiagnosisStoreCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeDiagnosisStoreCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeDiagnosisStoreCompartmentRequest, + ChangeDiagnosisStoreCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createDiagnosisStore( + CreateDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse> + handler) { + LOG.trace("Called async createDiagnosisStore"); + final CreateDiagnosisStoreRequest interceptedRequest = + CreateDiagnosisStoreConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateDiagnosisStoreConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "CreateDiagnosisStore", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + CreateDiagnosisStoreConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateDiagnosisStoreDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateDiagnosisStoreRequest, CreateDiagnosisStoreResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteDiagnosisStore( + DeleteDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse> + handler) { + LOG.trace("Called async deleteDiagnosisStore"); + final DeleteDiagnosisStoreRequest interceptedRequest = + DeleteDiagnosisStoreConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteDiagnosisStoreConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "DeleteDiagnosisStore", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + DeleteDiagnosisStoreConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteDiagnosisStoreRequest, DeleteDiagnosisStoreResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getDiagnosisStore( + GetDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse> + handler) { + LOG.trace("Called async getDiagnosisStore"); + final GetDiagnosisStoreRequest interceptedRequest = + GetDiagnosisStoreConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDiagnosisStoreConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "GetDiagnosisStore", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetDiagnosisStoreConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getWorkRequest( + GetWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse> + handler) { + LOG.trace("Called async getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "GetWorkRequest", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetWorkRequestRequest, GetWorkRequestResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetWorkRequestRequest, GetWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listDiagnosisStores( + ListDiagnosisStoresRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse> + handler) { + LOG.trace("Called async listDiagnosisStores"); + final ListDiagnosisStoresRequest interceptedRequest = + ListDiagnosisStoresConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDiagnosisStoresConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "ListDiagnosisStores", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListDiagnosisStoresConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestErrors( + ListWorkRequestErrorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handler) { + LOG.trace("Called async listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListWorkRequestErrorsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequestLogs( + ListWorkRequestLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handler) { + LOG.trace("Called async listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListWorkRequestLogsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listWorkRequests( + ListWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse> + handler) { + LOG.trace("Called async listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "ListWorkRequests", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + ListWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListWorkRequestsRequest, ListWorkRequestsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListWorkRequestsRequest, ListWorkRequestsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request, + final com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisByHealthCheckKeyRequest, + QueryDiagnosisByHealthCheckKeyResponse> + handler) { + LOG.trace("Called async queryDiagnosisByHealthCheckKey"); + final QueryDiagnosisByHealthCheckKeyRequest interceptedRequest = + QueryDiagnosisByHealthCheckKeyConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + QueryDiagnosisByHealthCheckKeyConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", + "QueryDiagnosisByHealthCheckKey", + ib.getRequestUri().toString(), + ""); + final java.util.function.Function< + javax.ws.rs.core.Response, QueryDiagnosisByHealthCheckKeyResponse> + transformer = + QueryDiagnosisByHealthCheckKeyConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisByHealthCheckKeyRequest, + QueryDiagnosisByHealthCheckKeyResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisByHealthCheckKeyRequest, + QueryDiagnosisByHealthCheckKeyResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getQueryDiagnosisByHealthCheckKeyDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + QueryDiagnosisByHealthCheckKeyRequest, QueryDiagnosisByHealthCheckKeyResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future queryDiagnosisSummary( + QueryDiagnosisSummaryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse> + handler) { + LOG.trace("Called async queryDiagnosisSummary"); + final QueryDiagnosisSummaryRequest interceptedRequest = + QueryDiagnosisSummaryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + QueryDiagnosisSummaryConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "QueryDiagnosisSummary", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + QueryDiagnosisSummaryConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getQueryDiagnosisSummaryDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + QueryDiagnosisSummaryRequest, QueryDiagnosisSummaryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future requestDiagnosis( + RequestDiagnosisRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RequestDiagnosisRequest, RequestDiagnosisResponse> + handler) { + LOG.trace("Called async requestDiagnosis"); + final RequestDiagnosisRequest interceptedRequest = + RequestDiagnosisConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RequestDiagnosisConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "RequestDiagnosis", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + RequestDiagnosisConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RequestDiagnosisRequest, RequestDiagnosisResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRequestDiagnosisDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RequestDiagnosisRequest, RequestDiagnosisResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateDiagnosisStore( + UpdateDiagnosisStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse> + handler) { + LOG.trace("Called async updateDiagnosisStore"); + final UpdateDiagnosisStoreRequest interceptedRequest = + UpdateDiagnosisStoreConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateDiagnosisStoreConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Diagnosis", "UpdateDiagnosisStore", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + UpdateDiagnosisStoreConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateDiagnosisStoreDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateDiagnosisStoreRequest, UpdateDiagnosisStoreResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java similarity index 56% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java index b402ab81a1f..ccb0da25781 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisClient.java @@ -2,39 +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; +package com.oracle.bmc.clusterhealth; -import com.oracle.bmc.distributeddatabasev26.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.clusterhealth.internal.http.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; import com.oracle.bmc.util.CircuitBreakerUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServiceClient implements DistributedDbService { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DiagnosisClient implements Diagnosis { /** - * Service instance for DistributedDbService. + * Service instance for Diagnosis. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbServiceClient.class.getName()) + .serviceName(DiagnosisClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbServiceClient.class); + org.slf4j.LoggerFactory.getLogger(DiagnosisClient.class); com.oracle.bmc.http.internal.RestClient getClient() { return client; } - private final DistributedDbServiceWaiters waiters; + private final DiagnosisWaiters waiters; - private final DistributedDbServicePaginators paginators; + private final DiagnosisPaginators paginators; private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; @@ -78,7 +78,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -88,7 +88,7 @@ public DistributedDbServiceClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -101,7 +101,7 @@ public DistributedDbServiceClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -123,7 +123,7 @@ public DistributedDbServiceClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -147,7 +147,7 @@ public DistributedDbServiceClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -174,7 +174,7 @@ public DistributedDbServiceClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -205,7 +205,7 @@ public DistributedDbServiceClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -241,7 +241,7 @@ public DistributedDbServiceClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor */ - public DistributedDbServiceClient( + public DiagnosisClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -282,7 +282,7 @@ public DistributedDbServiceClient( * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - protected DistributedDbServiceClient( + protected DiagnosisClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -356,15 +356,15 @@ protected DistributedDbServiceClient( new java.util.concurrent.LinkedBlockingQueue(), com.oracle.bmc.internal.ClientThreadFactory.builder() .isDaemon(true) - .nameFormat("DistributedDbService-waiters-%d") + .nameFormat("Diagnosis-waiters-%d") .build()); threadPoolExecutor.allowCoreThreadTimeOut(true); executorService = threadPoolExecutor; } - this.waiters = new DistributedDbServiceWaiters(executorService, this); + this.waiters = new DiagnosisWaiters(executorService, this); - this.paginators = new DistributedDbServicePaginators(this); + this.paginators = new DiagnosisPaginators(this); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { com.oracle.bmc.auth.RegionProvider provider = @@ -384,11 +384,6 @@ protected DistributedDbServiceClient( if (endpoint != null) { setEndpoint(endpoint); } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( - "DistributedDbServiceClient", "generateDistributedDatabaseWallet")); - } } /** @@ -404,8 +399,7 @@ public static Builder builder() { * {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbServiceClient> { + extends com.oracle.bmc.common.RegionalClientBuilder { private java.util.concurrent.ExecutorService executorService; private Builder(com.oracle.bmc.Service service) { @@ -430,7 +424,7 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbServiceClient build( + public DiagnosisClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -438,7 +432,7 @@ public DistributedDbServiceClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new DistributedDbServiceClient( + return new DiagnosisClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -565,121 +559,23 @@ public void close() { } @Override - public AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request) { - LOG.trace("Called addDistributedDatabaseGdsControlNode"); - final AddDistributedDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedDatabaseGdsControlNodeConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "AddDistributedDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/AddDistributedDatabaseGdsControlNode"); - java.util.function.Function< - javax.ws.rs.core.Response, AddDistributedDatabaseGdsControlNodeResponse> - transformer = - AddDistributedDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getAddDistributedDatabaseGdsControlNodeDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCompartment( - ChangeDistributedDatabaseCompartmentRequest request) { - LOG.trace("Called changeDistributedDatabaseCompartment"); - final ChangeDistributedDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedDatabaseCompartmentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDatabaseCompartment"); - java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDatabaseCompartmentResponse> - transformer = - ChangeDistributedDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedDatabaseCompartmentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( - ChangeDistributedDbBackupConfigRequest request) { - LOG.trace("Called changeDistributedDbBackupConfig"); - final ChangeDistributedDbBackupConfigRequest interceptedRequest = - ChangeDistributedDbBackupConfigConverter.interceptRequest(request); + public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { + LOG.trace("Called cancelWorkRequest"); + final CancelWorkRequestRequest interceptedRequest = + CancelWorkRequestConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDbBackupConfigConverter.fromRequest(client, interceptedRequest); + CancelWorkRequestConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDbBackupConfig"); - java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDbBackupConfigResponse> + "Diagnosis", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - ChangeDistributedDbBackupConfigConverter.fromResponse( + CancelWorkRequestConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -691,44 +587,35 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedDbBackupConfigDetails(), - retriedRequest); + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public ConfigureDistributedDatabaseAutoResourceManagementResponse - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request) { - LOG.trace("Called configureDistributedDatabaseAutoResourceManagement"); - final ConfigureDistributedDatabaseAutoResourceManagementRequest interceptedRequest = - ConfigureDistributedDatabaseAutoResourceManagementConverter.interceptRequest( - request); + public ChangeDiagnosisStoreCompartmentResponse changeDiagnosisStoreCompartment( + ChangeDiagnosisStoreCompartmentRequest request) { + LOG.trace("Called changeDiagnosisStoreCompartment"); + final ChangeDiagnosisStoreCompartmentRequest interceptedRequest = + ChangeDiagnosisStoreCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); + ChangeDiagnosisStoreCompartmentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseAutoResourceManagement", + "Diagnosis", + "ChangeDiagnosisStoreCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedDatabaseAutoResourceManagementResponse> + javax.ws.rs.core.Response, ChangeDiagnosisStoreCompartmentResponse> transformer = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromResponse( + ChangeDiagnosisStoreCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -743,7 +630,7 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( client.post( ib, retriedRequest - .getConfigureDistributedDatabaseAutoResourceManagementDetails(), + .getChangeDiagnosisStoreCompartmentDetails(), retriedRequest); return transformer.apply(response); }); @@ -751,13 +638,12 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( } @Override - public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request) { - LOG.trace("Called configureDistributedDatabaseGsms"); - final ConfigureDistributedDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedDatabaseGsmsConverter.interceptRequest(request); + public CreateDiagnosisStoreResponse createDiagnosisStore(CreateDiagnosisStoreRequest request) { + LOG.trace("Called createDiagnosisStore"); + final CreateDiagnosisStoreRequest interceptedRequest = + CreateDiagnosisStoreConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); + CreateDiagnosisStoreConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -766,14 +652,10 @@ public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseGsms"); - java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseGsmsResponse> + "Diagnosis", "CreateDiagnosisStore", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - ConfigureDistributedDatabaseGsmsConverter.fromResponse( + CreateDiagnosisStoreConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -787,8 +669,7 @@ public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getConfigureDistributedDatabaseGsmsDetails(), + retriedRequest.getCreateDiagnosisStoreDetails(), retriedRequest); return transformer.apply(response); }); @@ -796,70 +677,23 @@ public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms } @Override - public ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request) { - LOG.trace("Called configureDistributedDatabaseSharding"); - final ConfigureDistributedDatabaseShardingRequest interceptedRequest = - ConfigureDistributedDatabaseShardingConverter.interceptRequest(request); + public DeleteDiagnosisStoreResponse deleteDiagnosisStore(DeleteDiagnosisStoreRequest request) { + LOG.trace("Called deleteDiagnosisStore"); + final DeleteDiagnosisStoreRequest interceptedRequest = + DeleteDiagnosisStoreConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseShardingConverter.fromRequest( - client, interceptedRequest); + DeleteDiagnosisStoreConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseSharding"); - java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseShardingResponse> - transformer = - ConfigureDistributedDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public CreateDistributedDatabaseResponse createDistributedDatabase( - CreateDistributedDatabaseRequest request) { - LOG.trace("Called createDistributedDatabase"); - final CreateDistributedDatabaseRequest interceptedRequest = - CreateDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "CreateDistributedDatabase", - ib.getRequestUri().toString(), - ""); - java.util.function.Function + "Diagnosis", "DeleteDiagnosisStore", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - CreateDistributedDatabaseConverter.fromResponse( + DeleteDiagnosisStoreConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -871,39 +705,30 @@ public CreateDistributedDatabaseResponse createDistributedDatabase( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getCreateDistributedDatabaseDetails(), - retriedRequest); + client.delete(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteDistributedDatabaseResponse deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request) { - LOG.trace("Called deleteDistributedDatabase"); - final DeleteDistributedDatabaseRequest interceptedRequest = - DeleteDistributedDatabaseConverter.interceptRequest(request); + public GetDiagnosisStoreResponse getDiagnosisStore(GetDiagnosisStoreRequest request) { + LOG.trace("Called getDiagnosisStore"); + final GetDiagnosisStoreRequest interceptedRequest = + GetDiagnosisStoreConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabaseConverter.fromRequest(client, interceptedRequest); + GetDiagnosisStoreConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "DeleteDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/DeleteDistributedDatabase"); - java.util.function.Function + "Diagnosis", "GetDiagnosisStore", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - DeleteDistributedDatabaseConverter.fromResponse( + GetDiagnosisStoreConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -914,38 +739,29 @@ public DeleteDistributedDatabaseResponse deleteDistributedDatabase( return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request) { - LOG.trace("Called generateDistributedDatabaseWallet"); - final GenerateDistributedDatabaseWalletRequest interceptedRequest = - GenerateDistributedDatabaseWalletConverter.interceptRequest(request); + public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { + LOG.trace("Called getWorkRequest"); + final GetWorkRequestRequest interceptedRequest = + GetWorkRequestConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedDatabaseWalletConverter.fromRequest(client, interceptedRequest); + GetWorkRequestConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GenerateDistributedDatabaseWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, GenerateDistributedDatabaseWalletResponse> - transformer = - GenerateDistributedDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); + "Diagnosis", "GetWorkRequest", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, retryRequest -> { @@ -955,25 +771,19 @@ public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWall return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getGenerateDistributedDatabaseWalletDetails(), - retriedRequest); + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public GetDistributedDatabaseResponse getDistributedDatabase( - GetDistributedDatabaseRequest request) { - LOG.trace("Called getDistributedDatabase"); - final GetDistributedDatabaseRequest interceptedRequest = - GetDistributedDatabaseConverter.interceptRequest(request); + public ListDiagnosisStoresResponse listDiagnosisStores(ListDiagnosisStoresRequest request) { + LOG.trace("Called listDiagnosisStores"); + final ListDiagnosisStoresRequest interceptedRequest = + ListDiagnosisStoresConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseConverter.fromRequest(client, interceptedRequest); + ListDiagnosisStoresConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -981,13 +791,10 @@ public GetDistributedDatabaseResponse getDistributedDatabase( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabase"); - java.util.function.Function + "Diagnosis", "ListDiagnosisStores", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - GetDistributedDatabaseConverter.fromResponse( + ListDiagnosisStoresConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1005,13 +812,13 @@ public GetDistributedDatabaseResponse getDistributedDatabase( } @Override - public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request) { - LOG.trace("Called getDistributedDatabaseRaftMetric"); - final GetDistributedDatabaseRaftMetricRequest interceptedRequest = - GetDistributedDatabaseRaftMetricConverter.interceptRequest(request); + public ListWorkRequestErrorsResponse listWorkRequestErrors( + ListWorkRequestErrorsRequest request) { + LOG.trace("Called listWorkRequestErrors"); + final ListWorkRequestErrorsRequest interceptedRequest = + ListWorkRequestErrorsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRaftMetricConverter.fromRequest(client, interceptedRequest); + ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1019,14 +826,10 @@ public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRaftMetric"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRaftMetricResponse> + "Diagnosis", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - GetDistributedDatabaseRaftMetricConverter.fromResponse( + ListWorkRequestErrorsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1044,13 +847,12 @@ public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric } @Override - public GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request) { - LOG.trace("Called getDistributedDatabaseRuChangeLog"); - final GetDistributedDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedDatabaseRuChangeLogConverter.interceptRequest(request); + public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { + LOG.trace("Called listWorkRequestLogs"); + final ListWorkRequestLogsRequest interceptedRequest = + ListWorkRequestLogsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRuChangeLogConverter.fromRequest(client, interceptedRequest); + ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1058,14 +860,10 @@ public GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeL com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRuChangeLogResponse> + "Diagnosis", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - GetDistributedDatabaseRuChangeLogConverter.fromResponse( + ListWorkRequestLogsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1083,13 +881,12 @@ public GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeL } @Override - public ListDistributedDatabasesResponse listDistributedDatabases( - ListDistributedDatabasesRequest request) { - LOG.trace("Called listDistributedDatabases"); - final ListDistributedDatabasesRequest interceptedRequest = - ListDistributedDatabasesConverter.interceptRequest(request); + public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { + LOG.trace("Called listWorkRequests"); + final ListWorkRequestsRequest interceptedRequest = + ListWorkRequestsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasesConverter.fromRequest(client, interceptedRequest); + ListWorkRequestsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -1097,13 +894,10 @@ public ListDistributedDatabasesResponse listDistributedDatabases( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ListDistributedDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabaseCollection/ListDistributedDatabases"); - java.util.function.Function + "Diagnosis", "ListWorkRequests", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - ListDistributedDatabasesConverter.fromResponse( + ListWorkRequestsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1121,30 +915,28 @@ public ListDistributedDatabasesResponse listDistributedDatabases( } @Override - public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request) { - LOG.trace("Called moveDistributedDatabaseReplicationUnit"); - final MoveDistributedDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedDatabaseReplicationUnitConverter.interceptRequest(request); + public QueryDiagnosisByHealthCheckKeyResponse queryDiagnosisByHealthCheckKey( + QueryDiagnosisByHealthCheckKeyRequest request) { + LOG.trace("Called queryDiagnosisByHealthCheckKey"); + final QueryDiagnosisByHealthCheckKeyRequest interceptedRequest = + QueryDiagnosisByHealthCheckKeyConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); + QueryDiagnosisByHealthCheckKeyConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "MoveDistributedDatabaseReplicationUnit", + "Diagnosis", + "QueryDiagnosisByHealthCheckKey", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/MoveDistributedDatabaseReplicationUnit"); + ""); java.util.function.Function< - javax.ws.rs.core.Response, MoveDistributedDatabaseReplicationUnitResponse> + javax.ws.rs.core.Response, QueryDiagnosisByHealthCheckKeyResponse> transformer = - MoveDistributedDatabaseReplicationUnitConverter.fromResponse( + QueryDiagnosisByHealthCheckKeyConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1159,7 +951,7 @@ public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseRep client.post( ib, retriedRequest - .getMoveDistributedDatabaseReplicationUnitDetails(), + .getQueryDiagnosisByHealthCheckKeyDetails(), retriedRequest); return transformer.apply(response); }); @@ -1167,116 +959,24 @@ public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseRep } @Override - public PatchDistributedDatabaseResponse patchDistributedDatabase( - PatchDistributedDatabaseRequest request) { - LOG.trace("Called patchDistributedDatabase"); - final PatchDistributedDatabaseRequest interceptedRequest = - PatchDistributedDatabaseConverter.interceptRequest(request); + public QueryDiagnosisSummaryResponse queryDiagnosisSummary( + QueryDiagnosisSummaryRequest request) { + LOG.trace("Called queryDiagnosisSummary"); + final QueryDiagnosisSummaryRequest interceptedRequest = + QueryDiagnosisSummaryConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabaseConverter.fromRequest(client, interceptedRequest); + QueryDiagnosisSummaryConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "PatchDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/PatchDistributedDatabase"); - java.util.function.Function + "Diagnosis", "QueryDiagnosisSummary", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - PatchDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.patch( - ib, - retriedRequest.getPatchDistributedDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RecreateFailedDistributedDatabaseResourceResponse - recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request) { - LOG.trace("Called recreateFailedDistributedDatabaseResource"); - final RecreateFailedDistributedDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedDatabaseResourceConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RecreateFailedDistributedDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RecreateFailedDistributedDatabaseResource"); - java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedDatabaseResourceResponse> - transformer = - RecreateFailedDistributedDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request) { - LOG.trace("Called rotateDistributedDatabasePasswords"); - final RotateDistributedDatabasePasswordsRequest interceptedRequest = - RotateDistributedDatabasePasswordsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedDatabasePasswordsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RotateDistributedDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RotateDistributedDatabasePasswords"); - java.util.function.Function< - javax.ws.rs.core.Response, RotateDistributedDatabasePasswordsResponse> - transformer = - RotateDistributedDatabasePasswordsConverter.fromResponse( + QueryDiagnosisSummaryConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1290,8 +990,7 @@ public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePassw javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getRotateDistributedDatabasePasswordsDetails(), + retriedRequest.getQueryDiagnosisSummaryDetails(), retriedRequest); return transformer.apply(response); }); @@ -1299,28 +998,23 @@ public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePassw } @Override - public ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request) { - LOG.trace("Called scaleDistributedDatabaseGsms"); - final ScaleDistributedDatabaseGsmsRequest interceptedRequest = - ScaleDistributedDatabaseGsmsConverter.interceptRequest(request); + public RequestDiagnosisResponse requestDiagnosis(RequestDiagnosisRequest request) { + LOG.trace("Called requestDiagnosis"); + final RequestDiagnosisRequest interceptedRequest = + RequestDiagnosisConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); + RequestDiagnosisConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ScaleDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms"); - java.util.function.Function + "Diagnosis", "RequestDiagnosis", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - ScaleDistributedDatabaseGsmsConverter.fromResponse( + RequestDiagnosisConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1334,8 +1028,7 @@ public ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( javax.ws.rs.core.Response response = client.post( ib, - retriedRequest - .getScaleDistributedDatabaseGsmsDetails(), + retriedRequest.getRequestDiagnosisDetails(), retriedRequest); return transformer.apply(response); }); @@ -1343,107 +1036,23 @@ public ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( } @Override - public StartDistributedDatabaseResponse startDistributedDatabase( - StartDistributedDatabaseRequest request) { - LOG.trace("Called startDistributedDatabase"); - final StartDistributedDatabaseRequest interceptedRequest = - StartDistributedDatabaseConverter.interceptRequest(request); + public UpdateDiagnosisStoreResponse updateDiagnosisStore(UpdateDiagnosisStoreRequest request) { + LOG.trace("Called updateDiagnosisStore"); + final UpdateDiagnosisStoreRequest interceptedRequest = + UpdateDiagnosisStoreConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedDatabaseConverter.fromRequest(client, interceptedRequest); + UpdateDiagnosisStoreConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StartDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StartDistributedDatabase"); - java.util.function.Function + "Diagnosis", "UpdateDiagnosisStore", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = - StartDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StopDistributedDatabaseResponse stopDistributedDatabase( - StopDistributedDatabaseRequest request) { - LOG.trace("Called stopDistributedDatabase"); - final StopDistributedDatabaseRequest interceptedRequest = - StopDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StopDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StopDistributedDatabase"); - java.util.function.Function - transformer = - StopDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public UpdateDistributedDatabaseResponse updateDistributedDatabase( - UpdateDistributedDatabaseRequest request) { - LOG.trace("Called updateDistributedDatabase"); - final UpdateDistributedDatabaseRequest interceptedRequest = - UpdateDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "UpdateDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/UpdateDistributedDatabase"); - java.util.function.Function - transformer = - UpdateDistributedDatabaseConverter.fromResponse( + UpdateDiagnosisStoreConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -1457,8 +1066,7 @@ public UpdateDistributedDatabaseResponse updateDistributedDatabase( javax.ws.rs.core.Response response = client.put( ib, - retriedRequest - .getUpdateDistributedDatabaseDetails(), + retriedRequest.getUpdateDiagnosisStoreDetails(), retriedRequest); return transformer.apply(response); }); @@ -1466,53 +1074,12 @@ public UpdateDistributedDatabaseResponse updateDistributedDatabase( } @Override - public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( - ValidateDistributedDatabaseNetworkRequest request) { - LOG.trace("Called validateDistributedDatabaseNetwork"); - final ValidateDistributedDatabaseNetworkRequest interceptedRequest = - ValidateDistributedDatabaseNetworkConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedDatabaseNetworkConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ValidateDistributedDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ValidateDistributedDatabaseNetwork"); - java.util.function.Function< - javax.ws.rs.core.Response, ValidateDistributedDatabaseNetworkResponse> - transformer = - ValidateDistributedDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DistributedDbServiceWaiters getWaiters() { + public DiagnosisWaiters getWaiters() { return waiters; } @Override - public DistributedDbServicePaginators getPaginators() { + public DiagnosisPaginators getPaginators() { return paginators; } } diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java new file mode 100644 index 00000000000..3c141a6872c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisPaginators.java @@ -0,0 +1,491 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface + * to any list operations of Diagnosis 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. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DiagnosisPaginators { + private final Diagnosis client; + + public DiagnosisPaginators(Diagnosis client) { + this.client = client; + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDiagnosisStores 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 listDiagnosisStoresResponseIterator( + final ListDiagnosisStoresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDiagnosisStoresRequest.Builder, ListDiagnosisStoresRequest, + ListDiagnosisStoresResponse>( + new java.util.function.Supplier() { + @Override + public ListDiagnosisStoresRequest.Builder get() { + return ListDiagnosisStoresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDiagnosisStoresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.Builder>, + ListDiagnosisStoresRequest>() { + @Override + public ListDiagnosisStoresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.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< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse>() { + @Override + public ListDiagnosisStoresResponse apply(ListDiagnosisStoresRequest request) { + return client.listDiagnosisStores(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary} objects + * contained in responses from the listDiagnosisStores 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.clusterhealth.model.DiagnosisStoreSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDiagnosisStoresRecordIterator(final ListDiagnosisStoresRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDiagnosisStoresRequest.Builder, ListDiagnosisStoresRequest, + ListDiagnosisStoresResponse, + com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary>( + new java.util.function.Supplier() { + @Override + public ListDiagnosisStoresRequest.Builder get() { + return ListDiagnosisStoresRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDiagnosisStoresResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.Builder>, + ListDiagnosisStoresRequest>() { + @Override + public ListDiagnosisStoresRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDiagnosisStoresRequest.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< + ListDiagnosisStoresRequest, ListDiagnosisStoresResponse>() { + @Override + public ListDiagnosisStoresResponse apply(ListDiagnosisStoresRequest request) { + return client.listDiagnosisStores(request); + } + }, + new java.util.function.Function< + ListDiagnosisStoresResponse, + java.util.List< + com.oracle.bmc.clusterhealth.model.DiagnosisStoreSummary>>() { + @Override + public java.util.List + apply(ListDiagnosisStoresResponse response) { + return response.getDiagnosisStoreCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestErrorsResponseIterator( + final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.clusterhealth.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.clusterhealth.model.WorkRequestError} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestErrorsRecordIterator(final ListWorkRequestErrorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestErrorsRequest.Builder, ListWorkRequestErrorsRequest, + ListWorkRequestErrorsResponse, com.oracle.bmc.clusterhealth.model.WorkRequestError>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestErrorsRequest.Builder get() { + return ListWorkRequestErrorsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestErrorsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder>, + ListWorkRequestErrorsRequest>() { + @Override + public ListWorkRequestErrorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestErrorsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>() { + @Override + public ListWorkRequestErrorsResponse apply( + ListWorkRequestErrorsRequest request) { + return client.listWorkRequestErrors(request); + } + }, + new java.util.function.Function< + ListWorkRequestErrorsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestErrorsResponse response) { + return response.getWorkRequestErrorCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequestLogs operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestLogsResponseIterator( + final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.clusterhealth.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.clusterhealth.model.WorkRequestLogEntry} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestLogsRecordIterator(final ListWorkRequestLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestLogsRequest.Builder, ListWorkRequestLogsRequest, + ListWorkRequestLogsResponse, + com.oracle.bmc.clusterhealth.model.WorkRequestLogEntry>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestLogsRequest.Builder get() { + return ListWorkRequestLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder>, + ListWorkRequestLogsRequest>() { + @Override + public ListWorkRequestLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestLogsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>() { + @Override + public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { + return client.listWorkRequestLogs(request); + } + }, + new java.util.function.Function< + ListWorkRequestLogsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestLogsResponse response) { + return response.getWorkRequestLogEntryCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listWorkRequests operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listWorkRequestsResponseIterator( + final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.clusterhealth.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.clusterhealth.model.WorkRequestSummary} objects + * contained in responses received from the service. + */ + public Iterable + listWorkRequestsRecordIterator(final ListWorkRequestsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListWorkRequestsRequest.Builder, ListWorkRequestsRequest, ListWorkRequestsResponse, + com.oracle.bmc.clusterhealth.model.WorkRequestSummary>( + new java.util.function.Supplier() { + @Override + public ListWorkRequestsRequest.Builder get() { + return ListWorkRequestsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListWorkRequestsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder>, + ListWorkRequestsRequest>() { + @Override + public ListWorkRequestsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListWorkRequestsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListWorkRequestsRequest, ListWorkRequestsResponse>() { + @Override + public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { + return client.listWorkRequests(request); + } + }, + new java.util.function.Function< + ListWorkRequestsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListWorkRequestsResponse response) { + return response.getWorkRequestSummaryCollection().getItems(); + } + }); + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.java new file mode 100644 index 00000000000..5c47a5b4525 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/DiagnosisWaiters.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth; + +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; + +/** + * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different + * resources of Diagnosis. + *

+ * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DiagnosisWaiters { + private final java.util.concurrent.ExecutorService executorService; + private final Diagnosis client; + + public DiagnosisWaiters( + java.util.concurrent.ExecutorService executorService, Diagnosis 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 + forDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.clusterhealth.model.DiagnosisStore.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 forDiagnosisStore( + 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 + forDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.clusterhealth.model.DiagnosisStore.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 forDiagnosisStore( + 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 + forDiagnosisStore( + GetDiagnosisStoreRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.clusterhealth.model.DiagnosisStore.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 forDiagnosisStore( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DiagnosisStore. + private com.oracle.bmc.waiter.Waiter + forDiagnosisStore( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDiagnosisStoreRequest request, + final com.oracle.bmc.clusterhealth.model.DiagnosisStore.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< + GetDiagnosisStoreRequest, GetDiagnosisStoreResponse>() { + @Override + public GetDiagnosisStoreResponse apply( + GetDiagnosisStoreRequest request) { + return client.getDiagnosisStore(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDiagnosisStoreResponse response) { + return targetStatesSet.contains( + response.getDiagnosisStore().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState + .Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. + * + * @param request the request to send + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest(GetWorkRequestRequest request) { + return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forWorkRequest( + GetWorkRequestRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + return forWorkRequest( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request); + } + + // Helper method to create a new Waiter for WorkRequest. + private com.oracle.bmc.waiter.Waiter + forWorkRequest( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetWorkRequestRequest request) { + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetWorkRequestRequest, GetWorkRequestResponse>() { + @Override + public GetWorkRequestResponse apply(GetWorkRequestRequest request) { + return client.getWorkRequest(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetWorkRequestResponse response) { + // work requests are complete once the time finished is available + return response.getWorkRequest().getTimeFinished() != null; + } + }, + false), + request); + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/SdkClientsMetadata.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/SdkClientsMetadata.java new file mode 100644 index 00000000000..47d2569642a --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/SdkClientsMetadata.java @@ -0,0 +1,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.clusterhealth; + +import com.oracle.bmc.SdkClients; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@SdkClients({DiagnosisAsyncClient.class, DiagnosisClient.class}) +public final class SdkClientsMetadata {} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CancelWorkRequestConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CancelWorkRequestConverter.java new file mode 100644 index 00000000000..5f7d8607ac7 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CancelWorkRequestConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CancelWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CancelWorkRequestConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.CancelWorkRequestRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.CancelWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.CancelWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .CancelWorkRequestResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .CancelWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.CancelWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ChangeDiagnosisStoreCompartmentConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ChangeDiagnosisStoreCompartmentConverter.java new file mode 100644 index 00000000000..c6b55978f8c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ChangeDiagnosisStoreCompartmentConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ChangeDiagnosisStoreCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeDiagnosisStoreCompartmentConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.ChangeDiagnosisStoreCompartmentRequest + interceptRequest( + com.oracle.bmc.clusterhealth.requests.ChangeDiagnosisStoreCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.ChangeDiagnosisStoreCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Validate.notNull( + request.getChangeDiagnosisStoreCompartmentDetails(), + "changeDiagnosisStoreCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ChangeDiagnosisStoreCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ChangeDiagnosisStoreCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .ChangeDiagnosisStoreCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .ChangeDiagnosisStoreCompartmentResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .ChangeDiagnosisStoreCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.ChangeDiagnosisStoreCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses + .ChangeDiagnosisStoreCompartmentResponse.Builder + builder = + com.oracle.bmc.clusterhealth.responses + .ChangeDiagnosisStoreCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses + .ChangeDiagnosisStoreCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CreateDiagnosisStoreConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CreateDiagnosisStoreConverter.java new file mode 100644 index 00000000000..fd6f851032c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/CreateDiagnosisStoreConverter.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.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CreateDiagnosisStoreConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateDiagnosisStoreConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.CreateDiagnosisStoreRequest + interceptRequest( + com.oracle.bmc.clusterhealth.requests.CreateDiagnosisStoreRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.CreateDiagnosisStoreRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateDiagnosisStoreDetails(), + "createDiagnosisStoreDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20260331").path("diagnosisStores"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.CreateDiagnosisStoreResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.CreateDiagnosisStoreResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.CreateDiagnosisStoreResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .CreateDiagnosisStoreResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .CreateDiagnosisStoreResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.CreateDiagnosisStoreResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisStore>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisStore + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisStore + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model.DiagnosisStore> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.CreateDiagnosisStoreResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .CreateDiagnosisStoreResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.diagnosisStore(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLocationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-location"); + if (contentLocationHeader.isPresent()) { + builder.contentLocation( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-location", + contentLocationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.CreateDiagnosisStoreResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/DeleteDiagnosisStoreConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/DeleteDiagnosisStoreConverter.java new file mode 100644 index 00000000000..800ec235cfb --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/DeleteDiagnosisStoreConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DeleteDiagnosisStoreConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteDiagnosisStoreConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.DeleteDiagnosisStoreRequest + interceptRequest( + com.oracle.bmc.clusterhealth.requests.DeleteDiagnosisStoreRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.DeleteDiagnosisStoreRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.DeleteDiagnosisStoreResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.DeleteDiagnosisStoreResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.DeleteDiagnosisStoreResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .DeleteDiagnosisStoreResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .DeleteDiagnosisStoreResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.DeleteDiagnosisStoreResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.DeleteDiagnosisStoreResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .DeleteDiagnosisStoreResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.DeleteDiagnosisStoreResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetDiagnosisStoreConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetDiagnosisStoreConverter.java new file mode 100644 index 00000000000..58ff46ad270 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetDiagnosisStoreConverter.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetDiagnosisStoreConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetDiagnosisStoreConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.GetDiagnosisStoreRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.GetDiagnosisStoreRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.GetDiagnosisStoreRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .GetDiagnosisStoreResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisStore>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisStore + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisStore + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model.DiagnosisStore> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .GetDiagnosisStoreResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.diagnosisStore(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.GetDiagnosisStoreResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetWorkRequestConverter.java similarity index 75% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetWorkRequestConverter.java index 726613405e7..729e10e3ae6 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/GetWorkRequestConverter.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.internal.http; +package com.oracle.bmc.clusterhealth.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public class GetWorkRequestConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -19,22 +19,21 @@ public class GetWorkRequestConverter { private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(GetWorkRequestConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.GetWorkRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.GetWorkRequestRequest request) { + public static com.oracle.bmc.clusterhealth.requests.GetWorkRequestRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.GetWorkRequestRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetWorkRequestRequest request) { + com.oracle.bmc.clusterhealth.requests.GetWorkRequestRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") + .path("/20260331") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -56,67 +55,71 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse> + com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse> + com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse> + com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse>() { + com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse + public com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse"); + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequest>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest + com.oracle.bmc.clusterhealth.model.WorkRequest .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest + com.oracle.bmc.clusterhealth.model.WorkRequest .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest> + com.oracle.bmc.clusterhealth.model.WorkRequest> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse.Builder + com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.clusterhealth.responses .GetWorkRequestResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); builder.workRequest(response.getItem()); + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); @@ -139,8 +142,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Integer.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse + com.oracle.bmc.clusterhealth.responses.GetWorkRequestResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListDiagnosisStoresConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListDiagnosisStoresConverter.java new file mode 100644 index 00000000000..73b33432bca --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListDiagnosisStoresConverter.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.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListDiagnosisStoresConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListDiagnosisStoresConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.ListDiagnosisStoresRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.ListDiagnosisStoresRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.ListDiagnosisStoresRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20260331").path("diagnosisStores"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getDiagnosisStoreId() != null) { + target = + target.queryParam( + "diagnosisStoreId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDiagnosisStoreId())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListDiagnosisStoresResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListDiagnosisStoresResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListDiagnosisStoresResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .ListDiagnosisStoresResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .ListDiagnosisStoresResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.ListDiagnosisStoresResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisStoreCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisStoreCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisStoreCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisStoreCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.ListDiagnosisStoresResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .ListDiagnosisStoresResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.diagnosisStoreCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.ListDiagnosisStoresResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestErrorsConverter.java similarity index 81% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestErrorsConverter.java index aa1e2e337e4..36928d5df17 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestErrorsConverter.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.internal.http; +package com.oracle.bmc.clusterhealth.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public class ListWorkRequestErrorsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -19,23 +19,22 @@ public class ListWorkRequestErrorsConverter { private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ListWorkRequestErrorsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestErrorsRequest + public static com.oracle.bmc.clusterhealth.requests.ListWorkRequestErrorsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestErrorsRequest - request) { + com.oracle.bmc.clusterhealth.requests.ListWorkRequestErrorsRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestErrorsRequest request) { + com.oracle.bmc.clusterhealth.requests.ListWorkRequestErrorsRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") + .path("/20260331") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -90,62 +89,61 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestErrorsResponse> + com.oracle.bmc.clusterhealth.responses.ListWorkRequestErrorsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestErrorsResponse> + com.oracle.bmc.clusterhealth.responses.ListWorkRequestErrorsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse> + com.oracle.bmc.clusterhealth.responses.ListWorkRequestErrorsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.clusterhealth.responses .ListWorkRequestErrorsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.clusterhealth.responses .ListWorkRequestErrorsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestErrorsResponse"); + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.ListWorkRequestErrorsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestErrorCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestErrorCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestErrorCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestErrorCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse.Builder + com.oracle.bmc.clusterhealth.responses.ListWorkRequestErrorsResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.clusterhealth.responses .ListWorkRequestErrorsResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -174,8 +172,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse + com.oracle.bmc.clusterhealth.responses.ListWorkRequestErrorsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestLogsConverter.java similarity index 82% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestLogsConverter.java index 63152502fdd..833b7d2d46d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestLogsConverter.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.internal.http; +package com.oracle.bmc.clusterhealth.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public class ListWorkRequestLogsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -19,23 +19,21 @@ public class ListWorkRequestLogsConverter { private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ListWorkRequestLogsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestLogsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestLogsRequest - request) { + public static com.oracle.bmc.clusterhealth.requests.ListWorkRequestLogsRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.ListWorkRequestLogsRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestLogsRequest request) { + com.oracle.bmc.clusterhealth.requests.ListWorkRequestLogsRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") + .path("/20260331") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -90,61 +88,61 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse> + com.oracle.bmc.clusterhealth.responses.ListWorkRequestLogsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse> + com.oracle.bmc.clusterhealth.responses.ListWorkRequestLogsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse> + com.oracle.bmc.clusterhealth.responses.ListWorkRequestLogsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.clusterhealth.responses .ListWorkRequestLogsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.clusterhealth.responses .ListWorkRequestLogsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse"); + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.ListWorkRequestLogsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestLogEntryCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestLogEntryCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestLogEntryCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.clusterhealth.model .WorkRequestLogEntryCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse.Builder + com.oracle.bmc.clusterhealth.responses.ListWorkRequestLogsResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.clusterhealth.responses .ListWorkRequestLogsResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -173,8 +171,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse + com.oracle.bmc.clusterhealth.responses.ListWorkRequestLogsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestsConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestsConverter.java new file mode 100644 index 00000000000..8bf2c2a7b43 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/ListWorkRequestsConverter.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestsConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.ListWorkRequestsRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.ListWorkRequestsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.ListWorkRequestsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20260331").path("workRequests"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getWorkRequestId() != null) { + target = + target.queryParam( + "workRequestId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWorkRequestId())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getResourceId() != null) { + target = + target.queryParam( + "resourceId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceId())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .WorkRequestSummaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .WorkRequestSummaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .WorkRequestSummaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .WorkRequestSummaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .ListWorkRequestsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestSummaryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.ListWorkRequestsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisByHealthCheckKeyConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisByHealthCheckKeyConverter.java new file mode 100644 index 00000000000..5c493a1c30c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisByHealthCheckKeyConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisByHealthCheckKeyConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(QueryDiagnosisByHealthCheckKeyConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.QueryDiagnosisByHealthCheckKeyRequest + interceptRequest( + com.oracle.bmc.clusterhealth.requests.QueryDiagnosisByHealthCheckKeyRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.QueryDiagnosisByHealthCheckKeyRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Validate.notNull( + request.getQueryDiagnosisByHealthCheckKeyDetails(), + "queryDiagnosisByHealthCheckKeyDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())) + .path("actions") + .path("queryDiagnosisByHealthCheckKey"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisByHealthCheckKeyResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisByHealthCheckKeyResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisByHealthCheckKeyResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisByHealthCheckKeyResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisByHealthCheckKeyResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.QueryDiagnosisByHealthCheckKeyResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .RecommendationReport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .RecommendationReport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .RecommendationReport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .RecommendationReport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisByHealthCheckKeyResponse.Builder + builder = + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisByHealthCheckKeyResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.recommendationReport(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisByHealthCheckKeyResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisSummaryConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisSummaryConverter.java new file mode 100644 index 00000000000..e07000cad26 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/QueryDiagnosisSummaryConverter.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisSummaryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(QueryDiagnosisSummaryConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.QueryDiagnosisSummaryRequest + interceptRequest( + com.oracle.bmc.clusterhealth.requests.QueryDiagnosisSummaryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.QueryDiagnosisSummaryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Validate.notNull( + request.getQueryDiagnosisSummaryDetails(), + "queryDiagnosisSummaryDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())) + .path("actions") + .path("queryDiagnosisSummary"); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisSummaryResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisSummaryResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisSummaryResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisSummaryResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisSummaryResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.QueryDiagnosisSummaryResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisSummaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisSummaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisSummaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisSummaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisSummaryResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .QueryDiagnosisSummaryResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.diagnosisSummaryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.QueryDiagnosisSummaryResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/RequestDiagnosisConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/RequestDiagnosisConverter.java new file mode 100644 index 00000000000..f4fa67ce0e7 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/RequestDiagnosisConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class RequestDiagnosisConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RequestDiagnosisConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.RequestDiagnosisRequest interceptRequest( + com.oracle.bmc.clusterhealth.requests.RequestDiagnosisRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.RequestDiagnosisRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Validate.notNull( + request.getRequestDiagnosisDetails(), "requestDiagnosisDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())) + .path("actions") + .path("requestDiagnosis"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model + .DiagnosisResults>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisResults + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.clusterhealth.model + .DiagnosisResults + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.clusterhealth.model.DiagnosisResults> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .RequestDiagnosisResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.diagnosisResults(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.RequestDiagnosisResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/UpdateDiagnosisStoreConverter.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/UpdateDiagnosisStoreConverter.java new file mode 100644 index 00000000000..f1d3c036b83 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/internal/http/UpdateDiagnosisStoreConverter.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.clusterhealth.model.*; +import com.oracle.bmc.clusterhealth.requests.*; +import com.oracle.bmc.clusterhealth.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class UpdateDiagnosisStoreConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateDiagnosisStoreConverter.class); + + public static com.oracle.bmc.clusterhealth.requests.UpdateDiagnosisStoreRequest + interceptRequest( + com.oracle.bmc.clusterhealth.requests.UpdateDiagnosisStoreRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.clusterhealth.requests.UpdateDiagnosisStoreRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getDiagnosisStoreId(), "diagnosisStoreId must not be blank"); + Validate.notNull( + request.getUpdateDiagnosisStoreDetails(), + "updateDiagnosisStoreDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260331") + .path("diagnosisStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getDiagnosisStoreId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.UpdateDiagnosisStoreResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.UpdateDiagnosisStoreResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses.UpdateDiagnosisStoreResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.clusterhealth.responses + .UpdateDiagnosisStoreResponse>() { + @Override + public com.oracle.bmc.clusterhealth.responses + .UpdateDiagnosisStoreResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.clusterhealth.responses.UpdateDiagnosisStoreResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.clusterhealth.responses.UpdateDiagnosisStoreResponse + .Builder + builder = + com.oracle.bmc.clusterhealth.responses + .UpdateDiagnosisStoreResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.clusterhealth.responses.UpdateDiagnosisStoreResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ActionType.java similarity index 95% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ActionType.java index 87a759e84be..57a765bff88 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ActionType.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.clusterhealth.model; /** * Possible types of actions. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public enum ActionType { Created("CREATED"), Updated("UPDATED"), diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.java similarity index 76% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.java index ccab319a946..b78c38c5be9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/ChangeDiagnosisStoreCompartmentDetails.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.clusterhealth.model; /** - * The configuration details for moving the resource for Globally distributed autonomous database to other compartment. - * + * The configuration details for the move operation. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedAutonomousDatabaseCompartmentDetails.Builder.class + builder = ChangeDiagnosisStoreCompartmentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedAutonomousDatabaseCompartmentDetails +public final class ChangeDiagnosisStoreCompartmentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedAutonomousDatabaseCompartmentDetails(String compartmentId) { + public ChangeDiagnosisStoreCompartmentDetails(String compartmentId) { super(); this.compartmentId = compartmentId; } @@ -32,14 +31,14 @@ public ChangeDistributedAutonomousDatabaseCompartmentDetails(String compartmentI @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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Diagnosis 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Diagnosis to. * * @param compartmentId the value to set * @return this builder @@ -53,9 +52,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 ChangeDiagnosisStoreCompartmentDetails build() { + ChangeDiagnosisStoreCompartmentDetails model = + new ChangeDiagnosisStoreCompartmentDetails(this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,7 +62,7 @@ public ChangeDistributedAutonomousDatabaseCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentDetails model) { + public Builder copy(ChangeDiagnosisStoreCompartmentDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -83,14 +82,14 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Diagnosis 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the Diagnosis to. * * @return the value **/ @@ -110,7 +109,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedAutonomousDatabaseCompartmentDetails("); + sb.append("ChangeDiagnosisStoreCompartmentDetails("); sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); @@ -122,12 +121,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentDetails)) { + if (!(o instanceof ChangeDiagnosisStoreCompartmentDetails)) { return false; } - ChangeDistributedAutonomousDatabaseCompartmentDetails other = - (ChangeDistributedAutonomousDatabaseCompartmentDetails) o; + ChangeDiagnosisStoreCompartmentDetails other = (ChangeDiagnosisStoreCompartmentDetails) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.java new file mode 100644 index 00000000000..13cf32db032 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/CreateDiagnosisStoreDetails.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.clusterhealth.model; + +/** + * The data to create a Diagnosis. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDiagnosisStoreDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateDiagnosisStoreDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "objectStoreNamespace", + "objectStoreBucket", + "compartmentId", + "freeformTags", + "definedTags" + }) + public CreateDiagnosisStoreDetails( + String displayName, + String objectStoreNamespace, + String objectStoreBucket, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param objectStoreNamespace the value to set + * @return this builder + **/ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private String objectStoreBucket; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param objectStoreBucket the value to set + * @return this builder + **/ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the Diagnosis in. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the Diagnosis in. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

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

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

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

+ * Example: {@code {"Operations": {"CostCenter": "42"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateDiagnosisStoreDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDiagnosisStoreDetails)) { + return false; + } + + CreateDiagnosisStoreDetails other = (CreateDiagnosisStoreDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.java new file mode 100644 index 00000000000..dc44618e293 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisResults.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * the results of requestDiagnosis + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiagnosisResults.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiagnosisResults extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"recommendationReports"}) + public DiagnosisResults(java.util.List recommendationReports) { + super(); + this.recommendationReports = recommendationReports; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * collection of recommendation reports generated for each requested test + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recommendationReports") + private java.util.List recommendationReports; + + /** + * collection of recommendation reports generated for each requested test + * @param recommendationReports the value to set + * @return this builder + **/ + public Builder recommendationReports( + java.util.List recommendationReports) { + this.recommendationReports = recommendationReports; + this.__explicitlySet__.add("recommendationReports"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiagnosisResults build() { + DiagnosisResults model = new DiagnosisResults(this.recommendationReports); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisResults model) { + if (model.wasPropertyExplicitlySet("recommendationReports")) { + this.recommendationReports(model.getRecommendationReports()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * collection of recommendation reports generated for each requested test + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recommendationReports") + private final java.util.List recommendationReports; + + /** + * collection of recommendation reports generated for each requested test + * @return the value + **/ + public java.util.List getRecommendationReports() { + return recommendationReports; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiagnosisResults("); + sb.append("super=").append(super.toString()); + sb.append("recommendationReports=").append(String.valueOf(this.recommendationReports)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiagnosisResults)) { + return false; + } + + DiagnosisResults other = (DiagnosisResults) o; + return java.util.Objects.equals(this.recommendationReports, other.recommendationReports) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.recommendationReports == null + ? 43 + : this.recommendationReports.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java new file mode 100644 index 00000000000..7fbadbebdfa --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStore.java @@ -0,0 +1,824 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * A DiagnosisStore is a description of a DiagnosisStore. + *

+ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to + * an administrator. If you're an administrator who needs to write policies to give users access, see + * [Getting Started with Policies](https://docs.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm). + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiagnosisStore.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiagnosisStore extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "lifecycleState", + "lifecycleDetails", + "objectStoreNamespace", + "objectStoreBucket", + "timeCreated", + "timeUpdated", + "lastAcceptedRequestToken", + "lastCompletedRequestToken", + "freeformTags", + "definedTags", + "systemTags" + }) + public DiagnosisStore( + String id, + String displayName, + String compartmentId, + LifecycleState lifecycleState, + String lifecycleDetails, + String objectStoreNamespace, + String objectStoreBucket, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String lastAcceptedRequestToken, + String lastCompletedRequestToken, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lastAcceptedRequestToken = lastAcceptedRequestToken; + this.lastCompletedRequestToken = lastCompletedRequestToken; + 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 DiagnosisStore. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DiagnosisStore. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The current state of the Diagnosis. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message that describes the current state of the Diagnosis in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A message that describes the current state of the Diagnosis in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * The namespace of the object store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * The namespace of the object store. + * @param objectStoreNamespace the value to set + * @return this builder + **/ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + return this; + } + /** + * The name of the object store bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private String objectStoreBucket; + + /** + * The name of the object store bucket. + * @param objectStoreBucket the value to set + * @return this builder + **/ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC 3339](https://tools.ietf + * .org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the Diagnosis Store was updated, in the format defined by [RFC 3339](https://tools.ietf + * .org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The last accepted request token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastAcceptedRequestToken") + private String lastAcceptedRequestToken; + + /** + * The last accepted request token. + * @param lastAcceptedRequestToken the value to set + * @return this builder + **/ + public Builder lastAcceptedRequestToken(String lastAcceptedRequestToken) { + this.lastAcceptedRequestToken = lastAcceptedRequestToken; + this.__explicitlySet__.add("lastAcceptedRequestToken"); + return this; + } + /** + * The last completed request token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastCompletedRequestToken") + private String lastCompletedRequestToken; + + /** + * The last completed request token. + * @param lastCompletedRequestToken the value to set + * @return this builder + **/ + public Builder lastCompletedRequestToken(String lastCompletedRequestToken) { + this.lastCompletedRequestToken = lastCompletedRequestToken; + this.__explicitlySet__.add("lastCompletedRequestToken"); + 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 DiagnosisStore build() { + DiagnosisStore model = + new DiagnosisStore( + this.id, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.lifecycleDetails, + this.objectStoreNamespace, + this.objectStoreBucket, + this.timeCreated, + this.timeUpdated, + this.lastAcceptedRequestToken, + this.lastCompletedRequestToken, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisStore model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("objectStoreNamespace")) { + this.objectStoreNamespace(model.getObjectStoreNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStoreBucket")) { + this.objectStoreBucket(model.getObjectStoreBucket()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lastAcceptedRequestToken")) { + this.lastAcceptedRequestToken(model.getLastAcceptedRequestToken()); + } + if (model.wasPropertyExplicitlySet("lastCompletedRequestToken")) { + this.lastCompletedRequestToken(model.getLastCompletedRequestToken()); + } + 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 DiagnosisStore. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DiagnosisStore. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The current state of the Diagnosis. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Diagnosis. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * A message that describes the current state of the Diagnosis in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A message that describes the current state of the Diagnosis in more detail. For example, + * can be used to provide actionable information for a resource in the Failed state. + * + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * The namespace of the object store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private final String objectStoreNamespace; + + /** + * The namespace of the object store. + * @return the value + **/ + public String getObjectStoreNamespace() { + return objectStoreNamespace; + } + + /** + * The name of the object store bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private final String objectStoreBucket; + + /** + * The name of the object store bucket. + * @return the value + **/ + public String getObjectStoreBucket() { + return objectStoreBucket; + } + + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC 3339](https://tools.ietf + * .org/html/rfc3339). + *

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

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

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The last accepted request token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastAcceptedRequestToken") + private final String lastAcceptedRequestToken; + + /** + * The last accepted request token. + * @return the value + **/ + public String getLastAcceptedRequestToken() { + return lastAcceptedRequestToken; + } + + /** + * The last completed request token. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lastCompletedRequestToken") + private final String lastCompletedRequestToken; + + /** + * The last completed request token. + * @return the value + **/ + public String getLastCompletedRequestToken() { + return lastCompletedRequestToken; + } + + /** + * 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("DiagnosisStore("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lastAcceptedRequestToken=") + .append(String.valueOf(this.lastAcceptedRequestToken)); + sb.append(", lastCompletedRequestToken=") + .append(String.valueOf(this.lastCompletedRequestToken)); + 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 DiagnosisStore)) { + return false; + } + + DiagnosisStore other = (DiagnosisStore) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals( + this.lastAcceptedRequestToken, other.lastAcceptedRequestToken) + && java.util.Objects.equals( + this.lastCompletedRequestToken, other.lastCompletedRequestToken) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.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.lastAcceptedRequestToken == null + ? 43 + : this.lastAcceptedRequestToken.hashCode()); + result = + (result * PRIME) + + (this.lastCompletedRequestToken == null + ? 43 + : this.lastCompletedRequestToken.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.java new file mode 100644 index 00000000000..25b0159db0b --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreCollection.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.clusterhealth.model; + +/** + * Results of a diagnosis search. Contains both DiagnosisSummary 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiagnosisStoreCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiagnosisStoreCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DiagnosisStoreCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of diagnosiss. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of diagnosiss. + * @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 DiagnosisStoreCollection build() { + DiagnosisStoreCollection model = new DiagnosisStoreCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisStoreCollection 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 diagnosiss. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of diagnosiss. + * @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("DiagnosisStoreCollection("); + 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 DiagnosisStoreCollection)) { + return false; + } + + DiagnosisStoreCollection other = (DiagnosisStoreCollection) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java new file mode 100644 index 00000000000..7d7e8ba97d2 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisStoreSummary.java @@ -0,0 +1,628 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * Summary information about a Diagnosis Store. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiagnosisStoreSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiagnosisStoreSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "lifecycleState", + "objectStoreNamespace", + "objectStoreBucket", + "timeCreated", + "timeUpdated", + "freeformTags", + "definedTags", + "systemTags" + }) + public DiagnosisStoreSummary( + String id, + String displayName, + String compartmentId, + DiagnosisStore.LifecycleState lifecycleState, + String objectStoreNamespace, + String objectStoreBucket, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.lifecycleState = lifecycleState; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DiagnosisStore. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DiagnosisStore. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The current state of the Diagnosis. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private DiagnosisStore.LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(DiagnosisStore.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * The namespace of the object store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * The namespace of the object store. + * @param objectStoreNamespace the value to set + * @return this builder + **/ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + return this; + } + /** + * The name of the object store bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private String objectStoreBucket; + + /** + * The name of the object store bucket. + * @param objectStoreBucket the value to set + * @return this builder + **/ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + return this; + } + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC 3339](https://tools.ietf + * .org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time the Diagnosis Store was updated, in the format defined by [RFC 3339](https://tools.ietf + * .org/html/rfc3339). + *

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * 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 DiagnosisStoreSummary build() { + DiagnosisStoreSummary model = + new DiagnosisStoreSummary( + this.id, + this.displayName, + this.compartmentId, + this.lifecycleState, + this.objectStoreNamespace, + this.objectStoreBucket, + 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(DiagnosisStoreSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("objectStoreNamespace")) { + this.objectStoreNamespace(model.getObjectStoreNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStoreBucket")) { + this.objectStoreBucket(model.getObjectStoreBucket()); + } + 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DiagnosisStore. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DiagnosisStore. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The current state of the Diagnosis. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final DiagnosisStore.LifecycleState lifecycleState; + + /** + * The current state of the Diagnosis. + * @return the value + **/ + public DiagnosisStore.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The namespace of the object store. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private final String objectStoreNamespace; + + /** + * The namespace of the object store. + * @return the value + **/ + public String getObjectStoreNamespace() { + return objectStoreNamespace; + } + + /** + * The name of the object store bucket. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private final String objectStoreBucket; + + /** + * The name of the object store bucket. + * @return the value + **/ + public String getObjectStoreBucket() { + return objectStoreBucket; + } + + /** + * The date and time the Diagnosis Store was created, in the format defined by [RFC 3339](https://tools.ietf + * .org/html/rfc3339). + *

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

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

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

+ * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * 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("DiagnosisStoreSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + 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 DiagnosisStoreSummary)) { + return false; + } + + DiagnosisStoreSummary other = (DiagnosisStoreSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java new file mode 100644 index 00000000000..3253fb2cc26 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummary.java @@ -0,0 +1,517 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * Diagnosis summary of a host and tenancy. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DiagnosisSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiagnosisSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "hostId", + "instanceId", + "healthCheckKey", + "timeTestRan", + "timeGenerated", + "failedTests", + "health", + "testType" + }) + public DiagnosisSummary( + String hostId, + String instanceId, + String healthCheckKey, + java.util.Date timeTestRan, + java.util.Date timeGenerated, + java.util.List failedTests, + Health health, + TestType testType) { + super(); + this.hostId = hostId; + this.instanceId = instanceId; + this.healthCheckKey = healthCheckKey; + this.timeTestRan = timeTestRan; + this.timeGenerated = timeGenerated; + this.failedTests = failedTests; + this.health = health; + this.testType = testType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * id of the host + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private String hostId; + + /** + * id of the host + * @param hostId the value to set + * @return this builder + **/ + public Builder hostId(String hostId) { + this.hostId = hostId; + this.__explicitlySet__.add("hostId"); + return this; + } + /** + * OCID of the instance associated with this summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * OCID of the instance associated with this summary. + * @param instanceId the value to set + * @return this builder + **/ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** + * Identifier of the health check that produced this diagnosis summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private String healthCheckKey; + + /** + * Identifier of the health check that produced this diagnosis summary. + * @param healthCheckKey the value to set + * @return this builder + **/ + public Builder healthCheckKey(String healthCheckKey) { + this.healthCheckKey = healthCheckKey; + this.__explicitlySet__.add("healthCheckKey"); + return this; + } + /** + * time the test was run + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRan") + private java.util.Date timeTestRan; + + /** + * time the test was run + * @param timeTestRan the value to set + * @return this builder + **/ + public Builder timeTestRan(java.util.Date timeTestRan) { + this.timeTestRan = timeTestRan; + this.__explicitlySet__.add("timeTestRan"); + return this; + } + /** + * time the recommendation report was generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private java.util.Date timeGenerated; + + /** + * time the recommendation report was generated + * @param timeGenerated the value to set + * @return this builder + **/ + public Builder timeGenerated(java.util.Date timeGenerated) { + this.timeGenerated = timeGenerated; + this.__explicitlySet__.add("timeGenerated"); + return this; + } + /** + * Each summary contains no more than 50 failed tests + **/ + @com.fasterxml.jackson.annotation.JsonProperty("failedTests") + private java.util.List failedTests; + + /** + * Each summary contains no more than 50 failed tests + * @param failedTests the value to set + * @return this builder + **/ + public Builder failedTests(java.util.List failedTests) { + this.failedTests = failedTests; + this.__explicitlySet__.add("failedTests"); + return this; + } + /** + * if the host is healthy + **/ + @com.fasterxml.jackson.annotation.JsonProperty("health") + private Health health; + + /** + * if the host is healthy + * @param health the value to set + * @return this builder + **/ + public Builder health(Health health) { + this.health = health; + this.__explicitlySet__.add("health"); + return this; + } + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private TestType testType; + + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + * @param testType the value to set + * @return this builder + **/ + public Builder testType(TestType testType) { + this.testType = testType; + this.__explicitlySet__.add("testType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DiagnosisSummary build() { + DiagnosisSummary model = + new DiagnosisSummary( + this.hostId, + this.instanceId, + this.healthCheckKey, + this.timeTestRan, + this.timeGenerated, + this.failedTests, + this.health, + this.testType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisSummary model) { + if (model.wasPropertyExplicitlySet("hostId")) { + this.hostId(model.getHostId()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("healthCheckKey")) { + this.healthCheckKey(model.getHealthCheckKey()); + } + if (model.wasPropertyExplicitlySet("timeTestRan")) { + this.timeTestRan(model.getTimeTestRan()); + } + if (model.wasPropertyExplicitlySet("timeGenerated")) { + this.timeGenerated(model.getTimeGenerated()); + } + if (model.wasPropertyExplicitlySet("failedTests")) { + this.failedTests(model.getFailedTests()); + } + if (model.wasPropertyExplicitlySet("health")) { + this.health(model.getHealth()); + } + if (model.wasPropertyExplicitlySet("testType")) { + this.testType(model.getTestType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * id of the host + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private final String hostId; + + /** + * id of the host + * @return the value + **/ + public String getHostId() { + return hostId; + } + + /** + * OCID of the instance associated with this summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * OCID of the instance associated with this summary. + * @return the value + **/ + public String getInstanceId() { + return instanceId; + } + + /** + * Identifier of the health check that produced this diagnosis summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private final String healthCheckKey; + + /** + * Identifier of the health check that produced this diagnosis summary. + * @return the value + **/ + public String getHealthCheckKey() { + return healthCheckKey; + } + + /** + * time the test was run + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRan") + private final java.util.Date timeTestRan; + + /** + * time the test was run + * @return the value + **/ + public java.util.Date getTimeTestRan() { + return timeTestRan; + } + + /** + * time the recommendation report was generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private final java.util.Date timeGenerated; + + /** + * time the recommendation report was generated + * @return the value + **/ + public java.util.Date getTimeGenerated() { + return timeGenerated; + } + + /** + * Each summary contains no more than 50 failed tests + **/ + @com.fasterxml.jackson.annotation.JsonProperty("failedTests") + private final java.util.List failedTests; + + /** + * Each summary contains no more than 50 failed tests + * @return the value + **/ + public java.util.List getFailedTests() { + return failedTests; + } + + /** + * if the host is healthy + **/ + public enum Health { + Healthy("HEALTHY"), + Unhealthy("UNHEALTHY"), + + /** + * 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(Health.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Health v : Health.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Health(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Health create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Health', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * if the host is healthy + **/ + @com.fasterxml.jackson.annotation.JsonProperty("health") + private final Health health; + + /** + * if the host is healthy + * @return the value + **/ + public Health getHealth() { + return health; + } + + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + **/ + public enum TestType { + Passive("PASSIVE"), + Active("ACTIVE"), + + /** + * 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(TestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestType v : TestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private final TestType testType; + + /** + * Type of the diagnosis test recorded in this summary (e.g., PASSIVE or ACTIVE). + * @return the value + **/ + public TestType getTestType() { + return testType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DiagnosisSummary("); + sb.append("super=").append(super.toString()); + sb.append("hostId=").append(String.valueOf(this.hostId)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", healthCheckKey=").append(String.valueOf(this.healthCheckKey)); + sb.append(", timeTestRan=").append(String.valueOf(this.timeTestRan)); + sb.append(", timeGenerated=").append(String.valueOf(this.timeGenerated)); + sb.append(", failedTests=").append(String.valueOf(this.failedTests)); + sb.append(", health=").append(String.valueOf(this.health)); + sb.append(", testType=").append(String.valueOf(this.testType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DiagnosisSummary)) { + return false; + } + + DiagnosisSummary other = (DiagnosisSummary) o; + return java.util.Objects.equals(this.hostId, other.hostId) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.healthCheckKey, other.healthCheckKey) + && java.util.Objects.equals(this.timeTestRan, other.timeTestRan) + && java.util.Objects.equals(this.timeGenerated, other.timeGenerated) + && java.util.Objects.equals(this.failedTests, other.failedTests) + && java.util.Objects.equals(this.health, other.health) + && java.util.Objects.equals(this.testType, other.testType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostId == null ? 43 : this.hostId.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = + (result * PRIME) + + (this.healthCheckKey == null ? 43 : this.healthCheckKey.hashCode()); + result = (result * PRIME) + (this.timeTestRan == null ? 43 : this.timeTestRan.hashCode()); + result = + (result * PRIME) + + (this.timeGenerated == null ? 43 : this.timeGenerated.hashCode()); + result = (result * PRIME) + (this.failedTests == null ? 43 : this.failedTests.hashCode()); + result = (result * PRIME) + (this.health == null ? 43 : this.health.hashCode()); + result = (result * PRIME) + (this.testType == null ? 43 : this.testType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.java new file mode 100644 index 00000000000..f50c4ae5d83 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/DiagnosisSummaryCollection.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.clusterhealth.model; + +/** + * a list of Diagnosis 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DiagnosisSummaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DiagnosisSummaryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DiagnosisSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of diagnosis summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of diagnosis 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 DiagnosisSummaryCollection build() { + DiagnosisSummaryCollection model = new DiagnosisSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DiagnosisSummaryCollection 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 diagnosis summaries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of diagnosis 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("DiagnosisSummaryCollection("); + 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 DiagnosisSummaryCollection)) { + return false; + } + + DiagnosisSummaryCollection other = (DiagnosisSummaryCollection) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.java new file mode 100644 index 00000000000..31e6054ec06 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/FailedTest.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * summary of a failed test + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FailedTest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class FailedTest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"testName", "recommendedAction"}) + public FailedTest(String testName, String recommendedAction) { + super(); + this.testName = testName; + this.recommendedAction = recommendedAction; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * name of the test + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private String testName; + + /** + * name of the test + * @param testName the value to set + * @return this builder + **/ + public Builder testName(String testName) { + this.testName = testName; + this.__explicitlySet__.add("testName"); + return this; + } + /** + * recommended action + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedAction") + private String recommendedAction; + + /** + * recommended action + * @param recommendedAction the value to set + * @return this builder + **/ + public Builder recommendedAction(String recommendedAction) { + this.recommendedAction = recommendedAction; + this.__explicitlySet__.add("recommendedAction"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FailedTest build() { + FailedTest model = new FailedTest(this.testName, this.recommendedAction); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FailedTest model) { + if (model.wasPropertyExplicitlySet("testName")) { + this.testName(model.getTestName()); + } + if (model.wasPropertyExplicitlySet("recommendedAction")) { + this.recommendedAction(model.getRecommendedAction()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * name of the test + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private final String testName; + + /** + * name of the test + * @return the value + **/ + public String getTestName() { + return testName; + } + + /** + * recommended action + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recommendedAction") + private final String recommendedAction; + + /** + * recommended action + * @return the value + **/ + public String getRecommendedAction() { + return recommendedAction; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FailedTest("); + sb.append("super=").append(super.toString()); + sb.append("testName=").append(String.valueOf(this.testName)); + sb.append(", recommendedAction=").append(String.valueOf(this.recommendedAction)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FailedTest)) { + return false; + } + + FailedTest other = (FailedTest) o; + return java.util.Objects.equals(this.testName, other.testName) + && java.util.Objects.equals(this.recommendedAction, other.recommendedAction) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.testName == null ? 43 : this.testName.hashCode()); + result = + (result * PRIME) + + (this.recommendedAction == null ? 43 : this.recommendedAction.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.java new file mode 100644 index 00000000000..8de4186d343 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Metadata.java @@ -0,0 +1,348 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * Metadata associated with the diagnosis recommendation 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Metadata.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Metadata extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "hostId", + "healthCheckKey", + "instanceId", + "shape", + "testType" + }) + public Metadata( + String hostId, + String healthCheckKey, + String instanceId, + String shape, + TestType testType) { + super(); + this.hostId = hostId; + this.healthCheckKey = healthCheckKey; + this.instanceId = instanceId; + this.shape = shape; + this.testType = testType; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * OCID of the host that ran the test. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private String hostId; + + /** + * OCID of the host that ran the test. + * @param hostId the value to set + * @return this builder + **/ + public Builder hostId(String hostId) { + this.hostId = hostId; + this.__explicitlySet__.add("hostId"); + return this; + } + /** + * Identifier of the health check run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private String healthCheckKey; + + /** + * Identifier of the health check run. + * @param healthCheckKey the value to set + * @return this builder + **/ + public Builder healthCheckKey(String healthCheckKey) { + this.healthCheckKey = healthCheckKey; + this.__explicitlySet__.add("healthCheckKey"); + return this; + } + /** + * OCID of the instance related to the test. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private String instanceId; + + /** + * OCID of the instance related to the test. + * @param instanceId the value to set + * @return this builder + **/ + public Builder instanceId(String instanceId) { + this.instanceId = instanceId; + this.__explicitlySet__.add("instanceId"); + return this; + } + /** + * Shape of the instance under test. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * Shape of the instance under test. + * @param shape the value to set + * @return this builder + **/ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** + * Test type provided by the diagnosis payload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private TestType testType; + + /** + * Test type provided by the diagnosis payload. + * @param testType the value to set + * @return this builder + **/ + public Builder testType(TestType testType) { + this.testType = testType; + this.__explicitlySet__.add("testType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Metadata build() { + Metadata model = + new Metadata( + this.hostId, + this.healthCheckKey, + this.instanceId, + this.shape, + this.testType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Metadata model) { + if (model.wasPropertyExplicitlySet("hostId")) { + this.hostId(model.getHostId()); + } + if (model.wasPropertyExplicitlySet("healthCheckKey")) { + this.healthCheckKey(model.getHealthCheckKey()); + } + if (model.wasPropertyExplicitlySet("instanceId")) { + this.instanceId(model.getInstanceId()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("testType")) { + this.testType(model.getTestType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * OCID of the host that ran the test. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostId") + private final String hostId; + + /** + * OCID of the host that ran the test. + * @return the value + **/ + public String getHostId() { + return hostId; + } + + /** + * Identifier of the health check run. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private final String healthCheckKey; + + /** + * Identifier of the health check run. + * @return the value + **/ + public String getHealthCheckKey() { + return healthCheckKey; + } + + /** + * OCID of the instance related to the test. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceId") + private final String instanceId; + + /** + * OCID of the instance related to the test. + * @return the value + **/ + public String getInstanceId() { + return instanceId; + } + + /** + * Shape of the instance under test. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * Shape of the instance under test. + * @return the value + **/ + public String getShape() { + return shape; + } + + /** + * Test type provided by the diagnosis payload. + **/ + public enum TestType { + Passive("PASSIVE"), + Active("ACTIVE"), + + /** + * 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(TestType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestType v : TestType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TestType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Test type provided by the diagnosis payload. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private final TestType testType; + + /** + * Test type provided by the diagnosis payload. + * @return the value + **/ + public TestType getTestType() { + return testType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Metadata("); + sb.append("super=").append(super.toString()); + sb.append("hostId=").append(String.valueOf(this.hostId)); + sb.append(", healthCheckKey=").append(String.valueOf(this.healthCheckKey)); + sb.append(", instanceId=").append(String.valueOf(this.instanceId)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", testType=").append(String.valueOf(this.testType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Metadata)) { + return false; + } + + Metadata other = (Metadata) o; + return java.util.Objects.equals(this.hostId, other.hostId) + && java.util.Objects.equals(this.healthCheckKey, other.healthCheckKey) + && java.util.Objects.equals(this.instanceId, other.instanceId) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.testType, other.testType) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.hostId == null ? 43 : this.hostId.hashCode()); + result = + (result * PRIME) + + (this.healthCheckKey == null ? 43 : this.healthCheckKey.hashCode()); + result = (result * PRIME) + (this.instanceId == null ? 43 : this.instanceId.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.testType == null ? 43 : this.testType.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationStatus.java similarity index 94% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationStatus.java index 3139b9c4cda..6d13c349e82 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationStatus.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.model; +package com.oracle.bmc.clusterhealth.model; /** - * Possible operation status. + * The status of the work request. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public enum OperationStatus { 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.java new file mode 100644 index 00000000000..736656a943c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/OperationType.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.clusterhealth.model; + +/** + * The asynchronous operation tracked by the work request. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public enum OperationType { + CreateDiagnosisStore("CREATE_DIAGNOSIS_STORE"), + UpdateDiagnosisStore("UPDATE_DIAGNOSIS_STORE"), + DeleteDiagnosisStore("DELETE_DIAGNOSIS_STORE"), + MoveDiagnosisStore("MOVE_DIAGNOSIS_STORE"), + RequestDiagnosis("REQUEST_DIAGNOSIS"), + + /** + * 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.java new file mode 100644 index 00000000000..7c0a8060bc8 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisByHealthCheckKeyDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * the query parameters for recommendations + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = QueryDiagnosisByHealthCheckKeyDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class QueryDiagnosisByHealthCheckKeyDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"healthCheckKey"}) + public QueryDiagnosisByHealthCheckKeyDetails(String healthCheckKey) { + super(); + this.healthCheckKey = healthCheckKey; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Identifier of the health check + **/ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private String healthCheckKey; + + /** + * Identifier of the health check + * @param healthCheckKey the value to set + * @return this builder + **/ + public Builder healthCheckKey(String healthCheckKey) { + this.healthCheckKey = healthCheckKey; + this.__explicitlySet__.add("healthCheckKey"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public QueryDiagnosisByHealthCheckKeyDetails build() { + QueryDiagnosisByHealthCheckKeyDetails model = + new QueryDiagnosisByHealthCheckKeyDetails(this.healthCheckKey); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QueryDiagnosisByHealthCheckKeyDetails model) { + if (model.wasPropertyExplicitlySet("healthCheckKey")) { + this.healthCheckKey(model.getHealthCheckKey()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Identifier of the health check + **/ + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKey") + private final String healthCheckKey; + + /** + * Identifier of the health check + * @return the value + **/ + public String getHealthCheckKey() { + return healthCheckKey; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("QueryDiagnosisByHealthCheckKeyDetails("); + sb.append("super=").append(super.toString()); + sb.append("healthCheckKey=").append(String.valueOf(this.healthCheckKey)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisByHealthCheckKeyDetails)) { + return false; + } + + QueryDiagnosisByHealthCheckKeyDetails other = (QueryDiagnosisByHealthCheckKeyDetails) o; + return java.util.Objects.equals(this.healthCheckKey, other.healthCheckKey) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.healthCheckKey == null ? 43 : this.healthCheckKey.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.java new file mode 100644 index 00000000000..b8002420a2c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/QueryDiagnosisSummaryDetails.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.clusterhealth.model; + +/** + * Query filters for retrieving diagnosis 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = QueryDiagnosisSummaryDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class QueryDiagnosisSummaryDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceIds", + "testType", + "timeTestRunIntervalStart", + "timeTestRunIntervalEnd" + }) + public QueryDiagnosisSummaryDetails( + java.util.List instanceIds, + TestType testType, + java.util.Date timeTestRunIntervalStart, + java.util.Date timeTestRunIntervalEnd) { + super(); + this.instanceIds = instanceIds; + this.testType = testType; + this.timeTestRunIntervalStart = timeTestRunIntervalStart; + this.timeTestRunIntervalEnd = timeTestRunIntervalEnd; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of instance OCIDs to match. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceIds") + private java.util.List instanceIds; + + /** + * A list of instance OCIDs to match. + * @param instanceIds the value to set + * @return this builder + **/ + public Builder instanceIds(java.util.List instanceIds) { + this.instanceIds = instanceIds; + this.__explicitlySet__.add("instanceIds"); + return this; + } + /** + * The test type, PASSIVE or ACTIVE + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private TestType testType; + + /** + * The test type, PASSIVE or ACTIVE + * @param testType the value to set + * @return this builder + **/ + public Builder testType(TestType testType) { + this.testType = testType; + this.__explicitlySet__.add("testType"); + return this; + } + /** + * Start of the time range for tests run, in RFC 3339 format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalStart") + private java.util.Date timeTestRunIntervalStart; + + /** + * Start of the time range for tests run, in RFC 3339 format. + * @param timeTestRunIntervalStart the value to set + * @return this builder + **/ + public Builder timeTestRunIntervalStart(java.util.Date timeTestRunIntervalStart) { + this.timeTestRunIntervalStart = timeTestRunIntervalStart; + this.__explicitlySet__.add("timeTestRunIntervalStart"); + return this; + } + /** + * End of the time range for tests run, in RFC 3339 format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalEnd") + private java.util.Date timeTestRunIntervalEnd; + + /** + * End of the time range for tests run, in RFC 3339 format. + * @param timeTestRunIntervalEnd the value to set + * @return this builder + **/ + public Builder timeTestRunIntervalEnd(java.util.Date timeTestRunIntervalEnd) { + this.timeTestRunIntervalEnd = timeTestRunIntervalEnd; + this.__explicitlySet__.add("timeTestRunIntervalEnd"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public QueryDiagnosisSummaryDetails build() { + QueryDiagnosisSummaryDetails model = + new QueryDiagnosisSummaryDetails( + this.instanceIds, + this.testType, + this.timeTestRunIntervalStart, + this.timeTestRunIntervalEnd); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(QueryDiagnosisSummaryDetails model) { + if (model.wasPropertyExplicitlySet("instanceIds")) { + this.instanceIds(model.getInstanceIds()); + } + if (model.wasPropertyExplicitlySet("testType")) { + this.testType(model.getTestType()); + } + if (model.wasPropertyExplicitlySet("timeTestRunIntervalStart")) { + this.timeTestRunIntervalStart(model.getTimeTestRunIntervalStart()); + } + if (model.wasPropertyExplicitlySet("timeTestRunIntervalEnd")) { + this.timeTestRunIntervalEnd(model.getTimeTestRunIntervalEnd()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of instance OCIDs to match. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("instanceIds") + private final java.util.List instanceIds; + + /** + * A list of instance OCIDs to match. + * @return the value + **/ + public java.util.List getInstanceIds() { + return instanceIds; + } + + /** + * The test type, PASSIVE or ACTIVE + **/ + public enum TestType { + Passive("PASSIVE"), + Active("ACTIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TestType v : TestType.values()) { + map.put(v.getValue(), v); + } + } + + TestType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TestType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TestType: " + key); + } + }; + /** + * The test type, PASSIVE or ACTIVE + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testType") + private final TestType testType; + + /** + * The test type, PASSIVE or ACTIVE + * @return the value + **/ + public TestType getTestType() { + return testType; + } + + /** + * Start of the time range for tests run, in RFC 3339 format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalStart") + private final java.util.Date timeTestRunIntervalStart; + + /** + * Start of the time range for tests run, in RFC 3339 format. + * @return the value + **/ + public java.util.Date getTimeTestRunIntervalStart() { + return timeTestRunIntervalStart; + } + + /** + * End of the time range for tests run, in RFC 3339 format. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeTestRunIntervalEnd") + private final java.util.Date timeTestRunIntervalEnd; + + /** + * End of the time range for tests run, in RFC 3339 format. + * @return the value + **/ + public java.util.Date getTimeTestRunIntervalEnd() { + return timeTestRunIntervalEnd; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("QueryDiagnosisSummaryDetails("); + sb.append("super=").append(super.toString()); + sb.append("instanceIds=").append(String.valueOf(this.instanceIds)); + sb.append(", testType=").append(String.valueOf(this.testType)); + sb.append(", timeTestRunIntervalStart=") + .append(String.valueOf(this.timeTestRunIntervalStart)); + sb.append(", timeTestRunIntervalEnd=").append(String.valueOf(this.timeTestRunIntervalEnd)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisSummaryDetails)) { + return false; + } + + QueryDiagnosisSummaryDetails other = (QueryDiagnosisSummaryDetails) o; + return java.util.Objects.equals(this.instanceIds, other.instanceIds) + && java.util.Objects.equals(this.testType, other.testType) + && java.util.Objects.equals( + this.timeTestRunIntervalStart, other.timeTestRunIntervalStart) + && java.util.Objects.equals( + this.timeTestRunIntervalEnd, other.timeTestRunIntervalEnd) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.instanceIds == null ? 43 : this.instanceIds.hashCode()); + result = (result * PRIME) + (this.testType == null ? 43 : this.testType.hashCode()); + result = + (result * PRIME) + + (this.timeTestRunIntervalStart == null + ? 43 + : this.timeTestRunIntervalStart.hashCode()); + result = + (result * PRIME) + + (this.timeTestRunIntervalEnd == null + ? 43 + : this.timeTestRunIntervalEnd.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java new file mode 100644 index 00000000000..717fac5a01e --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/Recommendation.java @@ -0,0 +1,385 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * recommendation + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Recommendation.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Recommendation extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "type", + "testName", + "faultCode", + "issue", + "suggestion", + "action" + }) + public Recommendation( + Type type, + String testName, + String faultCode, + String issue, + String suggestion, + String action) { + super(); + this.type = type; + this.testName = testName; + this.faultCode = faultCode; + this.issue = issue; + this.suggestion = suggestion; + this.action = action; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Severity of the recommendation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Severity of the recommendation. + * @param type the value to set + * @return this builder + **/ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** + * name of the test + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private String testName; + + /** + * name of the test + * @param testName the value to set + * @return this builder + **/ + public Builder testName(String testName) { + this.testName = testName; + this.__explicitlySet__.add("testName"); + return this; + } + /** + * Optional fault code identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("faultCode") + private String faultCode; + + /** + * Optional fault code identifier. + * @param faultCode the value to set + * @return this builder + **/ + public Builder faultCode(String faultCode) { + this.faultCode = faultCode; + this.__explicitlySet__.add("faultCode"); + return this; + } + /** + * description of the issue + **/ + @com.fasterxml.jackson.annotation.JsonProperty("issue") + private String issue; + + /** + * description of the issue + * @param issue the value to set + * @return this builder + **/ + public Builder issue(String issue) { + this.issue = issue; + this.__explicitlySet__.add("issue"); + return this; + } + /** + * suggested actions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("suggestion") + private String suggestion; + + /** + * suggested actions + * @param suggestion the value to set + * @return this builder + **/ + public Builder suggestion(String suggestion) { + this.suggestion = suggestion; + this.__explicitlySet__.add("suggestion"); + return this; + } + /** + * Optional action to take (empty string when no action is required). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private String action; + + /** + * Optional action to take (empty string when no action is required). + * @param action the value to set + * @return this builder + **/ + public Builder action(String action) { + this.action = action; + this.__explicitlySet__.add("action"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Recommendation build() { + Recommendation model = + new Recommendation( + this.type, + this.testName, + this.faultCode, + this.issue, + this.suggestion, + this.action); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Recommendation model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("testName")) { + this.testName(model.getTestName()); + } + if (model.wasPropertyExplicitlySet("faultCode")) { + this.faultCode(model.getFaultCode()); + } + if (model.wasPropertyExplicitlySet("issue")) { + this.issue(model.getIssue()); + } + if (model.wasPropertyExplicitlySet("suggestion")) { + this.suggestion(model.getSuggestion()); + } + if (model.wasPropertyExplicitlySet("action")) { + this.action(model.getAction()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Severity of the recommendation. + **/ + public enum Type { + Critical("CRITICAL"), + Warning("WARNING"), + Info("INFO"), + + /** + * 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; + } + }; + /** + * Severity of the recommendation. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Severity of the recommendation. + * @return the value + **/ + public Type getType() { + return type; + } + + /** + * name of the test + **/ + @com.fasterxml.jackson.annotation.JsonProperty("testName") + private final String testName; + + /** + * name of the test + * @return the value + **/ + public String getTestName() { + return testName; + } + + /** + * Optional fault code identifier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("faultCode") + private final String faultCode; + + /** + * Optional fault code identifier. + * @return the value + **/ + public String getFaultCode() { + return faultCode; + } + + /** + * description of the issue + **/ + @com.fasterxml.jackson.annotation.JsonProperty("issue") + private final String issue; + + /** + * description of the issue + * @return the value + **/ + public String getIssue() { + return issue; + } + + /** + * suggested actions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("suggestion") + private final String suggestion; + + /** + * suggested actions + * @return the value + **/ + public String getSuggestion() { + return suggestion; + } + + /** + * Optional action to take (empty string when no action is required). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("action") + private final String action; + + /** + * Optional action to take (empty string when no action is required). + * @return the value + **/ + public String getAction() { + return action; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Recommendation("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", testName=").append(String.valueOf(this.testName)); + sb.append(", faultCode=").append(String.valueOf(this.faultCode)); + sb.append(", issue=").append(String.valueOf(this.issue)); + sb.append(", suggestion=").append(String.valueOf(this.suggestion)); + sb.append(", action=").append(String.valueOf(this.action)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof Recommendation)) { + return false; + } + + Recommendation other = (Recommendation) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.testName, other.testName) + && java.util.Objects.equals(this.faultCode, other.faultCode) + && java.util.Objects.equals(this.issue, other.issue) + && java.util.Objects.equals(this.suggestion, other.suggestion) + && java.util.Objects.equals(this.action, other.action) + && 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.testName == null ? 43 : this.testName.hashCode()); + result = (result * PRIME) + (this.faultCode == null ? 43 : this.faultCode.hashCode()); + result = (result * PRIME) + (this.issue == null ? 43 : this.issue.hashCode()); + result = (result * PRIME) + (this.suggestion == null ? 43 : this.suggestion.hashCode()); + result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java new file mode 100644 index 00000000000..4c0401577f4 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RecommendationReport.java @@ -0,0 +1,414 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * A recommendation 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RecommendationReport.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RecommendationReport extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "summary", + "totalIssues", + "criticalIssues", + "warningIssues", + "infoIssues", + "recommendations", + "metadata", + "timeGenerated" + }) + public RecommendationReport( + String summary, + Integer totalIssues, + Integer criticalIssues, + Integer warningIssues, + Integer infoIssues, + java.util.List recommendations, + Metadata metadata, + java.util.Date timeGenerated) { + super(); + this.summary = summary; + this.totalIssues = totalIssues; + this.criticalIssues = criticalIssues; + this.warningIssues = warningIssues; + this.infoIssues = infoIssues; + this.recommendations = recommendations; + this.metadata = metadata; + this.timeGenerated = timeGenerated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * summary + **/ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private String summary; + + /** + * summary + * @param summary the value to set + * @return this builder + **/ + public Builder summary(String summary) { + this.summary = summary; + this.__explicitlySet__.add("summary"); + return this; + } + /** + * total issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalIssues") + private Integer totalIssues; + + /** + * total issue count + * @param totalIssues the value to set + * @return this builder + **/ + public Builder totalIssues(Integer totalIssues) { + this.totalIssues = totalIssues; + this.__explicitlySet__.add("totalIssues"); + return this; + } + /** + * critical issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("criticalIssues") + private Integer criticalIssues; + + /** + * critical issue count + * @param criticalIssues the value to set + * @return this builder + **/ + public Builder criticalIssues(Integer criticalIssues) { + this.criticalIssues = criticalIssues; + this.__explicitlySet__.add("criticalIssues"); + return this; + } + /** + * warning issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningIssues") + private Integer warningIssues; + + /** + * warning issue count + * @param warningIssues the value to set + * @return this builder + **/ + public Builder warningIssues(Integer warningIssues) { + this.warningIssues = warningIssues; + this.__explicitlySet__.add("warningIssues"); + return this; + } + /** + * info issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infoIssues") + private Integer infoIssues; + + /** + * info issue count + * @param infoIssues the value to set + * @return this builder + **/ + public Builder infoIssues(Integer infoIssues) { + this.infoIssues = infoIssues; + this.__explicitlySet__.add("infoIssues"); + return this; + } + /** + * recommendations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recommendations") + private java.util.List recommendations; + + /** + * recommendations + * @param recommendations the value to set + * @return this builder + **/ + public Builder recommendations(java.util.List recommendations) { + this.recommendations = recommendations; + this.__explicitlySet__.add("recommendations"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private Metadata metadata; + + public Builder metadata(Metadata metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + /** + * time generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private java.util.Date timeGenerated; + + /** + * time generated + * @param timeGenerated the value to set + * @return this builder + **/ + public Builder timeGenerated(java.util.Date timeGenerated) { + this.timeGenerated = timeGenerated; + this.__explicitlySet__.add("timeGenerated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RecommendationReport build() { + RecommendationReport model = + new RecommendationReport( + this.summary, + this.totalIssues, + this.criticalIssues, + this.warningIssues, + this.infoIssues, + this.recommendations, + this.metadata, + this.timeGenerated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RecommendationReport model) { + if (model.wasPropertyExplicitlySet("summary")) { + this.summary(model.getSummary()); + } + if (model.wasPropertyExplicitlySet("totalIssues")) { + this.totalIssues(model.getTotalIssues()); + } + if (model.wasPropertyExplicitlySet("criticalIssues")) { + this.criticalIssues(model.getCriticalIssues()); + } + if (model.wasPropertyExplicitlySet("warningIssues")) { + this.warningIssues(model.getWarningIssues()); + } + if (model.wasPropertyExplicitlySet("infoIssues")) { + this.infoIssues(model.getInfoIssues()); + } + if (model.wasPropertyExplicitlySet("recommendations")) { + this.recommendations(model.getRecommendations()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + if (model.wasPropertyExplicitlySet("timeGenerated")) { + this.timeGenerated(model.getTimeGenerated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * summary + **/ + @com.fasterxml.jackson.annotation.JsonProperty("summary") + private final String summary; + + /** + * summary + * @return the value + **/ + public String getSummary() { + return summary; + } + + /** + * total issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("totalIssues") + private final Integer totalIssues; + + /** + * total issue count + * @return the value + **/ + public Integer getTotalIssues() { + return totalIssues; + } + + /** + * critical issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("criticalIssues") + private final Integer criticalIssues; + + /** + * critical issue count + * @return the value + **/ + public Integer getCriticalIssues() { + return criticalIssues; + } + + /** + * warning issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("warningIssues") + private final Integer warningIssues; + + /** + * warning issue count + * @return the value + **/ + public Integer getWarningIssues() { + return warningIssues; + } + + /** + * info issue count + **/ + @com.fasterxml.jackson.annotation.JsonProperty("infoIssues") + private final Integer infoIssues; + + /** + * info issue count + * @return the value + **/ + public Integer getInfoIssues() { + return infoIssues; + } + + /** + * recommendations + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recommendations") + private final java.util.List recommendations; + + /** + * recommendations + * @return the value + **/ + public java.util.List getRecommendations() { + return recommendations; + } + + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final Metadata metadata; + + public Metadata getMetadata() { + return metadata; + } + + /** + * time generated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeGenerated") + private final java.util.Date timeGenerated; + + /** + * time generated + * @return the value + **/ + public java.util.Date getTimeGenerated() { + return timeGenerated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RecommendationReport("); + sb.append("super=").append(super.toString()); + sb.append("summary=").append(String.valueOf(this.summary)); + sb.append(", totalIssues=").append(String.valueOf(this.totalIssues)); + sb.append(", criticalIssues=").append(String.valueOf(this.criticalIssues)); + sb.append(", warningIssues=").append(String.valueOf(this.warningIssues)); + sb.append(", infoIssues=").append(String.valueOf(this.infoIssues)); + sb.append(", recommendations=").append(String.valueOf(this.recommendations)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(", timeGenerated=").append(String.valueOf(this.timeGenerated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RecommendationReport)) { + return false; + } + + RecommendationReport other = (RecommendationReport) o; + return java.util.Objects.equals(this.summary, other.summary) + && java.util.Objects.equals(this.totalIssues, other.totalIssues) + && java.util.Objects.equals(this.criticalIssues, other.criticalIssues) + && java.util.Objects.equals(this.warningIssues, other.warningIssues) + && java.util.Objects.equals(this.infoIssues, other.infoIssues) + && java.util.Objects.equals(this.recommendations, other.recommendations) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.timeGenerated, other.timeGenerated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.summary == null ? 43 : this.summary.hashCode()); + result = (result * PRIME) + (this.totalIssues == null ? 43 : this.totalIssues.hashCode()); + result = + (result * PRIME) + + (this.criticalIssues == null ? 43 : this.criticalIssues.hashCode()); + result = + (result * PRIME) + + (this.warningIssues == null ? 43 : this.warningIssues.hashCode()); + result = (result * PRIME) + (this.infoIssues == null ? 43 : this.infoIssues.hashCode()); + result = + (result * PRIME) + + (this.recommendations == null ? 43 : this.recommendations.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.timeGenerated == null ? 43 : this.timeGenerated.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.java index f0beaa6df92..4c0f2fc7ba0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/RequestDiagnosisDetails.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.clusterhealth.model; /** - * Additional metadata related to Globally distributed autonomous database resources. + * The details of the diagnosis analysis request 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 @@ -14,44 +14,44 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDbMetadata.Builder.class + builder = RequestDiagnosisDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDbMetadata +public final class RequestDiagnosisDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"map"}) - public DistributedAutonomousDbMetadata(java.util.Map map) { + @java.beans.ConstructorProperties({"healthCheckKeys"}) + public RequestDiagnosisDetails(java.util.List healthCheckKeys) { super(); - this.map = map; + this.healthCheckKeys = healthCheckKeys; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The map containing key-value pair of additional metadata. + * A list of health check IDs. **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private java.util.Map map; + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKeys") + private java.util.List healthCheckKeys; /** - * The map containing key-value pair of additional metadata. - * @param map the value to set + * A list of health check IDs. + * @param healthCheckKeys the value to set * @return this builder **/ - public Builder map(java.util.Map map) { - this.map = map; - this.__explicitlySet__.add("map"); + public Builder healthCheckKeys(java.util.List healthCheckKeys) { + this.healthCheckKeys = healthCheckKeys; + this.__explicitlySet__.add("healthCheckKeys"); 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 RequestDiagnosisDetails build() { + RequestDiagnosisDetails model = new RequestDiagnosisDetails(this.healthCheckKeys); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,9 +59,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(RequestDiagnosisDetails model) { + if (model.wasPropertyExplicitlySet("healthCheckKeys")) { + this.healthCheckKeys(model.getHealthCheckKeys()); } return this; } @@ -79,17 +79,17 @@ public Builder toBuilder() { } /** - * The map containing key-value pair of additional metadata. + * A list of health check IDs. **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private final java.util.Map map; + @com.fasterxml.jackson.annotation.JsonProperty("healthCheckKeys") + private final java.util.List healthCheckKeys; /** - * The map containing key-value pair of additional metadata. + * A list of health check IDs. * @return the value **/ - public java.util.Map getMap() { - return map; + public java.util.List getHealthCheckKeys() { + return healthCheckKeys; } @Override @@ -104,9 +104,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDbMetadata("); + sb.append("RequestDiagnosisDetails("); sb.append("super=").append(super.toString()); - sb.append("map=").append(String.valueOf(this.map)); + sb.append("healthCheckKeys=").append(String.valueOf(this.healthCheckKeys)); sb.append(")"); return sb.toString(); } @@ -116,19 +116,22 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedAutonomousDbMetadata)) { + if (!(o instanceof RequestDiagnosisDetails)) { return false; } - DistributedAutonomousDbMetadata other = (DistributedAutonomousDbMetadata) o; - return java.util.Objects.equals(this.map, other.map) && super.equals(other); + RequestDiagnosisDetails other = (RequestDiagnosisDetails) o; + return java.util.Objects.equals(this.healthCheckKeys, other.healthCheckKeys) + && 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.healthCheckKeys == null ? 43 : this.healthCheckKeys.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/SortOrder.java similarity index 83% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/SortOrder.java index 6c018e0bc9f..73f209b7733 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/SortOrder.java @@ -2,12 +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.model; +package com.oracle.bmc.clusterhealth.model; /** - * Sort orders. + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The {@code displayName} + * sort order is case sensitive. + * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public enum SortOrder { Asc("ASC"), Desc("DESC"), diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java new file mode 100644 index 00000000000..0ff0ae6c96e --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/UpdateDiagnosisStoreDetails.java @@ -0,0 +1,340 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * The data to update a Diagnosis. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDiagnosisStoreDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateDiagnosisStoreDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "objectStoreNamespace", + "objectStoreBucket", + "freeformTags", + "definedTags" + }) + public UpdateDiagnosisStoreDetails( + String displayName, + String objectStoreNamespace, + String objectStoreBucket, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.objectStoreNamespace = objectStoreNamespace; + this.objectStoreBucket = objectStoreBucket; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private String objectStoreNamespace; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param objectStoreNamespace the value to set + * @return this builder + **/ + public Builder objectStoreNamespace(String objectStoreNamespace) { + this.objectStoreNamespace = objectStoreNamespace; + this.__explicitlySet__.add("objectStoreNamespace"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private String objectStoreBucket; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param objectStoreBucket the value to set + * @return this builder + **/ + public Builder objectStoreBucket(String objectStoreBucket) { + this.objectStoreBucket = objectStoreBucket; + this.__explicitlySet__.add("objectStoreBucket"); + 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 UpdateDiagnosisStoreDetails build() { + UpdateDiagnosisStoreDetails model = + new UpdateDiagnosisStoreDetails( + this.displayName, + this.objectStoreNamespace, + this.objectStoreBucket, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDiagnosisStoreDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("objectStoreNamespace")) { + this.objectStoreNamespace(model.getObjectStoreNamespace()); + } + if (model.wasPropertyExplicitlySet("objectStoreBucket")) { + this.objectStoreBucket(model.getObjectStoreBucket()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreNamespace") + private final String objectStoreNamespace; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getObjectStoreNamespace() { + return objectStoreNamespace; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectStoreBucket") + private final String objectStoreBucket; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getObjectStoreBucket() { + return objectStoreBucket; + } + + /** + * 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("UpdateDiagnosisStoreDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", objectStoreNamespace=").append(String.valueOf(this.objectStoreNamespace)); + sb.append(", objectStoreBucket=").append(String.valueOf(this.objectStoreBucket)); + 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 UpdateDiagnosisStoreDetails)) { + return false; + } + + UpdateDiagnosisStoreDetails other = (UpdateDiagnosisStoreDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.objectStoreNamespace, other.objectStoreNamespace) + && java.util.Objects.equals(this.objectStoreBucket, other.objectStoreBucket) + && 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.objectStoreNamespace == null + ? 43 + : this.objectStoreNamespace.hashCode()); + result = + (result * PRIME) + + (this.objectStoreBucket == null ? 43 : this.objectStoreBucket.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java new file mode 100644 index 00000000000..6e8a7d34b26 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequest.java @@ -0,0 +1,551 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, + * the service creates a work request. A work request is an activity log that lets you track each step in the operation's + * progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "operationType", + "status", + "id", + "compartmentId", + "resources", + "percentComplete", + "timeAccepted", + "timeStarted", + "timeFinished", + "timeUpdated" + }) + public WorkRequest( + OperationType operationType, + OperationStatus status, + String id, + String compartmentId, + java.util.List resources, + Float percentComplete, + java.util.Date timeAccepted, + java.util.Date timeStarted, + java.util.Date timeFinished, + java.util.Date timeUpdated) { + super(); + this.operationType = operationType; + this.status = status; + this.id = id; + this.compartmentId = compartmentId; + this.resources = resources; + this.percentComplete = percentComplete; + this.timeAccepted = timeAccepted; + this.timeStarted = timeStarted; + this.timeFinished = timeFinished; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @param operationType the value to set + * @return this builder + **/ + public Builder operationType(OperationType operationType) { + this.operationType = operationType; + this.__explicitlySet__.add("operationType"); + return this; + } + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private OperationStatus status; + + /** + * The status of the work request. + * @param status the value to set + * @return this builder + **/ + public Builder status(OperationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The resources that are affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private java.util.List resources; + + /** + * The resources that are affected by the work request. + * @param resources the value to set + * @return this builder + **/ + public Builder resources(java.util.List resources) { + this.resources = resources; + this.__explicitlySet__.add("resources"); + return this; + } + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + * @param percentComplete the value to set + * @return this builder + **/ + public Builder percentComplete(Float percentComplete) { + this.percentComplete = percentComplete; + this.__explicitlySet__.add("percentComplete"); + return this; + } + /** + * The date and time the work request was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeAccepted the value to set + * @return this builder + **/ + public Builder timeAccepted(java.util.Date timeAccepted) { + this.timeAccepted = timeAccepted; + this.__explicitlySet__.add("timeAccepted"); + return this; + } + /** + * The date and time the work request was started, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * The date and time the work request was finished, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeFinished the value to set + * @return this builder + **/ + public Builder timeFinished(java.util.Date timeFinished) { + this.timeFinished = timeFinished; + this.__explicitlySet__.add("timeFinished"); + return this; + } + /** + * The date and time the work request was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequest build() { + WorkRequest model = + new WorkRequest( + this.operationType, + this.status, + this.id, + this.compartmentId, + this.resources, + this.percentComplete, + this.timeAccepted, + this.timeStarted, + this.timeFinished, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequest model) { + if (model.wasPropertyExplicitlySet("operationType")) { + this.operationType(model.getOperationType()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("resources")) { + this.resources(model.getResources()); + } + if (model.wasPropertyExplicitlySet("percentComplete")) { + this.percentComplete(model.getPercentComplete()); + } + if (model.wasPropertyExplicitlySet("timeAccepted")) { + this.timeAccepted(model.getTimeAccepted()); + } + if (model.wasPropertyExplicitlySet("timeStarted")) { + this.timeStarted(model.getTimeStarted()); + } + if (model.wasPropertyExplicitlySet("timeFinished")) { + this.timeFinished(model.getTimeFinished()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The asynchronous operation tracked by this work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("operationType") + private final OperationType operationType; + + /** + * The asynchronous operation tracked by this work request. + * @return the value + **/ + public OperationType getOperationType() { + return operationType; + } + + /** + * The status of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final OperationStatus status; + + /** + * The status of the work request. + * @return the value + **/ + public OperationStatus getStatus() { + return status; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the work request. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The resources that are affected by the work request. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("resources") + private final java.util.List resources; + + /** + * The resources that are affected by the work request. + * @return the value + **/ + public java.util.List getResources() { + return resources; + } + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") + private final Float percentComplete; + + /** + * Shows the progress of the operation tracked by the work request, as a percentage of the total work + * that must be performed. + * + * @return the value + **/ + public Float getPercentComplete() { + return percentComplete; + } + + /** + * The date and time the work request was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") + private final java.util.Date timeAccepted; + + /** + * The date and time the work request was created, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeAccepted() { + return timeAccepted; + } + + /** + * The date and time the work request was started, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private final java.util.Date timeStarted; + + /** + * The date and time the work request was started, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeStarted() { + return timeStarted; + } + + /** + * The date and time the work request was finished, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") + private final java.util.Date timeFinished; + + /** + * The date and time the work request was finished, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeFinished() { + return timeFinished; + } + + /** + * The date and time the work request was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the work request was updated, in the format defined by + * [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequest("); + sb.append("super=").append(super.toString()); + sb.append("operationType=").append(String.valueOf(this.operationType)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", resources=").append(String.valueOf(this.resources)); + sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); + sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); + sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); + sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequest)) { + return false; + } + + WorkRequest other = (WorkRequest) o; + return java.util.Objects.equals(this.operationType, other.operationType) + && java.util.Objects.equals(this.status, other.status) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.resources, other.resources) + && java.util.Objects.equals(this.percentComplete, other.percentComplete) + && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) + && java.util.Objects.equals(this.timeStarted, other.timeStarted) + && java.util.Objects.equals(this.timeFinished, other.timeFinished) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.operationType == null ? 43 : this.operationType.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); + result = + (result * PRIME) + + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); + result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); + result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); + result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.java new file mode 100644 index 00000000000..036c5fcc6ae --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestError.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.clusterhealth.model; + +/** + * An error encountered while performing an operation that is tracked by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"code", "message", "timestamp"}) + public WorkRequestError(String code, String message, java.util.Date timestamp) { + super(); + this.code = code; + this.message = message; + this.timestamp = timestamp; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @param code the value to set + * @return this builder + **/ + public Builder code(String code) { + this.code = code; + this.__explicitlySet__.add("code"); + return this; + } + /** + * A human-readable error message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable error message. + * @param message the value to set + * @return this builder + **/ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** + * The date and time the error occurred, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set + * @return this builder + **/ + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestError build() { + WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestError model) { + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("code") + private final String code; + + /** + * A machine-usable code for the error that occurred. For a list of error codes, see + * [API Errors](https://docs.oracle.com/iaas/Content/API/References/apierrors.htm). + * + * @return the value + **/ + public String getCode() { + return code; + } + + /** + * A human-readable error message. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable error message. + * @return the value + **/ + public String getMessage() { + return message; + } + + /** + * The date and time the error occurred, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the error occurred, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + **/ + public java.util.Date getTimestamp() { + return timestamp; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestError("); + sb.append("super=").append(super.toString()); + sb.append("code=").append(String.valueOf(this.code)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestError)) { + return false; + } + + WorkRequestError other = (WorkRequestError) o; + return java.util.Objects.equals(this.code, other.code) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestErrorCollection.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestErrorCollection.java index 0b622e6f1e3..065a4d227f8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestErrorCollection.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.clusterhealth.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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestErrorCollection.Builder.class ) @@ -31,13 +31,13 @@ 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 **/ @@ -79,13 +79,13 @@ public Builder toBuilder() { } /** - * 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 **/ public java.util.List getItems() { diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntry.java similarity index 50% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntry.java index f00a779f52c..9a93e65dda3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/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.clusterhealth.model; /** - * The Global service manager image details. + * 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 @@ -14,62 +14,64 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseGsmImage.Builder.class + builder = WorkRequestLogEntry.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseGsmImage - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class WorkRequestLogEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "version"}) - public DistributedAutonomousDatabaseGsmImage(String id, String version) { + @java.beans.ConstructorProperties({"message", "timestamp"}) + public WorkRequestLogEntry(String message, java.util.Date timestamp) { super(); - this.id = id; - this.version = version; + this.message = message; + this.timestamp = timestamp; } @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. + * A human-readable log message. **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; /** - * 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 + * A human-readable log message. + * @param message the value to set * @return this builder **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); return this; } /** - * The version associated with the image identified by id. + * 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("version") - private String version; + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; /** - * The version associated with the image identified by id. - * @param version the value to set + * The date and time the log message was written, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * + * @param timestamp the value to set * @return this builder **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); + public Builder timestamp(java.util.Date timestamp) { + this.timestamp = timestamp; + this.__explicitlySet__.add("timestamp"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedAutonomousDatabaseGsmImage build() { - DistributedAutonomousDatabaseGsmImage model = - new DistributedAutonomousDatabaseGsmImage(this.id, this.version); + public WorkRequestLogEntry build() { + WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -77,12 +79,12 @@ public DistributedAutonomousDatabaseGsmImage build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseGsmImage model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); + public Builder copy(WorkRequestLogEntry model) { + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); } return this; } @@ -100,31 +102,35 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. + * A human-readable log message. **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. + * A human-readable log message. * @return the value **/ - public String getId() { - return id; + public String getMessage() { + return message; } /** - * The version associated with the image identified by id. + * 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("version") - private final String version; + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; /** - * The version associated with the image identified by id. + * The date and time the log message was written, in the format defined by + * [RFC 3339](https://tools.ietf.org/html/rfc3339). + * * @return the value **/ - public String getVersion() { - return version; + public java.util.Date getTimestamp() { + return timestamp; } @Override @@ -139,10 +145,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseGsmImage("); + sb.append("WorkRequestLogEntry("); sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", version=").append(String.valueOf(this.version)); + sb.append("message=").append(String.valueOf(this.message)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); sb.append(")"); return sb.toString(); } @@ -152,13 +158,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedAutonomousDatabaseGsmImage)) { + if (!(o instanceof WorkRequestLogEntry)) { return false; } - DistributedAutonomousDatabaseGsmImage other = (DistributedAutonomousDatabaseGsmImage) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.version, other.version) + WorkRequestLogEntry other = (WorkRequestLogEntry) o; + return java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.timestamp, other.timestamp) && super.equals(other); } @@ -166,8 +172,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.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntryCollection.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntryCollection.java index c7c37f76cd5..5c83e101107 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestLogEntryCollection.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.clusterhealth.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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntryCollection.Builder.class ) @@ -31,13 +31,13 @@ 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 **/ @@ -79,13 +79,13 @@ public Builder toBuilder() { } /** - * 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 **/ public java.util.List getItems() { diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.java new file mode 100644 index 00000000000..b6d5820a3d9 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResource.java @@ -0,0 +1,316 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.model; + +/** + * A resource created or operated on by a work request. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestResource.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestResource extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "entityType", + "actionType", + "identifier", + "entityUri", + "metadata" + }) + public WorkRequestResource( + String entityType, + ActionType actionType, + String identifier, + String entityUri, + java.util.Map metadata) { + super(); + this.entityType = entityType; + this.actionType = actionType; + this.identifier = identifier; + this.entityUri = entityUri; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The resource type that the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private String entityType; + + /** + * The resource type that the work request affects. + * @param entityType the value to set + * @return this builder + **/ + public Builder entityType(String entityType) { + this.entityType = entityType; + this.__explicitlySet__.add("entityType"); + return this; + } + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + * @param actionType the value to set + * @return this builder + **/ + public Builder actionType(ActionType actionType) { + this.actionType = actionType; + this.__explicitlySet__.add("actionType"); + return this; + } + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + * @param identifier the value to set + * @return this builder + **/ + public Builder identifier(String identifier) { + this.identifier = identifier; + this.__explicitlySet__.add("identifier"); + return this; + } + /** + * The URI path that you can use for a GET request to access the resource metadata. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata. + * @param entityUri the value to set + * @return this builder + **/ + public Builder entityUri(String entityUri) { + this.entityUri = entityUri; + this.__explicitlySet__.add("entityUri"); + return this; + } + /** + * Additional information that helps to explain the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * @param metadata the value to set + * @return this builder + **/ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestResource build() { + WorkRequestResource model = + new WorkRequestResource( + this.entityType, + this.actionType, + this.identifier, + this.entityUri, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestResource model) { + if (model.wasPropertyExplicitlySet("entityType")) { + this.entityType(model.getEntityType()); + } + if (model.wasPropertyExplicitlySet("actionType")) { + this.actionType(model.getActionType()); + } + if (model.wasPropertyExplicitlySet("identifier")) { + this.identifier(model.getIdentifier()); + } + if (model.wasPropertyExplicitlySet("entityUri")) { + this.entityUri(model.getEntityUri()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The resource type that the work request affects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityType") + private final String entityType; + + /** + * The resource type that the work request affects. + * @return the value + **/ + public String getEntityType() { + return entityType; + } + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("actionType") + private final ActionType actionType; + + /** + * The way in which this resource is affected by the operation tracked in the work request. + * A resource being created, updated, or deleted remains in the IN_PROGRESS state until + * work is complete for that resource, at which point it transitions to CREATED, UPDATED, + * or DELETED, respectively. + * + * @return the value + **/ + public ActionType getActionType() { + return actionType; + } + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("identifier") + private final String identifier; + + /** + * An [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) or other unique identifier for the resource. + * @return the value + **/ + public String getIdentifier() { + return identifier; + } + + /** + * The URI path that you can use for a GET request to access the resource metadata. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("entityUri") + private final String entityUri; + + /** + * The URI path that you can use for a GET request to access the resource metadata. + * @return the value + **/ + public String getEntityUri() { + return entityUri; + } + + /** + * Additional information that helps to explain the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Additional information that helps to explain the resource. + * @return the value + **/ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestResource("); + sb.append("super=").append(super.toString()); + sb.append("entityType=").append(String.valueOf(this.entityType)); + sb.append(", actionType=").append(String.valueOf(this.actionType)); + sb.append(", identifier=").append(String.valueOf(this.identifier)); + sb.append(", entityUri=").append(String.valueOf(this.entityUri)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestResource)) { + return false; + } + + WorkRequestResource other = (WorkRequestResource) o; + return java.util.Objects.equals(this.entityType, other.entityType) + && java.util.Objects.equals(this.actionType, other.actionType) + && java.util.Objects.equals(this.identifier, other.identifier) + && java.util.Objects.equals(this.entityUri, other.entityUri) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); + result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); + result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); + result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResourceMetadataKey.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResourceMetadataKey.java index 3a18b8d5f62..e45bebaf119 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestResourceMetadataKey.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.clusterhealth.model; /** - * Possible Metadata keys for workRequest resource metadata + * Possible metadata keys for work request resource metadata. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") public enum WorkRequestResourceMetadataKey { IsDryRun("IS_DRY_RUN"), diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java new file mode 100644 index 00000000000..ccfbc45611a --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummary.java @@ -0,0 +1,550 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestSummary extends com.oracle.bmc.http.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummaryCollection.java similarity index 92% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummaryCollection.java index 6cb61bd4885..ff0b5156b0a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/model/WorkRequestSummaryCollection.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.clusterhealth.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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummaryCollection.Builder.class ) @@ -31,13 +31,13 @@ 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 **/ @@ -79,13 +79,13 @@ public Builder toBuilder() { } /** - * 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 **/ public java.util.List getItems() { diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.java new file mode 100644 index 00000000000..4649734b90d --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CancelWorkRequestRequest.java @@ -0,0 +1,261 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CancelWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CancelWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.java new file mode 100644 index 00000000000..f26db6ecae1 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ChangeDiagnosisStoreCompartmentRequest.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ChangeDiagnosisStoreCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ChangeDiagnosisStoreCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + changeDiagnosisStoreCompartmentDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + getChangeDiagnosisStoreCompartmentDetails() { + return changeDiagnosisStoreCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails getBody$() { + return changeDiagnosisStoreCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeDiagnosisStoreCompartmentRequest, + com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + changeDiagnosisStoreCompartmentDetails = null; + + /** + * The information to be updated. + * @param changeDiagnosisStoreCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeDiagnosisStoreCompartmentDetails( + com.oracle.bmc.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails + changeDiagnosisStoreCompartmentDetails) { + this.changeDiagnosisStoreCompartmentDetails = changeDiagnosisStoreCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(ChangeDiagnosisStoreCompartmentRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + changeDiagnosisStoreCompartmentDetails(o.getChangeDiagnosisStoreCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeDiagnosisStoreCompartmentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ChangeDiagnosisStoreCompartmentRequest + */ + public ChangeDiagnosisStoreCompartmentRequest build() { + ChangeDiagnosisStoreCompartmentRequest 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.clusterhealth.model.ChangeDiagnosisStoreCompartmentDetails body) { + changeDiagnosisStoreCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeDiagnosisStoreCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeDiagnosisStoreCompartmentRequest + */ + public ChangeDiagnosisStoreCompartmentRequest buildWithoutInvocationCallback() { + ChangeDiagnosisStoreCompartmentRequest request = + new ChangeDiagnosisStoreCompartmentRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.changeDiagnosisStoreCompartmentDetails = changeDiagnosisStoreCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeDiagnosisStoreCompartmentRequest(diagnosisStoreId, changeDiagnosisStoreCompartmentDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .changeDiagnosisStoreCompartmentDetails(changeDiagnosisStoreCompartmentDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",changeDiagnosisStoreCompartmentDetails=") + .append(String.valueOf(this.changeDiagnosisStoreCompartmentDetails)); + 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 ChangeDiagnosisStoreCompartmentRequest)) { + return false; + } + + ChangeDiagnosisStoreCompartmentRequest other = (ChangeDiagnosisStoreCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.changeDiagnosisStoreCompartmentDetails, + other.changeDiagnosisStoreCompartmentDetails) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.changeDiagnosisStoreCompartmentDetails == null + ? 43 + : this.changeDiagnosisStoreCompartmentDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.java new file mode 100644 index 00000000000..09956a97d44 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/CreateDiagnosisStoreRequest.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use CreateDiagnosisStoreRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CreateDiagnosisStoreRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails> { + + /** + * Details for the new Diagnosis Store. + */ + private com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + createDiagnosisStoreDetails; + + /** + * Details for the new Diagnosis Store. + */ + public com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + getCreateDiagnosisStoreDetails() { + return createDiagnosisStoreDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails getBody$() { + return createDiagnosisStoreDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateDiagnosisStoreRequest, + com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new Diagnosis Store. + */ + private com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + createDiagnosisStoreDetails = null; + + /** + * Details for the new Diagnosis Store. + * @param createDiagnosisStoreDetails the value to set + * @return this builder instance + */ + public Builder createDiagnosisStoreDetails( + com.oracle.bmc.clusterhealth.model.CreateDiagnosisStoreDetails + createDiagnosisStoreDetails) { + this.createDiagnosisStoreDetails = createDiagnosisStoreDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(CreateDiagnosisStoreRequest o) { + createDiagnosisStoreDetails(o.getCreateDiagnosisStoreDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateDiagnosisStoreRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateDiagnosisStoreRequest + */ + public CreateDiagnosisStoreRequest build() { + CreateDiagnosisStoreRequest 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.clusterhealth.model.CreateDiagnosisStoreDetails body) { + createDiagnosisStoreDetails(body); + return this; + } + + /** + * Build the instance of CreateDiagnosisStoreRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateDiagnosisStoreRequest + */ + public CreateDiagnosisStoreRequest buildWithoutInvocationCallback() { + CreateDiagnosisStoreRequest request = new CreateDiagnosisStoreRequest(); + request.createDiagnosisStoreDetails = createDiagnosisStoreDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateDiagnosisStoreRequest(createDiagnosisStoreDetails, 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() + .createDiagnosisStoreDetails(createDiagnosisStoreDetails) + .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(",createDiagnosisStoreDetails=") + .append(String.valueOf(this.createDiagnosisStoreDetails)); + 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 CreateDiagnosisStoreRequest)) { + return false; + } + + CreateDiagnosisStoreRequest other = (CreateDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createDiagnosisStoreDetails, other.createDiagnosisStoreDetails) + && 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.createDiagnosisStoreDetails == null + ? 43 + : this.createDiagnosisStoreDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.java new file mode 100644 index 00000000000..11c4b77e93f --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/DeleteDiagnosisStoreRequest.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use DeleteDiagnosisStoreRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DeleteDiagnosisStoreRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDiagnosisStoreRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(DeleteDiagnosisStoreRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDiagnosisStoreRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteDiagnosisStoreRequest + */ + public DeleteDiagnosisStoreRequest build() { + DeleteDiagnosisStoreRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDiagnosisStoreRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteDiagnosisStoreRequest + */ + public DeleteDiagnosisStoreRequest buildWithoutInvocationCallback() { + DeleteDiagnosisStoreRequest request = new DeleteDiagnosisStoreRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteDiagnosisStoreRequest(diagnosisStoreId, 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() + .diagnosisStoreId(diagnosisStoreId) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + 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 DeleteDiagnosisStoreRequest)) { + return false; + } + + DeleteDiagnosisStoreRequest other = (DeleteDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.java new file mode 100644 index 00000000000..9168c87efc0 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetDiagnosisStoreRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use GetDiagnosisStoreRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetDiagnosisStoreRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * 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< + GetDiagnosisStoreRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + 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.util.internal.Consumer + 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(GetDiagnosisStoreRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDiagnosisStoreRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetDiagnosisStoreRequest + */ + public GetDiagnosisStoreRequest build() { + GetDiagnosisStoreRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDiagnosisStoreRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetDiagnosisStoreRequest + */ + public GetDiagnosisStoreRequest buildWithoutInvocationCallback() { + GetDiagnosisStoreRequest request = new GetDiagnosisStoreRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.opcRequestId = opcRequestId; + return request; + // new GetDiagnosisStoreRequest(diagnosisStoreId, 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().diagnosisStoreId(diagnosisStoreId).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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + 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 GetDiagnosisStoreRequest)) { + return false; + } + + GetDiagnosisStoreRequest other = (GetDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.java new file mode 100644 index 00000000000..0b3be8cf1cf --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/GetWorkRequestRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use GetWorkRequestRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetWorkRequestRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest build() { + GetWorkRequestRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetWorkRequestRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetWorkRequestRequest + */ + public GetWorkRequestRequest buildWithoutInvocationCallback() { + GetWorkRequestRequest request = new GetWorkRequestRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + return request; + // new GetWorkRequestRequest(workRequestId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestRequest)) { + return false; + } + + GetWorkRequestRequest other = (GetWorkRequestRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.java new file mode 100644 index 00000000000..41564081bdc --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListDiagnosisStoresRequest.java @@ -0,0 +1,521 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListDiagnosisStoresRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListDiagnosisStoresRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStore.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 Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.clusterhealth.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 { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide only one sort order. Default order for {@code timeCreated} + * is descending. Default order for {@code displayName} is ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDiagnosisStoresRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore.LifecycleState lifecycleState = + null; + + /** + * A filter to return only resources that match the given lifecycle state. The + * state value is case-insensitive. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.clusterhealth.model.DiagnosisStore.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 Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.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.util.internal.Consumer + 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(ListDiagnosisStoresRequest o) { + compartmentId(o.getCompartmentId()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + diagnosisStoreId(o.getDiagnosisStoreId()); + 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 ListDiagnosisStoresRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListDiagnosisStoresRequest + */ + public ListDiagnosisStoresRequest build() { + ListDiagnosisStoresRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDiagnosisStoresRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDiagnosisStoresRequest + */ + public ListDiagnosisStoresRequest buildWithoutInvocationCallback() { + ListDiagnosisStoresRequest request = new ListDiagnosisStoresRequest(); + request.compartmentId = compartmentId; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.diagnosisStoreId = diagnosisStoreId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListDiagnosisStoresRequest(compartmentId, lifecycleState, displayName, diagnosisStoreId, 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) + .diagnosisStoreId(diagnosisStoreId) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + 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 ListDiagnosisStoresRequest)) { + return false; + } + + ListDiagnosisStoresRequest other = (ListDiagnosisStoresRequest) 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.diagnosisStoreId, other.diagnosisStoreId) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.java new file mode 100644 index 00000000000..7602659281c --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestErrorsRequest.java @@ -0,0 +1,406 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListWorkRequestErrorsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestErrorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + **/ + public enum SortBy { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestErrorsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + */ + private SortBy sortBy = null; + + /** + * 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 + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest build() { + ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestErrorsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestErrorsRequest + */ + public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { + ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsRequest)) { + return false; + } + + ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java new file mode 100644 index 00000000000..098d0b78112 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestLogsRequest.java @@ -0,0 +1,405 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListWorkRequestLogsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + **/ + public enum SortBy { + Timestamp("timestamp"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListWorkRequestLogsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timestamp} is descending. + * + */ + private SortBy sortBy = null; + + /** + * 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 + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsRequest o) { + workRequestId(o.getWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + page(o.getPage()); + limit(o.getLimit()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest build() { + ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListWorkRequestLogsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListWorkRequestLogsRequest + */ + public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { + ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); + request.workRequestId = workRequestId; + request.opcRequestId = opcRequestId; + request.page = page; + request.limit = limit; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .workRequestId(workRequestId) + .opcRequestId(opcRequestId) + .page(page) + .limit(limit) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsRequest)) { + return false; + } + + ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.workRequestId, other.workRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java new file mode 100644 index 00000000000..a6e37c9a3d3 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/ListWorkRequestsRequest.java @@ -0,0 +1,503 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + public String getWorkRequestId() { + return workRequestId; + } + /** + * A filter to return only the resources that match the given lifecycle state. + */ + private com.oracle.bmc.clusterhealth.model.OperationStatus status; + + /** + * A filter to return only the resources that match the given lifecycle state. + */ + public com.oracle.bmc.clusterhealth.model.OperationStatus getStatus() { + return status; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + */ + private String resourceId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + */ + public String getResourceId() { + return resourceId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.clusterhealth.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + **/ + public enum SortBy { + 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.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + */ + private String compartmentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + */ + private String workRequestId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * @param workRequestId the value to set + * @return this builder instance + */ + public Builder workRequestId(String workRequestId) { + this.workRequestId = workRequestId; + return this; + } + + /** + * A filter to return only the resources that match the given lifecycle state. + */ + private com.oracle.bmc.clusterhealth.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.clusterhealth.model.OperationStatus status) { + this.status = status; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + */ + private String resourceId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. + * @param resourceId the value to set + * @return this builder instance + */ + public Builder resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.clusterhealth.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.clusterhealth.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Default order for {@code timeAccepted} is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.java new file mode 100644 index 00000000000..5f1a1092edc --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisByHealthCheckKeyRequest.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.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use QueryDiagnosisByHealthCheckKeyRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisByHealthCheckKeyRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * Parameters for filtering diagnosis summaries. + */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + queryDiagnosisByHealthCheckKeyDetails; + + /** + * Parameters for filtering diagnosis summaries. + */ + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + getQueryDiagnosisByHealthCheckKeyDetails() { + return queryDiagnosisByHealthCheckKeyDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails getBody$() { + return queryDiagnosisByHealthCheckKeyDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + QueryDiagnosisByHealthCheckKeyRequest, + com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * Parameters for filtering diagnosis summaries. + */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + queryDiagnosisByHealthCheckKeyDetails = null; + + /** + * Parameters for filtering diagnosis summaries. + * @param queryDiagnosisByHealthCheckKeyDetails the value to set + * @return this builder instance + */ + public Builder queryDiagnosisByHealthCheckKeyDetails( + com.oracle.bmc.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails + queryDiagnosisByHealthCheckKeyDetails) { + this.queryDiagnosisByHealthCheckKeyDetails = queryDiagnosisByHealthCheckKeyDetails; + 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.util.internal.Consumer + 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(QueryDiagnosisByHealthCheckKeyRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + queryDiagnosisByHealthCheckKeyDetails(o.getQueryDiagnosisByHealthCheckKeyDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of QueryDiagnosisByHealthCheckKeyRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of QueryDiagnosisByHealthCheckKeyRequest + */ + public QueryDiagnosisByHealthCheckKeyRequest build() { + QueryDiagnosisByHealthCheckKeyRequest 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.clusterhealth.model.QueryDiagnosisByHealthCheckKeyDetails body) { + queryDiagnosisByHealthCheckKeyDetails(body); + return this; + } + + /** + * Build the instance of QueryDiagnosisByHealthCheckKeyRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of QueryDiagnosisByHealthCheckKeyRequest + */ + public QueryDiagnosisByHealthCheckKeyRequest buildWithoutInvocationCallback() { + QueryDiagnosisByHealthCheckKeyRequest request = + new QueryDiagnosisByHealthCheckKeyRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.queryDiagnosisByHealthCheckKeyDetails = queryDiagnosisByHealthCheckKeyDetails; + request.opcRequestId = opcRequestId; + return request; + // new QueryDiagnosisByHealthCheckKeyRequest(diagnosisStoreId, queryDiagnosisByHealthCheckKeyDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .queryDiagnosisByHealthCheckKeyDetails(queryDiagnosisByHealthCheckKeyDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",queryDiagnosisByHealthCheckKeyDetails=") + .append(String.valueOf(this.queryDiagnosisByHealthCheckKeyDetails)); + 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 QueryDiagnosisByHealthCheckKeyRequest)) { + return false; + } + + QueryDiagnosisByHealthCheckKeyRequest other = (QueryDiagnosisByHealthCheckKeyRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.queryDiagnosisByHealthCheckKeyDetails, + other.queryDiagnosisByHealthCheckKeyDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.queryDiagnosisByHealthCheckKeyDetails == null + ? 43 + : this.queryDiagnosisByHealthCheckKeyDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.java new file mode 100644 index 00000000000..25233a21309 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/QueryDiagnosisSummaryRequest.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use QueryDiagnosisSummaryRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisSummaryRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * Parameters for filtering diagnosis summaries. + */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + queryDiagnosisSummaryDetails; + + /** + * Parameters for filtering diagnosis summaries. + */ + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + getQueryDiagnosisSummaryDetails() { + return queryDiagnosisSummaryDetails; + } + /** + * 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; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails getBody$() { + return queryDiagnosisSummaryDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + QueryDiagnosisSummaryRequest, + com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * Parameters for filtering diagnosis summaries. + */ + private com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + queryDiagnosisSummaryDetails = null; + + /** + * Parameters for filtering diagnosis summaries. + * @param queryDiagnosisSummaryDetails the value to set + * @return this builder instance + */ + public Builder queryDiagnosisSummaryDetails( + com.oracle.bmc.clusterhealth.model.QueryDiagnosisSummaryDetails + queryDiagnosisSummaryDetails) { + this.queryDiagnosisSummaryDetails = queryDiagnosisSummaryDetails; + 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.util.internal.Consumer + 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(QueryDiagnosisSummaryRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + queryDiagnosisSummaryDetails(o.getQueryDiagnosisSummaryDetails()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of QueryDiagnosisSummaryRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of QueryDiagnosisSummaryRequest + */ + public QueryDiagnosisSummaryRequest build() { + QueryDiagnosisSummaryRequest 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.clusterhealth.model.QueryDiagnosisSummaryDetails body) { + queryDiagnosisSummaryDetails(body); + return this; + } + + /** + * Build the instance of QueryDiagnosisSummaryRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of QueryDiagnosisSummaryRequest + */ + public QueryDiagnosisSummaryRequest buildWithoutInvocationCallback() { + QueryDiagnosisSummaryRequest request = new QueryDiagnosisSummaryRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.queryDiagnosisSummaryDetails = queryDiagnosisSummaryDetails; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new QueryDiagnosisSummaryRequest(diagnosisStoreId, queryDiagnosisSummaryDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .queryDiagnosisSummaryDetails(queryDiagnosisSummaryDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",queryDiagnosisSummaryDetails=") + .append(String.valueOf(this.queryDiagnosisSummaryDetails)); + 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 QueryDiagnosisSummaryRequest)) { + return false; + } + + QueryDiagnosisSummaryRequest other = (QueryDiagnosisSummaryRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.queryDiagnosisSummaryDetails, other.queryDiagnosisSummaryDetails) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.queryDiagnosisSummaryDetails == null + ? 43 + : this.queryDiagnosisSummaryDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.java new file mode 100644 index 00000000000..5451e105c07 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/RequestDiagnosisRequest.java @@ -0,0 +1,277 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use RequestDiagnosisRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class RequestDiagnosisRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * At least one healthCheck ID. + */ + private com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails requestDiagnosisDetails; + + /** + * At least one healthCheck ID. + */ + public com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails getRequestDiagnosisDetails() { + return requestDiagnosisDetails; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails getBody$() { + return requestDiagnosisDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RequestDiagnosisRequest, + com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * At least one healthCheck ID. + */ + private com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails requestDiagnosisDetails = + null; + + /** + * At least one healthCheck ID. + * @param requestDiagnosisDetails the value to set + * @return this builder instance + */ + public Builder requestDiagnosisDetails( + com.oracle.bmc.clusterhealth.model.RequestDiagnosisDetails + requestDiagnosisDetails) { + this.requestDiagnosisDetails = requestDiagnosisDetails; + 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.util.internal.Consumer + 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(RequestDiagnosisRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + requestDiagnosisDetails(o.getRequestDiagnosisDetails()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RequestDiagnosisRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of RequestDiagnosisRequest + */ + public RequestDiagnosisRequest build() { + RequestDiagnosisRequest 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.clusterhealth.model.RequestDiagnosisDetails body) { + requestDiagnosisDetails(body); + return this; + } + + /** + * Build the instance of RequestDiagnosisRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RequestDiagnosisRequest + */ + public RequestDiagnosisRequest buildWithoutInvocationCallback() { + RequestDiagnosisRequest request = new RequestDiagnosisRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.requestDiagnosisDetails = requestDiagnosisDetails; + request.opcRequestId = opcRequestId; + return request; + // new RequestDiagnosisRequest(diagnosisStoreId, requestDiagnosisDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .requestDiagnosisDetails(requestDiagnosisDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",requestDiagnosisDetails=").append(String.valueOf(this.requestDiagnosisDetails)); + 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 RequestDiagnosisRequest)) { + return false; + } + + RequestDiagnosisRequest other = (RequestDiagnosisRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.requestDiagnosisDetails, other.requestDiagnosisDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.requestDiagnosisDetails == null + ? 43 + : this.requestDiagnosisDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java new file mode 100644 index 00000000000..94052b8af45 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/requests/UpdateDiagnosisStoreRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.requests; + +import com.oracle.bmc.clusterhealth.model.*; +/** + * Example: Click here to see how to use UpdateDiagnosisStoreRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class UpdateDiagnosisStoreRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + public String getDiagnosisStoreId() { + return diagnosisStoreId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + updateDiagnosisStoreDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + getUpdateDiagnosisStoreDetails() { + return updateDiagnosisStoreDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails getBody$() { + return updateDiagnosisStoreDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateDiagnosisStoreRequest, + com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + */ + private String diagnosisStoreId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Diagnosis. + * @param diagnosisStoreId the value to set + * @return this builder instance + */ + public Builder diagnosisStoreId(String diagnosisStoreId) { + this.diagnosisStoreId = diagnosisStoreId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + updateDiagnosisStoreDetails = null; + + /** + * The information to be updated. + * @param updateDiagnosisStoreDetails the value to set + * @return this builder instance + */ + public Builder updateDiagnosisStoreDetails( + com.oracle.bmc.clusterhealth.model.UpdateDiagnosisStoreDetails + updateDiagnosisStoreDetails) { + this.updateDiagnosisStoreDetails = updateDiagnosisStoreDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(UpdateDiagnosisStoreRequest o) { + diagnosisStoreId(o.getDiagnosisStoreId()); + updateDiagnosisStoreDetails(o.getUpdateDiagnosisStoreDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateDiagnosisStoreRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateDiagnosisStoreRequest + */ + public UpdateDiagnosisStoreRequest build() { + UpdateDiagnosisStoreRequest 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.clusterhealth.model.UpdateDiagnosisStoreDetails body) { + updateDiagnosisStoreDetails(body); + return this; + } + + /** + * Build the instance of UpdateDiagnosisStoreRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateDiagnosisStoreRequest + */ + public UpdateDiagnosisStoreRequest buildWithoutInvocationCallback() { + UpdateDiagnosisStoreRequest request = new UpdateDiagnosisStoreRequest(); + request.diagnosisStoreId = diagnosisStoreId; + request.updateDiagnosisStoreDetails = updateDiagnosisStoreDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateDiagnosisStoreRequest(diagnosisStoreId, updateDiagnosisStoreDetails, 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() + .diagnosisStoreId(diagnosisStoreId) + .updateDiagnosisStoreDetails(updateDiagnosisStoreDetails) + .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(",diagnosisStoreId=").append(String.valueOf(this.diagnosisStoreId)); + sb.append(",updateDiagnosisStoreDetails=") + .append(String.valueOf(this.updateDiagnosisStoreDetails)); + 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 UpdateDiagnosisStoreRequest)) { + return false; + } + + UpdateDiagnosisStoreRequest other = (UpdateDiagnosisStoreRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.diagnosisStoreId, other.diagnosisStoreId) + && java.util.Objects.equals( + this.updateDiagnosisStoreDetails, other.updateDiagnosisStoreDetails) + && 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.diagnosisStoreId == null ? 43 : this.diagnosisStoreId.hashCode()); + result = + (result * PRIME) + + (this.updateDiagnosisStoreDetails == null + ? 43 + : this.updateDiagnosisStoreDetails.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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CancelWorkRequestResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CancelWorkRequestResponse.java new file mode 100644 index 00000000000..7fa4b2ff3d1 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CancelWorkRequestResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CancelWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private CancelWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 + */ + public Builder copy(CancelWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CancelWorkRequestResponse build() { + return new CancelWorkRequestResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestResponse)) { + return false; + } + + CancelWorkRequestResponse other = (CancelWorkRequestResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java similarity index 77% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java index 02b8d183ce5..1657f1d41dd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ChangeDiagnosisStoreCompartmentResponse.java @@ -2,21 +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.clusterhealth.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.clusterhealth.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabasePrivateEndpointResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ChangeDiagnosisStoreCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -47,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private DeleteDistributedDatabasePrivateEndpointResponse( + private ChangeDiagnosisStoreCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -112,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(DeleteDistributedDatabasePrivateEndpointResponse o) { + public Builder copy(ChangeDiagnosisStoreCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +128,8 @@ public Builder copy(DeleteDistributedDatabasePrivateEndpointResponse o) { * Build the response object. * @return the response object */ - public DeleteDistributedDatabasePrivateEndpointResponse build() { - return new DeleteDistributedDatabasePrivateEndpointResponse( + public ChangeDiagnosisStoreCompartmentResponse build() { + return new ChangeDiagnosisStoreCompartmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteDistributedDatabasePrivateEndpointResponse)) { + if (!(o instanceof ChangeDiagnosisStoreCompartmentResponse)) { return false; } - DeleteDistributedDatabasePrivateEndpointResponse other = - (DeleteDistributedDatabasePrivateEndpointResponse) o; + ChangeDiagnosisStoreCompartmentResponse other = (ChangeDiagnosisStoreCompartmentResponse) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.java new file mode 100644 index 00000000000..e4714fd7f7d --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/CreateDiagnosisStoreResponse.java @@ -0,0 +1,337 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class CreateDiagnosisStoreResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is sent. + */ + private String location; + + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is sent. + * @return the value + */ + public String getLocation() { + return location; + } + + /** + * Same as location. + */ + private String contentLocation; + + /** + * Same as location. + * @return the value + */ + public String getContentLocation() { + return contentLocation; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned DiagnosisStore instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned DiagnosisStore instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStore getDiagnosisStore() { + return diagnosisStore; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "location", + "contentLocation", + "etag", + "opcWorkRequestId", + "opcRequestId", + "diagnosisStore" + }) + private CreateDiagnosisStoreResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String location, + String contentLocation, + String etag, + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + super(__httpStatusCode__, headers); + this.location = location; + this.contentLocation = contentLocation; + this.etag = etag; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.diagnosisStore = diagnosisStore; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is sent. + */ + private String location; + + /** + * URL for the created diagnosis. The diagnosis OCID is generated after this request is sent. + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * Same as location. + */ + private String contentLocation; + + /** + * Same as location. + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned DiagnosisStore instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned DiagnosisStore instance. + * @param diagnosisStore the value to set + * @return this builder + */ + public Builder diagnosisStore( + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + this.diagnosisStore = diagnosisStore; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateDiagnosisStoreResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + diagnosisStore(o.getDiagnosisStore()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateDiagnosisStoreResponse build() { + return new CreateDiagnosisStoreResponse( + __httpStatusCode__, + headers, + location, + contentLocation, + etag, + opcWorkRequestId, + opcRequestId, + diagnosisStore); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",diagnosisStore=").append(String.valueOf(diagnosisStore)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateDiagnosisStoreResponse)) { + return false; + } + + CreateDiagnosisStoreResponse other = (CreateDiagnosisStoreResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.diagnosisStore, other.diagnosisStore); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.diagnosisStore == null ? 43 : this.diagnosisStore.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.java similarity index 78% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java rename to bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.java index 0348c2e4ae3..5e1a04f93c4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/DeleteDiagnosisStoreResponse.java @@ -2,21 +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.distributeddatabase.responses; +package com.oracle.bmc.clusterhealth.responses; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.clusterhealth.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class DeleteDiagnosisStoreResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -47,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private GenerateDistributedDatabaseGsmCertificateSigningRequestResponse( + private DeleteDiagnosisStoreResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -112,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GenerateDistributedDatabaseGsmCertificateSigningRequestResponse o) { + public Builder copy(DeleteDiagnosisStoreResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +128,8 @@ public Builder copy(GenerateDistributedDatabaseGsmCertificateSigningRequestRespo * Build the response object. * @return the response object */ - public GenerateDistributedDatabaseGsmCertificateSigningRequestResponse build() { - return new GenerateDistributedDatabaseGsmCertificateSigningRequestResponse( + public DeleteDiagnosisStoreResponse build() { + return new DeleteDiagnosisStoreResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GenerateDistributedDatabaseGsmCertificateSigningRequestResponse)) { + if (!(o instanceof DeleteDiagnosisStoreResponse)) { return false; } - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse other = - (GenerateDistributedDatabaseGsmCertificateSigningRequestResponse) o; + DeleteDiagnosisStoreResponse other = (DeleteDiagnosisStoreResponse) 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-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.java new file mode 100644 index 00000000000..7a435921f8b --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetDiagnosisStoreResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetDiagnosisStoreResponse 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 DiagnosisStore instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned DiagnosisStore instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStore getDiagnosisStore() { + return diagnosisStore; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "diagnosisStore" + }) + private GetDiagnosisStoreResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.diagnosisStore = diagnosisStore; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DiagnosisStore instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore; + + /** + * The returned DiagnosisStore instance. + * @param diagnosisStore the value to set + * @return this builder + */ + public Builder diagnosisStore( + com.oracle.bmc.clusterhealth.model.DiagnosisStore diagnosisStore) { + this.diagnosisStore = diagnosisStore; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDiagnosisStoreResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + diagnosisStore(o.getDiagnosisStore()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetDiagnosisStoreResponse build() { + return new GetDiagnosisStoreResponse( + __httpStatusCode__, headers, etag, opcRequestId, diagnosisStore); + } + } + + /** + * 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(",diagnosisStore=").append(String.valueOf(diagnosisStore)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDiagnosisStoreResponse)) { + return false; + } + + GetDiagnosisStoreResponse other = (GetDiagnosisStoreResponse) 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.diagnosisStore, other.diagnosisStore); + } + + @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.diagnosisStore == null ? 43 : this.diagnosisStore.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.java new file mode 100644 index 00000000000..a195c5e2581 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/GetWorkRequestResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @return the value + */ + public Integer getRetryAfter() { + return retryAfter; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.WorkRequest getWorkRequest() { + return workRequest; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "retryAfter", + "workRequest" + }) + private GetWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + Integer retryAfter, + com.oracle.bmc.clusterhealth.model.WorkRequest workRequest) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.retryAfter = retryAfter; + this.workRequest = workRequest; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + */ + private Integer retryAfter; + + /** + * A decimal number representing the number of seconds the client should wait before polling this endpoint again. + * @param retryAfter the value to set + * @return this builder + */ + public Builder retryAfter(Integer retryAfter) { + this.retryAfter = retryAfter; + return this; + } + + /** + * The returned WorkRequest instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequest workRequest; + + /** + * The returned WorkRequest instance. + * @param workRequest the value to set + * @return this builder + */ + public Builder workRequest(com.oracle.bmc.clusterhealth.model.WorkRequest workRequest) { + this.workRequest = workRequest; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + retryAfter(o.getRetryAfter()); + workRequest(o.getWorkRequest()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetWorkRequestResponse build() { + return new GetWorkRequestResponse( + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",retryAfter=").append(String.valueOf(retryAfter)); + sb.append(",workRequest=").append(String.valueOf(workRequest)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetWorkRequestResponse)) { + return false; + } + + GetWorkRequestResponse other = (GetWorkRequestResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.retryAfter, other.retryAfter) + && java.util.Objects.equals(this.workRequest, other.workRequest); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); + result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.java new file mode 100644 index 00000000000..05b47beee58 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListDiagnosisStoresResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListDiagnosisStoresResponse 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 DiagnosisStoreCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection diagnosisStoreCollection; + + /** + * The returned DiagnosisStoreCollection instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection + getDiagnosisStoreCollection() { + return diagnosisStoreCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "diagnosisStoreCollection" + }) + private ListDiagnosisStoresResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection diagnosisStoreCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.diagnosisStoreCollection = diagnosisStoreCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DiagnosisStoreCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection + diagnosisStoreCollection; + + /** + * The returned DiagnosisStoreCollection instance. + * @param diagnosisStoreCollection the value to set + * @return this builder + */ + public Builder diagnosisStoreCollection( + com.oracle.bmc.clusterhealth.model.DiagnosisStoreCollection + diagnosisStoreCollection) { + this.diagnosisStoreCollection = diagnosisStoreCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDiagnosisStoresResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + diagnosisStoreCollection(o.getDiagnosisStoreCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDiagnosisStoresResponse build() { + return new ListDiagnosisStoresResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + diagnosisStoreCollection); + } + } + + /** + * 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(",diagnosisStoreCollection=").append(String.valueOf(diagnosisStoreCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDiagnosisStoresResponse)) { + return false; + } + + ListDiagnosisStoresResponse other = (ListDiagnosisStoresResponse) 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.diagnosisStoreCollection, other.diagnosisStoreCollection); + } + + @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.diagnosisStoreCollection == null + ? 43 + : this.diagnosisStoreCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestErrorsResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestErrorsResponse.java new file mode 100644 index 00000000000..33b6c68374f --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestErrorsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection + getWorkRequestErrorCollection() { + return workRequestErrorCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestErrorCollection" + }) + private ListWorkRequestErrorsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection + workRequestErrorCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestErrorCollection = workRequestErrorCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequestErrorCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection + workRequestErrorCollection; + + /** + * The returned WorkRequestErrorCollection instance. + * @param workRequestErrorCollection the value to set + * @return this builder + */ + public Builder workRequestErrorCollection( + com.oracle.bmc.clusterhealth.model.WorkRequestErrorCollection + workRequestErrorCollection) { + this.workRequestErrorCollection = workRequestErrorCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestErrorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestErrorCollection(o.getWorkRequestErrorCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestErrorsResponse build() { + return new ListWorkRequestErrorsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestErrorCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestErrorCollection=") + .append(String.valueOf(workRequestErrorCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestErrorsResponse)) { + return false; + } + + ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestErrorCollection, other.workRequestErrorCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestErrorCollection == null + ? 43 + : this.workRequestErrorCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestLogsResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestLogsResponse.java new file mode 100644 index 00000000000..615c624b2da --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestLogsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection + getWorkRequestLogEntryCollection() { + return workRequestLogEntryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "workRequestLogEntryCollection" + }) + private ListWorkRequestLogsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The returned WorkRequestLogEntryCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection; + + /** + * The returned WorkRequestLogEntryCollection instance. + * @param workRequestLogEntryCollection the value to set + * @return this builder + */ + public Builder workRequestLogEntryCollection( + com.oracle.bmc.clusterhealth.model.WorkRequestLogEntryCollection + workRequestLogEntryCollection) { + this.workRequestLogEntryCollection = workRequestLogEntryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestLogsResponse build() { + return new ListWorkRequestLogsResponse( + __httpStatusCode__, + headers, + opcNextPage, + opcRequestId, + workRequestLogEntryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",workRequestLogEntryCollection=") + .append(String.valueOf(workRequestLogEntryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestLogsResponse)) { + return false; + } + + ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.workRequestLogEntryCollection == null + ? 43 + : this.workRequestLogEntryCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.java new file mode 100644 index 00000000000..a2eedf0dd60 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/ListWorkRequestsResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned WorkRequestSummaryCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned WorkRequestSummaryCollection instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + getWorkRequestSummaryCollection() { + return workRequestSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "workRequestSummaryCollection" + }) + private ListWorkRequestsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.workRequestSummaryCollection = workRequestSummaryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 WorkRequestSummaryCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection; + + /** + * The returned WorkRequestSummaryCollection instance. + * @param workRequestSummaryCollection the value to set + * @return this builder + */ + public Builder workRequestSummaryCollection( + com.oracle.bmc.clusterhealth.model.WorkRequestSummaryCollection + workRequestSummaryCollection) { + this.workRequestSummaryCollection = workRequestSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListWorkRequestsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListWorkRequestsResponse build() { + return new ListWorkRequestsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + workRequestSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",workRequestSummaryCollection=") + .append(String.valueOf(workRequestSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListWorkRequestsResponse)) { + return false; + } + + ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.workRequestSummaryCollection, other.workRequestSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.workRequestSummaryCollection == null + ? 43 + : this.workRequestSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.java new file mode 100644 index 00000000000..cb0900bffcf --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisByHealthCheckKeyResponse.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.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisByHealthCheckKeyResponse 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 RecommendationReport instance. + */ + private com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport; + + /** + * The returned RecommendationReport instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.RecommendationReport getRecommendationReport() { + return recommendationReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "recommendationReport" + }) + private QueryDiagnosisByHealthCheckKeyResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.recommendationReport = recommendationReport; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 RecommendationReport instance. + */ + private com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport; + + /** + * The returned RecommendationReport instance. + * @param recommendationReport the value to set + * @return this builder + */ + public Builder recommendationReport( + com.oracle.bmc.clusterhealth.model.RecommendationReport recommendationReport) { + this.recommendationReport = recommendationReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(QueryDiagnosisByHealthCheckKeyResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + recommendationReport(o.getRecommendationReport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public QueryDiagnosisByHealthCheckKeyResponse build() { + return new QueryDiagnosisByHealthCheckKeyResponse( + __httpStatusCode__, headers, etag, opcRequestId, recommendationReport); + } + } + + /** + * 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(",recommendationReport=").append(String.valueOf(recommendationReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisByHealthCheckKeyResponse)) { + return false; + } + + QueryDiagnosisByHealthCheckKeyResponse other = (QueryDiagnosisByHealthCheckKeyResponse) 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.recommendationReport, other.recommendationReport); + } + + @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.recommendationReport == null + ? 43 + : this.recommendationReport.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.java new file mode 100644 index 00000000000..1e63f66db23 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/QueryDiagnosisSummaryResponse.java @@ -0,0 +1,230 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class QueryDiagnosisSummaryResponse 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 DiagnosisSummaryCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection; + + /** + * The returned DiagnosisSummaryCollection instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + getDiagnosisSummaryCollection() { + return diagnosisSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "diagnosisSummaryCollection" + }) + private QueryDiagnosisSummaryResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.diagnosisSummaryCollection = diagnosisSummaryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DiagnosisSummaryCollection instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection; + + /** + * The returned DiagnosisSummaryCollection instance. + * @param diagnosisSummaryCollection the value to set + * @return this builder + */ + public Builder diagnosisSummaryCollection( + com.oracle.bmc.clusterhealth.model.DiagnosisSummaryCollection + diagnosisSummaryCollection) { + this.diagnosisSummaryCollection = diagnosisSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(QueryDiagnosisSummaryResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + diagnosisSummaryCollection(o.getDiagnosisSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public QueryDiagnosisSummaryResponse build() { + return new QueryDiagnosisSummaryResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + diagnosisSummaryCollection); + } + } + + /** + * 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(",diagnosisSummaryCollection=") + .append(String.valueOf(diagnosisSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof QueryDiagnosisSummaryResponse)) { + return false; + } + + QueryDiagnosisSummaryResponse other = (QueryDiagnosisSummaryResponse) 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.diagnosisSummaryCollection, other.diagnosisSummaryCollection); + } + + @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.diagnosisSummaryCollection == null + ? 43 + : this.diagnosisSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.java new file mode 100644 index 00000000000..00a39c01a47 --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/RequestDiagnosisResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class RequestDiagnosisResponse 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 DiagnosisResults instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults; + + /** + * The returned DiagnosisResults instance. + * @return the value + */ + public com.oracle.bmc.clusterhealth.model.DiagnosisResults getDiagnosisResults() { + return diagnosisResults; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "diagnosisResults" + }) + private RequestDiagnosisResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.diagnosisResults = diagnosisResults; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DiagnosisResults instance. + */ + private com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults; + + /** + * The returned DiagnosisResults instance. + * @param diagnosisResults the value to set + * @return this builder + */ + public Builder diagnosisResults( + com.oracle.bmc.clusterhealth.model.DiagnosisResults diagnosisResults) { + this.diagnosisResults = diagnosisResults; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RequestDiagnosisResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + diagnosisResults(o.getDiagnosisResults()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RequestDiagnosisResponse build() { + return new RequestDiagnosisResponse( + __httpStatusCode__, headers, etag, opcRequestId, diagnosisResults); + } + } + + /** + * 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(",diagnosisResults=").append(String.valueOf(diagnosisResults)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RequestDiagnosisResponse)) { + return false; + } + + RequestDiagnosisResponse other = (RequestDiagnosisResponse) 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.diagnosisResults, other.diagnosisResults); + } + + @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.diagnosisResults == null ? 43 : this.diagnosisResults.hashCode()); + return result; + } +} diff --git a/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.java b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.java new file mode 100644 index 00000000000..92e8bc091db --- /dev/null +++ b/bmc-clusterhealth/src/main/java/com/oracle/bmc/clusterhealth/responses/UpdateDiagnosisStoreResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.clusterhealth.responses; + +import com.oracle.bmc.clusterhealth.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260331") +public class UpdateDiagnosisStoreResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateDiagnosisStoreResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the asynchronous work request. + * Use GetWorkRequest with this ID to track the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateDiagnosisStoreResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateDiagnosisStoreResponse build() { + return new UpdateDiagnosisStoreResponse( + __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 UpdateDiagnosisStoreResponse)) { + return false; + } + + UpdateDiagnosisStoreResponse other = (UpdateDiagnosisStoreResponse) 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-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index b74f6714a36..4f2d108179d 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 5d893003b51..94bc1c43f65 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -92,7 +92,7 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.97.0 + 2.98.0 diff --git a/bmc-common/src/main/java/com/oracle/bmc/Region.java b/bmc-common/src/main/java/com/oracle/bmc/Region.java index e951d105e01..0f0724fd045 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Region.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Region.java @@ -27,10 +27,12 @@ import java.nio.file.Files; import java.nio.file.Paths; import java.util.HashMap; +import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Locale; import java.util.Map; import java.util.Optional; +import java.util.Set; import java.util.concurrent.locks.ReentrantLock; import static com.oracle.bmc.auth.AbstractFederationClientAuthenticationDetailsProviderBuilder.AUTHORIZATION_HEADER_VALUE; import static com.oracle.bmc.auth.AbstractFederationClientAuthenticationDetailsProviderBuilder.METADATA_SERVICE_BASE_URL; @@ -83,6 +85,10 @@ private static String getDefaultRealmFromEnv() { // LinkedHashMap to ensure stable ordering of registered regions private static final Map KNOWN_REGIONS = new LinkedHashMap<>(); + // Region IDs that can be used for secure endpoint resolution. Access is protected by + // synchronizing on KNOWN_REGIONS. + private static final Set TRUSTED_REGION_IDS = new HashSet<>(); + // Region registered through the instance metadata service. public static volatile Region regionFromImds = null; @@ -487,6 +493,16 @@ public static Region register(@Nonnull String regionId, @Nonnull final Realm rea */ public static Region register( @Nonnull String regionId, @Nonnull final Realm realm, String regionCode) { + return register(regionId, realm, regionCode, true); + } + + // Records whether the region came from an independent source while leaving the public + // registration API unchanged. + private static Region register( + @Nonnull String regionId, + @Nonnull final Realm realm, + String regionCode, + boolean isTrustedRegistration) { if (regionId == null) { throw new java.lang.NullPointerException("regionId is marked non-null but is null"); } @@ -509,6 +525,9 @@ public static Region register( + region.getRealm() + ". It cannot be re-registered with a different realm."); } + if (isTrustedRegistration) { + TRUSTED_REGION_IDS.add(region.getRegionId()); + } return region; } } @@ -518,20 +537,32 @@ public static Region register( regionCode = null; } } - return new Region(regionId, Optional.ofNullable(regionCode), realm); + Region registeredRegion = new Region(regionId, Optional.ofNullable(regionCode), realm); + if (isTrustedRegistration) { + TRUSTED_REGION_IDS.add(regionId); + } + return registeredRegion; } } private static java.util.Optional maybeFromRegionCodeOrIdWithoutRegistering( String regionCodeOrId) { + // Preserve existing Region API behavior, including fallback-created regions. + return maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId, true); + } + + private static java.util.Optional maybeFromRegionCodeOrIdWithoutRegistering( + String regionCodeOrId, boolean includeFallbackRegions) { synchronized (KNOWN_REGIONS) { return KNOWN_REGIONS .values() .stream() .filter( r -> - r.getRegionCode().equalsIgnoreCase(regionCodeOrId) - || r.regionId.equalsIgnoreCase(regionCodeOrId)) + (r.getRegionCode().equalsIgnoreCase(regionCodeOrId) + || r.regionId.equalsIgnoreCase(regionCodeOrId)) + && (includeFallbackRegions + || TRUSTED_REGION_IDS.contains(r.regionId))) .findAny(); } } @@ -554,19 +585,28 @@ private static void registerAllRegions() { * Implements decision tree to determine Region. */ private static Optional getRegionAndRegisterIfNecessary(String regionCodeOrId) { + // Preserve existing Region API behavior by allowing its existing fallback. + return getRegionAndRegisterIfNecessary(regionCodeOrId, true); + } + + private static Optional getRegionAndRegisterIfNecessary( + String regionCodeOrId, boolean includeFallbackRegions) { if (regionCodeOrId.contains("_")) { regionCodeOrId = NameUtils.decanonicalizeFromEnumTypes(regionCodeOrId); } - Optional maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + Optional maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId, includeFallbackRegions); if (maybeRegion.isPresent()) { return maybeRegion; // already known } if (!hasUsedConfigFile) { readConfigFile(); // registers region and sets hasUsedConfigFile = true; - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeFallbackRegions); if (maybeRegion.isPresent()) { return maybeRegion; } @@ -574,7 +614,9 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod if (!hasUsedEnvVar) { readEnvVar(); // registers region and sets hasUsedEnvVar = true; - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeFallbackRegions); if (maybeRegion.isPresent()) { return maybeRegion; } @@ -582,13 +624,17 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod if (hasOptedForInstanceMetadataService && !hasUsedInstanceMetadataService) { registerFromInstanceMetadataService(); // registers region and sets hasUsedInstanceMetadataService = true; - maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); + maybeRegion = + maybeFromRegionCodeOrIdWithoutRegistering( + regionCodeOrId, includeFallbackRegions); if (maybeRegion.isPresent()) { return maybeRegion; } } - if (defaultRealmEnvVar != null && !StringUtils.isBlank(defaultRealmEnvVar)) { + if (includeFallbackRegions + && defaultRealmEnvVar != null + && !StringUtils.isBlank(defaultRealmEnvVar)) { registerRegionWithDefaultRealm(regionCodeOrId); maybeRegion = maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId); if (maybeRegion.isPresent()) { @@ -599,6 +645,46 @@ private static Optional getRegionAndRegisterIfNecessary(String regionCod return Optional.empty(); } + /** + * Returns a previously registered trusted region without loading additional region metadata. + * + * @param regionCodeOrId The region code or ID. + * @return The trusted region, or empty if no matching region is registered. + */ + @InternalSdk + public static Optional resolveRegisteredRegion(String regionCodeOrId) { + if (regionCodeOrId.contains("_")) { + regionCodeOrId = NameUtils.decanonicalizeFromEnumTypes(regionCodeOrId); + } + return maybeFromRegionCodeOrIdWithoutRegistering(regionCodeOrId, false); + } + + /** + * Resolves a trusted region without using endpoint fallback. + * + * @param regionCodeOrId The region code or ID. + * @return The trusted region, or empty if no matching region can be resolved. + */ + @InternalSdk + public static Optional resolveRegionWithoutDefaultRealmFallback(String regionCodeOrId) { + return getRegionAndRegisterIfNecessary(regionCodeOrId, false); + } + + /** + * Registers a region using the configuration provider's legacy OC1 fallback. The region remains + * available to normal SDK clients but is not independently trusted for secure endpoint + * resolution. + * + * @param regionId The region ID from the SDK configuration. + * @param realm The realm used by the configuration provider's fallback. + * @return The registered region (or existing one if found). + */ + @InternalSdk + public static Region registerFromConfigFileFallback( + @Nonnull String regionId, @Nonnull final Realm realm) { + return register(regionId, realm, null, false); + } + /** * Registers region and sets envVarUsed status to true. */ @@ -637,7 +723,8 @@ private static void registerRegionWithDefaultRealm(String regionId) { regionId, trimmedDefaultRealm); if (defaultRealmFromEnvVar != null) { - register(regionId, defaultRealmFromEnvVar); + // Keep fallback-created regions out of secure endpoint resolution. + register(regionId, defaultRealmFromEnvVar, null, false); } } diff --git a/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java b/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java index e81196140c2..63fc886dfe0 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java +++ b/bmc-common/src/main/java/com/oracle/bmc/auth/ConfigFileAuthenticationDetailsProvider.java @@ -115,7 +115,7 @@ public static Region getRegionFromConfigFile(ConfigFile configFile) { regionId, e); // Proceed by assuming the region id in the config file belongs to OC1 realm. - region = Region.register(regionId, Realm.OC1); + region = Region.registerFromConfigFileFallback(regionId, Realm.OC1); } } else { LOG.info( diff --git a/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java b/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java index d67cd73d292..5f84d616177 100644 --- a/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java +++ b/bmc-common/src/test/java/com/oracle/bmc/RegionTest.java @@ -4,6 +4,7 @@ */ package com.oracle.bmc; +import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -24,6 +25,7 @@ import java.util.Optional; import java.util.Set; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; import com.oracle.bmc.internal.GuavaUtils; import com.oracle.bmc.helper.EnvironmentVariablesHelper; import com.oracle.bmc.model.RegionSchema; @@ -82,6 +84,98 @@ public void reset() { Region.skipInstanceMetadataService(); } + @Test + public void secureRegionLookupAcceptsBuiltInRegionShortName() { + assertSame(Region.US_PHOENIX_1, Region.resolveRegisteredRegion("phx").get()); + } + + @Test + public void secureRegionLookupAcceptsGovernmentRegion() { + assertSame( + Region.US_GOV_ASHBURN_1, + Region.resolveRegionWithoutDefaultRealmFallback("us-gov-ashburn-1").get()); + } + + @Test + public void secureRegionLookupAcceptsRegionFromEnvironmentMetadata() { + assertEquals( + "us-abv-1", + Region.resolveRegionWithoutDefaultRealmFallback("ABV").get().getRegionId()); + } + + @Test + public void secureRegionLookupAcceptsExplicitlyRegisteredPrivateRegion() { + Region registeredRegion = Region.register("private.customer.example.com", Realm.OC1); + + assertSame( + registeredRegion, + Region.resolveRegionWithoutDefaultRealmFallback("private.customer.example.com") + .get()); + } + + @Test + public void secureRegionLookupRejectsUnknownPrivateRegion() { + assertFalse( + Region.resolveRegionWithoutDefaultRealmFallback("attacker.example.com") + .isPresent()); + } + + @Test + public void secureRegionLookupRejectsRegionCreatedOnlyByDefaultRealmFallback() { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "untrusted-default-realm-region"; + try { + Region.defaultRealmEnvVar = "oraclevaporcloud.space"; + assertNotNull(Region.fromRegionId(regionId)); + + assertFalse(Region.resolveRegionWithoutDefaultRealmFallback(regionId).isPresent()); + } finally { + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + + @Test + public void explicitRegistrationMakesFallbackRegionTrusted() { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "explicitly-registered-default-realm-region"; + try { + Region.defaultRealmEnvVar = "oraclevaporcloud.space"; + Region fallbackRegion = Region.fromRegionId(regionId); + assertFalse(Region.resolveRegionWithoutDefaultRealmFallback(regionId).isPresent()); + + assertSame(fallbackRegion, Region.register(regionId, fallbackRegion.getRealm())); + assertSame( + fallbackRegion, + Region.resolveRegionWithoutDefaultRealmFallback(regionId).get()); + } finally { + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + + @Test + public void secureRegionLookupRejectsRegionCreatedOnlyByConfigFileOc1Fallback() + throws IOException { + String originalDefaultRealm = Region.defaultRealmEnvVar; + String regionId = "config-only.private.example.com"; + try { + Region.defaultRealmEnvVar = null; + ConfigFileReader.ConfigFile configFile = + ConfigFileReader.parse( + new ByteArrayInputStream( + ("[DEFAULT]\nregion=" + regionId) + .getBytes(StandardCharsets.UTF_8)), + null); + + Region configuredRegion = + ConfigFileAuthenticationDetailsProvider.getRegionFromConfigFile(configFile); + + assertSame(configuredRegion, Region.fromRegionId(regionId)); + assertFalse(Region.resolveRegionWithoutDefaultRealmFallback(regionId).isPresent()); + } finally { + Region.defaultRealmEnvVar = originalDefaultRealm; + } + } + @Test public void testAllRegions() { try { @@ -435,7 +529,7 @@ public void testExistingDuplicateEnv() throws Exception { int count = Region.values().length; Region.fromRegionCodeOrId("ABV"); int afterCheckEnvCount = Region.values().length; - assertSame(count, afterCheckEnvCount); + assertEquals(count, afterCheckEnvCount); } @Test(expected = IllegalArgumentException.class) diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index db4f94bfbb4..8327b62f7d5 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 9cfcfdd62c7..01cc6139d3b 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgent.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgent.java index df726d9a5b1..88c40f1fccf 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgent.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgent.java @@ -61,6 +61,13 @@ public interface ComputeInstanceAgent extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Cancels a command that is scheduled to run on a compute instance that is managed * by Oracle Cloud Agent. diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsync.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsync.java index 6cf7d7a3335..cd9bcdd86f1 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsync.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsync.java @@ -60,6 +60,13 @@ public interface ComputeInstanceAgentAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Cancels a command that is scheduled to run on a compute instance that is managed * by Oracle Cloud Agent. diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java index 5ac897be89f..191938756c7 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java @@ -32,7 +32,8 @@ public class ComputeInstanceAgentAsyncClient implements ComputeInstanceAgentAsyn com.oracle.bmc.Services.serviceBuilder() .serviceName(ComputeInstanceAgentClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -52,6 +53,7 @@ public class ComputeInstanceAgentAsyncClient implements ComputeInstanceAgentAsyn private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -304,6 +306,9 @@ public ComputeInstanceAgentAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -465,6 +470,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentClient.java index 1bf4fc69956..c284e3b33c4 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentClient.java @@ -20,7 +20,8 @@ public class ComputeInstanceAgentClient implements ComputeInstanceAgent { com.oracle.bmc.Services.serviceBuilder() .serviceName(ComputeInstanceAgentClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -51,6 +52,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -381,6 +383,9 @@ protected ComputeInstanceAgentClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -554,6 +559,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Plugin.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Plugin.java index f4509c0c0b6..8a86b0e5bdf 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Plugin.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Plugin.java @@ -61,6 +61,13 @@ public interface Plugin extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Gets information about a specific Oracle Cloud Agent plugin on a compute instance. * @param request The request object containing the details to send diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsync.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsync.java index 28a629751a1..cd215c16ee0 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsync.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsync.java @@ -60,6 +60,13 @@ public interface PluginAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Gets information about a specific Oracle Cloud Agent plugin on a compute instance. * diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsyncClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsyncClient.java index 6fc8ff29a6f..33ef6eb4920 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsyncClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginAsyncClient.java @@ -32,7 +32,8 @@ public class PluginAsyncClient implements PluginAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(PluginClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -52,6 +53,7 @@ public class PluginAsyncClient implements PluginAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -304,6 +306,9 @@ public PluginAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -464,6 +469,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginClient.java index 4b1eba667d1..a121886f00f 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginClient.java @@ -20,7 +20,8 @@ public class PluginClient implements Plugin { com.oracle.bmc.Services.serviceBuilder() .serviceName(PluginClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -49,6 +50,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -320,6 +322,9 @@ protected PluginClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -479,6 +484,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Pluginconfig.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Pluginconfig.java index 2f9a63334b1..c816e4e05fb 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Pluginconfig.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/Pluginconfig.java @@ -61,6 +61,13 @@ public interface Pluginconfig extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Lists the Oracle Cloud Agent plugins that are available for compute instances. * @param request The request object containing the details to send diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsync.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsync.java index f8e7059bb57..0a1820a9e7c 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsync.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsync.java @@ -60,6 +60,13 @@ public interface PluginconfigAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Determines whether dual stack endpoint should be used or not. + * Set dualStackEndpointTemplateEnabled to "true" if the user wants to enable use of dual stack endpoint template. Default value is "false" + * @param dualStackEndpointTemplateEnabled flag to enable the use of dual stack endpoint template + */ + void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled); + /** * Lists the Oracle Cloud Agent plugins that are available for compute instances. * diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsyncClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsyncClient.java index 0eaf3879010..8e608f53475 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsyncClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigAsyncClient.java @@ -32,7 +32,8 @@ public class PluginconfigAsyncClient implements PluginconfigAsync { com.oracle.bmc.Services.serviceBuilder() .serviceName(PluginconfigClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = @@ -52,6 +53,7 @@ public class PluginconfigAsyncClient implements PluginconfigAsync { private final boolean isNonBufferingApacheClient; private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -304,6 +306,9 @@ public PluginconfigAsyncClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -464,6 +469,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigClient.java index 3af1094f30f..bff32587656 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/PluginconfigClient.java @@ -20,7 +20,8 @@ public class PluginconfigClient implements Pluginconfig { com.oracle.bmc.Services.serviceBuilder() .serviceName(PluginconfigClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://iaas.{region}.{secondLevelDomain}") + .serviceEndpointTemplate( + "https://iaas.{region}.{dualStack?ds.:}oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; @@ -49,6 +50,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration circuitBreakerConfiguration; private String regionId; + private final java.util.Map optionsMap = new java.util.HashMap<>(); // This pattern matches substrings that are enclosed within curly braces {} private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = @@ -320,6 +322,9 @@ protected PluginconfigClient( } } } + enableDualStackEndpoints( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils + .isDualStackEnabledForClientDefault(SERVICE)); if (endpoint != null) { setEndpoint(endpoint); } @@ -479,6 +484,14 @@ public synchronized void useRealmSpecificEndpointTemplate( useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); } + @Override + public synchronized void enableDualStackEndpoints(boolean dualStackEndpointTemplateEnabled) { + optionsMap.put( + com.oracle.bmc.util.internal.EndpointTemplateForOptionsUtils.DUAL_STACK_OPTION, + dualStackEndpointTemplateEnabled); + client.setOptionsMap(optionsMap); + } + @Override public void close() { client.close(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CancelInstanceAgentCommandConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CancelInstanceAgentCommandConverter.java index a9da63be264..5228898ee3f 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CancelInstanceAgentCommandConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CancelInstanceAgentCommandConverter.java @@ -35,8 +35,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getInstanceAgentCommandId(), "instanceAgentCommandId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceAgentCommandId", request.getInstanceAgentCommandId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20180530") .path("instanceAgentCommands") .path( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CreateInstanceAgentCommandConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CreateInstanceAgentCommandConverter.java index 240ce23b33b..0b61db92811 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CreateInstanceAgentCommandConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/CreateInstanceAgentCommandConverter.java @@ -36,8 +36,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateInstanceAgentCommandDetails(), "createInstanceAgentCommandDetails is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20180530").path("instanceAgentCommands"); + newBaseTarget.path("/20180530").path("instanceAgentCommands"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandConverter.java index 2970d9232e6..d1db7252166 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandConverter.java @@ -34,8 +34,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getInstanceAgentCommandId(), "instanceAgentCommandId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceAgentCommandId", request.getInstanceAgentCommandId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20180530") .path("instanceAgentCommands") .path( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandExecutionConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandExecutionConverter.java index 2becfd31ce8..0290fb4b991 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandExecutionConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentCommandExecutionConverter.java @@ -38,8 +38,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getInstanceAgentCommandId(), "instanceAgentCommandId must not be blank"); Validate.notNull(request.getInstanceId(), "instanceId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceAgentCommandId", request.getInstanceAgentCommandId()); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20180530") .path("instanceAgentCommands") .path( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentPluginConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentPluginConverter.java index 8180cff84b5..8a9ae810a80 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentPluginConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/GetInstanceAgentPluginConverter.java @@ -35,8 +35,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notBlank(request.getPluginName(), "pluginName must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("instanceagentId", request.getInstanceagentId()); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("pluginName", request.getPluginName()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20180530") .path("instanceagents") .path( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandExecutionsConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandExecutionsConverter.java index deb998d93c7..db0bd7e08f9 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandExecutionsConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandExecutionsConverter.java @@ -37,8 +37,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notNull(request.getInstanceId(), "instanceId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("instanceId", request.getInstanceId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20180530").path("instanceAgentCommandExecutions"); + newBaseTarget.path("/20180530").path("instanceAgentCommandExecutions"); target = target.queryParam( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandsConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandsConverter.java index 4da807d474e..db0c4438b72 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandsConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentCommandsConverter.java @@ -33,8 +33,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20180530").path("instanceAgentCommands"); + newBaseTarget.path("/20180530").path("instanceAgentCommands"); target = target.queryParam( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentPluginsConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentPluginsConverter.java index 58da7f73444..1d3c99ce7e8 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentPluginsConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceAgentPluginsConverter.java @@ -34,8 +34,15 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); Validate.notBlank(request.getInstanceagentId(), "instanceagentId must not be blank"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("instanceagentId", request.getInstanceagentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() + newBaseTarget .path("/20180530") .path("instanceagents") .path( diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceagentAvailablePluginsConverter.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceagentAvailablePluginsConverter.java index b02af1b76ad..856cb7ebc82 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceagentAvailablePluginsConverter.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/internal/http/ListInstanceagentAvailablePluginsConverter.java @@ -38,11 +38,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getOsName(), "osName is required"); Validate.notNull(request.getOsVersion(), "osVersion is required"); + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + requiredParametersMap.put("osName", request.getOsName()); + requiredParametersMap.put("osVersion", request.getOsVersion()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20180530") - .path("instanceagent") - .path("availablePlugins"); + newBaseTarget.path("/20180530").path("instanceagent").path("availablePlugins"); target = target.queryParam( diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 8b160a07548..29b2a7a00fb 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 7cbe9d744e4..ef2a7be7dd7 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-containerinstances @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 0eab25a6a92..3292aab4ad4 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 2b47645dd44..f5842901aab 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.97.0 + 2.98.0 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java index e9f6beec831..4147be39173 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVtapDetails.java @@ -776,6 +776,7 @@ public enum SourceType { DbSystem("DB_SYSTEM"), ExadataVmCluster("EXADATA_VM_CLUSTER"), AutonomousDataWarehouse("AUTONOMOUS_DATA_WAREHOUSE"), + NetworkFirewall("NETWORK_FIREWALL"), ; private final String value; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java index 700d9dae3c5..93af81265f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVtapDetails.java @@ -850,6 +850,7 @@ public enum SourceType { DbSystem("DB_SYSTEM"), ExadataVmCluster("EXADATA_VM_CLUSTER"), AutonomousDataWarehouse("AUTONOMOUS_DATA_WAREHOUSE"), + NetworkFirewall("NETWORK_FIREWALL"), ; private final String value; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java index 3cc0c4342a3..d59f6053095 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vtap.java @@ -1095,6 +1095,7 @@ public enum SourceType { DbSystem("DB_SYSTEM"), ExadataVmCluster("EXADATA_VM_CLUSTER"), AutonomousDataWarehouse("AUTONOMOUS_DATA_WAREHOUSE"), + NetworkFirewall("NETWORK_FIREWALL"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index bb87258137e..1d15b99acf7 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java index 11312a9ff83..bd6b9c67dff 100644 --- a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdAsyncClient.java @@ -485,7 +485,10 @@ public void close() { com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "CreateCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "CreateCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/CreateCostAlertSubscription"); final java.util.function.Function< javax.ws.rs.core.Response, CreateCostAlertSubscriptionResponse> transformer = @@ -537,7 +540,10 @@ public java.util.concurrent.Future createCostA com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "CreateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "CreateCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/CreateCostAnomalyMonitor"); final java.util.function.Function< javax.ws.rs.core.Response, CreateCostAnomalyMonitorResponse> transformer = @@ -589,7 +595,10 @@ protected void beforeRetryAction() {} DeleteCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "DeleteCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "DeleteCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/DeleteCostAlertSubscription"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteCostAlertSubscriptionResponse> transformer = @@ -635,7 +644,10 @@ public java.util.concurrent.Future deleteCostA DeleteCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "DeleteCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "DeleteCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/DeleteCostAnomalyMonitor"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteCostAnomalyMonitorResponse> transformer = @@ -681,7 +693,10 @@ public java.util.concurrent.Future disableCos com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "DisableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "DisableCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/DisableCostAnomalyMonitor"); final java.util.function.Function< javax.ws.rs.core.Response, DisableCostAnomalyMonitorResponse> transformer = @@ -728,7 +743,10 @@ public java.util.concurrent.Future enableCostA com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "EnableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "EnableCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/EnableCostAnomalyMonitor"); final java.util.function.Function< javax.ws.rs.core.Response, EnableCostAnomalyMonitorResponse> transformer = @@ -773,7 +791,10 @@ public java.util.concurrent.Future getCostAler GetCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "GetCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "GetCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/GetCostAlertSubscription"); final java.util.function.Function< javax.ws.rs.core.Response, GetCostAlertSubscriptionResponse> transformer = @@ -818,7 +839,10 @@ public java.util.concurrent.Future getCostAnomalyEv GetCostAnomalyEventConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "GetCostAnomalyEvent", ib.getRequestUri().toString(), ""); + "CostAd", + "GetCostAnomalyEvent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEvent/GetCostAnomalyEvent"); final java.util.function.Function transformer = GetCostAnomalyEventConverter.fromResponse( @@ -862,7 +886,10 @@ public java.util.concurrent.Future getCostAnomaly GetCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "GetCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "GetCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/GetCostAnomalyMonitor"); final java.util.function.Function transformer = GetCostAnomalyMonitorConverter.fromResponse( @@ -908,7 +935,10 @@ protected void beforeRetryAction() {} ListCostAlertSubscriptionsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "ListCostAlertSubscriptions", ib.getRequestUri().toString(), ""); + "CostAd", + "ListCostAlertSubscriptions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscriptionCollection/ListCostAlertSubscriptions"); final java.util.function.Function< javax.ws.rs.core.Response, ListCostAlertSubscriptionsResponse> transformer = @@ -954,7 +984,10 @@ public java.util.concurrent.Future listCostAnomal ListCostAnomalyEventsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "ListCostAnomalyEvents", ib.getRequestUri().toString(), ""); + "CostAd", + "ListCostAnomalyEvents", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEventCollection/ListCostAnomalyEvents"); final java.util.function.Function transformer = ListCostAnomalyEventsConverter.fromResponse( @@ -998,7 +1031,10 @@ public java.util.concurrent.Future listCostAnom ListCostAnomalyMonitorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "ListCostAnomalyMonitors", ib.getRequestUri().toString(), ""); + "CostAd", + "ListCostAnomalyMonitors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitorCollection/ListCostAnomalyMonitors"); final java.util.function.Function< javax.ws.rs.core.Response, ListCostAnomalyMonitorsResponse> transformer = @@ -1048,7 +1084,7 @@ protected void beforeRetryAction() {} "CostAd", "SummarizeCostAnomalyEventAnalytics", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEvent/SummarizeCostAnomalyEventAnalytics"); final java.util.function.Function< javax.ws.rs.core.Response, SummarizeCostAnomalyEventAnalyticsResponse> transformer = @@ -1098,7 +1134,10 @@ protected void beforeRetryAction() {} UpdateCostAlertSubscriptionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "UpdateCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "UpdateCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/UpdateCostAlertSubscription"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateCostAlertSubscriptionResponse> transformer = @@ -1149,7 +1188,10 @@ public java.util.concurrent.Future updateCostAno UpdateCostAnomalyEventConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "UpdateCostAnomalyEvent", ib.getRequestUri().toString(), ""); + "CostAd", + "UpdateCostAnomalyEvent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEvent/UpdateCostAnomalyEvent"); final java.util.function.Function transformer = UpdateCostAnomalyEventConverter.fromResponse( @@ -1198,7 +1240,10 @@ public java.util.concurrent.Future updateCostA UpdateCostAnomalyMonitorConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "UpdateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "UpdateCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/UpdateCostAnomalyMonitor"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateCostAnomalyMonitorResponse> transformer = diff --git a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java index 80ca69997ca..5f93a54e9eb 100644 --- a/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java +++ b/bmc-costad/src/main/java/com/oracle/bmc/costad/CostAdClient.java @@ -574,7 +574,10 @@ public CreateCostAlertSubscriptionResponse createCostAlertSubscription( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "CreateCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "CreateCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/CreateCostAlertSubscription"); java.util.function.Function transformer = CreateCostAlertSubscriptionConverter.fromResponse( @@ -615,7 +618,10 @@ public CreateCostAnomalyMonitorResponse createCostAnomalyMonitor( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "CreateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "CreateCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/CreateCostAnomalyMonitor"); java.util.function.Function transformer = CreateCostAnomalyMonitorConverter.fromResponse( @@ -654,7 +660,10 @@ public DeleteCostAlertSubscriptionResponse deleteCostAlertSubscription( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "DeleteCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "DeleteCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/DeleteCostAlertSubscription"); java.util.function.Function transformer = DeleteCostAlertSubscriptionConverter.fromResponse( @@ -690,7 +699,10 @@ public DeleteCostAnomalyMonitorResponse deleteCostAnomalyMonitor( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "DeleteCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "DeleteCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/DeleteCostAnomalyMonitor"); java.util.function.Function transformer = DeleteCostAnomalyMonitorConverter.fromResponse( @@ -727,7 +739,10 @@ public DisableCostAnomalyMonitorResponse disableCostAnomalyMonitor( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "DisableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "DisableCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/DisableCostAnomalyMonitor"); java.util.function.Function transformer = DisableCostAnomalyMonitorConverter.fromResponse( @@ -764,7 +779,10 @@ public EnableCostAnomalyMonitorResponse enableCostAnomalyMonitor( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "EnableCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "EnableCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/EnableCostAnomalyMonitor"); java.util.function.Function transformer = EnableCostAnomalyMonitorConverter.fromResponse( @@ -800,7 +818,10 @@ public GetCostAlertSubscriptionResponse getCostAlertSubscription( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "GetCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "GetCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/GetCostAlertSubscription"); java.util.function.Function transformer = GetCostAlertSubscriptionConverter.fromResponse( @@ -834,7 +855,10 @@ public GetCostAnomalyEventResponse getCostAnomalyEvent(GetCostAnomalyEventReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "GetCostAnomalyEvent", ib.getRequestUri().toString(), ""); + "CostAd", + "GetCostAnomalyEvent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEvent/GetCostAnomalyEvent"); java.util.function.Function transformer = GetCostAnomalyEventConverter.fromResponse( @@ -869,7 +893,10 @@ public GetCostAnomalyMonitorResponse getCostAnomalyMonitor( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "GetCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "GetCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/GetCostAnomalyMonitor"); java.util.function.Function transformer = GetCostAnomalyMonitorConverter.fromResponse( @@ -904,7 +931,10 @@ public ListCostAlertSubscriptionsResponse listCostAlertSubscriptions( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "ListCostAlertSubscriptions", ib.getRequestUri().toString(), ""); + "CostAd", + "ListCostAlertSubscriptions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscriptionCollection/ListCostAlertSubscriptions"); java.util.function.Function transformer = ListCostAlertSubscriptionsConverter.fromResponse( @@ -939,7 +969,10 @@ public ListCostAnomalyEventsResponse listCostAnomalyEvents( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "ListCostAnomalyEvents", ib.getRequestUri().toString(), ""); + "CostAd", + "ListCostAnomalyEvents", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEventCollection/ListCostAnomalyEvents"); java.util.function.Function transformer = ListCostAnomalyEventsConverter.fromResponse( @@ -974,7 +1007,10 @@ public ListCostAnomalyMonitorsResponse listCostAnomalyMonitors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "ListCostAnomalyMonitors", ib.getRequestUri().toString(), ""); + "CostAd", + "ListCostAnomalyMonitors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitorCollection/ListCostAnomalyMonitors"); java.util.function.Function transformer = ListCostAnomalyMonitorsConverter.fromResponse( @@ -1012,7 +1048,7 @@ public SummarizeCostAnomalyEventAnalyticsResponse summarizeCostAnomalyEventAnaly "CostAd", "SummarizeCostAnomalyEventAnalytics", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEvent/SummarizeCostAnomalyEventAnalytics"); java.util.function.Function< javax.ws.rs.core.Response, SummarizeCostAnomalyEventAnalyticsResponse> transformer = @@ -1048,7 +1084,10 @@ public UpdateCostAlertSubscriptionResponse updateCostAlertSubscription( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "UpdateCostAlertSubscription", ib.getRequestUri().toString(), ""); + "CostAd", + "UpdateCostAlertSubscription", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAlertSubscription/UpdateCostAlertSubscription"); java.util.function.Function transformer = UpdateCostAlertSubscriptionConverter.fromResponse( @@ -1088,7 +1127,10 @@ public UpdateCostAnomalyEventResponse updateCostAnomalyEvent( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "UpdateCostAnomalyEvent", ib.getRequestUri().toString(), ""); + "CostAd", + "UpdateCostAnomalyEvent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyEvent/UpdateCostAnomalyEvent"); java.util.function.Function transformer = UpdateCostAnomalyEventConverter.fromResponse( @@ -1127,7 +1169,10 @@ public UpdateCostAnomalyMonitorResponse updateCostAnomalyMonitor( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CostAd", "UpdateCostAnomalyMonitor", ib.getRequestUri().toString(), ""); + "CostAd", + "UpdateCostAnomalyMonitor", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/cost-anomaly/20190111/CostAnomalyMonitor/UpdateCostAnomalyMonitor"); java.util.function.Function transformer = UpdateCostAnomalyMonitorConverter.fromResponse( diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 9c46648f554..542a81f3868 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-dashboardservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 6954983a7ed..1a3532274db 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.97.0 + 2.98.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index fc629c1f574..23ca8f1b5ae 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -1313,6 +1313,18 @@ CreateExternalNonContainerDatabaseResponse createExternalNonContainerDatabase( CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( CreateExternalPluggableDatabaseRequest request); + /** + * Creates a new Grid Infrastructure Home in the specified database system based on the request parameters you provide. + * @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 CreateGiHome API. + */ + CreateGiHomeResponse createGiHome(CreateGiHomeRequest request); + /** * Creates a Key Store. * @@ -1859,6 +1871,19 @@ DeleteExternalNonContainerDatabaseResponse deleteExternalNonContainerDatabase( DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( DeleteExternalPluggableDatabaseRequest request); + /** + * Deletes a Grid Infrastructure Home. + * + * @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 DeleteGiHome API. + */ + DeleteGiHomeResponse deleteGiHome(DeleteGiHomeRequest request); + /** * Deletes a key store. * @@ -3453,6 +3478,18 @@ GetExternalNonContainerDatabaseResponse getExternalNonContainerDatabase( GetExternalPluggableDatabaseResponse getExternalPluggableDatabase( GetExternalPluggableDatabaseRequest request); + /** + * Gets information about the specified Grid Infrastructure Home. + * @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 GetGiHome API. + */ + GetGiHomeResponse getGiHome(GetGiHomeRequest request); + /** * Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. * Applies to Exadata Cloud@Customer and Exadata Cloud instances only. @@ -4049,6 +4086,19 @@ ListAutonomousVmClusterAcdResourceUsageResponse listAutonomousVmClusterAcdResour ListAutonomousVmClustersResponse listAutonomousVmClusters( ListAutonomousVmClustersRequest request); + /** + * Retrieves the list of available maintenance window options for the specified Autonomous AI 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 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 ListAvailableMaintenanceWindows API. + */ + ListAvailableMaintenanceWindowsResponse listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request); + /** * Gets a list of backup destinations in the specified compartment. * @@ -4702,6 +4752,19 @@ ListExternalPluggableDatabasesResponse listExternalPluggableDatabases( */ ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest request); + /** + * Lists the Grid Infrastructure Homes. + * + * @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 ListGiHomes API. + */ + ListGiHomesResponse listGiHomes(ListGiHomesRequest request); + /** * Gets a list of supported Oracle Grid Infrastructure minor versions for the given major version and shape family. * @param request The request object containing the details to send @@ -6474,6 +6537,18 @@ UpdateExternalNonContainerDatabaseResponse updateExternalNonContainerDatabase( UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( UpdateExternalPluggableDatabaseRequest request); + /** + * Updates the tags and display name of a specified Grid Infrastructure Home. + * @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 UpdateGiHome API. + */ + UpdateGiHomeResponse updateGiHome(UpdateGiHomeRequest request); + /** * Edit the key store. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index 2613669b212..ced2924da10 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -1689,6 +1689,21 @@ java.util.concurrent.Future createExternalBacku CreateExternalPluggableDatabaseResponse> handler); + /** + * Creates a new Grid Infrastructure Home in the specified database system based on the request parameters you provide. + * + * @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 createGiHome( + CreateGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Creates a Key Store. * @@ -2391,6 +2406,22 @@ java.util.concurrent.Future deleteExecutionWindow DeleteExternalPluggableDatabaseResponse> handler); + /** + * Deletes a Grid Infrastructure Home. + * + * + * @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 deleteGiHome( + DeleteGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Deletes a key store. * @@ -4436,6 +4467,20 @@ java.util.concurrent.Future getExternalPlu GetExternalPluggableDatabaseResponse> handler); + /** + * Gets information about the specified Grid Infrastructure Home. + * + * @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 getGiHome( + GetGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets details of the Exadata Infrastructure target system software versions that can be applied to the specified infrastructure resource for maintenance updates. * Applies to Exadata Cloud@Customer and Exadata Cloud instances only. @@ -5214,6 +5259,24 @@ java.util.concurrent.Future listAutonomousVmCl ListAutonomousVmClustersRequest, ListAutonomousVmClustersResponse> handler); + /** + * Retrieves the list of available maintenance window options for the specified Autonomous AI 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 + listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse> + handler); + /** * Gets a list of backup destinations in the specified compartment. * @@ -6058,6 +6121,21 @@ java.util.concurrent.Future listFlexComponents( ListFlexComponentsRequest, ListFlexComponentsResponse> handler); + /** + * Lists the Grid Infrastructure Homes. + * + * + * @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 listGiHomes( + ListGiHomesRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Gets a list of supported Oracle Grid Infrastructure minor versions for the given major version and shape family. * @@ -8353,6 +8431,21 @@ java.util.concurrent.Future updateExecutionWindow UpdateExternalPluggableDatabaseResponse> handler); + /** + * Updates the tags and display name of a specified Grid Infrastructure Home. + * + * @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 updateGiHome( + UpdateGiHomeRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Edit the key store. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index d01708f4515..4c1c396715e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -5476,6 +5476,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createGiHome( + CreateGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createGiHome"); + final CreateGiHomeRequest interceptedRequest = + CreateGiHomeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateGiHomeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", "CreateGiHome", ib.getRequestUri().toString(), ""); + final java.util.function.Function + transformer = + CreateGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateGiHomeRequest, CreateGiHomeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateGiHomeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateGiHomeRequest, CreateGiHomeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createKeyStore( CreateKeyStoreRequest request, @@ -7432,6 +7479,50 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteGiHome( + DeleteGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async deleteGiHome"); + final DeleteGiHomeRequest interceptedRequest = + DeleteGiHomeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteGiHomeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "DeleteGiHome", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/DeleteGiHome"); + final java.util.function.Function + transformer = + DeleteGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteGiHomeRequest, DeleteGiHomeResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteGiHomeRequest, DeleteGiHomeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteKeyStore( DeleteKeyStoreRequest request, @@ -13314,6 +13405,48 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getGiHome( + GetGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getGiHome"); + final GetGiHomeRequest interceptedRequest = GetGiHomeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetGiHomeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetGiHome", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/GetGiHome"); + final java.util.function.Function + transformer = + GetGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetGiHomeRequest, GetGiHomeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getInfrastructureTargetVersions( @@ -15501,6 +15634,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse> + handler) { + LOG.trace("Called async listAvailableMaintenanceWindows"); + final ListAvailableMaintenanceWindowsRequest interceptedRequest = + ListAvailableMaintenanceWindowsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAvailableMaintenanceWindowsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListAvailableMaintenanceWindows", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListAvailableMaintenanceWindows"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListAvailableMaintenanceWindowsResponse> + transformer = + ListAvailableMaintenanceWindowsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listBackupDestination( ListBackupDestinationRequest request, @@ -17864,6 +18050,50 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listGiHomes( + ListGiHomesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listGiHomes"); + final ListGiHomesRequest interceptedRequest = + ListGiHomesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListGiHomesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListGiHomes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/ListGiHomes"); + final java.util.function.Function + transformer = + ListGiHomesConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListGiHomesRequest, ListGiHomesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListGiHomesRequest, ListGiHomesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listGiVersionMinorVersions( @@ -24710,6 +24940,55 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateGiHome( + UpdateGiHomeRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async updateGiHome"); + final UpdateGiHomeRequest interceptedRequest = + UpdateGiHomeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateGiHomeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "UpdateGiHome", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/UpdateGiHome"); + final java.util.function.Function + transformer = + UpdateGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateGiHomeRequest, UpdateGiHomeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateGiHomeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateGiHomeRequest, UpdateGiHomeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateKeyStore( UpdateKeyStoreRequest request, diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index db710c1ad23..1516639ab3b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -4429,6 +4429,43 @@ public CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( }); } + @Override + public CreateGiHomeResponse createGiHome(CreateGiHomeRequest request) { + LOG.trace("Called createGiHome"); + final CreateGiHomeRequest interceptedRequest = + CreateGiHomeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateGiHomeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", "CreateGiHome", ib.getRequestUri().toString(), ""); + java.util.function.Function transformer = + CreateGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateGiHomeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateKeyStoreResponse createKeyStore(CreateKeyStoreRequest request) { LOG.trace("Called createKeyStore"); @@ -5977,6 +6014,42 @@ public DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( }); } + @Override + public DeleteGiHomeResponse deleteGiHome(DeleteGiHomeRequest request) { + LOG.trace("Called deleteGiHome"); + final DeleteGiHomeRequest interceptedRequest = + DeleteGiHomeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteGiHomeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "DeleteGiHome", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/DeleteGiHome"); + java.util.function.Function transformer = + DeleteGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteKeyStoreResponse deleteKeyStore(DeleteKeyStoreRequest request) { LOG.trace("Called deleteKeyStore"); @@ -10530,6 +10603,40 @@ public GetExternalPluggableDatabaseResponse getExternalPluggableDatabase( }); } + @Override + public GetGiHomeResponse getGiHome(GetGiHomeRequest request) { + LOG.trace("Called getGiHome"); + final GetGiHomeRequest interceptedRequest = GetGiHomeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetGiHomeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "GetGiHome", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/GetGiHome"); + java.util.function.Function transformer = + GetGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetInfrastructureTargetVersionsResponse getInfrastructureTargetVersions( GetInfrastructureTargetVersionsRequest request) { @@ -12202,6 +12309,45 @@ public ListAutonomousVmClustersResponse listAutonomousVmClusters( }); } + @Override + public ListAvailableMaintenanceWindowsResponse listAvailableMaintenanceWindows( + ListAvailableMaintenanceWindowsRequest request) { + LOG.trace("Called listAvailableMaintenanceWindows"); + final ListAvailableMaintenanceWindowsRequest interceptedRequest = + ListAvailableMaintenanceWindowsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAvailableMaintenanceWindowsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListAvailableMaintenanceWindows", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ListAvailableMaintenanceWindows"); + java.util.function.Function< + javax.ws.rs.core.Response, ListAvailableMaintenanceWindowsResponse> + transformer = + ListAvailableMaintenanceWindowsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListBackupDestinationResponse listBackupDestination( ListBackupDestinationRequest request) { @@ -14016,6 +14162,41 @@ public ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest r }); } + @Override + public ListGiHomesResponse listGiHomes(ListGiHomesRequest request) { + LOG.trace("Called listGiHomes"); + final ListGiHomesRequest interceptedRequest = + ListGiHomesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListGiHomesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "ListGiHomes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/ListGiHomes"); + java.util.function.Function transformer = + ListGiHomesConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListGiVersionMinorVersionsResponse listGiVersionMinorVersions( ListGiVersionMinorVersionsRequest request) { @@ -19349,6 +19530,45 @@ public UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( }); } + @Override + public UpdateGiHomeResponse updateGiHome(UpdateGiHomeRequest request) { + LOG.trace("Called updateGiHome"); + final UpdateGiHomeRequest interceptedRequest = + UpdateGiHomeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateGiHomeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Database", + "UpdateGiHome", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database/20160918/GiHome/UpdateGiHome"); + java.util.function.Function transformer = + UpdateGiHomeConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateGiHomeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateKeyStoreResponse updateKeyStore(UpdateKeyStoreRequest request) { LOG.trace("Called updateKeyStore"); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index 6fbc4fda2c2..a532c38a787 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -2704,6 +2704,131 @@ public ListAutonomousVmClustersResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listAvailableMaintenanceWindows 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 + listAvailableMaintenanceWindowsResponseIterator( + final ListAvailableMaintenanceWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAvailableMaintenanceWindowsRequest.Builder, + ListAvailableMaintenanceWindowsRequest, ListAvailableMaintenanceWindowsResponse>( + new java.util.function.Supplier() { + @Override + public ListAvailableMaintenanceWindowsRequest.Builder get() { + return ListAvailableMaintenanceWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAvailableMaintenanceWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.Builder>, + ListAvailableMaintenanceWindowsRequest>() { + @Override + public ListAvailableMaintenanceWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.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< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>() { + @Override + public ListAvailableMaintenanceWindowsResponse apply( + ListAvailableMaintenanceWindowsRequest request) { + return client.listAvailableMaintenanceWindows(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowSummary} objects + * contained in responses from the listAvailableMaintenanceWindows 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.database.model.AutonomousDatabaseMaintenanceWindowSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAvailableMaintenanceWindowsRecordIterator( + final ListAvailableMaintenanceWindowsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAvailableMaintenanceWindowsRequest.Builder, + ListAvailableMaintenanceWindowsRequest, ListAvailableMaintenanceWindowsResponse, + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowSummary>( + new java.util.function.Supplier() { + @Override + public ListAvailableMaintenanceWindowsRequest.Builder get() { + return ListAvailableMaintenanceWindowsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListAvailableMaintenanceWindowsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.Builder>, + ListAvailableMaintenanceWindowsRequest>() { + @Override + public ListAvailableMaintenanceWindowsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAvailableMaintenanceWindowsRequest.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< + ListAvailableMaintenanceWindowsRequest, + ListAvailableMaintenanceWindowsResponse>() { + @Override + public ListAvailableMaintenanceWindowsResponse apply( + ListAvailableMaintenanceWindowsRequest request) { + return client.listAvailableMaintenanceWindows(request); + } + }, + new java.util.function.Function< + ListAvailableMaintenanceWindowsResponse, + java.util.List< + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowSummary> + apply(ListAvailableMaintenanceWindowsResponse response) { + return response.getAutonomousDatabaseMaintenanceWindowCollection() + .getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listBackupDestination operation. This iterable * will fetch more data from the server as needed. @@ -8022,6 +8147,116 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listGiHomes 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 listGiHomesResponseIterator( + final ListGiHomesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListGiHomesRequest.Builder, ListGiHomesRequest, ListGiHomesResponse>( + new java.util.function.Supplier() { + @Override + public ListGiHomesRequest.Builder get() { + return ListGiHomesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListGiHomesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.Builder>, + ListGiHomesRequest>() { + @Override + public ListGiHomesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.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 ListGiHomesResponse apply(ListGiHomesRequest request) { + return client.listGiHomes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.GiHomeSummary} objects + * contained in responses from the listGiHomes 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.database.model.GiHomeSummary} objects + * contained in responses received from the service. + */ + public Iterable listGiHomesRecordIterator( + final ListGiHomesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListGiHomesRequest.Builder, ListGiHomesRequest, ListGiHomesResponse, + com.oracle.bmc.database.model.GiHomeSummary>( + new java.util.function.Supplier() { + @Override + public ListGiHomesRequest.Builder get() { + return ListGiHomesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListGiHomesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.Builder>, + ListGiHomesRequest>() { + @Override + public ListGiHomesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListGiHomesRequest.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 ListGiHomesResponse apply(ListGiHomesRequest request) { + return client.listGiHomes(request); + } + }, + new java.util.function.Function< + ListGiHomesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListGiHomesResponse response) { + return response.getGiHomeCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listGiVersionMinorVersions operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index 81a7ccc7c08..8e94dcd914c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -5569,6 +5569,65 @@ public CreateExternalPluggableDatabaseResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forCreateGiHome( + CreateGiHomeRequest request) { + return forCreateGiHome( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forCreateGiHome( + CreateGiHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public CreateGiHomeResponse call() throws Exception { + final CreateGiHomeResponse response = client.createGiHome(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -7744,6 +7803,65 @@ public DeleteExternalPluggableDatabaseResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forDeleteGiHome( + DeleteGiHomeRequest request) { + return forDeleteGiHome( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * 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 + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forDeleteGiHome( + DeleteGiHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DeleteGiHomeResponse call() throws Exception { + final DeleteGiHomeResponse response = client.deleteGiHome(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -15626,6 +15744,103 @@ public boolean test(GetExternalPluggableDatabaseResponse 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 forGiHome( + GetGiHomeRequest request, + com.oracle.bmc.database.model.GiHome.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 forGiHome( + 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 forGiHome( + GetGiHomeRequest request, + com.oracle.bmc.database.model.GiHome.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 forGiHome( + 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 forGiHome( + GetGiHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.GiHome.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 forGiHome( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for GiHome. + private com.oracle.bmc.waiter.Waiter forGiHome( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetGiHomeRequest request, + final com.oracle.bmc.database.model.GiHome.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function() { + @Override + public GetGiHomeResponse apply(GetGiHomeRequest request) { + return client.getGiHome(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetGiHomeResponse response) { + return targetStatesSet.contains( + response.getGiHome().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.GiHome.LifecycleState.Terminated)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateGiHomeConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateGiHomeConverter.java new file mode 100644 index 00000000000..08f4e353ff9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateGiHomeConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateGiHomeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateGiHomeConverter.class); + + public static com.oracle.bmc.database.requests.CreateGiHomeRequest interceptRequest( + com.oracle.bmc.database.requests.CreateGiHomeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CreateGiHomeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCreateGiHomeDetails(), "createGiHomeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("giHomes"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateGiHomeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateGiHomeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateGiHomeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateGiHomeResponse>() { + @Override + public com.oracle.bmc.database.responses.CreateGiHomeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CreateGiHomeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHome>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHome.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHome.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHome> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.CreateGiHomeResponse.Builder + builder = + com.oracle.bmc.database.responses + .CreateGiHomeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.giHome(response.getItem()); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.CreateGiHomeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteGiHomeConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteGiHomeConverter.java new file mode 100644 index 00000000000..fac866ea552 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteGiHomeConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteGiHomeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteGiHomeConverter.class); + + public static com.oracle.bmc.database.requests.DeleteGiHomeRequest interceptRequest( + com.oracle.bmc.database.requests.DeleteGiHomeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.DeleteGiHomeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("giHomes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGiHomeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteGiHomeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteGiHomeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteGiHomeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteGiHomeResponse>() { + @Override + public com.oracle.bmc.database.responses.DeleteGiHomeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DeleteGiHomeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.DeleteGiHomeResponse.Builder + builder = + com.oracle.bmc.database.responses + .DeleteGiHomeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.DeleteGiHomeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetGiHomeConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetGiHomeConverter.java new file mode 100644 index 00000000000..4ce486f3547 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetGiHomeConverter.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetGiHomeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetGiHomeConverter.class); + + public static com.oracle.bmc.database.requests.GetGiHomeRequest interceptRequest( + com.oracle.bmc.database.requests.GetGiHomeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetGiHomeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("giHomes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGiHomeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.database.responses.GetGiHomeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.database.responses.GetGiHomeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetGiHomeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetGiHomeResponse>() { + @Override + public com.oracle.bmc.database.responses.GetGiHomeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetGiHomeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHome>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHome.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHome.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHome> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.GetGiHomeResponse.Builder + builder = + com.oracle.bmc.database.responses.GetGiHomeResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.giHome(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.GetGiHomeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAvailableMaintenanceWindowsConverter.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java rename to bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAvailableMaintenanceWindowsConverter.java index 4c877bd20a2..fe06eafbb0e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAvailableMaintenanceWindowsConverter.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.internal.http; +package com.oracle.bmc.database.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAvailableMaintenanceWindowsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedAutonomousDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(ListAvailableMaintenanceWindowsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRequest + public static com.oracle.bmc.database.requests.ListAvailableMaintenanceWindowsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRequest + com.oracle.bmc.database.requests.ListAvailableMaintenanceWindowsRequest request) { return request; @@ -31,37 +29,40 @@ public class GetDistributedAutonomousDatabaseConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedAutonomousDatabaseRequest - request) { + com.oracle.bmc.database.requests.ListAvailableMaintenanceWindowsRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); + request.getAutonomousDatabaseId(), "autonomousDatabaseId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") + .path("/20160918") + .path("autonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); + request.getAutonomousDatabaseId())) + .path("availableMaintenanceWindows"); - if (request.getMetadata() != null) { + if (request.getLimit() != null) { target = target.queryParam( - "metadata", + "limit", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); } com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getIfNoneMatch() != null) { - ib.header("if-none-match", request.getIfNoneMatch()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } @@ -74,70 +75,68 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse> + com.oracle.bmc.database.responses.ListAvailableMaintenanceWindowsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse> + com.oracle.bmc.database.responses.ListAvailableMaintenanceWindowsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse> + com.oracle.bmc.database.responses.ListAvailableMaintenanceWindowsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse>() { + com.oracle.bmc.database.responses + .ListAvailableMaintenanceWindowsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse + public com.oracle.bmc.database.responses + .ListAvailableMaintenanceWindowsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedAutonomousDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.database.responses.ListAvailableMaintenanceWindowsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase>> + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase> + com.oracle.bmc.database.model + .AutonomousDatabaseMaintenanceWindowCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse.Builder + com.oracle.bmc.database.responses + .ListAvailableMaintenanceWindowsResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse + com.oracle.bmc.database.responses + .ListAvailableMaintenanceWindowsResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedAutonomousDatabase(response.getItem()); + builder.autonomousDatabaseMaintenanceWindowCollection( + response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -150,17 +149,19 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - java.util.Optional> etagHeader = + java.util.Optional> opcNextPageHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse + com.oracle.bmc.database.responses + .ListAvailableMaintenanceWindowsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiHomesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiHomesConverter.java new file mode 100644 index 00000000000..bfeddcc63f5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListGiHomesConverter.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.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListGiHomesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListGiHomesConverter.class); + + public static com.oracle.bmc.database.requests.ListGiHomesRequest interceptRequest( + com.oracle.bmc.database.requests.ListGiHomesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListGiHomesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("giHomes"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getDbSystemId() != null) { + target = + target.queryParam( + "dbSystemId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDbSystemId())); + } + + if (request.getGiVersion() != null) { + target = + target.queryParam( + "giVersion", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getGiVersion())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListGiHomesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListGiHomesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListGiHomesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListGiHomesResponse>() { + @Override + public com.oracle.bmc.database.responses.ListGiHomesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListGiHomesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model + .GiHomeCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHomeCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHomeCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHomeCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.ListGiHomesResponse.Builder + builder = + com.oracle.bmc.database.responses + .ListGiHomesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.giHomeCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.ListGiHomesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateGiHomeConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateGiHomeConverter.java new file mode 100644 index 00000000000..9fdc94f6d54 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateGiHomeConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateGiHomeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateGiHomeConverter.class); + + public static com.oracle.bmc.database.requests.UpdateGiHomeRequest interceptRequest( + com.oracle.bmc.database.requests.UpdateGiHomeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UpdateGiHomeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getGiHomeId(), "giHomeId must not be blank"); + Validate.notNull(request.getUpdateGiHomeDetails(), "updateGiHomeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("giHomes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGiHomeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateGiHomeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateGiHomeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateGiHomeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateGiHomeResponse>() { + @Override + public com.oracle.bmc.database.responses.UpdateGiHomeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UpdateGiHomeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHome>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHome.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.database.model.GiHome.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.database.model.GiHome> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses.UpdateGiHomeResponse.Builder + builder = + com.oracle.bmc.database.responses + .UpdateGiHomeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.giHome(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.database.responses.UpdateGiHomeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index 674dbe7d6da..18e77cb79a7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -144,6 +144,8 @@ public final class AutonomousDatabase extends com.oracle.bmc.http.internal.Expli "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "scheduledOperations", "isAutoScalingForStorageEnabled", "allocatedStorageSizeInTBs", @@ -290,6 +292,8 @@ public AutonomousDatabase( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, Double allocatedStorageSizeInTBs, @@ -435,6 +439,8 @@ public AutonomousDatabase( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.allocatedStorageSizeInTBs = allocatedStorageSizeInTBs; @@ -2673,6 +2679,33 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + **/ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, scheduledStopTime. *

@@ -3198,6 +3231,8 @@ public AutonomousDatabase build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.allocatedStorageSizeInTBs, @@ -3599,6 +3634,13 @@ public Builder copy(AutonomousDatabase model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -6423,6 +6465,27 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @return the value + **/ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, scheduledStopTime. *

@@ -7138,6 +7201,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -7357,6 +7424,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -7829,6 +7901,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java rename to bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.java index cc79c107a41..0f1dd744728 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowCollection.java @@ -2,14 +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.database.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. - * + * Collection of available maintenance windows for an Autonomous AI 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 @@ -18,16 +14,17 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchDistributedAutonomousDatabaseDetails.Builder.class + builder = AutonomousDatabaseMaintenanceWindowCollection.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchDistributedAutonomousDatabaseDetails +public final class AutonomousDatabaseMaintenanceWindowCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public PatchDistributedAutonomousDatabaseDetails(java.util.List items) { + public AutonomousDatabaseMaintenanceWindowCollection( + java.util.List items) { super(); this.items = items; } @@ -35,17 +32,17 @@ public PatchDistributedAutonomousDatabaseDetails(java.util.List items; + private java.util.List items; /** - * List of patch instructions. + * List of Autonomous AI Database maintenance windows. * @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; @@ -54,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 PatchDistributedAutonomousDatabaseDetails build() { - PatchDistributedAutonomousDatabaseDetails model = - new PatchDistributedAutonomousDatabaseDetails(this.items); + public AutonomousDatabaseMaintenanceWindowCollection build() { + AutonomousDatabaseMaintenanceWindowCollection model = + new AutonomousDatabaseMaintenanceWindowCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,7 +61,7 @@ public PatchDistributedAutonomousDatabaseDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchDistributedAutonomousDatabaseDetails model) { + public Builder copy(AutonomousDatabaseMaintenanceWindowCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -84,16 +81,16 @@ public Builder toBuilder() { } /** - * List of patch instructions. + * List of Autonomous AI Database maintenance windows. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * List of patch instructions. + * List of Autonomous AI Database maintenance windows. * @return the value **/ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -109,7 +106,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchDistributedAutonomousDatabaseDetails("); + sb.append("AutonomousDatabaseMaintenanceWindowCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -121,12 +118,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedAutonomousDatabaseDetails)) { + if (!(o instanceof AutonomousDatabaseMaintenanceWindowCollection)) { return false; } - PatchDistributedAutonomousDatabaseDetails other = - (PatchDistributedAutonomousDatabaseDetails) o; + AutonomousDatabaseMaintenanceWindowCollection other = + (AutonomousDatabaseMaintenanceWindowCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java index b32ea0bfc32..1b5f0d044f4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseMaintenanceWindowSummary.java @@ -23,13 +23,25 @@ public final class AutonomousDatabaseMaintenanceWindowSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"dayOfWeek", "maintenanceStartTime", "maintenanceEndTime"}) + @java.beans.ConstructorProperties({ + "dayOfWeek", + "maintenanceStartTime", + "maintenanceEndTime", + "availabilityDomain", + "isMaintenanceWindowChangeScheduled" + }) public AutonomousDatabaseMaintenanceWindowSummary( - DayOfWeek dayOfWeek, String maintenanceStartTime, String maintenanceEndTime) { + DayOfWeek dayOfWeek, + String maintenanceStartTime, + String maintenanceEndTime, + String availabilityDomain, + Boolean isMaintenanceWindowChangeScheduled) { super(); this.dayOfWeek = dayOfWeek; this.maintenanceStartTime = maintenanceStartTime; this.maintenanceEndTime = maintenanceEndTime; + this.availabilityDomain = availabilityDomain; + this.isMaintenanceWindowChangeScheduled = isMaintenanceWindowChangeScheduled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -75,6 +87,39 @@ public Builder maintenanceEndTime(String maintenanceEndTime) { this.__explicitlySet__.add("maintenanceEndTime"); return this; } + /** + * The AD in which the maintenance will occur. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private String availabilityDomain; + + /** + * The AD in which the maintenance will occur. + * @param availabilityDomain the value to set + * @return this builder + **/ + public Builder availabilityDomain(String availabilityDomain) { + this.availabilityDomain = availabilityDomain; + this.__explicitlySet__.add("availabilityDomain"); + return this; + } + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceWindowChangeScheduled") + private Boolean isMaintenanceWindowChangeScheduled; + + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database. + * @param isMaintenanceWindowChangeScheduled the value to set + * @return this builder + **/ + public Builder isMaintenanceWindowChangeScheduled( + Boolean isMaintenanceWindowChangeScheduled) { + this.isMaintenanceWindowChangeScheduled = isMaintenanceWindowChangeScheduled; + this.__explicitlySet__.add("isMaintenanceWindowChangeScheduled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -82,7 +127,11 @@ public Builder maintenanceEndTime(String maintenanceEndTime) { public AutonomousDatabaseMaintenanceWindowSummary build() { AutonomousDatabaseMaintenanceWindowSummary model = new AutonomousDatabaseMaintenanceWindowSummary( - this.dayOfWeek, this.maintenanceStartTime, this.maintenanceEndTime); + this.dayOfWeek, + this.maintenanceStartTime, + this.maintenanceEndTime, + this.availabilityDomain, + this.isMaintenanceWindowChangeScheduled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -100,6 +149,13 @@ public Builder copy(AutonomousDatabaseMaintenanceWindowSummary model) { if (model.wasPropertyExplicitlySet("maintenanceEndTime")) { this.maintenanceEndTime(model.getMaintenanceEndTime()); } + if (model.wasPropertyExplicitlySet("availabilityDomain")) { + this.availabilityDomain(model.getAvailabilityDomain()); + } + if (model.wasPropertyExplicitlySet("isMaintenanceWindowChangeScheduled")) { + this.isMaintenanceWindowChangeScheduled( + model.getIsMaintenanceWindowChangeScheduled()); + } return this; } } @@ -150,6 +206,34 @@ public String getMaintenanceEndTime() { return maintenanceEndTime; } + /** + * The AD in which the maintenance will occur. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") + private final String availabilityDomain; + + /** + * The AD in which the maintenance will occur. + * @return the value + **/ + public String getAvailabilityDomain() { + return availabilityDomain; + } + + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isMaintenanceWindowChangeScheduled") + private final Boolean isMaintenanceWindowChangeScheduled; + + /** + * Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database. + * @return the value + **/ + public Boolean getIsMaintenanceWindowChangeScheduled() { + return isMaintenanceWindowChangeScheduled; + } + @Override public String toString() { return this.toString(true); @@ -167,6 +251,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("dayOfWeek=").append(String.valueOf(this.dayOfWeek)); sb.append(", maintenanceStartTime=").append(String.valueOf(this.maintenanceStartTime)); sb.append(", maintenanceEndTime=").append(String.valueOf(this.maintenanceEndTime)); + sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", isMaintenanceWindowChangeScheduled=") + .append(String.valueOf(this.isMaintenanceWindowChangeScheduled)); sb.append(")"); return sb.toString(); } @@ -185,6 +272,10 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.dayOfWeek, other.dayOfWeek) && java.util.Objects.equals(this.maintenanceStartTime, other.maintenanceStartTime) && java.util.Objects.equals(this.maintenanceEndTime, other.maintenanceEndTime) + && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals( + this.isMaintenanceWindowChangeScheduled, + other.isMaintenanceWindowChangeScheduled) && super.equals(other); } @@ -203,6 +294,16 @@ public int hashCode() { + (this.maintenanceEndTime == null ? 43 : this.maintenanceEndTime.hashCode()); + result = + (result * PRIME) + + (this.availabilityDomain == null + ? 43 + : this.availabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.isMaintenanceWindowChangeScheduled == null + ? 43 + : this.isMaintenanceWindowChangeScheduled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index f59f2f46299..63003364846 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -146,6 +146,8 @@ public final class AutonomousDatabaseSummary "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "scheduledOperations", "isAutoScalingForStorageEnabled", "allocatedStorageSizeInTBs", @@ -291,6 +293,8 @@ public AutonomousDatabaseSummary( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, Double allocatedStorageSizeInTBs, @@ -435,6 +439,8 @@ public AutonomousDatabaseSummary( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.allocatedStorageSizeInTBs = allocatedStorageSizeInTBs; @@ -2657,6 +2663,33 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + **/ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, scheduledStopTime. *

@@ -3181,6 +3214,8 @@ public AutonomousDatabaseSummary build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.allocatedStorageSizeInTBs, @@ -3579,6 +3614,13 @@ public Builder copy(AutonomousDatabaseSummary model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -6389,6 +6431,27 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @return the value + **/ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, scheduledStopTime. *

@@ -7103,6 +7166,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -7321,6 +7388,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -7788,6 +7860,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java index 814ae760b6e..3e49cd2589e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDwDatabase.java @@ -143,6 +143,8 @@ public final class AutonomousDwDatabase extends com.oracle.bmc.http.internal.Exp "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "scheduledOperations", "isAutoScalingForStorageEnabled", "allocatedStorageSizeInTBs", @@ -288,6 +290,8 @@ public AutonomousDwDatabase( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, java.util.List scheduledOperations, Boolean isAutoScalingForStorageEnabled, Double allocatedStorageSizeInTBs, @@ -432,6 +436,8 @@ public AutonomousDwDatabase( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.scheduledOperations = scheduledOperations; this.isAutoScalingForStorageEnabled = isAutoScalingForStorageEnabled; this.allocatedStorageSizeInTBs = allocatedStorageSizeInTBs; @@ -2654,6 +2660,33 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + **/ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, scheduledStopTime. *

@@ -3178,6 +3211,8 @@ public AutonomousDwDatabase build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.scheduledOperations, this.isAutoScalingForStorageEnabled, this.allocatedStorageSizeInTBs, @@ -3576,6 +3611,13 @@ public Builder copy(AutonomousDwDatabase model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("scheduledOperations")) { this.scheduledOperations(model.getScheduledOperations()); } @@ -6193,6 +6235,27 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @return the value + **/ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * The list of scheduled operations. Consists of values such as dayOfWeek, scheduledStartTime, scheduledStopTime. *

@@ -6855,6 +6918,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", scheduledOperations=").append(String.valueOf(this.scheduledOperations)); sb.append(", isAutoScalingForStorageEnabled=") .append(String.valueOf(this.isAutoScalingForStorageEnabled)); @@ -7073,6 +7140,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals(this.scheduledOperations, other.scheduledOperations) && java.util.Objects.equals( this.isAutoScalingForStorageEnabled, other.isAutoScalingForStorageEnabled) @@ -7540,6 +7612,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.scheduledOperations == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java index 071539ff853..08fde8ae5de 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/Backup.java @@ -1163,6 +1163,8 @@ public enum BackupDestinationType { ObjectStore("OBJECT_STORE"), Dbrs("DBRS"), AwsS3("AWS_S3"), + Nfs("NFS"), + RecoveryAppliance("RECOVERY_APPLIANCE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationConfigurationSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationConfigurationSummary.java index 657e6c2f4b6..7a7c68cd3b4 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationConfigurationSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationConfigurationSummary.java @@ -37,7 +37,8 @@ public final class BackupDestinationConfigurationSummary "isRetentionLockEnabled", "backupRetentionPolicyOnTerminate", "isRemote", - "remoteRegion" + "remoteRegion", + "tdeWalletBackupDestination" }) public BackupDestinationConfigurationSummary( Integer recoveryWindowInDays, @@ -54,7 +55,8 @@ public BackupDestinationConfigurationSummary( Boolean isRetentionLockEnabled, BackupRetentionPolicyOnTerminate backupRetentionPolicyOnTerminate, Boolean isRemote, - String remoteRegion) { + String remoteRegion, + TdeWalletBackupDestination tdeWalletBackupDestination) { super(); this.recoveryWindowInDays = recoveryWindowInDays; this.backupDestinationAttachHistory = backupDestinationAttachHistory; @@ -71,6 +73,7 @@ public BackupDestinationConfigurationSummary( this.backupRetentionPolicyOnTerminate = backupRetentionPolicyOnTerminate; this.isRemote = isRemote; this.remoteRegion = remoteRegion; + this.tdeWalletBackupDestination = tdeWalletBackupDestination; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -339,6 +342,16 @@ public Builder remoteRegion(String remoteRegion) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletBackupDestination") + private TdeWalletBackupDestination tdeWalletBackupDestination; + + public Builder tdeWalletBackupDestination( + TdeWalletBackupDestination tdeWalletBackupDestination) { + this.tdeWalletBackupDestination = tdeWalletBackupDestination; + this.__explicitlySet__.add("tdeWalletBackupDestination"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -359,7 +372,8 @@ public BackupDestinationConfigurationSummary build() { this.isRetentionLockEnabled, this.backupRetentionPolicyOnTerminate, this.isRemote, - this.remoteRegion); + this.remoteRegion, + this.tdeWalletBackupDestination); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -414,6 +428,9 @@ public Builder copy(BackupDestinationConfigurationSummary model) { if (model.wasPropertyExplicitlySet("remoteRegion")) { this.remoteRegion(model.getRemoteRegion()); } + if (model.wasPropertyExplicitlySet("tdeWalletBackupDestination")) { + this.tdeWalletBackupDestination(model.getTdeWalletBackupDestination()); + } return this; } } @@ -736,6 +753,13 @@ public String getRemoteRegion() { return remoteRegion; } + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletBackupDestination") + private final TdeWalletBackupDestination tdeWalletBackupDestination; + + public TdeWalletBackupDestination getTdeWalletBackupDestination() { + return tdeWalletBackupDestination; + } + @Override public String toString() { return this.toString(true); @@ -768,6 +792,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.backupRetentionPolicyOnTerminate)); sb.append(", isRemote=").append(String.valueOf(this.isRemote)); sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); + sb.append(", tdeWalletBackupDestination=") + .append(String.valueOf(this.tdeWalletBackupDestination)); sb.append(")"); return sb.toString(); } @@ -803,6 +829,8 @@ public boolean equals(Object o) { other.backupRetentionPolicyOnTerminate) && java.util.Objects.equals(this.isRemote, other.isRemote) && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) + && java.util.Objects.equals( + this.tdeWalletBackupDestination, other.tdeWalletBackupDestination) && super.equals(other); } @@ -855,6 +883,11 @@ public int hashCode() { : this.backupRetentionPolicyOnTerminate.hashCode()); result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletBackupDestination == null + ? 43 + : this.tdeWalletBackupDestination.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetails.java index 1ae35e0b1fb..403344617e6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetails.java @@ -33,7 +33,8 @@ public final class BackupDestinationDetails "isRetentionLockEnabled", "backupRetentionPolicyOnTerminate", "isRemote", - "remoteRegion" + "remoteRegion", + "tdeWalletBackupDestination" }) public BackupDestinationDetails( Type type, @@ -46,7 +47,8 @@ public BackupDestinationDetails( Boolean isRetentionLockEnabled, BackupRetentionPolicyOnTerminate backupRetentionPolicyOnTerminate, Boolean isRemote, - String remoteRegion) { + String remoteRegion, + TdeWalletBackupDestination tdeWalletBackupDestination) { super(); this.type = type; this.id = id; @@ -59,6 +61,7 @@ public BackupDestinationDetails( this.backupRetentionPolicyOnTerminate = backupRetentionPolicyOnTerminate; this.isRemote = isRemote; this.remoteRegion = remoteRegion; + this.tdeWalletBackupDestination = tdeWalletBackupDestination; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -261,6 +264,16 @@ public Builder remoteRegion(String remoteRegion) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletBackupDestination") + private TdeWalletBackupDestination tdeWalletBackupDestination; + + public Builder tdeWalletBackupDestination( + TdeWalletBackupDestination tdeWalletBackupDestination) { + this.tdeWalletBackupDestination = tdeWalletBackupDestination; + this.__explicitlySet__.add("tdeWalletBackupDestination"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -277,7 +290,8 @@ public BackupDestinationDetails build() { this.isRetentionLockEnabled, this.backupRetentionPolicyOnTerminate, this.isRemote, - this.remoteRegion); + this.remoteRegion, + this.tdeWalletBackupDestination); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -319,6 +333,9 @@ public Builder copy(BackupDestinationDetails model) { if (model.wasPropertyExplicitlySet("remoteRegion")) { this.remoteRegion(model.getRemoteRegion()); } + if (model.wasPropertyExplicitlySet("tdeWalletBackupDestination")) { + this.tdeWalletBackupDestination(model.getTdeWalletBackupDestination()); + } return this; } } @@ -609,6 +626,13 @@ public String getRemoteRegion() { return remoteRegion; } + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletBackupDestination") + private final TdeWalletBackupDestination tdeWalletBackupDestination; + + public TdeWalletBackupDestination getTdeWalletBackupDestination() { + return tdeWalletBackupDestination; + } + @Override public String toString() { return this.toString(true); @@ -635,6 +659,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.backupRetentionPolicyOnTerminate)); sb.append(", isRemote=").append(String.valueOf(this.isRemote)); sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); + sb.append(", tdeWalletBackupDestination=") + .append(String.valueOf(this.tdeWalletBackupDestination)); sb.append(")"); return sb.toString(); } @@ -663,6 +689,8 @@ public boolean equals(Object o) { other.backupRetentionPolicyOnTerminate) && java.util.Objects.equals(this.isRemote, other.isRemote) && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) + && java.util.Objects.equals( + this.tdeWalletBackupDestination, other.tdeWalletBackupDestination) && super.equals(other); } @@ -695,6 +723,11 @@ public int hashCode() { : this.backupRetentionPolicyOnTerminate.hashCode()); result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletBackupDestination == null + ? 43 + : this.tdeWalletBackupDestination.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetailsSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetailsSummary.java index b95befa3a41..a015412610f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetailsSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupDestinationDetailsSummary.java @@ -36,7 +36,8 @@ public final class BackupDestinationDetailsSummary "isRetentionLockEnabled", "backupRetentionPolicyOnTerminate", "isRemote", - "remoteRegion" + "remoteRegion", + "tdeWalletBackupDestination" }) public BackupDestinationDetailsSummary( java.util.List backupDestinationAttachHistory, @@ -52,7 +53,8 @@ public BackupDestinationDetailsSummary( Boolean isRetentionLockEnabled, BackupRetentionPolicyOnTerminate backupRetentionPolicyOnTerminate, Boolean isRemote, - String remoteRegion) { + String remoteRegion, + TdeWalletBackupDestination tdeWalletBackupDestination) { super(); this.backupDestinationAttachHistory = backupDestinationAttachHistory; this.spaceUtilizedInGBs = spaceUtilizedInGBs; @@ -68,6 +70,7 @@ public BackupDestinationDetailsSummary( this.backupRetentionPolicyOnTerminate = backupRetentionPolicyOnTerminate; this.isRemote = isRemote; this.remoteRegion = remoteRegion; + this.tdeWalletBackupDestination = tdeWalletBackupDestination; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -320,6 +323,16 @@ public Builder remoteRegion(String remoteRegion) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletBackupDestination") + private TdeWalletBackupDestination tdeWalletBackupDestination; + + public Builder tdeWalletBackupDestination( + TdeWalletBackupDestination tdeWalletBackupDestination) { + this.tdeWalletBackupDestination = tdeWalletBackupDestination; + this.__explicitlySet__.add("tdeWalletBackupDestination"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -339,7 +352,8 @@ public BackupDestinationDetailsSummary build() { this.isRetentionLockEnabled, this.backupRetentionPolicyOnTerminate, this.isRemote, - this.remoteRegion); + this.remoteRegion, + this.tdeWalletBackupDestination); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -391,6 +405,9 @@ public Builder copy(BackupDestinationDetailsSummary model) { if (model.wasPropertyExplicitlySet("remoteRegion")) { this.remoteRegion(model.getRemoteRegion()); } + if (model.wasPropertyExplicitlySet("tdeWalletBackupDestination")) { + this.tdeWalletBackupDestination(model.getTdeWalletBackupDestination()); + } return this; } } @@ -699,6 +716,13 @@ public String getRemoteRegion() { return remoteRegion; } + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletBackupDestination") + private final TdeWalletBackupDestination tdeWalletBackupDestination; + + public TdeWalletBackupDestination getTdeWalletBackupDestination() { + return tdeWalletBackupDestination; + } + @Override public String toString() { return this.toString(true); @@ -730,6 +754,8 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.backupRetentionPolicyOnTerminate)); sb.append(", isRemote=").append(String.valueOf(this.isRemote)); sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); + sb.append(", tdeWalletBackupDestination=") + .append(String.valueOf(this.tdeWalletBackupDestination)); sb.append(")"); return sb.toString(); } @@ -764,6 +790,8 @@ public boolean equals(Object o) { other.backupRetentionPolicyOnTerminate) && java.util.Objects.equals(this.isRemote, other.isRemote) && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) + && java.util.Objects.equals( + this.tdeWalletBackupDestination, other.tdeWalletBackupDestination) && super.equals(other); } @@ -811,6 +839,11 @@ public int hashCode() { : this.backupRetentionPolicyOnTerminate.hashCode()); result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); + result = + (result * PRIME) + + (this.tdeWalletBackupDestination == null + ? 43 + : this.tdeWalletBackupDestination.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java index c6f7d5669bc..5516d54a78f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/BackupSummary.java @@ -1167,6 +1167,8 @@ public enum BackupDestinationType { ObjectStore("OBJECT_STORE"), Dbrs("DBRS"), AwsS3("AWS_S3"), + Nfs("NFS"), + RecoveryAppliance("RECOVERY_APPLIANCE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java index c0af05a5eec..15fcd4d8b47 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromAnotherDatabaseDetails.java @@ -22,6 +22,45 @@ public final class CreateDatabaseFromAnotherDatabaseDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseFromAnotherDatabaseDetails( + String databaseId, + String backupTDEPassword, + String adminPassword, + String dbUniqueName, + String dbName, + java.util.Date timeStampForPointInTimeRecovery, + java.util.List pluggableDatabases, + java.util.Map freeformTags, + java.util.Map> definedTags, + String sidPrefix, + EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, + DatabaseStorageSizeDetails storageSizeDetails, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, + String vmClusterId, + String recoveryApplianceVpcPassword) { + super(); + this.databaseId = databaseId; + this.backupTDEPassword = backupTDEPassword; + this.adminPassword = adminPassword; + this.dbUniqueName = dbUniqueName; + this.dbName = dbName; + this.timeStampForPointInTimeRecovery = timeStampForPointInTimeRecovery; + this.pluggableDatabases = pluggableDatabases; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.sidPrefix = sidPrefix; + this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; + this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.vmClusterId = vmClusterId; + this.recoveryApplianceVpcPassword = + recoveryApplianceVpcPassword != null + ? recoveryApplianceVpcPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "databaseId", "backupTDEPassword", @@ -36,7 +75,8 @@ public final class CreateDatabaseFromAnotherDatabaseDetails "sourceEncryptionKeyLocationDetails", "storageSizeDetails", "managedSoftwareUpdateDetails", - "vmClusterId" + "vmClusterId", + "recoveryApplianceVpcPassword" }) public CreateDatabaseFromAnotherDatabaseDetails( String databaseId, @@ -52,7 +92,8 @@ public CreateDatabaseFromAnotherDatabaseDetails( EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, DatabaseStorageSizeDetails storageSizeDetails, ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, - String vmClusterId) { + String vmClusterId, + char[] recoveryApplianceVpcPassword) { super(); this.databaseId = databaseId; this.backupTDEPassword = backupTDEPassword; @@ -68,6 +109,7 @@ public CreateDatabaseFromAnotherDatabaseDetails( this.storageSizeDetails = storageSizeDetails; this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; this.vmClusterId = vmClusterId; + this.recoveryApplianceVpcPassword = recoveryApplianceVpcPassword; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -293,6 +335,31 @@ public Builder vmClusterId(String vmClusterId) { this.__explicitlySet__.add("vmClusterId"); return this; } + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryApplianceVpcPassword") + private char[] recoveryApplianceVpcPassword; + + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + * @param recoveryApplianceVpcPassword the value to set + * @return this builder + **/ + public Builder recoveryApplianceVpcPassword(char[] recoveryApplianceVpcPassword) { + this.recoveryApplianceVpcPassword = recoveryApplianceVpcPassword; + this.__explicitlySet__.add("recoveryApplianceVpcPassword"); + return this; + } + + public Builder recoveryApplianceVpcPassword(String recoveryApplianceVpcPassword) { + this.recoveryApplianceVpcPassword = + recoveryApplianceVpcPassword != null + ? recoveryApplianceVpcPassword.toCharArray() + : null; + this.__explicitlySet__.add("recoveryApplianceVpcPassword"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -313,7 +380,8 @@ public CreateDatabaseFromAnotherDatabaseDetails build() { this.sourceEncryptionKeyLocationDetails, this.storageSizeDetails, this.managedSoftwareUpdateDetails, - this.vmClusterId); + this.vmClusterId, + this.recoveryApplianceVpcPassword); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -365,6 +433,9 @@ public Builder copy(CreateDatabaseFromAnotherDatabaseDetails model) { if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } + if (model.wasPropertyExplicitlySet("recoveryApplianceVpcPassword")) { + this.recoveryApplianceVpcPassword(model.getRecoveryApplianceVpcPassword()); + } return this; } } @@ -569,6 +640,34 @@ public String getVmClusterId() { return vmClusterId; } + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryApplianceVpcPassword") + private final char[] recoveryApplianceVpcPassword; + + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + * return the value + * @Deprecated - Use getRecoveryApplianceVpcPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getRecoveryApplianceVpcPassword() { + return recoveryApplianceVpcPassword != null + ? new String(recoveryApplianceVpcPassword) + : null; + } + + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryApplianceVpcPassword") + public char[] getRecoveryApplianceVpcPassword__AsCharArray() { + return recoveryApplianceVpcPassword; + } + @Override public String toString() { return this.toString(true); @@ -600,6 +699,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", managedSoftwareUpdateDetails=") .append(String.valueOf(this.managedSoftwareUpdateDetails)); sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); + sb.append(", recoveryApplianceVpcPassword=").append(""); sb.append(")"); return sb.toString(); } @@ -633,6 +733,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.managedSoftwareUpdateDetails, other.managedSoftwareUpdateDetails) && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) + && java.util.Objects.equals( + this.recoveryApplianceVpcPassword, other.recoveryApplianceVpcPassword) && super.equals(other); } @@ -678,6 +780,11 @@ public int hashCode() { ? 43 : this.managedSoftwareUpdateDetails.hashCode()); result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); + result = + (result * PRIME) + + (this.recoveryApplianceVpcPassword == null + ? 43 + : this.recoveryApplianceVpcPassword.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java index f167f173421..53dccabb029 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseFromBackupDetails.java @@ -22,6 +22,43 @@ public final class CreateDatabaseFromBackupDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated + public CreateDatabaseFromBackupDetails( + String backupId, + String backupTDEPassword, + EncryptionKeyLocationDetails sourceEncryptionKeyLocationDetails, + String adminPassword, + String dbUniqueName, + String dbName, + String sidPrefix, + java.util.List pluggableDatabases, + DatabaseStorageSizeDetails storageSizeDetails, + ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, + String vmClusterId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String recoveryApplianceVpcPassword) { + super(); + this.backupId = backupId; + this.backupTDEPassword = backupTDEPassword; + this.sourceEncryptionKeyLocationDetails = sourceEncryptionKeyLocationDetails; + this.adminPassword = adminPassword; + this.dbUniqueName = dbUniqueName; + this.dbName = dbName; + this.sidPrefix = sidPrefix; + this.pluggableDatabases = pluggableDatabases; + this.storageSizeDetails = storageSizeDetails; + this.managedSoftwareUpdateDetails = managedSoftwareUpdateDetails; + this.vmClusterId = vmClusterId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.recoveryApplianceVpcPassword = + recoveryApplianceVpcPassword != null + ? recoveryApplianceVpcPassword.toCharArray() + : null; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated @java.beans.ConstructorProperties({ "backupId", "backupTDEPassword", @@ -35,7 +72,8 @@ public final class CreateDatabaseFromBackupDetails "managedSoftwareUpdateDetails", "vmClusterId", "freeformTags", - "definedTags" + "definedTags", + "recoveryApplianceVpcPassword" }) public CreateDatabaseFromBackupDetails( String backupId, @@ -50,7 +88,8 @@ public CreateDatabaseFromBackupDetails( ManagedSoftwareUpdateInputDetails managedSoftwareUpdateDetails, String vmClusterId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + char[] recoveryApplianceVpcPassword) { super(); this.backupId = backupId; this.backupTDEPassword = backupTDEPassword; @@ -65,6 +104,7 @@ public CreateDatabaseFromBackupDetails( this.vmClusterId = vmClusterId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.recoveryApplianceVpcPassword = recoveryApplianceVpcPassword; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -273,6 +313,31 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryApplianceVpcPassword") + private char[] recoveryApplianceVpcPassword; + + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + * @param recoveryApplianceVpcPassword the value to set + * @return this builder + **/ + public Builder recoveryApplianceVpcPassword(char[] recoveryApplianceVpcPassword) { + this.recoveryApplianceVpcPassword = recoveryApplianceVpcPassword; + this.__explicitlySet__.add("recoveryApplianceVpcPassword"); + return this; + } + + public Builder recoveryApplianceVpcPassword(String recoveryApplianceVpcPassword) { + this.recoveryApplianceVpcPassword = + recoveryApplianceVpcPassword != null + ? recoveryApplianceVpcPassword.toCharArray() + : null; + this.__explicitlySet__.add("recoveryApplianceVpcPassword"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -292,7 +357,8 @@ public CreateDatabaseFromBackupDetails build() { this.managedSoftwareUpdateDetails, this.vmClusterId, this.freeformTags, - this.definedTags); + this.definedTags, + this.recoveryApplianceVpcPassword); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -341,6 +407,9 @@ public Builder copy(CreateDatabaseFromBackupDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("recoveryApplianceVpcPassword")) { + this.recoveryApplianceVpcPassword(model.getRecoveryApplianceVpcPassword()); + } return this; } } @@ -531,6 +600,34 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryApplianceVpcPassword") + private final char[] recoveryApplianceVpcPassword; + + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + * return the value + * @Deprecated - Use getRecoveryApplianceVpcPassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getRecoveryApplianceVpcPassword() { + return recoveryApplianceVpcPassword != null + ? new String(recoveryApplianceVpcPassword) + : null; + } + + /** + * The password for the VPC user that is used to access the Recovery Appliance, if the given backup is from a backup destination of type RECOVERY_APPLIANCE. + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("recoveryApplianceVpcPassword") + public char[] getRecoveryApplianceVpcPassword__AsCharArray() { + return recoveryApplianceVpcPassword; + } + @Override public String toString() { return this.toString(true); @@ -560,6 +657,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", recoveryApplianceVpcPassword=").append(""); sb.append(")"); return sb.toString(); } @@ -590,6 +688,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.recoveryApplianceVpcPassword, other.recoveryApplianceVpcPassword) && super.equals(other); } @@ -630,6 +730,11 @@ public int hashCode() { result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.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.recoveryApplianceVpcPassword == null + ? 43 + : this.recoveryApplianceVpcPassword.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java index 4359a8ef4ee..c5c968ad00c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java @@ -36,7 +36,8 @@ public final class CreateDatabaseSoftwareImageDetails "lsInventory", "freeformTags", "definedTags", - "sourceDbHomeId" + "sourceDbHomeId", + "sourceGiHomeId" }) public CreateDatabaseSoftwareImageDetails( String compartmentId, @@ -49,7 +50,8 @@ public CreateDatabaseSoftwareImageDetails( String lsInventory, java.util.Map freeformTags, java.util.Map> definedTags, - String sourceDbHomeId) { + String sourceDbHomeId, + String sourceGiHomeId) { super(); this.compartmentId = compartmentId; this.databaseVersion = databaseVersion; @@ -62,6 +64,7 @@ public CreateDatabaseSoftwareImageDetails( this.freeformTags = freeformTags; this.definedTags = definedTags; this.sourceDbHomeId = sourceDbHomeId; + this.sourceGiHomeId = sourceGiHomeId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -256,6 +259,22 @@ public Builder sourceDbHomeId(String sourceDbHomeId) { this.__explicitlySet__.add("sourceDbHomeId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceGiHomeId") + private String sourceGiHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * @param sourceGiHomeId the value to set + * @return this builder + **/ + public Builder sourceGiHomeId(String sourceGiHomeId) { + this.sourceGiHomeId = sourceGiHomeId; + this.__explicitlySet__.add("sourceGiHomeId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -273,7 +292,8 @@ public CreateDatabaseSoftwareImageDetails build() { this.lsInventory, this.freeformTags, this.definedTags, - this.sourceDbHomeId); + this.sourceDbHomeId, + this.sourceGiHomeId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -316,6 +336,9 @@ public Builder copy(CreateDatabaseSoftwareImageDetails model) { if (model.wasPropertyExplicitlySet("sourceDbHomeId")) { this.sourceDbHomeId(model.getSourceDbHomeId()); } + if (model.wasPropertyExplicitlySet("sourceGiHomeId")) { + this.sourceGiHomeId(model.getSourceGiHomeId()); + } return this; } } @@ -570,6 +593,20 @@ public String getSourceDbHomeId() { return sourceDbHomeId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceGiHomeId") + private final String sourceGiHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * @return the value + **/ + public String getSourceGiHomeId() { + return sourceGiHomeId; + } + @Override public String toString() { return this.toString(true); @@ -596,6 +633,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", sourceDbHomeId=").append(String.valueOf(this.sourceDbHomeId)); + sb.append(", sourceGiHomeId=").append(String.valueOf(this.sourceGiHomeId)); sb.append(")"); return sb.toString(); } @@ -623,6 +661,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.sourceDbHomeId, other.sourceDbHomeId) + && java.util.Objects.equals(this.sourceGiHomeId, other.sourceGiHomeId) && super.equals(other); } @@ -653,6 +692,9 @@ public int hashCode() { result = (result * PRIME) + (this.sourceDbHomeId == null ? 43 : this.sourceDbHomeId.hashCode()); + result = + (result * PRIME) + + (this.sourceGiHomeId == null ? 43 : this.sourceGiHomeId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java new file mode 100644 index 00000000000..7f2214402f0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateGiHomeDetails.java @@ -0,0 +1,327 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating a Grid Infrastructure Home. + * **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGiHomeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateGiHomeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "giImageId", + "dbSystemId", + "freeformTags", + "definedTags" + }) + public CreateGiHomeDetails( + String displayName, + String giImageId, + String dbSystemId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.giImageId = giImageId; + this.dbSystemId = dbSystemId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private String giImageId; + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * @param giImageId the value to set + * @return this builder + **/ + public Builder giImageId(String giImageId) { + this.giImageId = giImageId; + this.__explicitlySet__.add("giImageId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * @param dbSystemId the value to set + * @return this builder + **/ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + 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). + * + **/ + @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). + * + * @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 CreateGiHomeDetails build() { + CreateGiHomeDetails model = + new CreateGiHomeDetails( + this.displayName, + this.giImageId, + this.dbSystemId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGiHomeDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("giImageId")) { + this.giImageId(model.getGiImageId()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + 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 user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private final String giImageId; + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * @return the value + **/ + public String getGiImageId() { + return giImageId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * 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). + * + **/ + @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). + * + * @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("CreateGiHomeDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", giImageId=").append(String.valueOf(this.giImageId)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + 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 CreateGiHomeDetails)) { + return false; + } + + CreateGiHomeDetails other = (CreateGiHomeDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.giImageId, other.giImageId) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && 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.giImageId == null ? 43 : this.giImageId.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.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-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java index aafd30693ec..383d95506cb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmCluster.java @@ -1723,6 +1723,7 @@ public String getGridImageId() { public enum GridImageType { ReleaseUpdate("RELEASE_UPDATE"), CustomImage("CUSTOM_IMAGE"), + GridHome("GRID_HOME"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java index b0fb15dabbc..2faf2e66298 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadbVmClusterSummary.java @@ -1703,6 +1703,7 @@ public String getGridImageId() { public enum GridImageType { ReleaseUpdate("RELEASE_UPDATE"), CustomImage("CUSTOM_IMAGE"), + GridHome("GRID_HOME"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java new file mode 100644 index 00000000000..86f61dfa75f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHome.java @@ -0,0 +1,1013 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details of the Grid Infrastructure Home. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GiHome.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GiHome extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "isDefaultCreated", + "isActive", + "lifecycleState", + "timeCreated", + "homePath", + "availableActions", + "availableType", + "lifecycleDetails", + "giVersion", + "giImageId", + "timeUpdated", + "dbSystemId", + "definedTags", + "freeformTags", + "systemTags" + }) + public GiHome( + String id, + String compartmentId, + String displayName, + Boolean isDefaultCreated, + Boolean isActive, + LifecycleState lifecycleState, + java.util.Date timeCreated, + String homePath, + java.util.List availableActions, + AvailableType availableType, + String lifecycleDetails, + String giVersion, + String giImageId, + java.util.Date timeUpdated, + String dbSystemId, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.isDefaultCreated = isDefaultCreated; + this.isActive = isActive; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.homePath = homePath; + this.availableActions = availableActions; + this.availableType = availableType; + this.lifecycleDetails = lifecycleDetails; + this.giVersion = giVersion; + this.giImageId = giImageId; + this.timeUpdated = timeUpdated; + this.dbSystemId = dbSystemId; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + 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 Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Indicates whether the grid infrastructure home is created by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * @param isDefaultCreated the value to set + * @return this builder + **/ + public Builder isDefaultCreated(Boolean isDefaultCreated) { + this.isDefaultCreated = isDefaultCreated; + this.__explicitlySet__.add("isDefaultCreated"); + return this; + } + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * The current state of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * @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 and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The path of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private String homePath; + + /** + * The path of the Grid Infrastructure Home. + * @param homePath the value to set + * @return this builder + **/ + public Builder homePath(String homePath) { + this.homePath = homePath; + this.__explicitlySet__.add("homePath"); + return this; + } + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + * @param availableActions the value to set + * @return this builder + **/ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } + /** + * The type of update that the Grid Infrastructure Home can be used for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableType") + private AvailableType availableType; + + /** + * The type of update that the Grid Infrastructure Home can be used for. + * @param availableType the value to set + * @return this builder + **/ + public Builder availableType(AvailableType availableType) { + this.availableType = availableType; + this.__explicitlySet__.add("availableType"); + return this; + } + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @param giVersion the value to set + * @return this builder + **/ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private String giImageId; + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * @param giImageId the value to set + * @return this builder + **/ + public Builder giImageId(String giImageId) { + this.giImageId = giImageId; + this.__explicitlySet__.add("giImageId"); + return this; + } + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * @param dbSystemId the value to set + * @return this builder + **/ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + 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). + * + **/ + @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). + * + * @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; + } + /** + * 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; + } + /** + * System 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). + * + **/ + @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](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GiHome build() { + GiHome model = + new GiHome( + this.id, + this.compartmentId, + this.displayName, + this.isDefaultCreated, + this.isActive, + this.lifecycleState, + this.timeCreated, + this.homePath, + this.availableActions, + this.availableType, + this.lifecycleDetails, + this.giVersion, + this.giImageId, + this.timeUpdated, + this.dbSystemId, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GiHome 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("isDefaultCreated")) { + this.isDefaultCreated(model.getIsDefaultCreated()); + } + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("homePath")) { + this.homePath(model.getHomePath()); + } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } + if (model.wasPropertyExplicitlySet("availableType")) { + this.availableType(model.getAvailableType()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("giImageId")) { + this.giImageId(model.getGiImageId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Indicates whether the grid infrastructure home is created by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private final Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * @return the value + **/ + public Boolean getIsDefaultCreated() { + return isDefaultCreated; + } + + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * The current state of the Grid Infrastructure Home. + **/ + public enum LifecycleState { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + 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 Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The path of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private final String homePath; + + /** + * The path of the Grid Infrastructure Home. + * @return the value + **/ + public String getHomePath() { + return homePath; + } + + /** + **/ + public enum AvailableActions { + Precheck("PRECHECK"), + RollingApply("ROLLING_APPLY"), + Retry("RETRY"), + Rollback("ROLLBACK"), + + /** + * 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(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + * @return the value + **/ + public java.util.List getAvailableActions() { + return availableActions; + } + + /** + * The type of update that the Grid Infrastructure Home can be used for. + **/ + public enum AvailableType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + + /** + * 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(AvailableType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableType v : AvailableType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of update that the Grid Infrastructure Home can be used for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableType") + private final AvailableType availableType; + + /** + * The type of update that the Grid Infrastructure Home can be used for. + * @return the value + **/ + public AvailableType getAvailableType() { + return availableType; + } + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @return the value + **/ + public String getGiVersion() { + return giVersion; + } + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private final String giImageId; + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * @return the value + **/ + public String getGiImageId() { + return giImageId; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * 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). + * + **/ + @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). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * 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; + } + + /** + * System 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). + * + **/ + @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](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GiHome("); + 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(", isDefaultCreated=").append(String.valueOf(this.isDefaultCreated)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", homePath=").append(String.valueOf(this.homePath)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); + sb.append(", availableType=").append(String.valueOf(this.availableType)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", giImageId=").append(String.valueOf(this.giImageId)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 GiHome)) { + return false; + } + + GiHome other = (GiHome) 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.isDefaultCreated, other.isDefaultCreated) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.homePath, other.homePath) + && java.util.Objects.equals(this.availableActions, other.availableActions) + && java.util.Objects.equals(this.availableType, other.availableType) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.giImageId, other.giImageId) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.isDefaultCreated == null ? 43 : this.isDefaultCreated.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.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.homePath == null ? 43 : this.homePath.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); + result = + (result * PRIME) + + (this.availableType == null ? 43 : this.availableType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = (result * PRIME) + (this.giImageId == null ? 43 : this.giImageId.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java new file mode 100644 index 00000000000..d16585a5d56 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeCollection.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Results of Grid Infrastructure Home list. Contains GiHomeSummary 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GiHomeCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GiHomeCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public GiHomeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of GiHome resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of GiHome resources. + * @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 GiHomeCollection build() { + GiHomeCollection model = new GiHomeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GiHomeCollection 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 GiHome resources. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of GiHome resources. + * @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("GiHomeCollection("); + 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 GiHomeCollection)) { + return false; + } + + GiHomeCollection other = (GiHomeCollection) 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-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java new file mode 100644 index 00000000000..4bbfc324f9c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/GiHomeSummary.java @@ -0,0 +1,1020 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * A Grid Infrastructure Home summary. + *

+ * 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). + *

+ **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GiHomeSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class GiHomeSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "compartmentId", + "displayName", + "isDefaultCreated", + "isActive", + "lifecycleState", + "timeCreated", + "homePath", + "availableActions", + "availableType", + "lifecycleDetails", + "giVersion", + "giImageId", + "timeUpdated", + "dbSystemId", + "definedTags", + "freeformTags", + "systemTags" + }) + public GiHomeSummary( + String id, + String compartmentId, + String displayName, + Boolean isDefaultCreated, + Boolean isActive, + LifecycleState lifecycleState, + java.util.Date timeCreated, + String homePath, + java.util.List availableActions, + AvailableType availableType, + String lifecycleDetails, + String giVersion, + String giImageId, + java.util.Date timeUpdated, + String dbSystemId, + java.util.Map> definedTags, + java.util.Map freeformTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.isDefaultCreated = isDefaultCreated; + this.isActive = isActive; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.homePath = homePath; + this.availableActions = availableActions; + this.availableType = availableType; + this.lifecycleDetails = lifecycleDetails; + this.giVersion = giVersion; + this.giImageId = giImageId; + this.timeUpdated = timeUpdated; + this.dbSystemId = dbSystemId; + this.definedTags = definedTags; + this.freeformTags = freeformTags; + 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 Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Indicates whether the grid infrastructure home is created by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * @param isDefaultCreated the value to set + * @return this builder + **/ + public Builder isDefaultCreated(Boolean isDefaultCreated) { + this.isDefaultCreated = isDefaultCreated; + this.__explicitlySet__.add("isDefaultCreated"); + return this; + } + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private Boolean isActive; + + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + * @param isActive the value to set + * @return this builder + **/ + public Builder isActive(Boolean isActive) { + this.isActive = isActive; + this.__explicitlySet__.add("isActive"); + return this; + } + /** + * The current state of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * @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 and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The path of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private String homePath; + + /** + * The path of the Grid Infrastructure Home. + * @param homePath the value to set + * @return this builder + **/ + public Builder homePath(String homePath) { + this.homePath = homePath; + this.__explicitlySet__.add("homePath"); + return this; + } + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + * @param availableActions the value to set + * @return this builder + **/ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } + /** + * The type of update that the Grid Infrastructure Home can be used for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableType") + private AvailableType availableType; + + /** + * The type of update that the Grid Infrastructure Home can be used for. + * @param availableType the value to set + * @return this builder + **/ + public Builder availableType(AvailableType availableType) { + this.availableType = availableType; + this.__explicitlySet__.add("availableType"); + return this; + } + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @param giVersion the value to set + * @return this builder + **/ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + this.__explicitlySet__.add("giVersion"); + return this; + } + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private String giImageId; + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * @param giImageId the value to set + * @return this builder + **/ + public Builder giImageId(String giImageId) { + this.giImageId = giImageId; + this.__explicitlySet__.add("giImageId"); + return this; + } + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * @param dbSystemId the value to set + * @return this builder + **/ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + 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). + * + **/ + @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). + * + * @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; + } + /** + * 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; + } + /** + * System 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). + * + **/ + @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](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GiHomeSummary build() { + GiHomeSummary model = + new GiHomeSummary( + this.id, + this.compartmentId, + this.displayName, + this.isDefaultCreated, + this.isActive, + this.lifecycleState, + this.timeCreated, + this.homePath, + this.availableActions, + this.availableType, + this.lifecycleDetails, + this.giVersion, + this.giImageId, + this.timeUpdated, + this.dbSystemId, + this.definedTags, + this.freeformTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GiHomeSummary 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("isDefaultCreated")) { + this.isDefaultCreated(model.getIsDefaultCreated()); + } + if (model.wasPropertyExplicitlySet("isActive")) { + this.isActive(model.getIsActive()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("homePath")) { + this.homePath(model.getHomePath()); + } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } + if (model.wasPropertyExplicitlySet("availableType")) { + this.availableType(model.getAvailableType()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("giVersion")) { + this.giVersion(model.getGiVersion()); + } + if (model.wasPropertyExplicitlySet("giImageId")) { + this.giImageId(model.getGiImageId()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + 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 Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Indicates whether the grid infrastructure home is created by default. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDefaultCreated") + private final Boolean isDefaultCreated; + + /** + * Indicates whether the grid infrastructure home is created by default. + * @return the value + **/ + public Boolean getIsDefaultCreated() { + return isDefaultCreated; + } + + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isActive") + private final Boolean isActive; + + /** + * Indicates whether the Grid Infrastructure Home is currently active for the cluster. + * @return the value + **/ + public Boolean getIsActive() { + return isActive; + } + + /** + * The current state of the Grid Infrastructure Home. + **/ + public enum LifecycleState { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + 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 Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the Grid Infrastructure Home. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was created + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The path of the Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("homePath") + private final String homePath; + + /** + * The path of the Grid Infrastructure Home. + * @return the value + **/ + public String getHomePath() { + return homePath; + } + + /** + **/ + public enum AvailableActions { + Precheck("PRECHECK"), + RollingApply("ROLLING_APPLY"), + Retry("RETRY"), + Rollback("ROLLBACK"), + + /** + * 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(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * The possible Grid Infrastructure update actions that can be performed using this Grid Infrastructure Home. + * @return the value + **/ + public java.util.List getAvailableActions() { + return availableActions; + } + + /** + * The type of update that the Grid Infrastructure Home can be used for. + **/ + public enum AvailableType { + GiUpgrade("GI_UPGRADE"), + GiPatch("GI_PATCH"), + + /** + * 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(AvailableType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableType v : AvailableType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of update that the Grid Infrastructure Home can be used for. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("availableType") + private final AvailableType availableType; + + /** + * The type of update that the Grid Infrastructure Home can be used for. + * @return the value + **/ + public AvailableType getAvailableType() { + return availableType; + } + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional information about the current lifecycle state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giVersion") + private final String giVersion; + + /** + * A valid Oracle Grid Infrastructure (GI) software version. + * @return the value + **/ + public String getGiVersion() { + return giVersion; + } + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giImageId") + private final String giImageId; + + /** + * The grid infrastructure home image [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) + * @return the value + **/ + public String getGiImageId() { + return giImageId; + } + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time and date as an RFC3339 formatted string, e.g., 2024-04-11T01:59:07.032Z, when the grid infrastructure home was updated + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DB system. + * @return the value + **/ + public String getDbSystemId() { + return dbSystemId; + } + + /** + * 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). + * + **/ + @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). + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * 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; + } + + /** + * System 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). + * + **/ + @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](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GiHomeSummary("); + 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(", isDefaultCreated=").append(String.valueOf(this.isDefaultCreated)); + sb.append(", isActive=").append(String.valueOf(this.isActive)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", homePath=").append(String.valueOf(this.homePath)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); + sb.append(", availableType=").append(String.valueOf(this.availableType)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", giVersion=").append(String.valueOf(this.giVersion)); + sb.append(", giImageId=").append(String.valueOf(this.giImageId)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + 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 GiHomeSummary)) { + return false; + } + + GiHomeSummary other = (GiHomeSummary) 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.isDefaultCreated, other.isDefaultCreated) + && java.util.Objects.equals(this.isActive, other.isActive) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.homePath, other.homePath) + && java.util.Objects.equals(this.availableActions, other.availableActions) + && java.util.Objects.equals(this.availableType, other.availableType) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.giImageId, other.giImageId) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && 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.isDefaultCreated == null ? 43 : this.isDefaultCreated.hashCode()); + result = (result * PRIME) + (this.isActive == null ? 43 : this.isActive.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.homePath == null ? 43 : this.homePath.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); + result = + (result * PRIME) + + (this.availableType == null ? 43 : this.availableType.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = (result * PRIME) + (this.giImageId == null ? 43 : this.giImageId.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/TdeWalletBackupDestination.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/TdeWalletBackupDestination.java new file mode 100644 index 00000000000..c52c732c905 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/TdeWalletBackupDestination.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.database.model; + +/** + * Backup destination for the TDE wallet backups. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = TdeWalletBackupDestination.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class TdeWalletBackupDestination + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"backupDestinationType", "backupDestinationId"}) + public TdeWalletBackupDestination( + BackupDestinationType backupDestinationType, String backupDestinationId) { + super(); + this.backupDestinationType = backupDestinationType; + this.backupDestinationId = backupDestinationId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Destination where TDE Wallet backups are to be placed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationType") + private BackupDestinationType backupDestinationType; + + /** + * Destination where TDE Wallet backups are to be placed. + * @param backupDestinationType the value to set + * @return this builder + **/ + public Builder backupDestinationType(BackupDestinationType backupDestinationType) { + this.backupDestinationType = backupDestinationType; + this.__explicitlySet__.add("backupDestinationType"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationId") + private String backupDestinationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. + * @param backupDestinationId the value to set + * @return this builder + **/ + public Builder backupDestinationId(String backupDestinationId) { + this.backupDestinationId = backupDestinationId; + this.__explicitlySet__.add("backupDestinationId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public TdeWalletBackupDestination build() { + TdeWalletBackupDestination model = + new TdeWalletBackupDestination( + this.backupDestinationType, this.backupDestinationId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(TdeWalletBackupDestination model) { + if (model.wasPropertyExplicitlySet("backupDestinationType")) { + this.backupDestinationType(model.getBackupDestinationType()); + } + if (model.wasPropertyExplicitlySet("backupDestinationId")) { + this.backupDestinationId(model.getBackupDestinationId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Destination where TDE Wallet backups are to be placed. + **/ + public enum BackupDestinationType { + Oss("OSS"), + Nfs("NFS"), + + /** + * 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(BackupDestinationType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupDestinationType v : BackupDestinationType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupDestinationType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupDestinationType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupDestinationType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Destination where TDE Wallet backups are to be placed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationType") + private final BackupDestinationType backupDestinationType; + + /** + * Destination where TDE Wallet backups are to be placed. + * @return the value + **/ + public BackupDestinationType getBackupDestinationType() { + return backupDestinationType; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupDestinationId") + private final String backupDestinationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. + * @return the value + **/ + public String getBackupDestinationId() { + return backupDestinationId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("TdeWalletBackupDestination("); + sb.append("super=").append(super.toString()); + sb.append("backupDestinationType=").append(String.valueOf(this.backupDestinationType)); + sb.append(", backupDestinationId=").append(String.valueOf(this.backupDestinationId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof TdeWalletBackupDestination)) { + return false; + } + + TdeWalletBackupDestination other = (TdeWalletBackupDestination) o; + return java.util.Objects.equals(this.backupDestinationType, other.backupDestinationType) + && java.util.Objects.equals(this.backupDestinationId, other.backupDestinationId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.backupDestinationType == null + ? 43 + : this.backupDestinationType.hashCode()); + result = + (result * PRIME) + + (this.backupDestinationId == null + ? 43 + : this.backupDestinationId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index 6ac576ca219..141c6ef946f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -82,6 +82,8 @@ public final class UpdateAutonomousDatabaseDetails "autonomousMaintenanceScheduleType", "autonomousDatabaseMaintenanceWindow", "timeMaintenancePauseUntil", + "scheduledMaintenanceWindow", + "timeScheduledMaintenanceWindowUpdate", "isBackupRetentionLocked", "timeScheduledDbVersionUpgrade", "isDisableDbVersionUpgradeSchedule", @@ -150,6 +152,8 @@ public UpdateAutonomousDatabaseDetails( AutonomousMaintenanceScheduleType autonomousMaintenanceScheduleType, AutonomousDatabaseMaintenanceWindowSummary autonomousDatabaseMaintenanceWindow, java.util.Date timeMaintenancePauseUntil, + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow, + java.util.Date timeScheduledMaintenanceWindowUpdate, Boolean isBackupRetentionLocked, java.util.Date timeScheduledDbVersionUpgrade, Boolean isDisableDbVersionUpgradeSchedule, @@ -217,6 +221,8 @@ public UpdateAutonomousDatabaseDetails( this.autonomousMaintenanceScheduleType = autonomousMaintenanceScheduleType; this.autonomousDatabaseMaintenanceWindow = autonomousDatabaseMaintenanceWindow; this.timeMaintenancePauseUntil = timeMaintenancePauseUntil; + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; this.isBackupRetentionLocked = isBackupRetentionLocked; this.timeScheduledDbVersionUpgrade = timeScheduledDbVersionUpgrade; this.isDisableDbVersionUpgradeSchedule = isDisableDbVersionUpgradeSchedule; @@ -1414,6 +1420,33 @@ public Builder timeMaintenancePauseUntil(java.util.Date timeMaintenancePauseUnti this.__explicitlySet__.add("timeMaintenancePauseUntil"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public Builder scheduledMaintenanceWindow( + AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow) { + this.scheduledMaintenanceWindow = scheduledMaintenanceWindow; + this.__explicitlySet__.add("scheduledMaintenanceWindow"); + return this; + } + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @param timeScheduledMaintenanceWindowUpdate the value to set + * @return this builder + **/ + public Builder timeScheduledMaintenanceWindowUpdate( + java.util.Date timeScheduledMaintenanceWindowUpdate) { + this.timeScheduledMaintenanceWindowUpdate = timeScheduledMaintenanceWindowUpdate; + this.__explicitlySet__.add("timeScheduledMaintenanceWindowUpdate"); + return this; + } /** * True if the Autonomous AI Database is backup retention locked. **/ @@ -1724,6 +1757,8 @@ public UpdateAutonomousDatabaseDetails build() { this.autonomousMaintenanceScheduleType, this.autonomousDatabaseMaintenanceWindow, this.timeMaintenancePauseUntil, + this.scheduledMaintenanceWindow, + this.timeScheduledMaintenanceWindowUpdate, this.isBackupRetentionLocked, this.timeScheduledDbVersionUpgrade, this.isDisableDbVersionUpgradeSchedule, @@ -1905,6 +1940,13 @@ public Builder copy(UpdateAutonomousDatabaseDetails model) { if (model.wasPropertyExplicitlySet("timeMaintenancePauseUntil")) { this.timeMaintenancePauseUntil(model.getTimeMaintenancePauseUntil()); } + if (model.wasPropertyExplicitlySet("scheduledMaintenanceWindow")) { + this.scheduledMaintenanceWindow(model.getScheduledMaintenanceWindow()); + } + if (model.wasPropertyExplicitlySet("timeScheduledMaintenanceWindowUpdate")) { + this.timeScheduledMaintenanceWindowUpdate( + model.getTimeScheduledMaintenanceWindowUpdate()); + } if (model.wasPropertyExplicitlySet("isBackupRetentionLocked")) { this.isBackupRetentionLocked(model.getIsBackupRetentionLocked()); } @@ -3307,6 +3349,27 @@ public java.util.Date getTimeMaintenancePauseUntil() { return timeMaintenancePauseUntil; } + @com.fasterxml.jackson.annotation.JsonProperty("scheduledMaintenanceWindow") + private final AutonomousDatabaseMaintenanceWindowSummary scheduledMaintenanceWindow; + + public AutonomousDatabaseMaintenanceWindowSummary getScheduledMaintenanceWindow() { + return scheduledMaintenanceWindow; + } + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeScheduledMaintenanceWindowUpdate") + private final java.util.Date timeScheduledMaintenanceWindowUpdate; + + /** + * The date and time at which operation to change Maintenance Window is scheduled to take place. + * @return the value + **/ + public java.util.Date getTimeScheduledMaintenanceWindowUpdate() { + return timeScheduledMaintenanceWindowUpdate; + } + /** * True if the Autonomous AI Database is backup retention locked. **/ @@ -3605,6 +3668,10 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.autonomousDatabaseMaintenanceWindow)); sb.append(", timeMaintenancePauseUntil=") .append(String.valueOf(this.timeMaintenancePauseUntil)); + sb.append(", scheduledMaintenanceWindow=") + .append(String.valueOf(this.scheduledMaintenanceWindow)); + sb.append(", timeScheduledMaintenanceWindowUpdate=") + .append(String.valueOf(this.timeScheduledMaintenanceWindowUpdate)); sb.append(", isBackupRetentionLocked=") .append(String.valueOf(this.isBackupRetentionLocked)); sb.append(", timeScheduledDbVersionUpgrade=") @@ -3709,6 +3776,11 @@ public boolean equals(Object o) { other.autonomousDatabaseMaintenanceWindow) && java.util.Objects.equals( this.timeMaintenancePauseUntil, other.timeMaintenancePauseUntil) + && java.util.Objects.equals( + this.scheduledMaintenanceWindow, other.scheduledMaintenanceWindow) + && java.util.Objects.equals( + this.timeScheduledMaintenanceWindowUpdate, + other.timeScheduledMaintenanceWindowUpdate) && java.util.Objects.equals( this.isBackupRetentionLocked, other.isBackupRetentionLocked) && java.util.Objects.equals( @@ -3918,6 +3990,16 @@ public int hashCode() { + (this.timeMaintenancePauseUntil == null ? 43 : this.timeMaintenancePauseUntil.hashCode()); + result = + (result * PRIME) + + (this.scheduledMaintenanceWindow == null + ? 43 + : this.scheduledMaintenanceWindow.hashCode()); + result = + (result * PRIME) + + (this.timeScheduledMaintenanceWindowUpdate == null + ? 43 + : this.timeScheduledMaintenanceWindowUpdate.hashCode()); result = (result * PRIME) + (this.isBackupRetentionLocked == null diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java index c83e6e2e112..15566693b86 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java @@ -22,17 +22,20 @@ public final class UpdateDetails extends com.oracle.bmc.http.internal.Explicitly @Deprecated @java.beans.ConstructorProperties({ "updateId", + "giHomeId", "updateAction", "updateMode", "giSoftwareImageId" }) public UpdateDetails( String updateId, + String giHomeId, UpdateAction updateAction, UpdateMode updateMode, String giSoftwareImageId) { super(); this.updateId = updateId; + this.giHomeId = giHomeId; this.updateAction = updateAction; this.updateMode = updateMode; this.giSoftwareImageId = giSoftwareImageId; @@ -56,6 +59,28 @@ public Builder updateId(String updateId) { this.__explicitlySet__.add("updateId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the Cloud VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the Cloud VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + * @param giHomeId the value to set + * @return this builder + **/ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + this.__explicitlySet__.add("giHomeId"); + return this; + } /** * The update action. **/ @@ -112,6 +137,7 @@ public UpdateDetails build() { UpdateDetails model = new UpdateDetails( this.updateId, + this.giHomeId, this.updateAction, this.updateMode, this.giSoftwareImageId); @@ -126,6 +152,9 @@ public Builder copy(UpdateDetails model) { if (model.wasPropertyExplicitlySet("updateId")) { this.updateId(model.getUpdateId()); } + if (model.wasPropertyExplicitlySet("giHomeId")) { + this.giHomeId(model.getGiHomeId()); + } if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } @@ -164,6 +193,26 @@ public String getUpdateId() { return updateId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the Cloud VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private final String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the Cloud VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + * @return the value + **/ + public String getGiHomeId() { + return giHomeId; + } + /** * The update action. **/ @@ -296,6 +345,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateDetails("); sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); + sb.append(", giHomeId=").append(String.valueOf(this.giHomeId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); @@ -314,6 +364,7 @@ public boolean equals(Object o) { UpdateDetails other = (UpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) && java.util.Objects.equals(this.updateAction, other.updateAction) && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) @@ -325,6 +376,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.giHomeId == null ? 43 : this.giHomeId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.java new file mode 100644 index 00000000000..dd998c5eb05 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateGiHomeDetails.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating a Grid Infrastructure Home. + * **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateGiHomeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateGiHomeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + public UpdateGiHomeDetails( + String displayName, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @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). + * + * @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 UpdateGiHomeDetails build() { + UpdateGiHomeDetails model = + new UpdateGiHomeDetails(this.displayName, this.freeformTags, this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateGiHomeDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the Grid Infrastructure Home. The name does not need to be unique and gets dynamically generated if null. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

+ * Example: {@code {"Department": "Finance"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + **/ + @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). + * + * @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("UpdateGiHomeDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateGiHomeDetails)) { + return false; + } + + UpdateGiHomeDetails other = (UpdateGiHomeDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java index 09077961b58..bffc4e9c523 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterUpdateDetails.java @@ -25,17 +25,20 @@ public final class VmClusterUpdateDetails @Deprecated @java.beans.ConstructorProperties({ "updateId", + "giHomeId", "updateMode", "updateAction", "giSoftwareImageId" }) public VmClusterUpdateDetails( String updateId, + String giHomeId, UpdateMode updateMode, UpdateAction updateAction, String giSoftwareImageId) { super(); this.updateId = updateId; + this.giHomeId = giHomeId; this.updateMode = updateMode; this.updateAction = updateAction; this.giSoftwareImageId = giSoftwareImageId; @@ -59,6 +62,28 @@ public Builder updateId(String updateId) { this.__explicitlySet__.add("updateId"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + * @param giHomeId the value to set + * @return this builder + **/ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + this.__explicitlySet__.add("giHomeId"); + return this; + } /** * The update mode to perform for OS Update. **/ @@ -115,6 +140,7 @@ public VmClusterUpdateDetails build() { VmClusterUpdateDetails model = new VmClusterUpdateDetails( this.updateId, + this.giHomeId, this.updateMode, this.updateAction, this.giSoftwareImageId); @@ -129,6 +155,9 @@ public Builder copy(VmClusterUpdateDetails model) { if (model.wasPropertyExplicitlySet("updateId")) { this.updateId(model.getUpdateId()); } + if (model.wasPropertyExplicitlySet("giHomeId")) { + this.giHomeId(model.getGiHomeId()); + } if (model.wasPropertyExplicitlySet("updateMode")) { this.updateMode(model.getUpdateMode()); } @@ -167,6 +196,26 @@ public String getUpdateId() { return updateId; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("giHomeId") + private final String giHomeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Grid Infrastructure Home. + * Specify this field for out of place Grid Infrastructure Home patching and upgrade of the VM Cluster. + * This is mutually exclusive option to {@code updateId} and {@code giSoftwareImageId} which are used for in place patching and upgrade using Oracle supplied and custom images respectively. + * + * @return the value + **/ + public String getGiHomeId() { + return giHomeId; + } + /** * The update mode to perform for OS Update. **/ @@ -298,6 +347,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("VmClusterUpdateDetails("); sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); + sb.append(", giHomeId=").append(String.valueOf(this.giHomeId)); sb.append(", updateMode=").append(String.valueOf(this.updateMode)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); @@ -316,6 +366,7 @@ public boolean equals(Object o) { VmClusterUpdateDetails other = (VmClusterUpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) && java.util.Objects.equals(this.updateMode, other.updateMode) && java.util.Objects.equals(this.updateAction, other.updateAction) && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) @@ -327,6 +378,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); + result = (result * PRIME) + (this.giHomeId == null ? 43 : this.giHomeId.hashCode()); result = (result * PRIME) + (this.updateMode == null ? 43 : this.updateMode.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); result = diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java new file mode 100644 index 00000000000..4956b48ed3d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateGiHomeRequest.java @@ -0,0 +1,281 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateGiHomeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateGiHomeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.CreateGiHomeDetails> { + + /** + * Request to create a new Grid Infrastructure Home. + */ + private com.oracle.bmc.database.model.CreateGiHomeDetails createGiHomeDetails; + + /** + * Request to create a new Grid Infrastructure Home. + */ + public com.oracle.bmc.database.model.CreateGiHomeDetails getCreateGiHomeDetails() { + return createGiHomeDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.CreateGiHomeDetails getBody$() { + return createGiHomeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateGiHomeRequest, com.oracle.bmc.database.model.CreateGiHomeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Request to create a new Grid Infrastructure Home. + */ + private com.oracle.bmc.database.model.CreateGiHomeDetails createGiHomeDetails = null; + + /** + * Request to create a new Grid Infrastructure Home. + * @param createGiHomeDetails the value to set + * @return this builder instance + */ + public Builder createGiHomeDetails( + com.oracle.bmc.database.model.CreateGiHomeDetails createGiHomeDetails) { + this.createGiHomeDetails = createGiHomeDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * 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.util.internal.Consumer + 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(CreateGiHomeRequest o) { + createGiHomeDetails(o.getCreateGiHomeDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateGiHomeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateGiHomeRequest + */ + public CreateGiHomeRequest build() { + CreateGiHomeRequest 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.database.model.CreateGiHomeDetails body) { + createGiHomeDetails(body); + return this; + } + + /** + * Build the instance of CreateGiHomeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateGiHomeRequest + */ + public CreateGiHomeRequest buildWithoutInvocationCallback() { + CreateGiHomeRequest request = new CreateGiHomeRequest(); + request.createGiHomeDetails = createGiHomeDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateGiHomeRequest(createGiHomeDetails, 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() + .createGiHomeDetails(createGiHomeDetails) + .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(",createGiHomeDetails=").append(String.valueOf(this.createGiHomeDetails)); + 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 CreateGiHomeRequest)) { + return false; + } + + CreateGiHomeRequest other = (CreateGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.createGiHomeDetails, other.createGiHomeDetails) + && 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.createGiHomeDetails == null + ? 43 + : this.createGiHomeDetails.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-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java new file mode 100644 index 00000000000..4dd0b952d3d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteGiHomeRequest.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteGiHomeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteGiHomeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getGiHomeId() { + return giHomeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteGiHomeRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId = null; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param giHomeId the value to set + * @return this builder instance + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(DeleteGiHomeRequest o) { + giHomeId(o.getGiHomeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteGiHomeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteGiHomeRequest + */ + public DeleteGiHomeRequest build() { + DeleteGiHomeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteGiHomeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteGiHomeRequest + */ + public DeleteGiHomeRequest buildWithoutInvocationCallback() { + DeleteGiHomeRequest request = new DeleteGiHomeRequest(); + request.giHomeId = giHomeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteGiHomeRequest(giHomeId, 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().giHomeId(giHomeId).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(",giHomeId=").append(String.valueOf(this.giHomeId)); + 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 DeleteGiHomeRequest)) { + return false; + } + + DeleteGiHomeRequest other = (DeleteGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) + && 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.giHomeId == null ? 43 : this.giHomeId.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-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.java new file mode 100644 index 00000000000..85359a894a2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetGiHomeRequest.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.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetGiHomeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetGiHomeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getGiHomeId() { + return giHomeId; + } + /** + * 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< + GetGiHomeRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId = null; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param giHomeId the value to set + * @return this builder instance + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + 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.util.internal.Consumer + 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(GetGiHomeRequest o) { + giHomeId(o.getGiHomeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetGiHomeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetGiHomeRequest + */ + public GetGiHomeRequest build() { + GetGiHomeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetGiHomeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetGiHomeRequest + */ + public GetGiHomeRequest buildWithoutInvocationCallback() { + GetGiHomeRequest request = new GetGiHomeRequest(); + request.giHomeId = giHomeId; + request.opcRequestId = opcRequestId; + return request; + // new GetGiHomeRequest(giHomeId, 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().giHomeId(giHomeId).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(",giHomeId=").append(String.valueOf(this.giHomeId)); + 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 GetGiHomeRequest)) { + return false; + } + + GetGiHomeRequest other = (GetGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.giHomeId == null ? 43 : this.giHomeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.java new file mode 100644 index 00000000000..0c143defc8d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAvailableMaintenanceWindowsRequest.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListAvailableMaintenanceWindowsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAvailableMaintenanceWindowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousDatabaseId; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getAutonomousDatabaseId() { + return autonomousDatabaseId; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The maximum number of items to return per page. + */ + public Integer getLimit() { + return limit; + } + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The pagination token to continue listing from. + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListAvailableMaintenanceWindowsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousDatabaseId = null; + + /** + * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param autonomousDatabaseId the value to set + * @return this builder instance + */ + public Builder autonomousDatabaseId(String autonomousDatabaseId) { + this.autonomousDatabaseId = autonomousDatabaseId; + 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; + } + + /** + * The maximum number of items to return per page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token to continue listing from. + */ + private String page = null; + + /** + * The pagination token to continue listing from. + * @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.util.internal.Consumer + 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(ListAvailableMaintenanceWindowsRequest o) { + autonomousDatabaseId(o.getAutonomousDatabaseId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAvailableMaintenanceWindowsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListAvailableMaintenanceWindowsRequest + */ + public ListAvailableMaintenanceWindowsRequest build() { + ListAvailableMaintenanceWindowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListAvailableMaintenanceWindowsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAvailableMaintenanceWindowsRequest + */ + public ListAvailableMaintenanceWindowsRequest buildWithoutInvocationCallback() { + ListAvailableMaintenanceWindowsRequest request = + new ListAvailableMaintenanceWindowsRequest(); + request.autonomousDatabaseId = autonomousDatabaseId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListAvailableMaintenanceWindowsRequest(autonomousDatabaseId, 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() + .autonomousDatabaseId(autonomousDatabaseId) + .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(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); + 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 ListAvailableMaintenanceWindowsRequest)) { + return false; + } + + ListAvailableMaintenanceWindowsRequest other = (ListAvailableMaintenanceWindowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) + && 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.autonomousDatabaseId == null + ? 43 + : this.autonomousDatabaseId.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-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java new file mode 100644 index 00000000000..0ac5d5b5ca6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListGiHomesRequest.java @@ -0,0 +1,532 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListGiHomesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListGiHomesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. + */ + private String dbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. + */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided grid infrastructure version. + */ + private String giVersion; + + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided grid infrastructure version. + */ + public String getGiVersion() { + return giVersion; + } + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The maximum number of items to return per page. + */ + public Integer getLimit() { + return limit; + } + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The pagination token to continue listing from. + */ + public String getPage() { + return page; + } + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for timeCreated is descending. Default order for displayName is ascending. The displayName sort order is case sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for timeCreated is descending. Default order for displayName is ascending. The displayName sort order is case sensitive. + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for timeCreated is descending. Default order for displayName is ascending. The displayName sort order is case sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + **/ + public enum SortOrder { + 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 ({@code ASC}) or descending ({@code DESC}). + */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.GiHomeSummary.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + public com.oracle.bmc.database.model.GiHomeSummary.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + public String getDisplayName() { + return displayName; + } + /** + * 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< + ListGiHomesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. + */ + private String dbSystemId = null; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). If provided, filters the results to the set of database versions which are supported for the DB system. + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided grid infrastructure version. + */ + private String giVersion = null; + + /** + * The Grid Infrastructure version. If provided, filters the results matching the provided grid infrastructure version. + * @param giVersion the value to set + * @return this builder instance + */ + public Builder giVersion(String giVersion) { + this.giVersion = giVersion; + return this; + } + + /** + * The maximum number of items to return per page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The pagination token to continue listing from. + */ + private String page = null; + + /** + * The pagination token to continue listing from. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for timeCreated is descending. Default order for displayName is ascending. The displayName sort order is case sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order ({@code sortOrder}). Default order for timeCreated is descending. Default order for displayName is ascending. The displayName sort order is case sensitive. + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * A filter to return only resources that match the given lifecycle state exactly. + */ + private com.oracle.bmc.database.model.GiHomeSummary.LifecycleState lifecycleState = null; + + /** + * A filter to return only resources that match the given lifecycle state exactly. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.database.model.GiHomeSummary.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire display 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; + } + + /** + * 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.util.internal.Consumer + 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(ListGiHomesRequest o) { + compartmentId(o.getCompartmentId()); + dbSystemId(o.getDbSystemId()); + giVersion(o.getGiVersion()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListGiHomesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListGiHomesRequest + */ + public ListGiHomesRequest build() { + ListGiHomesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListGiHomesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListGiHomesRequest + */ + public ListGiHomesRequest buildWithoutInvocationCallback() { + ListGiHomesRequest request = new ListGiHomesRequest(); + request.compartmentId = compartmentId; + request.dbSystemId = dbSystemId; + request.giVersion = giVersion; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.lifecycleState = lifecycleState; + request.displayName = displayName; + request.opcRequestId = opcRequestId; + return request; + // new ListGiHomesRequest(compartmentId, dbSystemId, giVersion, limit, page, sortBy, sortOrder, lifecycleState, displayName, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .dbSystemId(dbSystemId) + .giVersion(giVersion) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder) + .lifecycleState(lifecycleState) + .displayName(displayName) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",giVersion=").append(String.valueOf(this.giVersion)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListGiHomesRequest)) { + return false; + } + + ListGiHomesRequest other = (ListGiHomesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.giVersion, other.giVersion) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.giVersion == null ? 43 : this.giVersion.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.java new file mode 100644 index 00000000000..2a422a5ddfd --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateGiHomeRequest.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateGiHomeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateGiHomeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.UpdateGiHomeDetails> { + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getGiHomeId() { + return giHomeId; + } + /** + * Request to update the properties of a Grid Infrastructure Home. + */ + private com.oracle.bmc.database.model.UpdateGiHomeDetails updateGiHomeDetails; + + /** + * Request to update the properties of a Grid Infrastructure Home. + */ + public com.oracle.bmc.database.model.UpdateGiHomeDetails getUpdateGiHomeDetails() { + return updateGiHomeDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.UpdateGiHomeDetails getBody$() { + return updateGiHomeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateGiHomeRequest, com.oracle.bmc.database.model.UpdateGiHomeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String giHomeId = null; + + /** + * The Grid Infrastructure Home [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param giHomeId the value to set + * @return this builder instance + */ + public Builder giHomeId(String giHomeId) { + this.giHomeId = giHomeId; + return this; + } + + /** + * Request to update the properties of a Grid Infrastructure Home. + */ + private com.oracle.bmc.database.model.UpdateGiHomeDetails updateGiHomeDetails = null; + + /** + * Request to update the properties of a Grid Infrastructure Home. + * @param updateGiHomeDetails the value to set + * @return this builder instance + */ + public Builder updateGiHomeDetails( + com.oracle.bmc.database.model.UpdateGiHomeDetails updateGiHomeDetails) { + this.updateGiHomeDetails = updateGiHomeDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match} + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(UpdateGiHomeRequest o) { + giHomeId(o.getGiHomeId()); + updateGiHomeDetails(o.getUpdateGiHomeDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateGiHomeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateGiHomeRequest + */ + public UpdateGiHomeRequest build() { + UpdateGiHomeRequest 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.database.model.UpdateGiHomeDetails body) { + updateGiHomeDetails(body); + return this; + } + + /** + * Build the instance of UpdateGiHomeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateGiHomeRequest + */ + public UpdateGiHomeRequest buildWithoutInvocationCallback() { + UpdateGiHomeRequest request = new UpdateGiHomeRequest(); + request.giHomeId = giHomeId; + request.updateGiHomeDetails = updateGiHomeDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateGiHomeRequest(giHomeId, updateGiHomeDetails, 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() + .giHomeId(giHomeId) + .updateGiHomeDetails(updateGiHomeDetails) + .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(",giHomeId=").append(String.valueOf(this.giHomeId)); + sb.append(",updateGiHomeDetails=").append(String.valueOf(this.updateGiHomeDetails)); + 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 UpdateGiHomeRequest)) { + return false; + } + + UpdateGiHomeRequest other = (UpdateGiHomeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.giHomeId, other.giHomeId) + && java.util.Objects.equals(this.updateGiHomeDetails, other.updateGiHomeDetails) + && 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.giHomeId == null ? 43 : this.giHomeId.hashCode()); + result = + (result * PRIME) + + (this.updateGiHomeDetails == null + ? 43 + : this.updateGiHomeDetails.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-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.java new file mode 100644 index 00000000000..9f0453311dc --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateGiHomeResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class CreateGiHomeResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * 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 GiHome instance. + */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned GiHome instance. + * @return the value + */ + public com.oracle.bmc.database.model.GiHome getGiHome() { + return giHome; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "etag", + "opcRequestId", + "giHome" + }) + private CreateGiHomeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.GiHome giHome) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.etag = etag; + this.opcRequestId = opcRequestId; + this.giHome = giHome; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID 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; + } + + /** + * 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 GiHome instance. + */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned GiHome instance. + * @param giHome the value to set + * @return this builder + */ + public Builder giHome(com.oracle.bmc.database.model.GiHome giHome) { + this.giHome = giHome; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateGiHomeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + giHome(o.getGiHome()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CreateGiHomeResponse build() { + return new CreateGiHomeResponse( + __httpStatusCode__, headers, opcWorkRequestId, etag, opcRequestId, giHome); + } + } + + /** + * 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(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",giHome=").append(String.valueOf(giHome)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGiHomeResponse)) { + return false; + } + + CreateGiHomeResponse other = (CreateGiHomeResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.giHome, other.giHome); + } + + @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.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.giHome == null ? 43 : this.giHome.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.java similarity index 68% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java rename to bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.java index 544f8813eb7..c0e7cd2eb10 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteGiHomeResponse.java @@ -2,21 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; +package com.oracle.bmc.database.responses; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.database.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class DeleteGiHomeResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. * * @return the value */ @@ -25,15 +24,15 @@ public String getOpcWorkRequestId() { } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 */ @@ -47,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse( + private DeleteGiHomeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +72,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. * * @param opcWorkRequestId the value to set * @return this builder @@ -90,15 +89,15 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 @@ -112,8 +111,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse o) { + public Builder copy(DeleteGiHomeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -126,9 +124,8 @@ public Builder copy( * Build the response object. * @return the response object */ - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - build() { - return new UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse( + public DeleteGiHomeResponse build() { + return new DeleteGiHomeResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -157,14 +154,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o - instanceof - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse)) { + if (!(o instanceof DeleteGiHomeResponse)) { return false; } - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse other = - (UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse) o; + DeleteGiHomeResponse other = (DeleteGiHomeResponse) 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-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.java new file mode 100644 index 00000000000..ebb408e60b3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetGiHomeResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class GetGiHomeResponse 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 GiHome instance. + */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned GiHome instance. + * @return the value + */ + public com.oracle.bmc.database.model.GiHome getGiHome() { + return giHome; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "giHome" + }) + private GetGiHomeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.GiHome giHome) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.giHome = giHome; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 GiHome instance. + */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned GiHome instance. + * @param giHome the value to set + * @return this builder + */ + public Builder giHome(com.oracle.bmc.database.model.GiHome giHome) { + this.giHome = giHome; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetGiHomeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + giHome(o.getGiHome()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetGiHomeResponse build() { + return new GetGiHomeResponse(__httpStatusCode__, headers, etag, opcRequestId, giHome); + } + } + + /** + * 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(",giHome=").append(String.valueOf(giHome)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetGiHomeResponse)) { + return false; + } + + GetGiHomeResponse other = (GetGiHomeResponse) 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.giHome, other.giHome); + } + + @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.giHome == null ? 43 : this.giHome.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.java new file mode 100644 index 00000000000..b6324071beb --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAvailableMaintenanceWindowsResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListAvailableMaintenanceWindowsResponse 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 there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned AutonomousDatabaseMaintenanceWindowCollection instance. + */ + private com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection; + + /** + * The returned AutonomousDatabaseMaintenanceWindowCollection instance. + * @return the value + */ + public com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + getAutonomousDatabaseMaintenanceWindowCollection() { + return autonomousDatabaseMaintenanceWindowCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "autonomousDatabaseMaintenanceWindowCollection" + }) + private ListAvailableMaintenanceWindowsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.autonomousDatabaseMaintenanceWindowCollection = + autonomousDatabaseMaintenanceWindowCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned AutonomousDatabaseMaintenanceWindowCollection instance. + */ + private com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection; + + /** + * The returned AutonomousDatabaseMaintenanceWindowCollection instance. + * @param autonomousDatabaseMaintenanceWindowCollection the value to set + * @return this builder + */ + public Builder autonomousDatabaseMaintenanceWindowCollection( + com.oracle.bmc.database.model.AutonomousDatabaseMaintenanceWindowCollection + autonomousDatabaseMaintenanceWindowCollection) { + this.autonomousDatabaseMaintenanceWindowCollection = + autonomousDatabaseMaintenanceWindowCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAvailableMaintenanceWindowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + autonomousDatabaseMaintenanceWindowCollection( + o.getAutonomousDatabaseMaintenanceWindowCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAvailableMaintenanceWindowsResponse build() { + return new ListAvailableMaintenanceWindowsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + autonomousDatabaseMaintenanceWindowCollection); + } + } + + /** + * 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(",autonomousDatabaseMaintenanceWindowCollection=") + .append(String.valueOf(autonomousDatabaseMaintenanceWindowCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAvailableMaintenanceWindowsResponse)) { + return false; + } + + ListAvailableMaintenanceWindowsResponse other = (ListAvailableMaintenanceWindowsResponse) 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.autonomousDatabaseMaintenanceWindowCollection, + other.autonomousDatabaseMaintenanceWindowCollection); + } + + @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.autonomousDatabaseMaintenanceWindowCollection == null + ? 43 + : this.autonomousDatabaseMaintenanceWindowCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.java new file mode 100644 index 00000000000..c28c87e2137 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListGiHomesResponse.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.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class ListGiHomesResponse 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 there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned GiHomeCollection instance. + */ + private com.oracle.bmc.database.model.GiHomeCollection giHomeCollection; + + /** + * The returned GiHomeCollection instance. + * @return the value + */ + public com.oracle.bmc.database.model.GiHomeCollection getGiHomeCollection() { + return giHomeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "giHomeCollection" + }) + private ListGiHomesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.database.model.GiHomeCollection giHomeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.giHomeCollection = giHomeCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the {@code page} parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * The returned GiHomeCollection instance. + */ + private com.oracle.bmc.database.model.GiHomeCollection giHomeCollection; + + /** + * The returned GiHomeCollection instance. + * @param giHomeCollection the value to set + * @return this builder + */ + public Builder giHomeCollection( + com.oracle.bmc.database.model.GiHomeCollection giHomeCollection) { + this.giHomeCollection = giHomeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListGiHomesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + giHomeCollection(o.getGiHomeCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListGiHomesResponse build() { + return new ListGiHomesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, giHomeCollection); + } + } + + /** + * 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(",giHomeCollection=").append(String.valueOf(giHomeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListGiHomesResponse)) { + return false; + } + + ListGiHomesResponse other = (ListGiHomesResponse) 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.giHomeCollection, other.giHomeCollection); + } + + @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.giHomeCollection == null ? 43 : this.giHomeCollection.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.java new file mode 100644 index 00000000000..811ace214af --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateGiHomeResponse.java @@ -0,0 +1,206 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class UpdateGiHomeResponse 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 GiHome instance. + */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned GiHome instance. + * @return the value + */ + public com.oracle.bmc.database.model.GiHome getGiHome() { + return giHome; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "giHome" + }) + private UpdateGiHomeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.database.model.GiHome giHome) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.giHome = giHome; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 GiHome instance. + */ + private com.oracle.bmc.database.model.GiHome giHome; + + /** + * The returned GiHome instance. + * @param giHome the value to set + * @return this builder + */ + public Builder giHome(com.oracle.bmc.database.model.GiHome giHome) { + this.giHome = giHome; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateGiHomeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + giHome(o.getGiHome()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateGiHomeResponse build() { + return new UpdateGiHomeResponse( + __httpStatusCode__, headers, etag, opcRequestId, giHome); + } + } + + /** + * 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(",giHome=").append(String.valueOf(giHome)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateGiHomeResponse)) { + return false; + } + + UpdateGiHomeResponse other = (UpdateGiHomeResponse) 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.giHome, other.giHome); + } + + @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.giHome == null ? 43 : this.giHome.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 91bf739293a..3713fdc9aa6 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-databasemanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 91bbeacc626..b6337327257 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-databasemigration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java index 9e0830cd89b..39c6eb8adc5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java @@ -393,6 +393,20 @@ DeleteParameterFileVersionResponse deleteParameterFileVersion( */ GetConnectionResponse getConnection(GetConnectionRequest request); + /** + * Returns availability and report status information used by the Data Verification UI. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetDataVerificationDetail API. + */ + GetDataVerificationDetailResponse getDataVerificationDetail( + GetDataVerificationDetailRequest request); + /** * Get a migration job. * @@ -590,6 +604,52 @@ ListAssessmentObjectTypesResponse listAssessmentObjectTypes( */ ListConnectionsResponse listConnections(ListConnectionsRequest request); + /** + * Lists per-object status comparison results for a migration. + *

+ * The `objectType` filter is a database-specific string and is validated by the backend. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDataVerificationObjectStatuses API. + */ + ListDataVerificationObjectStatusesResponse listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request); + + /** + * Lists object type count comparison results for a migration. + *

+ * The `objectType` filter is a database-specific string and is validated by the backend. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDataVerificationObjectTypeCounts API. + */ + ListDataVerificationObjectTypeCountsResponse listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request); + + /** + * Lists table row count comparison results for a migration. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListDataVerificationTableRowCounts API. + */ + ListDataVerificationTableRowCountsResponse listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request); + /** * List supported Database Types, Sub-types and Versions. * @param request The request object containing the details to send @@ -854,6 +914,19 @@ PerformAssessorCheckActionResponse performAssessorCheckAction( */ RetrieveSupportedPhasesResponse retrieveSupportedPhases(RetrieveSupportedPhasesRequest request); + /** + * Runs Data Verification for a migration and returns the updated Data Verification summary. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RunDataVerification API. + */ + RunDataVerificationResponse runDataVerification(RunDataVerificationRequest request); + /** * Start Migration job. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java index 88e75c48456..01f254880ef 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java @@ -468,6 +468,23 @@ java.util.concurrent.Future getConnection( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Returns availability and report status information used by the Data Verification UI. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + handler); + /** * Get a migration job. * @@ -716,6 +733,67 @@ java.util.concurrent.Future listConnections( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists per-object status comparison results for a migration. + *

+ * The `objectType` filter is a database-specific string and is validated by the backend. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse> + handler); + + /** + * Lists object type count comparison results for a migration. + *

+ * The `objectType` filter is a database-specific string and is validated by the backend. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse> + handler); + + /** + * Lists table row count comparison results for a migration. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse> + handler); + /** * List supported Database Types, Sub-types and Versions. * @@ -1051,6 +1129,23 @@ java.util.concurrent.Future retrieveSupportedPh RetrieveSupportedPhasesRequest, RetrieveSupportedPhasesResponse> handler); + /** + * Runs Data Verification for a migration and returns the updated Data Verification summary. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future runDataVerification( + RunDataVerificationRequest request, + com.oracle.bmc.responses.AsyncHandler< + RunDataVerificationRequest, RunDataVerificationResponse> + handler); + /** * Start Migration job. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java index a0c11dcab25..1cadf9db543 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java @@ -1704,6 +1704,55 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getDataVerificationDetail( + GetDataVerificationDetailRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + handler) { + LOG.trace("Called async getDataVerificationDetail"); + final GetDataVerificationDetailRequest interceptedRequest = + GetDataVerificationDetailConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataVerificationDetailConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "GetDataVerificationDetail", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationDetail/GetDataVerificationDetail"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDataVerificationDetailResponse> + transformer = + GetDataVerificationDetailConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDataVerificationDetailRequest, + GetDataVerificationDetailResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getJob( GetJobRequest request, @@ -2391,6 +2440,166 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse> + handler) { + LOG.trace("Called async listDataVerificationObjectStatuses"); + final ListDataVerificationObjectStatusesRequest interceptedRequest = + ListDataVerificationObjectStatusesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataVerificationObjectStatusesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "ListDataVerificationObjectStatuses", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectStatusCollection/ListDataVerificationObjectStatuses"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDataVerificationObjectStatusesResponse> + transformer = + ListDataVerificationObjectStatusesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse> + handler) { + LOG.trace("Called async listDataVerificationObjectTypeCounts"); + final ListDataVerificationObjectTypeCountsRequest interceptedRequest = + ListDataVerificationObjectTypeCountsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataVerificationObjectTypeCountsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "ListDataVerificationObjectTypeCounts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectTypeCountCollection/ListDataVerificationObjectTypeCounts"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDataVerificationObjectTypeCountsResponse> + transformer = + ListDataVerificationObjectTypeCountsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse> + handler) { + LOG.trace("Called async listDataVerificationTableRowCounts"); + final ListDataVerificationTableRowCountsRequest interceptedRequest = + ListDataVerificationTableRowCountsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataVerificationTableRowCountsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "ListDataVerificationTableRowCounts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationTableRowCountCollection/ListDataVerificationTableRowCounts"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDataVerificationTableRowCountsResponse> + transformer = + ListDataVerificationTableRowCountsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listDatabaseConnectionType( @@ -3370,6 +3579,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future runDataVerification( + RunDataVerificationRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RunDataVerificationRequest, RunDataVerificationResponse> + handler) { + LOG.trace("Called async runDataVerification"); + final RunDataVerificationRequest interceptedRequest = + RunDataVerificationConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RunDataVerificationConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "RunDataVerification", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RunDataVerification"); + final java.util.function.Function + transformer = + RunDataVerificationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RunDataVerificationRequest, RunDataVerificationResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RunDataVerificationRequest, RunDataVerificationResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRunDataVerificationDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RunDataVerificationRequest, RunDataVerificationResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future startMigration( StartMigrationRequest request, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java index a519d54313a..a861cc994ad 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java @@ -1547,6 +1547,44 @@ public GetConnectionResponse getConnection(GetConnectionRequest request) { }); } + @Override + public GetDataVerificationDetailResponse getDataVerificationDetail( + GetDataVerificationDetailRequest request) { + LOG.trace("Called getDataVerificationDetail"); + final GetDataVerificationDetailRequest interceptedRequest = + GetDataVerificationDetailConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDataVerificationDetailConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "GetDataVerificationDetail", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationDetail/GetDataVerificationDetail"); + java.util.function.Function + transformer = + GetDataVerificationDetailConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetJobResponse getJob(GetJobRequest request) { LOG.trace("Called getJob"); @@ -2094,6 +2132,124 @@ public ListConnectionsResponse listConnections(ListConnectionsRequest request) { }); } + @Override + public ListDataVerificationObjectStatusesResponse listDataVerificationObjectStatuses( + ListDataVerificationObjectStatusesRequest request) { + LOG.trace("Called listDataVerificationObjectStatuses"); + final ListDataVerificationObjectStatusesRequest interceptedRequest = + ListDataVerificationObjectStatusesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataVerificationObjectStatusesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "ListDataVerificationObjectStatuses", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectStatusCollection/ListDataVerificationObjectStatuses"); + java.util.function.Function< + javax.ws.rs.core.Response, ListDataVerificationObjectStatusesResponse> + transformer = + ListDataVerificationObjectStatusesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDataVerificationObjectTypeCountsResponse listDataVerificationObjectTypeCounts( + ListDataVerificationObjectTypeCountsRequest request) { + LOG.trace("Called listDataVerificationObjectTypeCounts"); + final ListDataVerificationObjectTypeCountsRequest interceptedRequest = + ListDataVerificationObjectTypeCountsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataVerificationObjectTypeCountsConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "ListDataVerificationObjectTypeCounts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationObjectTypeCountCollection/ListDataVerificationObjectTypeCounts"); + java.util.function.Function< + javax.ws.rs.core.Response, ListDataVerificationObjectTypeCountsResponse> + transformer = + ListDataVerificationObjectTypeCountsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDataVerificationTableRowCountsResponse listDataVerificationTableRowCounts( + ListDataVerificationTableRowCountsRequest request) { + LOG.trace("Called listDataVerificationTableRowCounts"); + final ListDataVerificationTableRowCountsRequest interceptedRequest = + ListDataVerificationTableRowCountsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataVerificationTableRowCountsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "ListDataVerificationTableRowCounts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/DataVerificationTableRowCountCollection/ListDataVerificationTableRowCounts"); + java.util.function.Function< + javax.ws.rs.core.Response, ListDataVerificationTableRowCountsResponse> + transformer = + ListDataVerificationTableRowCountsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListDatabaseConnectionTypeResponse listDatabaseConnectionType( ListDatabaseConnectionTypeRequest request) { @@ -2866,6 +3022,48 @@ public RetrieveSupportedPhasesResponse retrieveSupportedPhases( }); } + @Override + public RunDataVerificationResponse runDataVerification(RunDataVerificationRequest request) { + LOG.trace("Called runDataVerification"); + final RunDataVerificationRequest interceptedRequest = + RunDataVerificationConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RunDataVerificationConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseMigration", + "RunDataVerification", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RunDataVerification"); + java.util.function.Function + transformer = + RunDataVerificationConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRunDataVerificationDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public StartMigrationResponse startMigration(StartMigrationRequest request) { LOG.trace("Called startMigration"); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java index c29d26ac6d0..72d97b67f42 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java @@ -844,6 +844,396 @@ public ListConnectionsResponse apply(ListConnectionsRequest request) { }); } + /** + * Creates a new iterable which will iterate over the responses received from the listDataVerificationObjectStatuses operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listDataVerificationObjectStatusesResponseIterator( + final ListDataVerificationObjectStatusesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataVerificationObjectStatusesRequest.Builder, + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>( + new java.util.function.Supplier< + ListDataVerificationObjectStatusesRequest.Builder>() { + @Override + public ListDataVerificationObjectStatusesRequest.Builder get() { + return ListDataVerificationObjectStatusesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesResponse, String>() { + @Override + public String apply(ListDataVerificationObjectStatusesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.Builder>, + ListDataVerificationObjectStatusesRequest>() { + @Override + public ListDataVerificationObjectStatusesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>() { + @Override + public ListDataVerificationObjectStatusesResponse apply( + ListDataVerificationObjectStatusesRequest request) { + return client.listDataVerificationObjectStatuses(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusSummary} objects + * contained in responses from the listDataVerificationObjectStatuses operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataVerificationObjectStatusesRecordIterator( + final ListDataVerificationObjectStatusesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataVerificationObjectStatusesRequest.Builder, + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse, + com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusSummary>( + new java.util.function.Supplier< + ListDataVerificationObjectStatusesRequest.Builder>() { + @Override + public ListDataVerificationObjectStatusesRequest.Builder get() { + return ListDataVerificationObjectStatusesRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesResponse, String>() { + @Override + public String apply(ListDataVerificationObjectStatusesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.Builder>, + ListDataVerificationObjectStatusesRequest>() { + @Override + public ListDataVerificationObjectStatusesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectStatusesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesRequest, + ListDataVerificationObjectStatusesResponse>() { + @Override + public ListDataVerificationObjectStatusesResponse apply( + ListDataVerificationObjectStatusesRequest request) { + return client.listDataVerificationObjectStatuses(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectStatusesResponse, + java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusSummary> + apply(ListDataVerificationObjectStatusesResponse response) { + return response.getDataVerificationObjectStatusCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDataVerificationObjectTypeCounts operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listDataVerificationObjectTypeCountsResponseIterator( + final ListDataVerificationObjectTypeCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataVerificationObjectTypeCountsRequest.Builder, + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>( + new java.util.function.Supplier< + ListDataVerificationObjectTypeCountsRequest.Builder>() { + @Override + public ListDataVerificationObjectTypeCountsRequest.Builder get() { + return ListDataVerificationObjectTypeCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsResponse, String>() { + @Override + public String apply(ListDataVerificationObjectTypeCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.Builder>, + ListDataVerificationObjectTypeCountsRequest>() { + @Override + public ListDataVerificationObjectTypeCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>() { + @Override + public ListDataVerificationObjectTypeCountsResponse apply( + ListDataVerificationObjectTypeCountsRequest request) { + return client.listDataVerificationObjectTypeCounts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountSummary} objects + * contained in responses from the listDataVerificationObjectTypeCounts operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataVerificationObjectTypeCountsRecordIterator( + final ListDataVerificationObjectTypeCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataVerificationObjectTypeCountsRequest.Builder, + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse, + com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountSummary>( + new java.util.function.Supplier< + ListDataVerificationObjectTypeCountsRequest.Builder>() { + @Override + public ListDataVerificationObjectTypeCountsRequest.Builder get() { + return ListDataVerificationObjectTypeCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsResponse, String>() { + @Override + public String apply(ListDataVerificationObjectTypeCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.Builder>, + ListDataVerificationObjectTypeCountsRequest>() { + @Override + public ListDataVerificationObjectTypeCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationObjectTypeCountsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsRequest, + ListDataVerificationObjectTypeCountsResponse>() { + @Override + public ListDataVerificationObjectTypeCountsResponse apply( + ListDataVerificationObjectTypeCountsRequest request) { + return client.listDataVerificationObjectTypeCounts(request); + } + }, + new java.util.function.Function< + ListDataVerificationObjectTypeCountsResponse, + java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountSummary> + apply(ListDataVerificationObjectTypeCountsResponse response) { + return response.getDataVerificationObjectTypeCountCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listDataVerificationTableRowCounts operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listDataVerificationTableRowCountsResponseIterator( + final ListDataVerificationTableRowCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataVerificationTableRowCountsRequest.Builder, + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>( + new java.util.function.Supplier< + ListDataVerificationTableRowCountsRequest.Builder>() { + @Override + public ListDataVerificationTableRowCountsRequest.Builder get() { + return ListDataVerificationTableRowCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsResponse, String>() { + @Override + public String apply(ListDataVerificationTableRowCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.Builder>, + ListDataVerificationTableRowCountsRequest>() { + @Override + public ListDataVerificationTableRowCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>() { + @Override + public ListDataVerificationTableRowCountsResponse apply( + ListDataVerificationTableRowCountsRequest request) { + return client.listDataVerificationTableRowCounts(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountSummary} objects + * contained in responses from the listDataVerificationTableRowCounts operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountSummary} objects + * contained in responses received from the service. + */ + public Iterable + listDataVerificationTableRowCountsRecordIterator( + final ListDataVerificationTableRowCountsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataVerificationTableRowCountsRequest.Builder, + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse, + com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountSummary>( + new java.util.function.Supplier< + ListDataVerificationTableRowCountsRequest.Builder>() { + @Override + public ListDataVerificationTableRowCountsRequest.Builder get() { + return ListDataVerificationTableRowCountsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsResponse, String>() { + @Override + public String apply(ListDataVerificationTableRowCountsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.Builder>, + ListDataVerificationTableRowCountsRequest>() { + @Override + public ListDataVerificationTableRowCountsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataVerificationTableRowCountsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsRequest, + ListDataVerificationTableRowCountsResponse>() { + @Override + public ListDataVerificationTableRowCountsResponse apply( + ListDataVerificationTableRowCountsRequest request) { + return client.listDataVerificationTableRowCounts(request); + } + }, + new java.util.function.Function< + ListDataVerificationTableRowCountsResponse, + java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountSummary> + apply(ListDataVerificationTableRowCountsResponse response) { + return response.getDataVerificationTableRowCountCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listDatabaseConnectionType operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java index b6f9e8b103d..9fb934a6e48 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java @@ -320,6 +320,120 @@ public boolean test(GetConnectionResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.databasemigration.model.DataVerificationDetail.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forDataVerificationDetail( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.databasemigration.model.DataVerificationDetail.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forDataVerificationDetail( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + GetDataVerificationDetailRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.databasemigration.model.DataVerificationDetail.LifecycleState... + targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forDataVerificationDetail( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for DataVerificationDetail. + private com.oracle.bmc.waiter.Waiter< + GetDataVerificationDetailRequest, GetDataVerificationDetailResponse> + forDataVerificationDetail( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDataVerificationDetailRequest request, + final com.oracle.bmc.databasemigration.model.DataVerificationDetail + .LifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.databasemigration.model.DataVerificationDetail + .LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetDataVerificationDetailRequest, + GetDataVerificationDetailResponse>() { + @Override + public GetDataVerificationDetailResponse apply( + GetDataVerificationDetailRequest request) { + return client.getDataVerificationDetail(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetDataVerificationDetailResponse response) { + return targetStatesSet.contains( + response.getDataVerificationDetail().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetDataVerificationDetailConverter.java similarity index 69% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetDataVerificationDetailConverter.java index b11e60a336d..6f9fe9d0028 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/GetDataVerificationDetailConverter.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.internal.http; +package com.oracle.bmc.databasemigration.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.databasemigration.requests.*; +import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class GetDataVerificationDetailConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(UpdateDistributedDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(GetDataVerificationDetailConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.UpdateDistributedDatabaseRequest + public static com.oracle.bmc.databasemigration.requests.GetDataVerificationDetailRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.UpdateDistributedDatabaseRequest + com.oracle.bmc.databasemigration.requests.GetDataVerificationDetailRequest request) { return request; @@ -29,22 +29,19 @@ public class UpdateDistributedDatabaseConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.UpdateDistributedDatabaseRequest - request) { + com.oracle.bmc.databasemigration.requests.GetDataVerificationDetailRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getUpdateDistributedDatabaseDetails(), - "updateDistributedDatabaseDetails is required"); + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20230518") + .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); + request.getMigrationId())) + .path("dataVerification") + .path("detail"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -66,69 +63,67 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse> + com.oracle.bmc.databasemigration.responses.GetDataVerificationDetailResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse> + com.oracle.bmc.databasemigration.responses.GetDataVerificationDetailResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse> + com.oracle.bmc.databasemigration.responses + .GetDataVerificationDetailResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse>() { + com.oracle.bmc.databasemigration.responses + .GetDataVerificationDetailResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse + public com.oracle.bmc.databasemigration.responses + .GetDataVerificationDetailResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.UpdateDistributedDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.databasemigration.responses.GetDataVerificationDetailResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase>> + com.oracle.bmc.databasemigration.model + .DataVerificationDetail>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase + com.oracle.bmc.databasemigration.model + .DataVerificationDetail .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase + com.oracle.bmc.databasemigration.model + .DataVerificationDetail .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase> + com.oracle.bmc.databasemigration.model + .DataVerificationDetail> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse.Builder + com.oracle.bmc.databasemigration.responses + .GetDataVerificationDetailResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse.builder() + com.oracle.bmc.databasemigration.responses + .GetDataVerificationDetailResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabase(response.getItem()); + builder.dataVerificationDetail(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -150,8 +145,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse + com.oracle.bmc.databasemigration.responses + .GetDataVerificationDetailResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectStatusesConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectStatusesConverter.java new file mode 100644 index 00000000000..716c18c5494 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectStatusesConverter.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.databasemigration.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.databasemigration.requests.*; +import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectStatusesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListDataVerificationObjectStatusesConverter.class); + + public static com.oracle.bmc.databasemigration.requests + .ListDataVerificationObjectStatusesRequest + interceptRequest( + com.oracle.bmc.databasemigration.requests + .ListDataVerificationObjectStatusesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasemigration.requests.ListDataVerificationObjectStatusesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230518") + .path("migrations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMigrationId())) + .path("dataVerification") + .path("objectStatuses"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getOwner() != null) { + target = + target.queryParam( + "owner", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOwner())); + } + + if (request.getObjectType() != null) { + target = + target.queryParam( + "objectType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getObjectType())); + } + + if (request.getFilter() != null) { + target = + target.queryParam( + "filter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFilter())); + } + + if (request.getIsMatch() != null) { + target = + target.queryParam( + "isMatch", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsMatch())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse>() { + @Override + public com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasemigration.responses.ListDataVerificationObjectStatusesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectStatusCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse.Builder + builder = + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dataVerificationObjectStatusCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectStatusesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectTypeCountsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectTypeCountsConverter.java new file mode 100644 index 00000000000..7024f8e30a5 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationObjectTypeCountsConverter.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.databasemigration.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.databasemigration.requests.*; +import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectTypeCountsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListDataVerificationObjectTypeCountsConverter.class); + + public static com.oracle.bmc.databasemigration.requests + .ListDataVerificationObjectTypeCountsRequest + interceptRequest( + com.oracle.bmc.databasemigration.requests + .ListDataVerificationObjectTypeCountsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasemigration.requests.ListDataVerificationObjectTypeCountsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230518") + .path("migrations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMigrationId())) + .path("dataVerification") + .path("objectTypeCounts"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getSchemaName() != null) { + target = + target.queryParam( + "schemaName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSchemaName())); + } + + if (request.getObjectType() != null) { + target = + target.queryParam( + "objectType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getObjectType())); + } + + if (request.getFilter() != null) { + target = + target.queryParam( + "filter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFilter())); + } + + if (request.getMinAbsDeltaPercent() != null) { + target = + target.queryParam( + "minAbsDeltaPercent", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMinAbsDeltaPercent())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse>() { + @Override + public com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasemigration.responses.ListDataVerificationObjectTypeCountsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemigration.model + .DataVerificationObjectTypeCountCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse + .Builder + builder = + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dataVerificationObjectTypeCountCollection( + response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasemigration.responses + .ListDataVerificationObjectTypeCountsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationTableRowCountsConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationTableRowCountsConverter.java new file mode 100644 index 00000000000..170287e29b4 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/ListDataVerificationTableRowCountsConverter.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.databasemigration.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.databasemigration.requests.*; +import com.oracle.bmc.databasemigration.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationTableRowCountsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListDataVerificationTableRowCountsConverter.class); + + public static com.oracle.bmc.databasemigration.requests + .ListDataVerificationTableRowCountsRequest + interceptRequest( + com.oracle.bmc.databasemigration.requests + .ListDataVerificationTableRowCountsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.databasemigration.requests.ListDataVerificationTableRowCountsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230518") + .path("migrations") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getMigrationId())) + .path("dataVerification") + .path("tableRowCounts"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getOwner() != null) { + target = + target.queryParam( + "owner", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOwner())); + } + + if (request.getTableName() != null) { + target = + target.queryParam( + "tableName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTableName())); + } + + if (request.getFilter() != null) { + target = + target.queryParam( + "filter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFilter())); + } + + if (request.getMinAbsDeltaPercent() != null) { + target = + target.queryParam( + "minAbsDeltaPercent", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMinAbsDeltaPercent())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse>() { + @Override + public com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.databasemigration.responses.ListDataVerificationTableRowCountsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.databasemigration.model + .DataVerificationTableRowCountCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse.Builder + builder = + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.dataVerificationTableRowCountCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.databasemigration.responses + .ListDataVerificationTableRowCountsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RunDataVerificationConverter.java similarity index 67% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RunDataVerificationConverter.java index fc940cbe436..f8cbbfa4a32 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/internal/http/RunDataVerificationConverter.java @@ -2,60 +2,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.distributeddatabasev26.internal.http; +package com.oracle.bmc.databasemigration.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.databasemigration.requests.*; +import com.oracle.bmc.databasemigration.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class RunDataVerificationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(RunDataVerificationConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRequest + public static com.oracle.bmc.databasemigration.requests.RunDataVerificationRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRequest - request) { + com.oracle.bmc.databasemigration.requests.RunDataVerificationRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRequest request) { + com.oracle.bmc.databasemigration.requests.RunDataVerificationRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Validate.notBlank(request.getMigrationId(), "migrationId must not be blank"); + Validate.notNull( + request.getRunDataVerificationDetails(), "runDataVerificationDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20230518") + .path("migrations") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); - - if (request.getMetadata() != null) { - target = - target.queryParam( - "metadata", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); - } + request.getMigrationId())) + .path("actions") + .path("runDataVerification"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getIfNoneMatch() != null) { - ib.header("if-none-match", request.getIfNoneMatch()); + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); } if (request.getOpcRequestId() != null) { @@ -70,67 +68,66 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseResponse> + com.oracle.bmc.databasemigration.responses.RunDataVerificationResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseResponse> + com.oracle.bmc.databasemigration.responses.RunDataVerificationResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse> + com.oracle.bmc.databasemigration.responses.RunDataVerificationResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse>() { + com.oracle.bmc.databasemigration.responses + .RunDataVerificationResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse + public com.oracle.bmc.databasemigration.responses + .RunDataVerificationResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.databasemigration.responses.RunDataVerificationResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase>> + com.oracle.bmc.databasemigration.model + .DataVerificationDetail>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase + com.oracle.bmc.databasemigration.model + .DataVerificationDetail .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase + com.oracle.bmc.databasemigration.model + .DataVerificationDetail .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase> + com.oracle.bmc.databasemigration.model + .DataVerificationDetail> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse.Builder + com.oracle.bmc.databasemigration.responses + .RunDataVerificationResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse.builder() + com.oracle.bmc.databasemigration.responses + .RunDataVerificationResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabase(response.getItem()); + builder.dataVerificationDetail(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -152,8 +149,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse + com.oracle.bmc.databasemigration.responses + .RunDataVerificationResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java new file mode 100644 index 00000000000..e3a40e2ea74 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleMigrationSettings.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Discriminator-only base clone settings for Oracle migration methods. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = CloneOracleMigrationSettings.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CloneOracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CloneOracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CloneOracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CloneOracleMigrationSettings + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CloneOracleMigrationSettings() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CloneOracleMigrationSettings("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CloneOracleMigrationSettings)) { + return false; + } + + CloneOracleMigrationSettings other = (CloneOracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..245b2e71b34 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOfflineLogicalMigrationSettings.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Clone settings for an offline logical Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CloneOracleOfflineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CloneOracleOfflineLogicalMigrationSettings extends CloneOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CloneOracleOfflineLogicalMigrationSettings build() { + CloneOracleOfflineLogicalMigrationSettings model = + new CloneOracleOfflineLogicalMigrationSettings(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CloneOracleOfflineLogicalMigrationSettings model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CloneOracleOfflineLogicalMigrationSettings() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CloneOracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CloneOracleOfflineLogicalMigrationSettings)) { + return false; + } + + CloneOracleOfflineLogicalMigrationSettings other = + (CloneOracleOfflineLogicalMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..23d0f8302ec --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Clone settings for an online logical Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CloneOracleOnlineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CloneOracleOnlineLogicalMigrationSettings extends CloneOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CloneOracleOnlineLogicalMigrationSettings build() { + CloneOracleOnlineLogicalMigrationSettings model = + new CloneOracleOnlineLogicalMigrationSettings( + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CloneOracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CloneOracleOnlineLogicalMigrationSettings(String sourceContainerDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CloneOracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CloneOracleOnlineLogicalMigrationSettings)) { + return false; + } + + CloneOracleOnlineLogicalMigrationSettings other = + (CloneOracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..69e8180de24 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneOracleOnlineStandbyMigrationSettings.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.databasemigration.model; + +/** + * Clone settings for an online standby Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CloneOracleOnlineStandbyMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CloneOracleOnlineStandbyMigrationSettings extends CloneOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CloneOracleOnlineStandbyMigrationSettings build() { + CloneOracleOnlineStandbyMigrationSettings model = + new CloneOracleOnlineStandbyMigrationSettings( + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CloneOracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CloneOracleOnlineStandbyMigrationSettings( + String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CloneOracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CloneOracleOnlineStandbyMigrationSettings)) { + return false; + } + + CloneOracleOnlineStandbyMigrationSettings other = + (CloneOracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java index c64cc82a638..edc45864c46 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java @@ -6,6 +6,9 @@ /** * Create Migration resource parameters. + * Deprecated: The parent-level Oracle migration configuration properties on this model are deprecated. + * Use {@code migrationSettings} instead. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -109,6 +112,15 @@ public Builder assessmentId(String assessmentId) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private CreateOracleMigrationSettings migrationSettings; + + public Builder migrationSettings(CreateOracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -276,6 +288,7 @@ public CreateOracleMigrationDetails build() { this.freeformTags, this.definedTags, this.assessmentId, + this.migrationSettings, this.dataTransferMediumDetails, this.initialLoadSettings, this.advisorSettings, @@ -322,6 +335,9 @@ public Builder copy(CreateOracleMigrationDetails model) { if (model.wasPropertyExplicitlySet("assessmentId")) { this.assessmentId(model.getAssessmentId()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); } @@ -383,6 +399,7 @@ public CreateOracleMigrationDetails( java.util.Map freeformTags, java.util.Map> definedTags, String assessmentId, + CreateOracleMigrationSettings migrationSettings, CreateOracleDataTransferMediumDetails dataTransferMediumDetails, CreateOracleInitialLoadSettings initialLoadSettings, CreateOracleAdvisorSettings advisorSettings, @@ -404,6 +421,7 @@ public CreateOracleMigrationDetails( freeformTags, definedTags, assessmentId); + this.migrationSettings = migrationSettings; this.dataTransferMediumDetails = dataTransferMediumDetails; this.initialLoadSettings = initialLoadSettings; this.advisorSettings = advisorSettings; @@ -417,6 +435,13 @@ public CreateOracleMigrationDetails( this.bulkIncludeExcludeData = bulkIncludeExcludeData; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final CreateOracleMigrationSettings migrationSettings; + + public CreateOracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -558,6 +583,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateOracleMigrationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", dataTransferMediumDetails=") .append(String.valueOf(this.dataTransferMediumDetails)); sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); @@ -586,7 +612,8 @@ public boolean equals(Object o) { } CreateOracleMigrationDetails other = (CreateOracleMigrationDetails) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.dataTransferMediumDetails, other.dataTransferMediumDetails) && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) @@ -610,6 +637,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.dataTransferMediumDetails == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java new file mode 100644 index 00000000000..dcd314a82f6 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationSettings.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Discriminator-only base create settings for Oracle migration methods. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = CreateOracleMigrationSettings.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateOracleMigrationSettings + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOracleMigrationSettings() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleMigrationSettings("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleMigrationSettings)) { + return false; + } + + CreateOracleMigrationSettings other = (CreateOracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..eb4dec2bd9f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOfflineLogicalMigrationSettings.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Create settings for an offline logical Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleOfflineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOracleOfflineLogicalMigrationSettings + extends CreateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + **/ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * @param includeObjects the value to set + * @return this builder + **/ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + **/ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleOfflineLogicalMigrationSettings build() { + CreateOracleOfflineLogicalMigrationSettings model = + new CreateOracleOfflineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.advancedParameters, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleOfflineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleOfflineLogicalMigrationSettings( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + java.util.List advancedParameters, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.advancedParameters = advancedParameters; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + **/ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * @return the value + **/ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + * @return the value + **/ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleOfflineLogicalMigrationSettings)) { + return false; + } + + CreateOracleOfflineLogicalMigrationSettings other = + (CreateOracleOfflineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..70d0858f544 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,476 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Create settings for an online logical Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleOnlineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOracleOnlineLogicalMigrationSettings + extends CreateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private CreateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(CreateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private CreateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(CreateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + **/ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * @param includeObjects the value to set + * @return this builder + **/ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + **/ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleOnlineLogicalMigrationSettings build() { + CreateOracleOnlineLogicalMigrationSettings model = + new CreateOracleOnlineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleOnlineLogicalMigrationSettings( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + CreateGoldenGateHubDetails hubDetails, + CreateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final CreateGoldenGateHubDetails hubDetails; + + public CreateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final CreateOracleGgsDeploymentDetails ggsDetails; + + public CreateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + **/ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * @return the value + **/ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + * @return the value + **/ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleOnlineLogicalMigrationSettings)) { + return false; + } + + CreateOracleOnlineLogicalMigrationSettings other = + (CreateOracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..e9feea522d4 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleOnlineStandbyMigrationSettings.java @@ -0,0 +1,523 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Create settings for an online standby Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleOnlineStandbyMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateOracleOnlineStandbyMigrationSettings + extends CreateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private CreateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(CreateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private CreateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(CreateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + **/ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * @param includeObjects the value to set + * @return this builder + **/ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + **/ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleOnlineStandbyMigrationSettings build() { + CreateOracleOnlineStandbyMigrationSettings model = + new CreateOracleOnlineStandbyMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleOnlineStandbyMigrationSettings( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + CreateGoldenGateHubDetails hubDetails, + CreateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId, + String sourceStandbyDatabaseConnectionId, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final CreateGoldenGateHubDetails hubDetails; + + public CreateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final CreateOracleGgsDeploymentDetails ggsDetails; + + public CreateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + **/ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * @return the value + **/ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. + * The definition accepts input in a CSV format, newline separated for each entry. + * More details can be found in the documentation. + * + * @return the value + **/ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleOnlineStandbyMigrationSettings)) { + return false; + } + + CreateOracleOnlineStandbyMigrationSettings other = + (CreateOracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java new file mode 100644 index 00000000000..a814e691218 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataVerificationDetail.java @@ -0,0 +1,492 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Summary/status information used to enable and drive the Data Verification UI. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataVerificationDetail.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DataVerificationDetail + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "migrationId", + "lifecycleState", + "timeStarted", + "timeUpdated", + "timeCompleted", + "lifecycleDetails", + "timeCreated" + }) + public DataVerificationDetail( + String migrationId, + LifecycleState lifecycleState, + java.util.Date timeStarted, + java.util.Date timeUpdated, + java.util.Date timeCompleted, + String lifecycleDetails, + java.util.Date timeCreated) { + super(); + this.migrationId = migrationId; + this.lifecycleState = lifecycleState; + this.timeStarted = timeStarted; + this.timeUpdated = timeUpdated; + this.timeCompleted = timeCompleted; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("migrationId") + private String migrationId; + + /** + * The OCID of the resource being referenced. + * @param migrationId the value to set + * @return this builder + **/ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + this.__explicitlySet__.add("migrationId"); + return this; + } + /** + * Overall lifecycle state of Data Verification generation for the migration. + * This is a single, feature-level state (all Data Verification reports are generated as one batch). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Overall lifecycle state of Data Verification generation for the migration. + * This is a single, feature-level state (all Data Verification reports are generated as one batch). + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") + private java.util.Date timeStarted; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @param timeStarted the value to set + * @return this builder + **/ + public Builder timeStarted(java.util.Date timeStarted) { + this.timeStarted = timeStarted; + this.__explicitlySet__.add("timeStarted"); + return this; + } + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCompleted") + private java.util.Date timeCompleted; + + /** + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. + * + * @param timeCompleted the value to set + * @return this builder + **/ + public Builder timeCompleted(java.util.Date timeCompleted) { + this.timeCompleted = timeCompleted; + this.__explicitlySet__.add("timeCompleted"); + return this; + } + /** + * A human-readable string that provides more details about the current lifecycle state. + *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

+ * A negative value indicates that the target has rows not present in the source, + * which should be treated as an inconsistency (i.e., a failed comparison/report result). + * + * @return the value + **/ + public Double getVariancePercent() { + return variancePercent; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataVerificationTableRowCountSummary("); + sb.append("super=").append(super.toString()); + sb.append("owner=").append(String.valueOf(this.owner)); + sb.append(", tableName=").append(String.valueOf(this.tableName)); + sb.append(", sourceRowCount=").append(String.valueOf(this.sourceRowCount)); + sb.append(", targetRowCount=").append(String.valueOf(this.targetRowCount)); + sb.append(", variancePercent=").append(String.valueOf(this.variancePercent)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataVerificationTableRowCountSummary)) { + return false; + } + + DataVerificationTableRowCountSummary other = (DataVerificationTableRowCountSummary) o; + return java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.tableName, other.tableName) + && java.util.Objects.equals(this.sourceRowCount, other.sourceRowCount) + && java.util.Objects.equals(this.targetRowCount, other.targetRowCount) + && java.util.Objects.equals(this.variancePercent, other.variancePercent) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.tableName == null ? 43 : this.tableName.hashCode()); + result = + (result * PRIME) + + (this.sourceRowCount == null ? 43 : this.sourceRowCount.hashCode()); + result = + (result * PRIME) + + (this.targetRowCount == null ? 43 : this.targetRowCount.hashCode()); + result = + (result * PRIME) + + (this.variancePercent == null ? 43 : this.variancePercent.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.java index e20cb94743e..a56875c1bb8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DefaultRunDataVerificationDetails.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.databasemigration.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. + * Default (and currently only) Run Data Verification details. + * Use this type to run Data Verification with the service default options. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -16,33 +16,25 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchRemoveInstruction.Builder.class + builder = DefaultRunDataVerificationDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "operation" + property = "type" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchRemoveInstruction extends PatchInstruction { +public final class DefaultRunDataVerificationDetails extends RunDataVerificationDetails { @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 DefaultRunDataVerificationDetails build() { + DefaultRunDataVerificationDetails model = new DefaultRunDataVerificationDetails(); 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(DefaultRunDataVerificationDetails model) { return this; } } @@ -70,8 +59,8 @@ public Builder toBuilder() { } @Deprecated - public PatchRemoveInstruction(String selection) { - super(selection); + public DefaultRunDataVerificationDetails() { + super(); } @Override @@ -86,7 +75,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchRemoveInstruction("); + sb.append("DefaultRunDataVerificationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(")"); return sb.toString(); @@ -97,11 +86,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchRemoveInstruction)) { + if (!(o instanceof DefaultRunDataVerificationDetails)) { return false; } - PatchRemoveInstruction other = (PatchRemoveInstruction) o; + DefaultRunDataVerificationDetails other = (DefaultRunDataVerificationDetails) o; return super.equals(other); } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.java new file mode 100644 index 00000000000..2f8a9377dbf --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectStatusSummary.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.databasemigration.model; + +/** + * Per-object status comparison line for MySQL migrations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDataVerificationObjectStatusSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MySqlDataVerificationObjectStatusSummary + extends DataVerificationObjectStatusSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInSource") + private String statusInSource; + + public Builder statusInSource(String statusInSource) { + this.statusInSource = statusInSource; + this.__explicitlySet__.add("statusInSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInTarget") + private String statusInTarget; + + public Builder statusInTarget(String statusInTarget) { + this.statusInTarget = statusInTarget; + this.__explicitlySet__.add("statusInTarget"); + return this; + } + /** + * MySQL database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * @param objectType the value to set + * @return this builder + **/ + public Builder objectType(MySqlDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDataVerificationObjectStatusSummary build() { + MySqlDataVerificationObjectStatusSummary model = + new MySqlDataVerificationObjectStatusSummary( + this.owner, + this.objectName, + this.statusInSource, + this.statusInTarget, + this.objectType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDataVerificationObjectStatusSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("statusInSource")) { + this.statusInSource(model.getStatusInSource()); + } + if (model.wasPropertyExplicitlySet("statusInTarget")) { + this.statusInTarget(model.getStatusInTarget()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlDataVerificationObjectStatusSummary( + String owner, + String objectName, + String statusInSource, + String statusInTarget, + MySqlDatabaseObjectTypes objectType) { + super(owner, objectName, statusInSource, statusInTarget); + this.objectType = objectType; + } + + /** + * MySQL database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * @return the value + **/ + public MySqlDatabaseObjectTypes getObjectType() { + return objectType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDataVerificationObjectStatusSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDataVerificationObjectStatusSummary)) { + return false; + } + + MySqlDataVerificationObjectStatusSummary other = + (MySqlDataVerificationObjectStatusSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.java new file mode 100644 index 00000000000..da34472467b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationObjectTypeCountSummary.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.databasemigration.model; + +/** + * Object type count comparison summary line for MySQL migrations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDataVerificationObjectTypeCountSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MySqlDataVerificationObjectTypeCountSummary + extends DataVerificationObjectTypeCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceObjectCount") + private Integer sourceObjectCount; + + public Builder sourceObjectCount(Integer sourceObjectCount) { + this.sourceObjectCount = sourceObjectCount; + this.__explicitlySet__.add("sourceObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetObjectCount") + private Integer targetObjectCount; + + public Builder targetObjectCount(Integer targetObjectCount) { + this.targetObjectCount = targetObjectCount; + this.__explicitlySet__.add("targetObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("deltaPercent") + private Double deltaPercent; + + public Builder deltaPercent(Double deltaPercent) { + this.deltaPercent = deltaPercent; + this.__explicitlySet__.add("deltaPercent"); + return this; + } + /** + * MySQL database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * @param objectType the value to set + * @return this builder + **/ + public Builder objectType(MySqlDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** + * Number of invalid objects in source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * @param sourceInvalidCount the value to set + * @return this builder + **/ + public Builder sourceInvalidCount(Integer sourceInvalidCount) { + this.sourceInvalidCount = sourceInvalidCount; + this.__explicitlySet__.add("sourceInvalidCount"); + return this; + } + /** + * Number of invalid objects in target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * @param targetInvalidCount the value to set + * @return this builder + **/ + public Builder targetInvalidCount(Integer targetInvalidCount) { + this.targetInvalidCount = targetInvalidCount; + this.__explicitlySet__.add("targetInvalidCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDataVerificationObjectTypeCountSummary build() { + MySqlDataVerificationObjectTypeCountSummary model = + new MySqlDataVerificationObjectTypeCountSummary( + this.schemaName, + this.sourceObjectCount, + this.targetObjectCount, + this.deltaPercent, + this.objectType, + this.sourceInvalidCount, + this.targetInvalidCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDataVerificationObjectTypeCountSummary model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("sourceObjectCount")) { + this.sourceObjectCount(model.getSourceObjectCount()); + } + if (model.wasPropertyExplicitlySet("targetObjectCount")) { + this.targetObjectCount(model.getTargetObjectCount()); + } + if (model.wasPropertyExplicitlySet("deltaPercent")) { + this.deltaPercent(model.getDeltaPercent()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("sourceInvalidCount")) { + this.sourceInvalidCount(model.getSourceInvalidCount()); + } + if (model.wasPropertyExplicitlySet("targetInvalidCount")) { + this.targetInvalidCount(model.getTargetInvalidCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlDataVerificationObjectTypeCountSummary( + String schemaName, + Integer sourceObjectCount, + Integer targetObjectCount, + Double deltaPercent, + MySqlDatabaseObjectTypes objectType, + Integer sourceInvalidCount, + Integer targetInvalidCount) { + super(schemaName, sourceObjectCount, targetObjectCount, deltaPercent); + this.objectType = objectType; + this.sourceInvalidCount = sourceInvalidCount; + this.targetInvalidCount = targetInvalidCount; + } + + /** + * MySQL database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final MySqlDatabaseObjectTypes objectType; + + /** + * MySQL database object type. + * @return the value + **/ + public MySqlDatabaseObjectTypes getObjectType() { + return objectType; + } + + /** + * Number of invalid objects in source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private final Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * @return the value + **/ + public Integer getSourceInvalidCount() { + return sourceInvalidCount; + } + + /** + * Number of invalid objects in target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private final Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * @return the value + **/ + public Integer getTargetInvalidCount() { + return targetInvalidCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDataVerificationObjectTypeCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", sourceInvalidCount=").append(String.valueOf(this.sourceInvalidCount)); + sb.append(", targetInvalidCount=").append(String.valueOf(this.targetInvalidCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDataVerificationObjectTypeCountSummary)) { + return false; + } + + MySqlDataVerificationObjectTypeCountSummary other = + (MySqlDataVerificationObjectTypeCountSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.sourceInvalidCount, other.sourceInvalidCount) + && java.util.Objects.equals(this.targetInvalidCount, other.targetInvalidCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.sourceInvalidCount == null + ? 43 + : this.sourceInvalidCount.hashCode()); + result = + (result * PRIME) + + (this.targetInvalidCount == null + ? 43 + : this.targetInvalidCount.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.java new file mode 100644 index 00000000000..29ed38c0db8 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataVerificationTableRowCountSummary.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.databasemigration.model; + +/** + * Table row count comparison result line for MySQL migrations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDataVerificationTableRowCountSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class MySqlDataVerificationTableRowCountSummary + extends DataVerificationTableRowCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private String tableName; + + public Builder tableName(String tableName) { + this.tableName = tableName; + this.__explicitlySet__.add("tableName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceRowCount") + private Integer sourceRowCount; + + public Builder sourceRowCount(Integer sourceRowCount) { + this.sourceRowCount = sourceRowCount; + this.__explicitlySet__.add("sourceRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetRowCount") + private Integer targetRowCount; + + public Builder targetRowCount(Integer targetRowCount) { + this.targetRowCount = targetRowCount; + this.__explicitlySet__.add("targetRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variancePercent") + private Double variancePercent; + + public Builder variancePercent(Double variancePercent) { + this.variancePercent = variancePercent; + this.__explicitlySet__.add("variancePercent"); + return this; + } + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @param timeLastSourceStatisticsCollection the value to set + * @return this builder + **/ + public Builder timeLastSourceStatisticsCollection( + java.util.Date timeLastSourceStatisticsCollection) { + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.__explicitlySet__.add("timeLastSourceStatisticsCollection"); + return this; + } + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @param timeLastTargetStatisticsCollection the value to set + * @return this builder + **/ + public Builder timeLastTargetStatisticsCollection( + java.util.Date timeLastTargetStatisticsCollection) { + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + this.__explicitlySet__.add("timeLastTargetStatisticsCollection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDataVerificationTableRowCountSummary build() { + MySqlDataVerificationTableRowCountSummary model = + new MySqlDataVerificationTableRowCountSummary( + this.owner, + this.tableName, + this.sourceRowCount, + this.targetRowCount, + this.variancePercent, + this.timeLastSourceStatisticsCollection, + this.timeLastTargetStatisticsCollection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDataVerificationTableRowCountSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("tableName")) { + this.tableName(model.getTableName()); + } + if (model.wasPropertyExplicitlySet("sourceRowCount")) { + this.sourceRowCount(model.getSourceRowCount()); + } + if (model.wasPropertyExplicitlySet("targetRowCount")) { + this.targetRowCount(model.getTargetRowCount()); + } + if (model.wasPropertyExplicitlySet("variancePercent")) { + this.variancePercent(model.getVariancePercent()); + } + if (model.wasPropertyExplicitlySet("timeLastSourceStatisticsCollection")) { + this.timeLastSourceStatisticsCollection( + model.getTimeLastSourceStatisticsCollection()); + } + if (model.wasPropertyExplicitlySet("timeLastTargetStatisticsCollection")) { + this.timeLastTargetStatisticsCollection( + model.getTimeLastTargetStatisticsCollection()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlDataVerificationTableRowCountSummary( + String owner, + String tableName, + Integer sourceRowCount, + Integer targetRowCount, + Double variancePercent, + java.util.Date timeLastSourceStatisticsCollection, + java.util.Date timeLastTargetStatisticsCollection) { + super(owner, tableName, sourceRowCount, targetRowCount, variancePercent); + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + } + + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private final java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @return the value + **/ + public java.util.Date getTimeLastSourceStatisticsCollection() { + return timeLastSourceStatisticsCollection; + } + + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private final java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @return the value + **/ + public java.util.Date getTimeLastTargetStatisticsCollection() { + return timeLastTargetStatisticsCollection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDataVerificationTableRowCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", timeLastSourceStatisticsCollection=") + .append(String.valueOf(this.timeLastSourceStatisticsCollection)); + sb.append(", timeLastTargetStatisticsCollection=") + .append(String.valueOf(this.timeLastTargetStatisticsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDataVerificationTableRowCountSummary)) { + return false; + } + + MySqlDataVerificationTableRowCountSummary other = + (MySqlDataVerificationTableRowCountSummary) o; + return java.util.Objects.equals( + this.timeLastSourceStatisticsCollection, + other.timeLastSourceStatisticsCollection) + && java.util.Objects.equals( + this.timeLastTargetStatisticsCollection, + other.timeLastTargetStatisticsCollection) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.timeLastSourceStatisticsCollection == null + ? 43 + : this.timeLastSourceStatisticsCollection.hashCode()); + result = + (result * PRIME) + + (this.timeLastTargetStatisticsCollection == null + ? 43 + : this.timeLastTargetStatisticsCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java new file mode 100644 index 00000000000..76042721b5b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectTypes.java @@ -0,0 +1,67 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * MySQL database object types used by Data Verification. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum MySqlDatabaseObjectTypes { + Table("TABLE"), + View("VIEW"), + Index("INDEX"), + Trigger("TRIGGER"), + Procedure("PROCEDURE"), + Function("FUNCTION"), + Event("EVENT"), + Database("DATABASE"), + Schema("SCHEMA"), + Tablespace("TABLESPACE"), + Server("SERVER"), + LogfileGroup("LOGFILE_GROUP"), + User("USER"), + Role("ROLE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MySqlDatabaseObjectTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MySqlDatabaseObjectTypes v : MySqlDatabaseObjectTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MySqlDatabaseObjectTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MySqlDatabaseObjectTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MySqlDatabaseObjectTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java index f195c8fe502..25bfdff3534 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java @@ -5,7 +5,10 @@ package com.oracle.bmc.databasemigration.model; /** - * Oracle Clone Migration Summary + * Oracle Clone Migration details. + * Deprecated: The parent-level Oracle clone configuration properties on this model are deprecated. + * Use {@code migrationSettings} instead. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -90,6 +93,15 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private CloneOracleMigrationSettings migrationSettings; + + public Builder migrationSettings(CloneOracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } /** * The OCID of the resource being referenced. **/ @@ -137,6 +149,7 @@ public OracleCloneMigrationDetails build() { this.assessmentId, this.freeformTags, this.definedTags, + this.migrationSettings, this.sourceContainerDatabaseConnectionId, this.sourceStandbyDatabaseConnectionId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -168,6 +181,9 @@ public Builder copy(OracleCloneMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { this.sourceContainerDatabaseConnectionId( model.getSourceContainerDatabaseConnectionId()); @@ -200,6 +216,7 @@ public OracleCloneMigrationDetails( String assessmentId, java.util.Map freeformTags, java.util.Map> definedTags, + CloneOracleMigrationSettings migrationSettings, String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { super( @@ -210,10 +227,18 @@ public OracleCloneMigrationDetails( assessmentId, freeformTags, definedTags); + this.migrationSettings = migrationSettings; this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final CloneOracleMigrationSettings migrationSettings; + + public CloneOracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + /** * The OCID of the resource being referenced. **/ @@ -256,6 +281,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleCloneMigrationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", sourceContainerDatabaseConnectionId=") .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", sourceStandbyDatabaseConnectionId=") @@ -274,7 +300,8 @@ public boolean equals(Object o) { } OracleCloneMigrationDetails other = (OracleCloneMigrationDetails) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.sourceContainerDatabaseConnectionId, other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( @@ -287,6 +314,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.sourceContainerDatabaseConnectionId == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.java new file mode 100644 index 00000000000..906c020a746 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectStatusSummary.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.databasemigration.model; + +/** + * Per-object status comparison line for Oracle migrations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDataVerificationObjectStatusSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleDataVerificationObjectStatusSummary + extends DataVerificationObjectStatusSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInSource") + private String statusInSource; + + public Builder statusInSource(String statusInSource) { + this.statusInSource = statusInSource; + this.__explicitlySet__.add("statusInSource"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("statusInTarget") + private String statusInTarget; + + public Builder statusInTarget(String statusInTarget) { + this.statusInTarget = statusInTarget; + this.__explicitlySet__.add("statusInTarget"); + return this; + } + /** + * Oracle database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * @param objectType the value to set + * @return this builder + **/ + public Builder objectType(OracleDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleDataVerificationObjectStatusSummary build() { + OracleDataVerificationObjectStatusSummary model = + new OracleDataVerificationObjectStatusSummary( + this.owner, + this.objectName, + this.statusInSource, + this.statusInTarget, + this.objectType); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleDataVerificationObjectStatusSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("statusInSource")) { + this.statusInSource(model.getStatusInSource()); + } + if (model.wasPropertyExplicitlySet("statusInTarget")) { + this.statusInTarget(model.getStatusInTarget()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleDataVerificationObjectStatusSummary( + String owner, + String objectName, + String statusInSource, + String statusInTarget, + OracleDatabaseObjectTypes objectType) { + super(owner, objectName, statusInSource, statusInTarget); + this.objectType = objectType; + } + + /** + * Oracle database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * @return the value + **/ + public OracleDatabaseObjectTypes getObjectType() { + return objectType; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleDataVerificationObjectStatusSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleDataVerificationObjectStatusSummary)) { + return false; + } + + OracleDataVerificationObjectStatusSummary other = + (OracleDataVerificationObjectStatusSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.java new file mode 100644 index 00000000000..4e52d19c127 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationObjectTypeCountSummary.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.databasemigration.model; + +/** + * Object type count comparison summary line for Oracle migrations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDataVerificationObjectTypeCountSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleDataVerificationObjectTypeCountSummary + extends DataVerificationObjectTypeCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("schemaName") + private String schemaName; + + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + this.__explicitlySet__.add("schemaName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceObjectCount") + private Integer sourceObjectCount; + + public Builder sourceObjectCount(Integer sourceObjectCount) { + this.sourceObjectCount = sourceObjectCount; + this.__explicitlySet__.add("sourceObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetObjectCount") + private Integer targetObjectCount; + + public Builder targetObjectCount(Integer targetObjectCount) { + this.targetObjectCount = targetObjectCount; + this.__explicitlySet__.add("targetObjectCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("deltaPercent") + private Double deltaPercent; + + public Builder deltaPercent(Double deltaPercent) { + this.deltaPercent = deltaPercent; + this.__explicitlySet__.add("deltaPercent"); + return this; + } + /** + * Oracle database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * @param objectType the value to set + * @return this builder + **/ + public Builder objectType(OracleDatabaseObjectTypes objectType) { + this.objectType = objectType; + this.__explicitlySet__.add("objectType"); + return this; + } + /** + * Number of invalid objects in source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * @param sourceInvalidCount the value to set + * @return this builder + **/ + public Builder sourceInvalidCount(Integer sourceInvalidCount) { + this.sourceInvalidCount = sourceInvalidCount; + this.__explicitlySet__.add("sourceInvalidCount"); + return this; + } + /** + * Number of invalid objects in target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * @param targetInvalidCount the value to set + * @return this builder + **/ + public Builder targetInvalidCount(Integer targetInvalidCount) { + this.targetInvalidCount = targetInvalidCount; + this.__explicitlySet__.add("targetInvalidCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleDataVerificationObjectTypeCountSummary build() { + OracleDataVerificationObjectTypeCountSummary model = + new OracleDataVerificationObjectTypeCountSummary( + this.schemaName, + this.sourceObjectCount, + this.targetObjectCount, + this.deltaPercent, + this.objectType, + this.sourceInvalidCount, + this.targetInvalidCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleDataVerificationObjectTypeCountSummary model) { + if (model.wasPropertyExplicitlySet("schemaName")) { + this.schemaName(model.getSchemaName()); + } + if (model.wasPropertyExplicitlySet("sourceObjectCount")) { + this.sourceObjectCount(model.getSourceObjectCount()); + } + if (model.wasPropertyExplicitlySet("targetObjectCount")) { + this.targetObjectCount(model.getTargetObjectCount()); + } + if (model.wasPropertyExplicitlySet("deltaPercent")) { + this.deltaPercent(model.getDeltaPercent()); + } + if (model.wasPropertyExplicitlySet("objectType")) { + this.objectType(model.getObjectType()); + } + if (model.wasPropertyExplicitlySet("sourceInvalidCount")) { + this.sourceInvalidCount(model.getSourceInvalidCount()); + } + if (model.wasPropertyExplicitlySet("targetInvalidCount")) { + this.targetInvalidCount(model.getTargetInvalidCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleDataVerificationObjectTypeCountSummary( + String schemaName, + Integer sourceObjectCount, + Integer targetObjectCount, + Double deltaPercent, + OracleDatabaseObjectTypes objectType, + Integer sourceInvalidCount, + Integer targetInvalidCount) { + super(schemaName, sourceObjectCount, targetObjectCount, deltaPercent); + this.objectType = objectType; + this.sourceInvalidCount = sourceInvalidCount; + this.targetInvalidCount = targetInvalidCount; + } + + /** + * Oracle database object type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectType") + private final OracleDatabaseObjectTypes objectType; + + /** + * Oracle database object type. + * @return the value + **/ + public OracleDatabaseObjectTypes getObjectType() { + return objectType; + } + + /** + * Number of invalid objects in source. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceInvalidCount") + private final Integer sourceInvalidCount; + + /** + * Number of invalid objects in source. + * @return the value + **/ + public Integer getSourceInvalidCount() { + return sourceInvalidCount; + } + + /** + * Number of invalid objects in target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetInvalidCount") + private final Integer targetInvalidCount; + + /** + * Number of invalid objects in target. + * @return the value + **/ + public Integer getTargetInvalidCount() { + return targetInvalidCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleDataVerificationObjectTypeCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectType=").append(String.valueOf(this.objectType)); + sb.append(", sourceInvalidCount=").append(String.valueOf(this.sourceInvalidCount)); + sb.append(", targetInvalidCount=").append(String.valueOf(this.targetInvalidCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleDataVerificationObjectTypeCountSummary)) { + return false; + } + + OracleDataVerificationObjectTypeCountSummary other = + (OracleDataVerificationObjectTypeCountSummary) o; + return java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.sourceInvalidCount, other.sourceInvalidCount) + && java.util.Objects.equals(this.targetInvalidCount, other.targetInvalidCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = + (result * PRIME) + + (this.sourceInvalidCount == null + ? 43 + : this.sourceInvalidCount.hashCode()); + result = + (result * PRIME) + + (this.targetInvalidCount == null + ? 43 + : this.targetInvalidCount.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.java new file mode 100644 index 00000000000..3b6ee593c18 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataVerificationTableRowCountSummary.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.databasemigration.model; + +/** + * Table row count comparison result line for Oracle migrations. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDataVerificationTableRowCountSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleDataVerificationTableRowCountSummary + extends DataVerificationTableRowCountSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("owner") + private String owner; + + public Builder owner(String owner) { + this.owner = owner; + this.__explicitlySet__.add("owner"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("tableName") + private String tableName; + + public Builder tableName(String tableName) { + this.tableName = tableName; + this.__explicitlySet__.add("tableName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceRowCount") + private Integer sourceRowCount; + + public Builder sourceRowCount(Integer sourceRowCount) { + this.sourceRowCount = sourceRowCount; + this.__explicitlySet__.add("sourceRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetRowCount") + private Integer targetRowCount; + + public Builder targetRowCount(Integer targetRowCount) { + this.targetRowCount = targetRowCount; + this.__explicitlySet__.add("targetRowCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("variancePercent") + private Double variancePercent; + + public Builder variancePercent(Double variancePercent) { + this.variancePercent = variancePercent; + this.__explicitlySet__.add("variancePercent"); + return this; + } + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @param timeLastSourceStatisticsCollection the value to set + * @return this builder + **/ + public Builder timeLastSourceStatisticsCollection( + java.util.Date timeLastSourceStatisticsCollection) { + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.__explicitlySet__.add("timeLastSourceStatisticsCollection"); + return this; + } + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @param timeLastTargetStatisticsCollection the value to set + * @return this builder + **/ + public Builder timeLastTargetStatisticsCollection( + java.util.Date timeLastTargetStatisticsCollection) { + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + this.__explicitlySet__.add("timeLastTargetStatisticsCollection"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleDataVerificationTableRowCountSummary build() { + OracleDataVerificationTableRowCountSummary model = + new OracleDataVerificationTableRowCountSummary( + this.owner, + this.tableName, + this.sourceRowCount, + this.targetRowCount, + this.variancePercent, + this.timeLastSourceStatisticsCollection, + this.timeLastTargetStatisticsCollection); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleDataVerificationTableRowCountSummary model) { + if (model.wasPropertyExplicitlySet("owner")) { + this.owner(model.getOwner()); + } + if (model.wasPropertyExplicitlySet("tableName")) { + this.tableName(model.getTableName()); + } + if (model.wasPropertyExplicitlySet("sourceRowCount")) { + this.sourceRowCount(model.getSourceRowCount()); + } + if (model.wasPropertyExplicitlySet("targetRowCount")) { + this.targetRowCount(model.getTargetRowCount()); + } + if (model.wasPropertyExplicitlySet("variancePercent")) { + this.variancePercent(model.getVariancePercent()); + } + if (model.wasPropertyExplicitlySet("timeLastSourceStatisticsCollection")) { + this.timeLastSourceStatisticsCollection( + model.getTimeLastSourceStatisticsCollection()); + } + if (model.wasPropertyExplicitlySet("timeLastTargetStatisticsCollection")) { + this.timeLastTargetStatisticsCollection( + model.getTimeLastTargetStatisticsCollection()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleDataVerificationTableRowCountSummary( + String owner, + String tableName, + Integer sourceRowCount, + Integer targetRowCount, + Double variancePercent, + java.util.Date timeLastSourceStatisticsCollection, + java.util.Date timeLastTargetStatisticsCollection) { + super(owner, tableName, sourceRowCount, targetRowCount, variancePercent); + this.timeLastSourceStatisticsCollection = timeLastSourceStatisticsCollection; + this.timeLastTargetStatisticsCollection = timeLastTargetStatisticsCollection; + } + + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastSourceStatisticsCollection") + private final java.util.Date timeLastSourceStatisticsCollection; + + /** + * Time of last statistics collection in the source used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @return the value + **/ + public java.util.Date getTimeLastSourceStatisticsCollection() { + return timeLastSourceStatisticsCollection; + } + + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastTargetStatisticsCollection") + private final java.util.Date timeLastTargetStatisticsCollection; + + /** + * Time of last statistics collection in the target used for the dictionary-based row count estimate. + * This value is reported per row because statistics can be collected at different times per object. + * This timestamp is stored in UTC. + * + * @return the value + **/ + public java.util.Date getTimeLastTargetStatisticsCollection() { + return timeLastTargetStatisticsCollection; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleDataVerificationTableRowCountSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", timeLastSourceStatisticsCollection=") + .append(String.valueOf(this.timeLastSourceStatisticsCollection)); + sb.append(", timeLastTargetStatisticsCollection=") + .append(String.valueOf(this.timeLastTargetStatisticsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleDataVerificationTableRowCountSummary)) { + return false; + } + + OracleDataVerificationTableRowCountSummary other = + (OracleDataVerificationTableRowCountSummary) o; + return java.util.Objects.equals( + this.timeLastSourceStatisticsCollection, + other.timeLastSourceStatisticsCollection) + && java.util.Objects.equals( + this.timeLastTargetStatisticsCollection, + other.timeLastTargetStatisticsCollection) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.timeLastSourceStatisticsCollection == null + ? 43 + : this.timeLastSourceStatisticsCollection.hashCode()); + result = + (result * PRIME) + + (this.timeLastTargetStatisticsCollection == null + ? 43 + : this.timeLastTargetStatisticsCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java new file mode 100644 index 00000000000..ee40b8b5159 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectTypes.java @@ -0,0 +1,86 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Oracle database object types used by Data Verification. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum OracleDatabaseObjectTypes { + Table("TABLE"), + Index("INDEX"), + View("VIEW"), + Sequence("SEQUENCE"), + Synonym("SYNONYM"), + Cluster("CLUSTER"), + Procedure("PROCEDURE"), + Function("FUNCTION"), + Package("PACKAGE"), + PackageBody("PACKAGE_BODY"), + Trigger("TRIGGER"), + User("USER"), + Role("ROLE"), + Profile("PROFILE"), + MaterializedView("MATERIALIZED_VIEW"), + Type("TYPE"), + TypeBody("TYPE_BODY"), + Operator("OPERATOR"), + Library("LIBRARY"), + Directory("DIRECTORY"), + Tablespace("TABLESPACE"), + DatabaseLink("DATABASE_LINK"), + Controlfile("CONTROLFILE"), + Datafile("DATAFILE"), + RedoLog("REDO_LOG"), + JavaClass("JAVA_CLASS"), + JavaSource("JAVA_SOURCE"), + JavaResource("JAVA_RESOURCE"), + XmlSchema("XML_SCHEMA"), + Queue("QUEUE"), + QueueTable("QUEUE_TABLE"), + Dimension("DIMENSION"), + Context("CONTEXT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OracleDatabaseObjectTypes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OracleDatabaseObjectTypes v : OracleDatabaseObjectTypes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OracleDatabaseObjectTypes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OracleDatabaseObjectTypes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OracleDatabaseObjectTypes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java index b288c5d2ff1..6f0a66488e6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java @@ -5,7 +5,10 @@ package com.oracle.bmc.databasemigration.model; /** - * Oracle Migration resource + * Oracle Migration resource. + * Deprecated: The parent-level Oracle migration configuration properties on this model are deprecated. + * Use {@code migrationSettings} instead. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -188,6 +191,15 @@ public Builder systemTags(java.util.Map> s return this; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private OracleMigrationSettings migrationSettings; + + public Builder migrationSettings(OracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private OracleDataTransferMediumDetails dataTransferMediumDetails; @@ -308,6 +320,7 @@ public OracleMigration build() { this.freeformTags, this.definedTags, this.systemTags, + this.migrationSettings, this.dataTransferMediumDetails, this.initialLoadSettings, this.advisorSettings, @@ -378,6 +391,9 @@ public Builder copy(OracleMigration model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); } @@ -439,6 +455,7 @@ public OracleMigration( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + OracleMigrationSettings migrationSettings, OracleDataTransferMediumDetails dataTransferMediumDetails, OracleInitialLoadSettings initialLoadSettings, OracleAdvisorSettings advisorSettings, @@ -466,6 +483,7 @@ public OracleMigration( freeformTags, definedTags, systemTags); + this.migrationSettings = migrationSettings; this.dataTransferMediumDetails = dataTransferMediumDetails; this.initialLoadSettings = initialLoadSettings; this.advisorSettings = advisorSettings; @@ -476,6 +494,13 @@ public OracleMigration( this.advancedParameters = advancedParameters; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final OracleMigrationSettings migrationSettings; + + public OracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private final OracleDataTransferMediumDetails dataTransferMediumDetails; @@ -567,6 +592,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleMigration("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", dataTransferMediumDetails=") .append(String.valueOf(this.dataTransferMediumDetails)); sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); @@ -592,7 +618,8 @@ public boolean equals(Object o) { } OracleMigration other = (OracleMigration) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.dataTransferMediumDetails, other.dataTransferMediumDetails) && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) @@ -612,6 +639,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.dataTransferMediumDetails == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.java new file mode 100644 index 00000000000..20c403bc5ed --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationMethods.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.databasemigration.model; + +/** + * Supported Oracle migration methods. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum OracleMigrationMethods { + OnlineLogical("ONLINE_LOGICAL"), + OfflineLogical("OFFLINE_LOGICAL"), + OnlineStandby("ONLINE_STANDBY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OracleMigrationMethods.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OracleMigrationMethods v : OracleMigrationMethods.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OracleMigrationMethods(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OracleMigrationMethods create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OracleMigrationMethods', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java new file mode 100644 index 00000000000..6fb786438a3 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettings.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Discriminator-only base Oracle migration settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = OracleMigrationSettings.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class OracleMigrationSettings extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OracleMigrationSettings() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleMigrationSettings("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleMigrationSettings)) { + return false; + } + + OracleMigrationSettings other = (OracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java new file mode 100644 index 00000000000..3a4379043d2 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSettingsSummary.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Discriminator-only base Oracle migration summary settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = OracleMigrationSettingsSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOfflineLogicalMigrationSettingsSummary.class, + name = "OFFLINE_LOGICAL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineStandbyMigrationSettingsSummary.class, + name = "ONLINE_STANDBY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleOnlineLogicalMigrationSettingsSummary.class, + name = "ONLINE_LOGICAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class OracleMigrationSettingsSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OracleMigrationSettingsSummary() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleMigrationSettingsSummary("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleMigrationSettingsSummary)) { + return false; + } + + OracleMigrationSettingsSummary other = (OracleMigrationSettingsSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java index cda379d4a41..7531fd8a0a8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java @@ -5,7 +5,10 @@ package com.oracle.bmc.databasemigration.model; /** - * Oracle Migration Summary + * Oracle Migration Summary. + * Deprecated: The parent-level Oracle migration configuration properties on this model are deprecated. + * Use {@code migrationSettings} instead. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -171,6 +174,15 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private OracleMigrationSettingsSummary migrationSettings; + + public Builder migrationSettings(OracleMigrationSettingsSummary migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } /** * The OCID of the resource being referenced. **/ @@ -227,6 +239,7 @@ public OracleMigrationSummary build() { this.freeformTags, this.definedTags, this.systemTags, + this.migrationSettings, this.sourceContainerDatabaseConnectionId, this.sourceStandbyDatabaseConnectionId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -285,6 +298,9 @@ public Builder copy(OracleMigrationSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { this.sourceContainerDatabaseConnectionId( model.getSourceContainerDatabaseConnectionId()); @@ -326,6 +342,7 @@ public OracleMigrationSummary( java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + OracleMigrationSettingsSummary migrationSettings, String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { super( @@ -345,10 +362,18 @@ public OracleMigrationSummary( freeformTags, definedTags, systemTags); + this.migrationSettings = migrationSettings; this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final OracleMigrationSettingsSummary migrationSettings; + + public OracleMigrationSettingsSummary getMigrationSettings() { + return migrationSettings; + } + /** * The OCID of the resource being referenced. **/ @@ -391,6 +416,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("OracleMigrationSummary("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", sourceContainerDatabaseConnectionId=") .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", sourceStandbyDatabaseConnectionId=") @@ -409,7 +435,8 @@ public boolean equals(Object o) { } OracleMigrationSummary other = (OracleMigrationSummary) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.sourceContainerDatabaseConnectionId, other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( @@ -422,6 +449,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.sourceContainerDatabaseConnectionId == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..fb6b90c7738 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettings.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.databasemigration.model; + +/** + * Oracle offline logical migration settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOfflineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleOfflineLogicalMigrationSettings extends OracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOfflineLogicalMigrationSettings build() { + OracleOfflineLogicalMigrationSettings model = + new OracleOfflineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOfflineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOfflineLogicalMigrationSettings( + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOfflineLogicalMigrationSettings)) { + return false; + } + + OracleOfflineLogicalMigrationSettings other = (OracleOfflineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java new file mode 100644 index 00000000000..4548cf11d5e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOfflineLogicalMigrationSettingsSummary.java @@ -0,0 +1,104 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Oracle offline logical migration summary settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOfflineLogicalMigrationSettingsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleOfflineLogicalMigrationSettingsSummary + extends OracleMigrationSettingsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOfflineLogicalMigrationSettingsSummary build() { + OracleOfflineLogicalMigrationSettingsSummary model = + new OracleOfflineLogicalMigrationSettingsSummary(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOfflineLogicalMigrationSettingsSummary model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOfflineLogicalMigrationSettingsSummary() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOfflineLogicalMigrationSettingsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOfflineLogicalMigrationSettingsSummary)) { + return false; + } + + OracleOfflineLogicalMigrationSettingsSummary other = + (OracleOfflineLogicalMigrationSettingsSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..26d85e430fc --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,332 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Oracle online logical migration settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleOnlineLogicalMigrationSettings extends OracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private GoldenGateHubDetails hubDetails; + + public Builder hubDetails(GoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private OracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(OracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineLogicalMigrationSettings build() { + OracleOnlineLogicalMigrationSettings model = + new OracleOnlineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineLogicalMigrationSettings( + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + GoldenGateHubDetails hubDetails, + OracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final GoldenGateHubDetails hubDetails; + + public GoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final OracleGgsDeploymentDetails ggsDetails; + + public OracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineLogicalMigrationSettings)) { + return false; + } + + OracleOnlineLogicalMigrationSettings other = (OracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java new file mode 100644 index 00000000000..31071e66f5e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineLogicalMigrationSettingsSummary.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Oracle online logical migration summary settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineLogicalMigrationSettingsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleOnlineLogicalMigrationSettingsSummary + extends OracleMigrationSettingsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineLogicalMigrationSettingsSummary build() { + OracleOnlineLogicalMigrationSettingsSummary model = + new OracleOnlineLogicalMigrationSettingsSummary( + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineLogicalMigrationSettingsSummary model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineLogicalMigrationSettingsSummary(String sourceContainerDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineLogicalMigrationSettingsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineLogicalMigrationSettingsSummary)) { + return false; + } + + OracleOnlineLogicalMigrationSettingsSummary other = + (OracleOnlineLogicalMigrationSettingsSummary) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..ac03fc1959b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettings.java @@ -0,0 +1,379 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Oracle online standby migration settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineStandbyMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleOnlineStandbyMigrationSettings extends OracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private GoldenGateHubDetails hubDetails; + + public Builder hubDetails(GoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private OracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(OracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineStandbyMigrationSettings build() { + OracleOnlineStandbyMigrationSettings model = + new OracleOnlineStandbyMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineStandbyMigrationSettings( + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + GoldenGateHubDetails hubDetails, + OracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId, + String sourceStandbyDatabaseConnectionId, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final GoldenGateHubDetails hubDetails; + + public GoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final OracleGgsDeploymentDetails ggsDetails; + + public OracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineStandbyMigrationSettings)) { + return false; + } + + OracleOnlineStandbyMigrationSettings other = (OracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.java new file mode 100644 index 00000000000..54e83400019 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleOnlineStandbyMigrationSettingsSummary.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.databasemigration.model; + +/** + * Oracle online standby migration summary settings. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleOnlineStandbyMigrationSettingsSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class OracleOnlineStandbyMigrationSettingsSummary + extends OracleMigrationSettingsSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleOnlineStandbyMigrationSettingsSummary build() { + OracleOnlineStandbyMigrationSettingsSummary model = + new OracleOnlineStandbyMigrationSettingsSummary( + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleOnlineStandbyMigrationSettingsSummary model) { + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleOnlineStandbyMigrationSettingsSummary( + String sourceContainerDatabaseConnectionId, String sourceStandbyDatabaseConnectionId) { + super(); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being referenced. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * @return the value + **/ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleOnlineStandbyMigrationSettingsSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleOnlineStandbyMigrationSettingsSummary)) { + return false; + } + + OracleOnlineStandbyMigrationSettingsSummary other = + (OracleOnlineStandbyMigrationSettingsSummary) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java new file mode 100644 index 00000000000..80f3c623d3c --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/RunDataVerificationDetails.java @@ -0,0 +1,117 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Details for running Data Verification. + * This request is modeled with a type discriminator so future Data Verification run options can be + * added without changing the required request body contract. + *

+ * Note: The migration database combination is inferred from the migrationId in the path and is not part + * of this request body. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = RunDataVerificationDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DefaultRunDataVerificationDetails.class, + name = "DEFAULT" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class RunDataVerificationDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected RunDataVerificationDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RunDataVerificationDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RunDataVerificationDetails)) { + return false; + } + + RunDataVerificationDetails other = (RunDataVerificationDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The type discriminator for Run Data Verification details. + **/ + public enum Type { + Default("DEFAULT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java index 54de6829793..3303a5c1ee8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java @@ -5,7 +5,10 @@ package com.oracle.bmc.databasemigration.model; /** - * Create Migration resource parameters. + * Update Migration resource parameters. + * Deprecated: The parent-level Oracle migration configuration properties on this model are deprecated. + * Use {@code migrationSettings} instead. + * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -91,6 +94,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private UpdateOracleMigrationSettings migrationSettings; + + public Builder migrationSettings(UpdateOracleMigrationSettings migrationSettings) { + this.migrationSettings = migrationSettings; + this.__explicitlySet__.add("migrationSettings"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -200,6 +212,7 @@ public UpdateOracleMigrationDetails build() { this.targetDatabaseConnectionId, this.freeformTags, this.definedTags, + this.migrationSettings, this.dataTransferMediumDetails, this.initialLoadSettings, this.advisorSettings, @@ -237,6 +250,9 @@ public Builder copy(UpdateOracleMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("migrationSettings")) { + this.migrationSettings(model.getMigrationSettings()); + } if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); } @@ -287,6 +303,7 @@ public UpdateOracleMigrationDetails( String targetDatabaseConnectionId, java.util.Map freeformTags, java.util.Map> definedTags, + UpdateOracleMigrationSettings migrationSettings, UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, UpdateOracleInitialLoadSettings initialLoadSettings, UpdateOracleAdvisorSettings advisorSettings, @@ -303,6 +320,7 @@ public UpdateOracleMigrationDetails( targetDatabaseConnectionId, freeformTags, definedTags); + this.migrationSettings = migrationSettings; this.dataTransferMediumDetails = dataTransferMediumDetails; this.initialLoadSettings = initialLoadSettings; this.advisorSettings = advisorSettings; @@ -313,6 +331,13 @@ public UpdateOracleMigrationDetails( this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; } + @com.fasterxml.jackson.annotation.JsonProperty("migrationSettings") + private final UpdateOracleMigrationSettings migrationSettings; + + public UpdateOracleMigrationSettings getMigrationSettings() { + return migrationSettings; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; @@ -404,6 +429,7 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateOracleMigrationDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", migrationSettings=").append(String.valueOf(this.migrationSettings)); sb.append(", dataTransferMediumDetails=") .append(String.valueOf(this.dataTransferMediumDetails)); sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); @@ -429,7 +455,8 @@ public boolean equals(Object o) { } UpdateOracleMigrationDetails other = (UpdateOracleMigrationDetails) o; - return java.util.Objects.equals( + return java.util.Objects.equals(this.migrationSettings, other.migrationSettings) + && java.util.Objects.equals( this.dataTransferMediumDetails, other.dataTransferMediumDetails) && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) @@ -449,6 +476,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.migrationSettings == null ? 43 : this.migrationSettings.hashCode()); result = (result * PRIME) + (this.dataTransferMediumDetails == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java new file mode 100644 index 00000000000..6e7eabfc564 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationSettings.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Discriminator-only base update settings for Oracle migration methods. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod", + defaultImpl = UpdateOracleMigrationSettings.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleOnlineStandbyMigrationSettings.class, + name = "ONLINE_STANDBY" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleOnlineLogicalMigrationSettings.class, + name = "ONLINE_LOGICAL" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleOfflineLogicalMigrationSettings.class, + name = "OFFLINE_LOGICAL" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateOracleMigrationSettings + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateOracleMigrationSettings() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleMigrationSettings("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleMigrationSettings)) { + return false; + } + + UpdateOracleMigrationSettings other = (UpdateOracleMigrationSettings) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.java new file mode 100644 index 00000000000..75b0f72ed32 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOfflineLogicalMigrationSettings.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.databasemigration.model; + +/** + * Update settings for an offline logical Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleOfflineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOracleOfflineLogicalMigrationSettings + extends UpdateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleOfflineLogicalMigrationSettings build() { + UpdateOracleOfflineLogicalMigrationSettings model = + new UpdateOracleOfflineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.advancedParameters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleOfflineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleOfflineLogicalMigrationSettings( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + java.util.List advancedParameters) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.advancedParameters = advancedParameters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleOfflineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleOfflineLogicalMigrationSettings)) { + return false; + } + + UpdateOracleOfflineLogicalMigrationSettings other = + (UpdateOracleOfflineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java new file mode 100644 index 00000000000..d9732f0255b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineLogicalMigrationSettings.java @@ -0,0 +1,334 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Update settings for an online logical Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleOnlineLogicalMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOracleOnlineLogicalMigrationSettings + extends UpdateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private UpdateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(UpdateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private UpdateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(UpdateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** + * The OCID of the resource being updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleOnlineLogicalMigrationSettings build() { + UpdateOracleOnlineLogicalMigrationSettings model = + new UpdateOracleOnlineLogicalMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleOnlineLogicalMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleOnlineLogicalMigrationSettings( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + UpdateGoldenGateHubDetails hubDetails, + UpdateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final UpdateGoldenGateHubDetails hubDetails; + + public UpdateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final UpdateOracleGgsDeploymentDetails ggsDetails; + + public UpdateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** + * The OCID of the resource being updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleOnlineLogicalMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleOnlineLogicalMigrationSettings)) { + return false; + } + + UpdateOracleOnlineLogicalMigrationSettings other = + (UpdateOracleOnlineLogicalMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java new file mode 100644 index 00000000000..1be7fb54c60 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleOnlineStandbyMigrationSettings.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.model; + +/** + * Update settings for an online standby Oracle migration. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleOnlineStandbyMigrationSettings.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "migrationMethod" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateOracleOnlineStandbyMigrationSettings + extends UpdateOracleMigrationSettings { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private UpdateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(UpdateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private UpdateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(UpdateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @param advancedParameters the value to set + * @return this builder + **/ + public Builder advancedParameters( + java.util.List advancedParameters) { + this.advancedParameters = advancedParameters; + this.__explicitlySet__.add("advancedParameters"); + return this; + } + /** + * The OCID of the resource being updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * The OCID of the resource being updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * @param sourceStandbyDatabaseConnectionId the value to set + * @return this builder + **/ + public Builder sourceStandbyDatabaseConnectionId(String sourceStandbyDatabaseConnectionId) { + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + this.__explicitlySet__.add("sourceStandbyDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleOnlineStandbyMigrationSettings build() { + UpdateOracleOnlineStandbyMigrationSettings model = + new UpdateOracleOnlineStandbyMigrationSettings( + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.advancedParameters, + this.sourceContainerDatabaseConnectionId, + this.sourceStandbyDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleOnlineStandbyMigrationSettings model) { + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("advancedParameters")) { + this.advancedParameters(model.getAdvancedParameters()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("sourceStandbyDatabaseConnectionId")) { + this.sourceStandbyDatabaseConnectionId( + model.getSourceStandbyDatabaseConnectionId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleOnlineStandbyMigrationSettings( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + UpdateGoldenGateHubDetails hubDetails, + UpdateOracleGgsDeploymentDetails ggsDetails, + java.util.List advancedParameters, + String sourceContainerDatabaseConnectionId, + String sourceStandbyDatabaseConnectionId) { + super(); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.advancedParameters = advancedParameters; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.sourceStandbyDatabaseConnectionId = sourceStandbyDatabaseConnectionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final UpdateGoldenGateHubDetails hubDetails; + + public UpdateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final UpdateOracleGgsDeploymentDetails ggsDetails; + + public UpdateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** + * List of Migration Parameter objects. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("advancedParameters") + private final java.util.List advancedParameters; + + /** + * List of Migration Parameter objects. + * @return the value + **/ + public java.util.List getAdvancedParameters() { + return advancedParameters; + } + + /** + * The OCID of the resource being updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * @return the value + **/ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * The OCID of the resource being updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceStandbyDatabaseConnectionId") + private final String sourceStandbyDatabaseConnectionId; + + /** + * The OCID of the resource being updated. + * @return the value + **/ + public String getSourceStandbyDatabaseConnectionId() { + return sourceStandbyDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleOnlineStandbyMigrationSettings("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", advancedParameters=").append(String.valueOf(this.advancedParameters)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", sourceStandbyDatabaseConnectionId=") + .append(String.valueOf(this.sourceStandbyDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleOnlineStandbyMigrationSettings)) { + return false; + } + + UpdateOracleOnlineStandbyMigrationSettings other = + (UpdateOracleOnlineStandbyMigrationSettings) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals(this.advancedParameters, other.advancedParameters) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals( + this.sourceStandbyDatabaseConnectionId, + other.sourceStandbyDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.advancedParameters == null + ? 43 + : this.advancedParameters.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.sourceStandbyDatabaseConnectionId == null + ? 43 + : this.sourceStandbyDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java new file mode 100644 index 00000000000..093efad1266 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetDataVerificationDetailRequest.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use GetDataVerificationDetailRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class GetDataVerificationDetailRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the migration + * + */ + private String migrationId; + + /** + * The OCID of the migration + * + */ + public String getMigrationId() { + return migrationId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDataVerificationDetailRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the migration + * + */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetDataVerificationDetailRequest o) { + migrationId(o.getMigrationId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataVerificationDetailRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetDataVerificationDetailRequest + */ + public GetDataVerificationDetailRequest build() { + GetDataVerificationDetailRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDataVerificationDetailRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetDataVerificationDetailRequest + */ + public GetDataVerificationDetailRequest buildWithoutInvocationCallback() { + GetDataVerificationDetailRequest request = new GetDataVerificationDetailRequest(); + request.migrationId = migrationId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new GetDataVerificationDetailRequest(migrationId, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().migrationId(migrationId).opcRequestId(opcRequestId).ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataVerificationDetailRequest)) { + return false; + } + + GetDataVerificationDetailRequest other = (GetDataVerificationDetailRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.java new file mode 100644 index 00000000000..c482c4eaf2e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectStatusesRequest.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.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use ListDataVerificationObjectStatusesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectStatusesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the migration + * + */ + private String migrationId; + + /** + * The OCID of the migration + * + */ + public String getMigrationId() { + return migrationId; + } + /** + * The ID of the compartment in which to list resources. + * + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A filter to return only resources that match the entire name given. + * + */ + private String name; + + /** + * A filter to return only resources that match the entire name given. + * + */ + public String getName() { + return name; + } + /** + * A filter to return only results for a specific owner. + * + */ + private String owner; + + /** + * A filter to return only results for a specific owner. + * + */ + public String getOwner() { + return owner; + } + /** + * A filter to return only results for a specific object type. + *

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

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

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

+ * When {@code true}, returns only rows where source and target match. + * When {@code false}, returns only rows with mismatches. + * When omitted, returns all rows, ordered by mismatch first. + * + */ + public Boolean getIsMatch() { + return isMatch; + } + /** + * The maximum number of items to return. + * + */ + private Integer limit; + + /** + * The maximum number of items to return. + * + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort order may be provided. + * By default, non-matching object statuses are returned first, followed by matching statuses. + * Rows with the same match result are then sorted by owner, object type, and object name. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. + * By default, non-matching object statuses are returned first, followed by matching statuses. + * Rows with the same match result are then sorted by owner, object type, and object name. + * + **/ + public enum SortBy { + IsMatch("isMatch"), + Owner("owner"), + ObjectType("objectType"), + ObjectName("objectName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. + * By default, non-matching object statuses are returned first, followed by matching statuses. + * Rows with the same match result are then sorted by owner, object type, and object name. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataVerificationObjectStatusesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the migration + * + */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** + * The ID of the compartment in which to list resources. + * + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A filter to return only resources that match the entire name given. + * + */ + private String name = null; + + /** + * A filter to return only resources that match the entire name given. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * A filter to return only results for a specific owner. + * + */ + private String owner = null; + + /** + * A filter to return only results for a specific owner. + * + * @param owner the value to set + * @return this builder instance + */ + public Builder owner(String owner) { + this.owner = owner; + return this; + } + + /** + * A filter to return only results for a specific object type. + *

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

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

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

+ * When {@code true}, returns only rows where source and target match. + * When {@code false}, returns only rows with mismatches. + * When omitted, returns all rows, ordered by mismatch first. + * + * @param isMatch the value to set + * @return this builder instance + */ + public Builder isMatch(Boolean isMatch) { + this.isMatch = isMatch; + return this; + } + + /** + * The maximum number of items to return. + * + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. + * By default, non-matching object statuses are returned first, followed by matching statuses. + * Rows with the same match result are then sorted by owner, object type, and object name. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. + * By default, non-matching object statuses are returned first, followed by matching statuses. + * Rows with the same match result are then sorted by owner, object type, and object name. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataVerificationObjectStatusesRequest o) { + migrationId(o.getMigrationId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + name(o.getName()); + owner(o.getOwner()); + objectType(o.getObjectType()); + filter(o.getFilter()); + isMatch(o.getIsMatch()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataVerificationObjectStatusesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListDataVerificationObjectStatusesRequest + */ + public ListDataVerificationObjectStatusesRequest build() { + ListDataVerificationObjectStatusesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataVerificationObjectStatusesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDataVerificationObjectStatusesRequest + */ + public ListDataVerificationObjectStatusesRequest buildWithoutInvocationCallback() { + ListDataVerificationObjectStatusesRequest request = + new ListDataVerificationObjectStatusesRequest(); + request.migrationId = migrationId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.name = name; + request.owner = owner; + request.objectType = objectType; + request.filter = filter; + request.isMatch = isMatch; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListDataVerificationObjectStatusesRequest(migrationId, compartmentId, opcRequestId, ifMatch, name, owner, objectType, filter, isMatch, limit, page, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .migrationId(migrationId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .name(name) + .owner(owner) + .objectType(objectType) + .filter(filter) + .isMatch(isMatch) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",owner=").append(String.valueOf(this.owner)); + sb.append(",objectType=").append(String.valueOf(this.objectType)); + sb.append(",filter=").append(String.valueOf(this.filter)); + sb.append(",isMatch=").append(String.valueOf(this.isMatch)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectStatusesRequest)) { + return false; + } + + ListDataVerificationObjectStatusesRequest other = + (ListDataVerificationObjectStatusesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.filter, other.filter) + && java.util.Objects.equals(this.isMatch, other.isMatch) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = (result * PRIME) + (this.filter == null ? 43 : this.filter.hashCode()); + result = (result * PRIME) + (this.isMatch == null ? 43 : this.isMatch.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java new file mode 100644 index 00000000000..38afdd6e7fe --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationObjectTypeCountsRequest.java @@ -0,0 +1,675 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use ListDataVerificationObjectTypeCountsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectTypeCountsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the migration + * + */ + private String migrationId; + + /** + * The OCID of the migration + * + */ + public String getMigrationId() { + return migrationId; + } + /** + * The ID of the compartment in which to list resources. + * + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A filter to return only results for a specific schema/owner. + * + */ + private String schemaName; + + /** + * A filter to return only results for a specific schema/owner. + * + */ + public String getSchemaName() { + return schemaName; + } + /** + * A filter to return only results for a specific object type. + *

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

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

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

+ * Note: This filter applies to the object type counts report, which uses {@code deltaPercent}. + * Table row count reports use {@code variancePercent} instead. + * + */ + public Double getMinAbsDeltaPercent() { + return minAbsDeltaPercent; + } + /** + * The maximum number of items to return. + * + */ + private Integer limit; + + /** + * The maximum number of items to return. + * + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort order may be provided. + * Default order for deltaPercent is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for deltaPercent is descending. + * + **/ + public enum SortBy { + DeltaPercent("deltaPercent"), + SchemaName("schemaName"), + ObjectType("objectType"), + SourceObjectCount("sourceObjectCount"), + TargetObjectCount("targetObjectCount"), + SourceInvalidCount("sourceInvalidCount"), + TargetInvalidCount("targetInvalidCount"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for deltaPercent is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataVerificationObjectTypeCountsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the migration + * + */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** + * The ID of the compartment in which to list resources. + * + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A filter to return only results for a specific schema/owner. + * + */ + private String schemaName = null; + + /** + * A filter to return only results for a specific schema/owner. + * + * @param schemaName the value to set + * @return this builder instance + */ + public Builder schemaName(String schemaName) { + this.schemaName = schemaName; + return this; + } + + /** + * A filter to return only results for a specific object type. + *

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

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

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

+ * Note: This filter applies to the object type counts report, which uses {@code deltaPercent}. + * Table row count reports use {@code variancePercent} instead. + * + * @param minAbsDeltaPercent the value to set + * @return this builder instance + */ + public Builder minAbsDeltaPercent(Double minAbsDeltaPercent) { + this.minAbsDeltaPercent = minAbsDeltaPercent; + return this; + } + + /** + * The maximum number of items to return. + * + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for deltaPercent is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for deltaPercent is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataVerificationObjectTypeCountsRequest o) { + migrationId(o.getMigrationId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + schemaName(o.getSchemaName()); + objectType(o.getObjectType()); + filter(o.getFilter()); + minAbsDeltaPercent(o.getMinAbsDeltaPercent()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataVerificationObjectTypeCountsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListDataVerificationObjectTypeCountsRequest + */ + public ListDataVerificationObjectTypeCountsRequest build() { + ListDataVerificationObjectTypeCountsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataVerificationObjectTypeCountsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDataVerificationObjectTypeCountsRequest + */ + public ListDataVerificationObjectTypeCountsRequest buildWithoutInvocationCallback() { + ListDataVerificationObjectTypeCountsRequest request = + new ListDataVerificationObjectTypeCountsRequest(); + request.migrationId = migrationId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.schemaName = schemaName; + request.objectType = objectType; + request.filter = filter; + request.minAbsDeltaPercent = minAbsDeltaPercent; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListDataVerificationObjectTypeCountsRequest(migrationId, compartmentId, opcRequestId, ifMatch, schemaName, objectType, filter, minAbsDeltaPercent, limit, page, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .migrationId(migrationId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .schemaName(schemaName) + .objectType(objectType) + .filter(filter) + .minAbsDeltaPercent(minAbsDeltaPercent) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",schemaName=").append(String.valueOf(this.schemaName)); + sb.append(",objectType=").append(String.valueOf(this.objectType)); + sb.append(",filter=").append(String.valueOf(this.filter)); + sb.append(",minAbsDeltaPercent=").append(String.valueOf(this.minAbsDeltaPercent)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectTypeCountsRequest)) { + return false; + } + + ListDataVerificationObjectTypeCountsRequest other = + (ListDataVerificationObjectTypeCountsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.schemaName, other.schemaName) + && java.util.Objects.equals(this.objectType, other.objectType) + && java.util.Objects.equals(this.filter, other.filter) + && java.util.Objects.equals(this.minAbsDeltaPercent, other.minAbsDeltaPercent) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.schemaName == null ? 43 : this.schemaName.hashCode()); + result = (result * PRIME) + (this.objectType == null ? 43 : this.objectType.hashCode()); + result = (result * PRIME) + (this.filter == null ? 43 : this.filter.hashCode()); + result = + (result * PRIME) + + (this.minAbsDeltaPercent == null + ? 43 + : this.minAbsDeltaPercent.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java new file mode 100644 index 00000000000..a7929e4bdec --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListDataVerificationTableRowCountsRequest.java @@ -0,0 +1,659 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemigration.requests; + +import com.oracle.bmc.databasemigration.model.*; +/** + * Example: Click here to see how to use ListDataVerificationTableRowCountsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationTableRowCountsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The OCID of the migration + * + */ + private String migrationId; + + /** + * The OCID of the migration + * + */ + public String getMigrationId() { + return migrationId; + } + /** + * The ID of the compartment in which to list resources. + * + */ + private String compartmentId; + + /** + * The ID of the compartment in which to list resources. + * + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A filter to return only results for a specific owner. + * + */ + private String owner; + + /** + * A filter to return only results for a specific owner. + * + */ + public String getOwner() { + return owner; + } + /** + * A filter to return only results for a specific table. + * + */ + private String tableName; + + /** + * A filter to return only results for a specific table. + * + */ + public String getTableName() { + return tableName; + } + /** + * Free-text filter applied by the service to relevant fields for the report. + * + */ + private String filter; + + /** + * Free-text filter applied by the service to relevant fields for the report. + * + */ + public String getFilter() { + return filter; + } + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. + * The service filters results where {@code abs(deltaPercent) >= minAbsDeltaPercent}. + * Must be non-negative. + *

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

+ * Note: This filter applies to the object type counts report, which uses {@code deltaPercent}. + * Table row count reports use {@code variancePercent} instead. + * + */ + public Double getMinAbsDeltaPercent() { + return minAbsDeltaPercent; + } + /** + * The maximum number of items to return. + * + */ + private Integer limit; + + /** + * The maximum number of items to return. + * + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + public String getPage() { + return page; + } + /** + * The field to sort by. Only one sort order may be provided. + * Default order for variancePercent is descending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for variancePercent is descending. + * + **/ + public enum SortBy { + VariancePercent("variancePercent"), + Owner("owner"), + TableName("tableName"), + TimeLastSourceStatisticsCollection("timeLastSourceStatisticsCollection"), + TimeLastTargetStatisticsCollection("timeLastTargetStatisticsCollection"), + SourceRowCount("sourceRowCount"), + TargetRowCount("targetRowCount"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for variancePercent is descending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataVerificationTableRowCountsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The OCID of the migration + * + */ + private String migrationId = null; + + /** + * The OCID of the migration + * + * @param migrationId the value to set + * @return this builder instance + */ + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; + return this; + } + + /** + * The ID of the compartment in which to list resources. + * + */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A filter to return only results for a specific owner. + * + */ + private String owner = null; + + /** + * A filter to return only results for a specific owner. + * + * @param owner the value to set + * @return this builder instance + */ + public Builder owner(String owner) { + this.owner = owner; + return this; + } + + /** + * A filter to return only results for a specific table. + * + */ + private String tableName = null; + + /** + * A filter to return only results for a specific table. + * + * @param tableName the value to set + * @return this builder instance + */ + public Builder tableName(String tableName) { + this.tableName = tableName; + return this; + } + + /** + * Free-text filter applied by the service to relevant fields for the report. + * + */ + private String filter = null; + + /** + * Free-text filter applied by the service to relevant fields for the report. + * + * @param filter the value to set + * @return this builder instance + */ + public Builder filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Minimum absolute deltaPercent threshold (magnitude) to return. + * The service filters results where {@code abs(deltaPercent) >= minAbsDeltaPercent}. + * Must be non-negative. + *

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

+ * Note: This filter applies to the object type counts report, which uses {@code deltaPercent}. + * Table row count reports use {@code variancePercent} instead. + * + * @param minAbsDeltaPercent the value to set + * @return this builder instance + */ + public Builder minAbsDeltaPercent(Double minAbsDeltaPercent) { + this.minAbsDeltaPercent = minAbsDeltaPercent; + return this; + } + + /** + * The maximum number of items to return. + * + */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for variancePercent is descending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. + * Default order for variancePercent is descending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either 'asc' or 'desc'. + * + */ + private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either 'asc' or 'desc'. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataVerificationTableRowCountsRequest o) { + migrationId(o.getMigrationId()); + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + owner(o.getOwner()); + tableName(o.getTableName()); + filter(o.getFilter()); + minAbsDeltaPercent(o.getMinAbsDeltaPercent()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataVerificationTableRowCountsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListDataVerificationTableRowCountsRequest + */ + public ListDataVerificationTableRowCountsRequest build() { + ListDataVerificationTableRowCountsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataVerificationTableRowCountsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDataVerificationTableRowCountsRequest + */ + public ListDataVerificationTableRowCountsRequest buildWithoutInvocationCallback() { + ListDataVerificationTableRowCountsRequest request = + new ListDataVerificationTableRowCountsRequest(); + request.migrationId = migrationId; + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + request.owner = owner; + request.tableName = tableName; + request.filter = filter; + request.minAbsDeltaPercent = minAbsDeltaPercent; + request.limit = limit; + request.page = page; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListDataVerificationTableRowCountsRequest(migrationId, compartmentId, opcRequestId, ifMatch, owner, tableName, filter, minAbsDeltaPercent, limit, page, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .migrationId(migrationId) + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch) + .owner(owner) + .tableName(tableName) + .filter(filter) + .minAbsDeltaPercent(minAbsDeltaPercent) + .limit(limit) + .page(page) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",owner=").append(String.valueOf(this.owner)); + sb.append(",tableName=").append(String.valueOf(this.tableName)); + sb.append(",filter=").append(String.valueOf(this.filter)); + sb.append(",minAbsDeltaPercent=").append(String.valueOf(this.minAbsDeltaPercent)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationTableRowCountsRequest)) { + return false; + } + + ListDataVerificationTableRowCountsRequest other = + (ListDataVerificationTableRowCountsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals(this.tableName, other.tableName) + && java.util.Objects.equals(this.filter, other.filter) + && java.util.Objects.equals(this.minAbsDeltaPercent, other.minAbsDeltaPercent) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = (result * PRIME) + (this.tableName == null ? 43 : this.tableName.hashCode()); + result = (result * PRIME) + (this.filter == null ? 43 : this.filter.hashCode()); + result = + (result * PRIME) + + (this.minAbsDeltaPercent == null + ? 43 + : this.minAbsDeltaPercent.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java index 45dca69c129..0843b8bfdec 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RunDataVerificationRequest.java @@ -2,37 +2,44 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.databasemigration.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.databasemigration.model.*; /** - * Example: Click here to see how to use ValidateDistributedAutonomousDatabaseNetworkRequest. + * Example: Click here to see how to use RunDataVerificationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseNetworkRequest - extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class RunDataVerificationRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemigration.model.RunDataVerificationDetails> { /** - * Globally distributed autonomous database identifier. + * The OCID of the migration + * */ - private String distributedAutonomousDatabaseId; + private String migrationId; /** - * Globally distributed autonomous database identifier. + * The OCID of the migration + * */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + public String getMigrationId() { + return migrationId; } /** - * Determines the surrogates check. Default is true. + * Details for running Data Verification. + * */ - private Boolean isSurrogate; + private com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + runDataVerificationDetails; /** - * Determines the surrogates check. Default is true. + * Details for running Data Verification. + * */ - public Boolean getIsSurrogate() { - return isSurrogate; + public com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + getRunDataVerificationDetails() { + return runDataVerificationDetails; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -77,51 +84,73 @@ 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. + * */ 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. + * */ public String getOpcRequestId() { return opcRequestId; } + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemigration.model.RunDataVerificationDetails getBody$() { + return runDataVerificationDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ValidateDistributedAutonomousDatabaseNetworkRequest, java.lang.Void> { + RunDataVerificationRequest, + com.oracle.bmc.databasemigration.model.RunDataVerificationDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed autonomous database identifier. + * The OCID of the migration + * */ - private String distributedAutonomousDatabaseId = null; + private String migrationId = null; /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set + * The OCID of the migration + * + * @param migrationId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder migrationId(String migrationId) { + this.migrationId = migrationId; return this; } /** - * Determines the surrogates check. Default is true. + * Details for running Data Verification. + * */ - private Boolean isSurrogate = null; + private com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + runDataVerificationDetails = null; /** - * Determines the surrogates check. Default is true. - * @param isSurrogate the value to set + * Details for running Data Verification. + * + * @param runDataVerificationDetails the value to set * @return this builder instance */ - public Builder isSurrogate(Boolean isSurrogate) { - this.isSurrogate = isSurrogate; + public Builder runDataVerificationDetails( + com.oracle.bmc.databasemigration.model.RunDataVerificationDetails + runDataVerificationDetails) { + this.runDataVerificationDetails = runDataVerificationDetails; return this; } @@ -176,12 +205,16 @@ public Builder opcRetryToken(String 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. + * */ 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. + * * @param opcRequestId the value to set * @return this builder instance */ @@ -217,9 +250,9 @@ public Builder retryConfiguration( * 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()); + public Builder copy(RunDataVerificationRequest o) { + migrationId(o.getMigrationId()); + runDataVerificationDetails(o.getRunDataVerificationDetails()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); @@ -229,42 +262,51 @@ public Builder copy(ValidateDistributedAutonomousDatabaseNetworkRequest o) { } /** - * Build the instance of ValidateDistributedAutonomousDatabaseNetworkRequest as configured by this builder + * Build the instance of RunDataVerificationRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ValidateDistributedAutonomousDatabaseNetworkRequest + * @return instance of RunDataVerificationRequest */ - public ValidateDistributedAutonomousDatabaseNetworkRequest build() { - ValidateDistributedAutonomousDatabaseNetworkRequest request = - buildWithoutInvocationCallback(); + public RunDataVerificationRequest build() { + RunDataVerificationRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ValidateDistributedAutonomousDatabaseNetworkRequest 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.databasemigration.model.RunDataVerificationDetails body) { + runDataVerificationDetails(body); + return this; + } + + /** + * Build the instance of RunDataVerificationRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ValidateDistributedAutonomousDatabaseNetworkRequest + * @return instance of RunDataVerificationRequest */ - public ValidateDistributedAutonomousDatabaseNetworkRequest - buildWithoutInvocationCallback() { - ValidateDistributedAutonomousDatabaseNetworkRequest request = - new ValidateDistributedAutonomousDatabaseNetworkRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.isSurrogate = isSurrogate; + public RunDataVerificationRequest buildWithoutInvocationCallback() { + RunDataVerificationRequest request = new RunDataVerificationRequest(); + request.migrationId = migrationId; + request.runDataVerificationDetails = runDataVerificationDetails; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new ValidateDistributedAutonomousDatabaseNetworkRequest(distributedAutonomousDatabaseId, isSurrogate, ifMatch, opcRetryToken, opcRequestId); + // new RunDataVerificationRequest(migrationId, runDataVerificationDetails, ifMatch, opcRetryToken, opcRequestId); } } @@ -274,8 +316,8 @@ public ValidateDistributedAutonomousDatabaseNetworkRequest build() { */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .isSurrogate(isSurrogate) + .migrationId(migrationId) + .runDataVerificationDetails(runDataVerificationDetails) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -294,9 +336,9 @@ 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(",migrationId=").append(String.valueOf(this.migrationId)); + sb.append(",runDataVerificationDetails=") + .append(String.valueOf(this.runDataVerificationDetails)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -309,16 +351,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ValidateDistributedAutonomousDatabaseNetworkRequest)) { + if (!(o instanceof RunDataVerificationRequest)) { return false; } - ValidateDistributedAutonomousDatabaseNetworkRequest other = - (ValidateDistributedAutonomousDatabaseNetworkRequest) o; + RunDataVerificationRequest other = (RunDataVerificationRequest) o; return super.equals(o) + && java.util.Objects.equals(this.migrationId, other.migrationId) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.isSurrogate, other.isSurrogate) + this.runDataVerificationDetails, other.runDataVerificationDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -328,12 +369,12 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.migrationId == null ? 43 : this.migrationId.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null + + (this.runDataVerificationDetails == null ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.isSurrogate == null ? 43 : this.isSurrogate.hashCode()); + : this.runDataVerificationDetails.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/responses/UpdateDistributedAutonomousDatabaseResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java similarity index 67% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.java index 142df570a92..c9204ab4ca8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetDataVerificationDetailResponse.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.databasemigration.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.databasemigration.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class GetDataVerificationDetailResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -42,18 +41,17 @@ public String getEtag() { } /** - * The returned DistributedAutonomousDatabase instance. + * The returned DataVerificationDetail instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + private com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail; /** - * The returned DistributedAutonomousDatabase instance. + * The returned DataVerificationDetail instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; + public com.oracle.bmc.databasemigration.model.DataVerificationDetail + getDataVerificationDetail() { + return dataVerificationDetail; } @java.beans.ConstructorProperties({ @@ -61,19 +59,18 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedAutonomousDatabase" + "dataVerificationDetail" }) - private UpdateDistributedAutonomousDatabaseResponse( + private GetDataVerificationDetailResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { + com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + this.dataVerificationDetail = dataVerificationDetail; } public static class Builder { @@ -128,20 +125,20 @@ public Builder etag(String etag) { } /** - * The returned DistributedAutonomousDatabase instance. + * The returned DataVerificationDetail instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + private com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail; /** - * The returned DistributedAutonomousDatabase instance. - * @param distributedAutonomousDatabase the value to set + * The returned DataVerificationDetail instance. + * @param dataVerificationDetail the value to set * @return this builder */ - public Builder distributedAutonomousDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + public Builder dataVerificationDetail( + com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail) { + this.dataVerificationDetail = dataVerificationDetail; return this; } @@ -149,12 +146,12 @@ public Builder distributedAutonomousDatabase( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateDistributedAutonomousDatabaseResponse o) { + public Builder copy(GetDataVerificationDetailResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + dataVerificationDetail(o.getDataVerificationDetail()); return this; } @@ -163,9 +160,9 @@ public Builder copy(UpdateDistributedAutonomousDatabaseResponse o) { * Build the response object. * @return the response object */ - public UpdateDistributedAutonomousDatabaseResponse build() { - return new UpdateDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); + public GetDataVerificationDetailResponse build() { + return new GetDataVerificationDetailResponse( + __httpStatusCode__, headers, opcRequestId, etag, dataVerificationDetail); } } @@ -184,8 +181,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(",distributedAutonomousDatabase=") - .append(String.valueOf(distributedAutonomousDatabase)); + sb.append(",dataVerificationDetail=").append(String.valueOf(dataVerificationDetail)); sb.append(")"); return sb.toString(); } @@ -195,17 +191,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof GetDataVerificationDetailResponse)) { return false; } - UpdateDistributedAutonomousDatabaseResponse other = - (UpdateDistributedAutonomousDatabaseResponse) o; + GetDataVerificationDetailResponse other = (GetDataVerificationDetailResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals( - this.distributedAutonomousDatabase, other.distributedAutonomousDatabase); + this.dataVerificationDetail, other.dataVerificationDetail); } @Override @@ -216,9 +211,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabase == null + + (this.dataVerificationDetail == null ? 43 - : this.distributedAutonomousDatabase.hashCode()); + : this.dataVerificationDetail.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.java new file mode 100644 index 00000000000..aa41870b8d9 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectStatusesResponse.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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectStatusesResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DataVerificationObjectStatusCollection instance. + */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection; + + /** + * The returned DataVerificationObjectStatusCollection instance. + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + getDataVerificationObjectStatusCollection() { + return dataVerificationObjectStatusCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dataVerificationObjectStatusCollection" + }) + private ListDataVerificationObjectStatusesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataVerificationObjectStatusCollection = dataVerificationObjectStatusCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DataVerificationObjectStatusCollection instance. + */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection; + + /** + * The returned DataVerificationObjectStatusCollection instance. + * @param dataVerificationObjectStatusCollection the value to set + * @return this builder + */ + public Builder dataVerificationObjectStatusCollection( + com.oracle.bmc.databasemigration.model.DataVerificationObjectStatusCollection + dataVerificationObjectStatusCollection) { + this.dataVerificationObjectStatusCollection = dataVerificationObjectStatusCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataVerificationObjectStatusesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataVerificationObjectStatusCollection(o.getDataVerificationObjectStatusCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDataVerificationObjectStatusesResponse build() { + return new ListDataVerificationObjectStatusesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dataVerificationObjectStatusCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",dataVerificationObjectStatusCollection=") + .append(String.valueOf(dataVerificationObjectStatusCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectStatusesResponse)) { + return false; + } + + ListDataVerificationObjectStatusesResponse other = + (ListDataVerificationObjectStatusesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.dataVerificationObjectStatusCollection, + other.dataVerificationObjectStatusCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.dataVerificationObjectStatusCollection == null + ? 43 + : this.dataVerificationObjectStatusCollection.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.java new file mode 100644 index 00000000000..09d449a1195 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationObjectTypeCountsResponse.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.databasemigration.responses; + +import com.oracle.bmc.databasemigration.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationObjectTypeCountsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned DataVerificationObjectTypeCountCollection instance. + */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection; + + /** + * The returned DataVerificationObjectTypeCountCollection instance. + * @return the value + */ + public com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + getDataVerificationObjectTypeCountCollection() { + return dataVerificationObjectTypeCountCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dataVerificationObjectTypeCountCollection" + }) + private ListDataVerificationObjectTypeCountsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataVerificationObjectTypeCountCollection = dataVerificationObjectTypeCountCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DataVerificationObjectTypeCountCollection instance. + */ + private com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection; + + /** + * The returned DataVerificationObjectTypeCountCollection instance. + * @param dataVerificationObjectTypeCountCollection the value to set + * @return this builder + */ + public Builder dataVerificationObjectTypeCountCollection( + com.oracle.bmc.databasemigration.model.DataVerificationObjectTypeCountCollection + dataVerificationObjectTypeCountCollection) { + this.dataVerificationObjectTypeCountCollection = + dataVerificationObjectTypeCountCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListDataVerificationObjectTypeCountsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataVerificationObjectTypeCountCollection( + o.getDataVerificationObjectTypeCountCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListDataVerificationObjectTypeCountsResponse build() { + return new ListDataVerificationObjectTypeCountsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dataVerificationObjectTypeCountCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",dataVerificationObjectTypeCountCollection=") + .append(String.valueOf(dataVerificationObjectTypeCountCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataVerificationObjectTypeCountsResponse)) { + return false; + } + + ListDataVerificationObjectTypeCountsResponse other = + (ListDataVerificationObjectTypeCountsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.dataVerificationObjectTypeCountCollection, + other.dataVerificationObjectTypeCountCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.dataVerificationObjectTypeCountCollection == null + ? 43 + : this.dataVerificationObjectTypeCountCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.java index 9f67d4a47d2..8582d1aa9e1 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListDataVerificationTableRowCountsResponse.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.databasemigration.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.databasemigration.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedAutonomousDatabasesResponse +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class ListDataVerificationTableRowCountsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact @@ -46,18 +46,18 @@ public String getOpcNextPage() { } /** - * The returned DistributedAutonomousDatabaseCollection instance. + * The returned DataVerificationTableRowCountCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection; + private com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection; /** - * The returned DistributedAutonomousDatabaseCollection instance. + * The returned DataVerificationTableRowCountCollection instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - getDistributedAutonomousDatabaseCollection() { - return distributedAutonomousDatabaseCollection; + public com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + getDataVerificationTableRowCountCollection() { + return dataVerificationTableRowCountCollection; } @java.beans.ConstructorProperties({ @@ -65,19 +65,19 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", - "distributedAutonomousDatabaseCollection" + "dataVerificationTableRowCountCollection" }) - private ListDistributedAutonomousDatabasesResponse( + private ListDataVerificationTableRowCountsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection) { + com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; + this.dataVerificationTableRowCountCollection = dataVerificationTableRowCountCollection; } public static class Builder { @@ -136,20 +136,20 @@ public Builder opcNextPage(String opcNextPage) { } /** - * The returned DistributedAutonomousDatabaseCollection instance. + * The returned DataVerificationTableRowCountCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection; + private com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection; /** - * The returned DistributedAutonomousDatabaseCollection instance. - * @param distributedAutonomousDatabaseCollection the value to set + * The returned DataVerificationTableRowCountCollection instance. + * @param dataVerificationTableRowCountCollection the value to set * @return this builder */ - public Builder distributedAutonomousDatabaseCollection( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection) { - this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; + public Builder dataVerificationTableRowCountCollection( + com.oracle.bmc.databasemigration.model.DataVerificationTableRowCountCollection + dataVerificationTableRowCountCollection) { + this.dataVerificationTableRowCountCollection = dataVerificationTableRowCountCollection; return this; } @@ -157,12 +157,12 @@ public Builder distributedAutonomousDatabaseCollection( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListDistributedAutonomousDatabasesResponse o) { + public Builder copy(ListDataVerificationTableRowCountsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - distributedAutonomousDatabaseCollection(o.getDistributedAutonomousDatabaseCollection()); + dataVerificationTableRowCountCollection(o.getDataVerificationTableRowCountCollection()); return this; } @@ -171,13 +171,13 @@ public Builder copy(ListDistributedAutonomousDatabasesResponse o) { * Build the response object. * @return the response object */ - public ListDistributedAutonomousDatabasesResponse build() { - return new ListDistributedAutonomousDatabasesResponse( + public ListDataVerificationTableRowCountsResponse build() { + return new ListDataVerificationTableRowCountsResponse( __httpStatusCode__, headers, opcRequestId, opcNextPage, - distributedAutonomousDatabaseCollection); + dataVerificationTableRowCountCollection); } } @@ -196,8 +196,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(",dataVerificationTableRowCountCollection=") + .append(String.valueOf(dataVerificationTableRowCountCollection)); sb.append(")"); return sb.toString(); } @@ -207,18 +207,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedAutonomousDatabasesResponse)) { + if (!(o instanceof ListDataVerificationTableRowCountsResponse)) { return false; } - ListDistributedAutonomousDatabasesResponse other = - (ListDistributedAutonomousDatabasesResponse) o; + ListDataVerificationTableRowCountsResponse other = + (ListDataVerificationTableRowCountsResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) && java.util.Objects.equals( - this.distributedAutonomousDatabaseCollection, - other.distributedAutonomousDatabaseCollection); + this.dataVerificationTableRowCountCollection, + other.dataVerificationTableRowCountCollection); } @Override @@ -229,9 +229,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabaseCollection == null + + (this.dataVerificationTableRowCountCollection == null ? 43 - : this.distributedAutonomousDatabaseCollection.hashCode()); + : this.dataVerificationTableRowCountCollection.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.java index 49838d7524b..ca7638a830c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RunDataVerificationResponse.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.databasemigration.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.databasemigration.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public class RunDataVerificationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -41,17 +41,17 @@ public String getEtag() { } /** - * The returned DistributedDatabase instance. + * The returned DataVerificationDetail instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + private com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail; /** - * The returned DistributedDatabase instance. + * The returned DataVerificationDetail instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; + public com.oracle.bmc.databasemigration.model.DataVerificationDetail + getDataVerificationDetail() { + return dataVerificationDetail; } @java.beans.ConstructorProperties({ @@ -59,18 +59,18 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabase" + "dataVerificationDetail" }) - private UpdateDistributedDatabaseResponse( + private RunDataVerificationResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + com.oracle.bmc.databasemigration.model.DataVerificationDetail dataVerificationDetail) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabase = distributedDatabase; + this.dataVerificationDetail = dataVerificationDetail; } public static class Builder { @@ -125,19 +125,20 @@ public Builder etag(String etag) { } /** - * The returned DistributedDatabase instance. + * The returned DataVerificationDetail instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + private com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail; /** - * The returned DistributedDatabase instance. - * @param distributedDatabase the value to set + * The returned DataVerificationDetail instance. + * @param dataVerificationDetail the value to set * @return this builder */ - public Builder distributedDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - distributedDatabase) { - this.distributedDatabase = distributedDatabase; + public Builder dataVerificationDetail( + com.oracle.bmc.databasemigration.model.DataVerificationDetail + dataVerificationDetail) { + this.dataVerificationDetail = dataVerificationDetail; return this; } @@ -145,12 +146,12 @@ public Builder distributedDatabase( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateDistributedDatabaseResponse o) { + public Builder copy(RunDataVerificationResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); + dataVerificationDetail(o.getDataVerificationDetail()); return this; } @@ -159,9 +160,9 @@ public Builder copy(UpdateDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public UpdateDistributedDatabaseResponse build() { - return new UpdateDistributedDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); + public RunDataVerificationResponse build() { + return new RunDataVerificationResponse( + __httpStatusCode__, headers, opcRequestId, etag, dataVerificationDetail); } } @@ -180,7 +181,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(",dataVerificationDetail=").append(String.valueOf(dataVerificationDetail)); sb.append(")"); return sb.toString(); } @@ -190,15 +191,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabaseResponse)) { + if (!(o instanceof RunDataVerificationResponse)) { return false; } - UpdateDistributedDatabaseResponse other = (UpdateDistributedDatabaseResponse) o; + RunDataVerificationResponse other = (RunDataVerificationResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.distributedDatabase, other.distributedDatabase); + && java.util.Objects.equals( + this.dataVerificationDetail, other.dataVerificationDetail); } @Override @@ -209,9 +211,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabase == null + + (this.dataVerificationDetail == null ? 43 - : this.distributedDatabase.hashCode()); + : this.dataVerificationDetail.hashCode()); return result; } } diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 14895c98756..aa7f52088cc 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-databasetools @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java index 28e90a1c85b..51666e02e05 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsAsyncClient.java @@ -487,7 +487,7 @@ public void close() { "DatabaseTools", "AddDatabaseToolsConnectionLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/AddDatabaseToolsConnectionLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsConnectionLockResponse> transformer = @@ -545,7 +545,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsDatabaseApiGatewayConfigLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/AddDatabaseToolsDatabaseApiGatewayConfigLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> @@ -605,7 +605,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsIdentityLockResponse> transformer = @@ -661,7 +661,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/AddDatabaseToolsMcpServerLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsMcpServerLockResponse> transformer = @@ -717,7 +717,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/AddDatabaseToolsMcpToolsetLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsMcpToolsetLockResponse> transformer = @@ -775,7 +775,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/AddDatabaseToolsPrivateEndpointLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsPrivateEndpointLockResponse> transformer = @@ -833,7 +833,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "AddDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/AddDatabaseToolsSqlReportLock"); final java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsSqlReportLockResponse> transformer = @@ -890,7 +890,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "CascadingDeleteDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/CascadingDeleteDatabaseToolsMcpServer"); final java.util.function.Function< javax.ws.rs.core.Response, CascadingDeleteDatabaseToolsMcpServerResponse> transformer = @@ -944,7 +944,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsConnectionCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsConnectionCompartmentResponse> transformer = @@ -1007,7 +1007,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> @@ -1069,7 +1069,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsIdentityCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsIdentityCompartmentResponse> transformer = @@ -1129,7 +1129,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsMcpServerCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/ChangeDatabaseToolsMcpServerCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsMcpServerCompartmentResponse> transformer = @@ -1190,7 +1190,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsMcpToolsetCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/ChangeDatabaseToolsMcpToolsetCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsMcpToolsetCompartmentResponse> transformer = @@ -1251,7 +1251,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsPrivateEndpointCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsPrivateEndpointCompartmentResponse> @@ -1313,7 +1313,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ChangeDatabaseToolsSqlReportCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/ChangeDatabaseToolsSqlReportCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsSqlReportCompartmentResponse> transformer = @@ -1432,7 +1432,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "CreateDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/CreateDatabaseToolsDatabaseApiGatewayConfig"); final java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigResponse> @@ -1724,7 +1724,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "CreateDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/CreateDatabaseToolsSqlReport"); final java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsSqlReportResponse> transformer = @@ -1780,7 +1780,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsConnectionResponse> transformer = @@ -1832,7 +1832,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfig"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> @@ -1887,7 +1887,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsIdentity", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsIdentityResponse> transformer = @@ -1938,7 +1938,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/DeleteDatabaseToolsMcpServer"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsMcpServerResponse> transformer = @@ -1989,7 +1989,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/DeleteDatabaseToolsMcpToolset"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsMcpToolsetResponse> transformer = @@ -2040,7 +2040,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpoint"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsPrivateEndpointResponse> transformer = @@ -2093,7 +2093,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "DeleteDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/DeleteDatabaseToolsSqlReport"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsSqlReportResponse> transformer = @@ -2144,7 +2144,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "GetDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsConnectionResponse> transformer = @@ -2196,7 +2196,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "GetDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/GetDatabaseToolsDatabaseApiGatewayConfig"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigResponse> transformer = @@ -2250,7 +2250,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "GetDatabaseToolsEndpointService", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointService"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsEndpointServiceResponse> transformer = @@ -2301,7 +2301,7 @@ public java.util.concurrent.Future getDatabase "DatabaseTools", "GetDatabaseToolsIdentity", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsIdentityResponse> transformer = @@ -2349,7 +2349,7 @@ public java.util.concurrent.Future getDatabas "DatabaseTools", "GetDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/GetDatabaseToolsMcpServer"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsMcpServerResponse> transformer = @@ -2400,7 +2400,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "GetDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/GetDatabaseToolsMcpToolset"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsMcpToolsetResponse> transformer = @@ -2451,7 +2451,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "GetDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpoint"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsPrivateEndpointResponse> transformer = @@ -2502,7 +2502,7 @@ public java.util.concurrent.Future getDatabas "DatabaseTools", "GetDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/GetDatabaseToolsSqlReport"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsSqlReportResponse> transformer = @@ -2548,7 +2548,10 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "DatabaseTools", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -2595,7 +2598,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsConnections", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsConnectionsResponse> transformer = @@ -2647,7 +2650,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsDatabaseApiGatewayConfigs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigs"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigsResponse> @@ -2702,7 +2705,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsEndpointServices", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsEndpointServicesResponse> transformer = @@ -2755,7 +2758,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsIdentities", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsIdentitiesResponse> transformer = @@ -2806,7 +2809,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsMcpServers", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/ListDatabaseToolsMcpServers"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsMcpServersResponse> transformer = @@ -2858,7 +2861,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsMcpToolsetVersions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolsetVersionCollection/ListDatabaseToolsMcpToolsetVersions"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsMcpToolsetVersionsResponse> transformer = @@ -2911,7 +2914,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsMcpToolsets", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/ListDatabaseToolsMcpToolsets"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsMcpToolsetsResponse> transformer = @@ -2962,7 +2965,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsPrivateEndpoints", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsPrivateEndpointsResponse> transformer = @@ -3015,7 +3018,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ListDatabaseToolsSqlReports", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/ListDatabaseToolsSqlReports"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsSqlReportsResponse> transformer = @@ -3064,7 +3067,7 @@ public java.util.concurrent.Future listWorkReques "DatabaseTools", "ListWorkRequestErrors", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -3108,7 +3111,10 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "DatabaseTools", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -3152,7 +3158,10 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "DatabaseTools", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -3201,7 +3210,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RefreshDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential"); final java.util.function.Function< javax.ws.rs.core.Response, RefreshDatabaseToolsIdentityCredentialResponse> transformer = @@ -3260,7 +3269,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsConnectionLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/RemoveDatabaseToolsConnectionLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsConnectionLockResponse> transformer = @@ -3319,7 +3328,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsDatabaseApiGatewayConfigLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/RemoveDatabaseToolsDatabaseApiGatewayConfigLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> @@ -3379,7 +3388,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsIdentityLockResponse> transformer = @@ -3437,7 +3446,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/RemoveDatabaseToolsMcpServerLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsMcpServerLockResponse> transformer = @@ -3495,7 +3504,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/RemoveDatabaseToolsMcpToolsetLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsMcpToolsetLockResponse> transformer = @@ -3554,7 +3563,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/RemoveDatabaseToolsPrivateEndpointLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsPrivateEndpointLockResponse> transformer = @@ -3612,7 +3621,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "RemoveDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/RemoveDatabaseToolsSqlReportLock"); final java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsSqlReportLockResponse> transformer = @@ -3670,7 +3679,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnection"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsConnectionResponse> transformer = @@ -3727,7 +3736,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/UpdateDatabaseToolsDatabaseApiGatewayConfig"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> @@ -3788,7 +3797,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsIdentity", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsIdentityResponse> transformer = @@ -3844,7 +3853,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/UpdateDatabaseToolsMcpServer"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsMcpServerResponse> transformer = @@ -3900,7 +3909,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/UpdateDatabaseToolsMcpToolset"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsMcpToolsetResponse> transformer = @@ -3956,7 +3965,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpoint"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsPrivateEndpointResponse> transformer = @@ -4014,7 +4023,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "UpdateDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/UpdateDatabaseToolsSqlReport"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsSqlReportResponse> transformer = @@ -4070,7 +4079,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ValidateDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnection"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> transformer = @@ -4129,7 +4138,7 @@ protected void beforeRetryAction() {} "DatabaseTools", "ValidateDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> transformer = diff --git a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java index 6272a5481cd..d6c44d7f1fd 100644 --- a/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java +++ b/bmc-databasetools/src/main/java/com/oracle/bmc/databasetools/DatabaseToolsClient.java @@ -576,7 +576,7 @@ public AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( "DatabaseTools", "AddDatabaseToolsConnectionLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/AddDatabaseToolsConnectionLock"); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsConnectionLockResponse> transformer = @@ -621,7 +621,7 @@ public AddDatabaseToolsConnectionLockResponse addDatabaseToolsConnectionLock( "DatabaseTools", "AddDatabaseToolsDatabaseApiGatewayConfigLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/AddDatabaseToolsDatabaseApiGatewayConfigLock"); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsDatabaseApiGatewayConfigLockResponse> @@ -665,7 +665,7 @@ public AddDatabaseToolsIdentityLockResponse addDatabaseToolsIdentityLock( "DatabaseTools", "AddDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/AddDatabaseToolsIdentityLock"); java.util.function.Function transformer = AddDatabaseToolsIdentityLockConverter.fromResponse( @@ -707,7 +707,7 @@ public AddDatabaseToolsMcpServerLockResponse addDatabaseToolsMcpServerLock( "DatabaseTools", "AddDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/AddDatabaseToolsMcpServerLock"); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsMcpServerLockResponse> transformer = @@ -750,7 +750,7 @@ public AddDatabaseToolsMcpToolsetLockResponse addDatabaseToolsMcpToolsetLock( "DatabaseTools", "AddDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/AddDatabaseToolsMcpToolsetLock"); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsMcpToolsetLockResponse> transformer = @@ -794,7 +794,7 @@ public AddDatabaseToolsPrivateEndpointLockResponse addDatabaseToolsPrivateEndpoi "DatabaseTools", "AddDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/AddDatabaseToolsPrivateEndpointLock"); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsPrivateEndpointLockResponse> transformer = @@ -837,7 +837,7 @@ public AddDatabaseToolsSqlReportLockResponse addDatabaseToolsSqlReportLock( "DatabaseTools", "AddDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/AddDatabaseToolsSqlReportLock"); java.util.function.Function< javax.ws.rs.core.Response, AddDatabaseToolsSqlReportLockResponse> transformer = @@ -881,7 +881,7 @@ public CascadingDeleteDatabaseToolsMcpServerResponse cascadingDeleteDatabaseTool "DatabaseTools", "CascadingDeleteDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/CascadingDeleteDatabaseToolsMcpServer"); java.util.function.Function< javax.ws.rs.core.Response, CascadingDeleteDatabaseToolsMcpServerResponse> transformer = @@ -923,7 +923,7 @@ public CascadingDeleteDatabaseToolsMcpServerResponse cascadingDeleteDatabaseTool "DatabaseTools", "ChangeDatabaseToolsConnectionCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ChangeDatabaseToolsConnectionCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsConnectionCompartmentResponse> transformer = @@ -970,7 +970,7 @@ public CascadingDeleteDatabaseToolsMcpServerResponse cascadingDeleteDatabaseTool "DatabaseTools", "ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/ChangeDatabaseToolsDatabaseApiGatewayConfigCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsDatabaseApiGatewayConfigCompartmentResponse> @@ -1016,7 +1016,7 @@ public ChangeDatabaseToolsIdentityCompartmentResponse changeDatabaseToolsIdentit "DatabaseTools", "ChangeDatabaseToolsIdentityCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ChangeDatabaseToolsIdentityCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsIdentityCompartmentResponse> transformer = @@ -1061,7 +1061,7 @@ public ChangeDatabaseToolsMcpServerCompartmentResponse changeDatabaseToolsMcpSer "DatabaseTools", "ChangeDatabaseToolsMcpServerCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/ChangeDatabaseToolsMcpServerCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsMcpServerCompartmentResponse> transformer = @@ -1107,7 +1107,7 @@ public ChangeDatabaseToolsMcpServerCompartmentResponse changeDatabaseToolsMcpSer "DatabaseTools", "ChangeDatabaseToolsMcpToolsetCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/ChangeDatabaseToolsMcpToolsetCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsMcpToolsetCompartmentResponse> transformer = @@ -1153,7 +1153,7 @@ public ChangeDatabaseToolsMcpServerCompartmentResponse changeDatabaseToolsMcpSer "DatabaseTools", "ChangeDatabaseToolsPrivateEndpointCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ChangeDatabaseToolsPrivateEndpointCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsPrivateEndpointCompartmentResponse> @@ -1199,7 +1199,7 @@ public ChangeDatabaseToolsSqlReportCompartmentResponse changeDatabaseToolsSqlRep "DatabaseTools", "ChangeDatabaseToolsSqlReportCompartment", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/ChangeDatabaseToolsSqlReportCompartment"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDatabaseToolsSqlReportCompartmentResponse> transformer = @@ -1291,7 +1291,7 @@ public CreateDatabaseToolsConnectionResponse createDatabaseToolsConnection( "DatabaseTools", "CreateDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/CreateDatabaseToolsDatabaseApiGatewayConfig"); java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigResponse> @@ -1515,7 +1515,7 @@ public CreateDatabaseToolsSqlReportResponse createDatabaseToolsSqlReport( "DatabaseTools", "CreateDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/CreateDatabaseToolsSqlReport"); java.util.function.Function transformer = CreateDatabaseToolsSqlReportConverter.fromResponse( @@ -1558,7 +1558,7 @@ public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( "DatabaseTools", "DeleteDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/DeleteDatabaseToolsConnection"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsConnectionResponse> transformer = @@ -1600,7 +1600,7 @@ public DeleteDatabaseToolsConnectionResponse deleteDatabaseToolsConnection( "DatabaseTools", "DeleteDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfig"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigResponse> @@ -1641,7 +1641,7 @@ public DeleteDatabaseToolsIdentityResponse deleteDatabaseToolsIdentity( "DatabaseTools", "DeleteDatabaseToolsIdentity", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/DeleteDatabaseToolsIdentity"); java.util.function.Function transformer = DeleteDatabaseToolsIdentityConverter.fromResponse( @@ -1680,7 +1680,7 @@ public DeleteDatabaseToolsMcpServerResponse deleteDatabaseToolsMcpServer( "DatabaseTools", "DeleteDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/DeleteDatabaseToolsMcpServer"); java.util.function.Function transformer = DeleteDatabaseToolsMcpServerConverter.fromResponse( @@ -1719,7 +1719,7 @@ public DeleteDatabaseToolsMcpToolsetResponse deleteDatabaseToolsMcpToolset( "DatabaseTools", "DeleteDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/DeleteDatabaseToolsMcpToolset"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsMcpToolsetResponse> transformer = @@ -1759,7 +1759,7 @@ public DeleteDatabaseToolsPrivateEndpointResponse deleteDatabaseToolsPrivateEndp "DatabaseTools", "DeleteDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/DeleteDatabaseToolsPrivateEndpoint"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsPrivateEndpointResponse> transformer = @@ -1799,7 +1799,7 @@ public DeleteDatabaseToolsSqlReportResponse deleteDatabaseToolsSqlReport( "DatabaseTools", "DeleteDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/DeleteDatabaseToolsSqlReport"); java.util.function.Function transformer = DeleteDatabaseToolsSqlReportConverter.fromResponse( @@ -1838,7 +1838,7 @@ public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( "DatabaseTools", "GetDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/GetDatabaseToolsConnection"); java.util.function.Function transformer = GetDatabaseToolsConnectionConverter.fromResponse( @@ -1878,7 +1878,7 @@ public GetDatabaseToolsConnectionResponse getDatabaseToolsConnection( "DatabaseTools", "GetDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/GetDatabaseToolsDatabaseApiGatewayConfig"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigResponse> transformer = @@ -1917,7 +1917,7 @@ public GetDatabaseToolsEndpointServiceResponse getDatabaseToolsEndpointService( "DatabaseTools", "GetDatabaseToolsEndpointService", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/GetDatabaseToolsEndpointService"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsEndpointServiceResponse> transformer = @@ -1956,7 +1956,7 @@ public GetDatabaseToolsIdentityResponse getDatabaseToolsIdentity( "DatabaseTools", "GetDatabaseToolsIdentity", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/GetDatabaseToolsIdentity"); java.util.function.Function transformer = GetDatabaseToolsIdentityConverter.fromResponse( @@ -1994,7 +1994,7 @@ public GetDatabaseToolsMcpServerResponse getDatabaseToolsMcpServer( "DatabaseTools", "GetDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/GetDatabaseToolsMcpServer"); java.util.function.Function transformer = GetDatabaseToolsMcpServerConverter.fromResponse( @@ -2032,7 +2032,7 @@ public GetDatabaseToolsMcpToolsetResponse getDatabaseToolsMcpToolset( "DatabaseTools", "GetDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/GetDatabaseToolsMcpToolset"); java.util.function.Function transformer = GetDatabaseToolsMcpToolsetConverter.fromResponse( @@ -2070,7 +2070,7 @@ public GetDatabaseToolsPrivateEndpointResponse getDatabaseToolsPrivateEndpoint( "DatabaseTools", "GetDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/GetDatabaseToolsPrivateEndpoint"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsPrivateEndpointResponse> transformer = @@ -2109,7 +2109,7 @@ public GetDatabaseToolsSqlReportResponse getDatabaseToolsSqlReport( "DatabaseTools", "GetDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/GetDatabaseToolsSqlReport"); java.util.function.Function transformer = GetDatabaseToolsSqlReportConverter.fromResponse( @@ -2143,7 +2143,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "DatabaseTools", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -2179,7 +2182,7 @@ public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( "DatabaseTools", "ListDatabaseToolsConnections", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ListDatabaseToolsConnections"); java.util.function.Function transformer = ListDatabaseToolsConnectionsConverter.fromResponse( @@ -2219,7 +2222,7 @@ public ListDatabaseToolsConnectionsResponse listDatabaseToolsConnections( "DatabaseTools", "ListDatabaseToolsDatabaseApiGatewayConfigs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigs"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigsResponse> @@ -2259,7 +2262,7 @@ public ListDatabaseToolsEndpointServicesResponse listDatabaseToolsEndpointServic "DatabaseTools", "ListDatabaseToolsEndpointServices", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsEndpointService/ListDatabaseToolsEndpointServices"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsEndpointServicesResponse> transformer = @@ -2298,7 +2301,7 @@ public ListDatabaseToolsIdentitiesResponse listDatabaseToolsIdentities( "DatabaseTools", "ListDatabaseToolsIdentities", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ListDatabaseToolsIdentities"); java.util.function.Function transformer = ListDatabaseToolsIdentitiesConverter.fromResponse( @@ -2336,7 +2339,7 @@ public ListDatabaseToolsMcpServersResponse listDatabaseToolsMcpServers( "DatabaseTools", "ListDatabaseToolsMcpServers", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/ListDatabaseToolsMcpServers"); java.util.function.Function transformer = ListDatabaseToolsMcpServersConverter.fromResponse( @@ -2375,7 +2378,7 @@ public ListDatabaseToolsMcpToolsetVersionsResponse listDatabaseToolsMcpToolsetVe "DatabaseTools", "ListDatabaseToolsMcpToolsetVersions", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolsetVersionCollection/ListDatabaseToolsMcpToolsetVersions"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsMcpToolsetVersionsResponse> transformer = @@ -2414,7 +2417,7 @@ public ListDatabaseToolsMcpToolsetsResponse listDatabaseToolsMcpToolsets( "DatabaseTools", "ListDatabaseToolsMcpToolsets", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/ListDatabaseToolsMcpToolsets"); java.util.function.Function transformer = ListDatabaseToolsMcpToolsetsConverter.fromResponse( @@ -2452,7 +2455,7 @@ public ListDatabaseToolsPrivateEndpointsResponse listDatabaseToolsPrivateEndpoin "DatabaseTools", "ListDatabaseToolsPrivateEndpoints", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/ListDatabaseToolsPrivateEndpoints"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsPrivateEndpointsResponse> transformer = @@ -2491,7 +2494,7 @@ public ListDatabaseToolsSqlReportsResponse listDatabaseToolsSqlReports( "DatabaseTools", "ListDatabaseToolsSqlReports", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/ListDatabaseToolsSqlReports"); java.util.function.Function transformer = ListDatabaseToolsSqlReportsConverter.fromResponse( @@ -2529,7 +2532,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( "DatabaseTools", "ListWorkRequestErrors", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -2563,7 +2566,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "DatabaseTools", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -2597,7 +2603,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseTools", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "DatabaseTools", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/WorkRequest/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -2636,7 +2645,7 @@ public RefreshDatabaseToolsIdentityCredentialResponse refreshDatabaseToolsIdenti "DatabaseTools", "RefreshDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RefreshDatabaseToolsIdentityCredential"); java.util.function.Function< javax.ws.rs.core.Response, RefreshDatabaseToolsIdentityCredentialResponse> transformer = @@ -2680,7 +2689,7 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo "DatabaseTools", "RemoveDatabaseToolsConnectionLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/RemoveDatabaseToolsConnectionLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsConnectionLockResponse> transformer = @@ -2725,7 +2734,7 @@ public RemoveDatabaseToolsConnectionLockResponse removeDatabaseToolsConnectionLo "DatabaseTools", "RemoveDatabaseToolsDatabaseApiGatewayConfigLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/RemoveDatabaseToolsDatabaseApiGatewayConfigLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsDatabaseApiGatewayConfigLockResponse> @@ -2769,7 +2778,7 @@ public RemoveDatabaseToolsIdentityLockResponse removeDatabaseToolsIdentityLock( "DatabaseTools", "RemoveDatabaseToolsIdentityLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/RemoveDatabaseToolsIdentityLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsIdentityLockResponse> transformer = @@ -2812,7 +2821,7 @@ public RemoveDatabaseToolsMcpServerLockResponse removeDatabaseToolsMcpServerLock "DatabaseTools", "RemoveDatabaseToolsMcpServerLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/RemoveDatabaseToolsMcpServerLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsMcpServerLockResponse> transformer = @@ -2855,7 +2864,7 @@ public RemoveDatabaseToolsMcpToolsetLockResponse removeDatabaseToolsMcpToolsetLo "DatabaseTools", "RemoveDatabaseToolsMcpToolsetLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/RemoveDatabaseToolsMcpToolsetLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsMcpToolsetLockResponse> transformer = @@ -2899,7 +2908,7 @@ public RemoveDatabaseToolsPrivateEndpointLockResponse removeDatabaseToolsPrivate "DatabaseTools", "RemoveDatabaseToolsPrivateEndpointLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/RemoveDatabaseToolsPrivateEndpointLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsPrivateEndpointLockResponse> transformer = @@ -2942,7 +2951,7 @@ public RemoveDatabaseToolsSqlReportLockResponse removeDatabaseToolsSqlReportLock "DatabaseTools", "RemoveDatabaseToolsSqlReportLock", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/RemoveDatabaseToolsSqlReportLock"); java.util.function.Function< javax.ws.rs.core.Response, RemoveDatabaseToolsSqlReportLockResponse> transformer = @@ -2985,7 +2994,7 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( "DatabaseTools", "UpdateDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/UpdateDatabaseToolsConnection"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsConnectionResponse> transformer = @@ -3031,7 +3040,7 @@ public UpdateDatabaseToolsConnectionResponse updateDatabaseToolsConnection( "DatabaseTools", "UpdateDatabaseToolsDatabaseApiGatewayConfig", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsDatabaseApiGatewayConfig/UpdateDatabaseToolsDatabaseApiGatewayConfig"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigResponse> @@ -3076,7 +3085,7 @@ public UpdateDatabaseToolsIdentityResponse updateDatabaseToolsIdentity( "DatabaseTools", "UpdateDatabaseToolsIdentity", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/UpdateDatabaseToolsIdentity"); java.util.function.Function transformer = UpdateDatabaseToolsIdentityConverter.fromResponse( @@ -3119,7 +3128,7 @@ public UpdateDatabaseToolsMcpServerResponse updateDatabaseToolsMcpServer( "DatabaseTools", "UpdateDatabaseToolsMcpServer", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpServer/UpdateDatabaseToolsMcpServer"); java.util.function.Function transformer = UpdateDatabaseToolsMcpServerConverter.fromResponse( @@ -3162,7 +3171,7 @@ public UpdateDatabaseToolsMcpToolsetResponse updateDatabaseToolsMcpToolset( "DatabaseTools", "UpdateDatabaseToolsMcpToolset", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsMcpToolset/UpdateDatabaseToolsMcpToolset"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsMcpToolsetResponse> transformer = @@ -3206,7 +3215,7 @@ public UpdateDatabaseToolsPrivateEndpointResponse updateDatabaseToolsPrivateEndp "DatabaseTools", "UpdateDatabaseToolsPrivateEndpoint", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsPrivateEndpoint/UpdateDatabaseToolsPrivateEndpoint"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsPrivateEndpointResponse> transformer = @@ -3250,7 +3259,7 @@ public UpdateDatabaseToolsSqlReportResponse updateDatabaseToolsSqlReport( "DatabaseTools", "UpdateDatabaseToolsSqlReport", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsSqlReport/UpdateDatabaseToolsSqlReport"); java.util.function.Function transformer = UpdateDatabaseToolsSqlReportConverter.fromResponse( @@ -3293,7 +3302,7 @@ public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( "DatabaseTools", "ValidateDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsConnection/ValidateDatabaseToolsConnection"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> transformer = @@ -3338,7 +3347,7 @@ public ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIden "DatabaseTools", "ValidateDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools/20201005/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> transformer = diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index 4cff82e3a99..abdf3b40788 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java index 71741acb744..5a99781c411 100644 --- a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeAsyncClient.java @@ -492,7 +492,7 @@ public java.util.concurrent.Future cancelWorkRequest( "DatabaseToolsRuntime", "CancelWorkRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequest/CancelWorkRequest"); final java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -538,7 +538,7 @@ public java.util.concurrent.Future createCredential( "DatabaseToolsRuntime", "CreateCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsConnection/CreateCredential"); final java.util.function.Function transformer = CreateCredentialConverter.fromResponse( @@ -591,7 +591,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "CreateCredentialExecuteGrantee", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGrantee/CreateCredentialExecuteGrantee"); final java.util.function.Function< javax.ws.rs.core.Response, CreateCredentialExecuteGranteeResponse> transformer = @@ -648,7 +648,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "CreateCredentialPublicSynonym", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonym/CreateCredentialPublicSynonym"); final java.util.function.Function< javax.ws.rs.core.Response, CreateCredentialPublicSynonymResponse> transformer = @@ -706,7 +706,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "CreateDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPool/CreateDatabaseToolsDatabaseApiGatewayConfigPool"); final java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -771,7 +771,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -836,7 +836,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -895,7 +895,7 @@ public java.util.concurrent.Future deleteCredential( "DatabaseToolsRuntime", "DeleteCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/Credential/DeleteCredential"); final java.util.function.Function transformer = DeleteCredentialConverter.fromResponse( @@ -943,7 +943,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "DeleteCredentialExecuteGrantee", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGrantee/DeleteCredentialExecuteGrantee"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteCredentialExecuteGranteeResponse> transformer = @@ -995,7 +995,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "DeleteCredentialPublicSynonym", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonym/DeleteCredentialPublicSynonym"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteCredentialPublicSynonymResponse> transformer = @@ -1047,7 +1047,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "DeleteDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfigPool"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -1105,7 +1105,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -1163,7 +1163,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -1218,7 +1218,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ExecuteSqlDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsConnection/ExecuteSqlDatabaseToolsConnection"); final java.util.function.Function< javax.ws.rs.core.Response, ExecuteSqlDatabaseToolsConnectionResponse> transformer = @@ -1270,7 +1270,10 @@ public java.util.concurrent.Future getCredential( GetCredentialConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseToolsRuntime", "GetCredential", ib.getRequestUri().toString(), ""); + "DatabaseToolsRuntime", + "GetCredential", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/Credential/GetCredential"); final java.util.function.Function transformer = GetCredentialConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1317,7 +1320,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetCredentialExecuteGrantee", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGrantee/GetCredentialExecuteGrantee"); final java.util.function.Function< javax.ws.rs.core.Response, GetCredentialExecuteGranteeResponse> transformer = @@ -1368,7 +1371,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetCredentialPublicSynonym", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonym/GetCredentialPublicSynonym"); final java.util.function.Function< javax.ws.rs.core.Response, GetCredentialPublicSynonymResponse> transformer = @@ -1420,7 +1423,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigContent", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/GetDatabaseToolsDatabaseApiGatewayConfigContent"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> @@ -1476,7 +1479,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigGlobal", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigGlobal/GetDatabaseToolsDatabaseApiGatewayConfigGlobal"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> @@ -1532,7 +1535,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPool/GetDatabaseToolsDatabaseApiGatewayConfigPool"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -1589,7 +1592,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -1647,7 +1650,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -1700,7 +1703,7 @@ public java.util.concurrent.Future getPropertySet( "DatabaseToolsRuntime", "GetPropertySet", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/PropertySet/GetPropertySet"); final java.util.function.Function transformer = GetPropertySetConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1745,7 +1748,7 @@ public java.util.concurrent.Future getUserCredential( "DatabaseToolsRuntime", "GetUserCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/UserCredential/GetUserCredential"); final java.util.function.Function transformer = GetUserCredentialConverter.fromResponse( @@ -1791,7 +1794,7 @@ public java.util.concurrent.Future getWorkRequest( "DatabaseToolsRuntime", "GetWorkRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1838,7 +1841,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ListCredentialExecuteGrantees", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGranteeCollection/ListCredentialExecuteGrantees"); final java.util.function.Function< javax.ws.rs.core.Response, ListCredentialExecuteGranteesResponse> transformer = @@ -1889,7 +1892,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ListCredentialPublicSynonyms", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonymCollection/ListCredentialPublicSynonyms"); final java.util.function.Function< javax.ws.rs.core.Response, ListCredentialPublicSynonymsResponse> transformer = @@ -1938,7 +1941,7 @@ public java.util.concurrent.Future listCredentials( "DatabaseToolsRuntime", "ListCredentials", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialCollection/ListCredentials"); final java.util.function.Function transformer = ListCredentialsConverter.fromResponse( @@ -1990,7 +1993,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> @@ -2048,7 +2051,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> @@ -2106,7 +2109,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> @@ -2162,7 +2165,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigPools", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigPools"); final java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> @@ -2215,7 +2218,7 @@ public java.util.concurrent.Future listUserCredenti "DatabaseToolsRuntime", "ListUserCredentials", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/UserCredentialCollection/ListUserCredentials"); final java.util.function.Function transformer = ListUserCredentialsConverter.fromResponse( @@ -2262,7 +2265,7 @@ public java.util.concurrent.Future listWorkReques "DatabaseToolsRuntime", "ListWorkRequestErrors", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -2309,7 +2312,7 @@ public java.util.concurrent.Future listWorkRequestL "DatabaseToolsRuntime", "ListWorkRequestLogs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -2356,7 +2359,7 @@ public java.util.concurrent.Future listWorkRequests( "DatabaseToolsRuntime", "ListWorkRequests", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequest/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -2402,7 +2405,7 @@ public java.util.concurrent.Future updateCredential( "DatabaseToolsRuntime", "UpdateCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/Credential/UpdateCredential"); final java.util.function.Function transformer = UpdateCredentialConverter.fromResponse( @@ -2457,7 +2460,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigGlobal/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> @@ -2519,7 +2522,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPool/UpdateDatabaseToolsDatabaseApiGatewayConfigPool"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -2583,7 +2586,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -2647,7 +2650,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -2706,7 +2709,7 @@ public java.util.concurrent.Future updatePropertySet( "DatabaseToolsRuntime", "UpdatePropertySet", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/PropertySet/UpdatePropertySet"); final java.util.function.Function transformer = UpdatePropertySetConverter.fromResponse( @@ -2759,7 +2762,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ValidateDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsConnection/ValidateDatabaseToolsConnection"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> transformer = @@ -2818,7 +2821,7 @@ protected void beforeRetryAction() {} "DatabaseToolsRuntime", "ValidateDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> transformer = diff --git a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java index ba591cd20df..c4f74e5d193 100644 --- a/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java +++ b/bmc-databasetoolsruntime/src/main/java/com/oracle/bmc/databasetoolsruntime/DatabaseToolsRuntimeClient.java @@ -582,7 +582,7 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ "DatabaseToolsRuntime", "CancelWorkRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequest/CancelWorkRequest"); java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -620,7 +620,7 @@ public CreateCredentialResponse createCredential(CreateCredentialRequest request "DatabaseToolsRuntime", "CreateCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsConnection/CreateCredential"); java.util.function.Function transformer = CreateCredentialConverter.fromResponse( @@ -662,7 +662,7 @@ public CreateCredentialExecuteGranteeResponse createCredentialExecuteGrantee( "DatabaseToolsRuntime", "CreateCredentialExecuteGrantee", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGrantee/CreateCredentialExecuteGrantee"); java.util.function.Function< javax.ws.rs.core.Response, CreateCredentialExecuteGranteeResponse> transformer = @@ -706,7 +706,7 @@ public CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( "DatabaseToolsRuntime", "CreateCredentialPublicSynonym", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonym/CreateCredentialPublicSynonym"); java.util.function.Function< javax.ws.rs.core.Response, CreateCredentialPublicSynonymResponse> transformer = @@ -753,7 +753,7 @@ public CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( "DatabaseToolsRuntime", "CreateDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPool/CreateDatabaseToolsDatabaseApiGatewayConfigPool"); java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -802,7 +802,7 @@ public CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( "DatabaseToolsRuntime", "CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec/CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -851,7 +851,7 @@ public CreateCredentialPublicSynonymResponse createCredentialPublicSynonym( "DatabaseToolsRuntime", "CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec/CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, CreateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -895,7 +895,7 @@ public DeleteCredentialResponse deleteCredential(DeleteCredentialRequest request "DatabaseToolsRuntime", "DeleteCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/Credential/DeleteCredential"); java.util.function.Function transformer = DeleteCredentialConverter.fromResponse( @@ -934,7 +934,7 @@ public DeleteCredentialExecuteGranteeResponse deleteCredentialExecuteGrantee( "DatabaseToolsRuntime", "DeleteCredentialExecuteGrantee", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGrantee/DeleteCredentialExecuteGrantee"); java.util.function.Function< javax.ws.rs.core.Response, DeleteCredentialExecuteGranteeResponse> transformer = @@ -974,7 +974,7 @@ public DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( "DatabaseToolsRuntime", "DeleteCredentialPublicSynonym", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonym/DeleteCredentialPublicSynonym"); java.util.function.Function< javax.ws.rs.core.Response, DeleteCredentialPublicSynonymResponse> transformer = @@ -1016,7 +1016,7 @@ public DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( "DatabaseToolsRuntime", "DeleteDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfigPool"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -1060,7 +1060,7 @@ public DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( "DatabaseToolsRuntime", "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -1104,7 +1104,7 @@ public DeleteCredentialPublicSynonymResponse deleteCredentialPublicSynonym( "DatabaseToolsRuntime", "DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -1145,7 +1145,7 @@ public ExecuteSqlDatabaseToolsConnectionResponse executeSqlDatabaseToolsConnecti "DatabaseToolsRuntime", "ExecuteSqlDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsConnection/ExecuteSqlDatabaseToolsConnection"); java.util.function.Function< javax.ws.rs.core.Response, ExecuteSqlDatabaseToolsConnectionResponse> transformer = @@ -1185,7 +1185,10 @@ public GetCredentialResponse getCredential(GetCredentialRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DatabaseToolsRuntime", "GetCredential", ib.getRequestUri().toString(), ""); + "DatabaseToolsRuntime", + "GetCredential", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/Credential/GetCredential"); java.util.function.Function transformer = GetCredentialConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1221,7 +1224,7 @@ public GetCredentialExecuteGranteeResponse getCredentialExecuteGrantee( "DatabaseToolsRuntime", "GetCredentialExecuteGrantee", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGrantee/GetCredentialExecuteGrantee"); java.util.function.Function transformer = GetCredentialExecuteGranteeConverter.fromResponse( @@ -1259,7 +1262,7 @@ public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( "DatabaseToolsRuntime", "GetCredentialPublicSynonym", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonym/GetCredentialPublicSynonym"); java.util.function.Function transformer = GetCredentialPublicSynonymConverter.fromResponse( @@ -1299,7 +1302,7 @@ public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigContent", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/GetDatabaseToolsDatabaseApiGatewayConfigContent"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigContentResponse> @@ -1341,7 +1344,7 @@ public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigGlobal", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigGlobal/GetDatabaseToolsDatabaseApiGatewayConfigGlobal"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> @@ -1383,7 +1386,7 @@ public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPool/GetDatabaseToolsDatabaseApiGatewayConfigPool"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -1426,7 +1429,7 @@ public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec/GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -1469,7 +1472,7 @@ public GetCredentialPublicSynonymResponse getCredentialPublicSynonym( "DatabaseToolsRuntime", "GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec/GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, GetDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -1508,7 +1511,7 @@ public GetPropertySetResponse getPropertySet(GetPropertySetRequest request) { "DatabaseToolsRuntime", "GetPropertySet", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/PropertySet/GetPropertySet"); java.util.function.Function transformer = GetPropertySetConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1543,7 +1546,7 @@ public GetUserCredentialResponse getUserCredential(GetUserCredentialRequest requ "DatabaseToolsRuntime", "GetUserCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/UserCredential/GetUserCredential"); java.util.function.Function transformer = GetUserCredentialConverter.fromResponse( @@ -1580,7 +1583,7 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { "DatabaseToolsRuntime", "GetWorkRequest", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1616,7 +1619,7 @@ public ListCredentialExecuteGranteesResponse listCredentialExecuteGrantees( "DatabaseToolsRuntime", "ListCredentialExecuteGrantees", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialExecuteGranteeCollection/ListCredentialExecuteGrantees"); java.util.function.Function< javax.ws.rs.core.Response, ListCredentialExecuteGranteesResponse> transformer = @@ -1655,7 +1658,7 @@ public ListCredentialPublicSynonymsResponse listCredentialPublicSynonyms( "DatabaseToolsRuntime", "ListCredentialPublicSynonyms", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialPublicSynonymCollection/ListCredentialPublicSynonyms"); java.util.function.Function transformer = ListCredentialPublicSynonymsConverter.fromResponse( @@ -1692,7 +1695,7 @@ public ListCredentialsResponse listCredentials(ListCredentialsRequest request) { "DatabaseToolsRuntime", "ListCredentials", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/CredentialCollection/ListCredentials"); java.util.function.Function transformer = ListCredentialsConverter.fromResponse( @@ -1734,7 +1737,7 @@ public ListCredentialsResponse listCredentials(ListCredentialsRequest request) { "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigAdvancedPropertySummary/ListDatabaseToolsDatabaseApiGatewayConfigAdvancedProperties"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigAdvancedPropertiesResponse> @@ -1777,7 +1780,7 @@ public ListCredentialsResponse listCredentials(ListCredentialsRequest request) { "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecs"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecsResponse> @@ -1820,7 +1823,7 @@ public ListCredentialsResponse listCredentials(ListCredentialsRequest request) { "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecs"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecsResponse> @@ -1862,7 +1865,7 @@ public ListCredentialsResponse listCredentials(ListCredentialsRequest request) { "DatabaseToolsRuntime", "ListDatabaseToolsDatabaseApiGatewayConfigPools", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfig/ListDatabaseToolsDatabaseApiGatewayConfigPools"); java.util.function.Function< javax.ws.rs.core.Response, ListDatabaseToolsDatabaseApiGatewayConfigPoolsResponse> @@ -1901,7 +1904,7 @@ public ListUserCredentialsResponse listUserCredentials(ListUserCredentialsReques "DatabaseToolsRuntime", "ListUserCredentials", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/UserCredentialCollection/ListUserCredentials"); java.util.function.Function transformer = ListUserCredentialsConverter.fromResponse( @@ -1939,7 +1942,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( "DatabaseToolsRuntime", "ListWorkRequestErrors", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -1976,7 +1979,7 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques "DatabaseToolsRuntime", "ListWorkRequestLogs", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -2013,7 +2016,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request "DatabaseToolsRuntime", "ListWorkRequests", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/WorkRequest/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -2050,7 +2053,7 @@ public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request "DatabaseToolsRuntime", "UpdateCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/Credential/UpdateCredential"); java.util.function.Function transformer = UpdateCredentialConverter.fromResponse( @@ -2095,7 +2098,7 @@ public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigGlobal/UpdateDatabaseToolsDatabaseApiGatewayConfigGlobal"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigGlobalResponse> @@ -2142,7 +2145,7 @@ public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigPool", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPool/UpdateDatabaseToolsDatabaseApiGatewayConfigPool"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolResponse> @@ -2190,7 +2193,7 @@ public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolApiSpec/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolApiSpecResponse> @@ -2238,7 +2241,7 @@ public UpdateCredentialResponse updateCredential(UpdateCredentialRequest request "DatabaseToolsRuntime", "UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec/UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpec"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDatabaseToolsDatabaseApiGatewayConfigPoolAutoApiSpecResponse> @@ -2282,7 +2285,7 @@ public UpdatePropertySetResponse updatePropertySet(UpdatePropertySetRequest requ "DatabaseToolsRuntime", "UpdatePropertySet", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/PropertySet/UpdatePropertySet"); java.util.function.Function transformer = UpdatePropertySetConverter.fromResponse( @@ -2324,7 +2327,7 @@ public ValidateDatabaseToolsConnectionResponse validateDatabaseToolsConnection( "DatabaseToolsRuntime", "ValidateDatabaseToolsConnection", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsConnection/ValidateDatabaseToolsConnection"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsConnectionResponse> transformer = @@ -2369,7 +2372,7 @@ public ValidateDatabaseToolsIdentityCredentialResponse validateDatabaseToolsIden "DatabaseToolsRuntime", "ValidateDatabaseToolsIdentityCredential", ib.getRequestUri().toString(), - ""); + "https://docs.oracle.com/iaas/api/#/en/database-tools-runtime/20230222/DatabaseToolsIdentity/ValidateDatabaseToolsIdentityCredential"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDatabaseToolsIdentityCredentialResponse> transformer = diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index efb8d46bb7d..19fc9b062aa 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-datacatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml index 1ee50289931..e35c336978f 100644 --- a/bmc-datacc/pom.xml +++ b/bmc-datacc/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-datacc @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 6a14a637ec4..26a0f22827b 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-dataflow @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index d193338a7f2..b6b2342b2ed 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-dataintegration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index a85faf1d0c2..6d4651bee56 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 9611e60699a..563e97ae217 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 94c3d5e6994..a36c99b0f1a 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-datasafe @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 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 facad418c6b..0588c437142 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 @@ -348,6 +348,21 @@ 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. * @param request The request object containing the details to send @@ -1306,6 +1321,20 @@ 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. * @param request The request object containing the details to send @@ -1735,6 +1764,21 @@ 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 DownloadDiscoveryReport operation. Use GenerateDiscoveryReportForDownload to generate a discovery @@ -1884,6 +1928,21 @@ 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 then use DownloadDiscoveryReport to download the generated file. @@ -2168,6 +2227,31 @@ 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. * @param request The request object containing the details to send @@ -3111,6 +3195,135 @@ 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. * @@ -4687,6 +4900,21 @@ 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. * @param request The request object containing the details to send @@ -5059,6 +5287,18 @@ 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. * @param request The request object containing the details to send 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 e2ab8258227..f2794e89206 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 @@ -401,6 +401,26 @@ 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. * @@ -1637,6 +1657,24 @@ 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. * @@ -2193,6 +2231,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 DownloadDiscoveryReport operation. Use GenerateDiscoveryReportForDownload to generate a discovery @@ -2381,6 +2439,26 @@ 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 then use DownloadDiscoveryReport to download the generated file. @@ -2743,6 +2821,40 @@ 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. * @@ -3916,6 +4028,179 @@ 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. * @@ -5850,6 +6135,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. * @@ -6333,6 +6637,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 b7ca464b230..b0cd5e2e4ff 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 @@ -311,7 +311,7 @@ public DataSafeAsyncClient( LOG.warn( com.oracle.bmc.http.ApacheUtils.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")); } } @@ -1538,6 +1538,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeCryptoAssessmentCompartment( + ChangeCryptoAssessmentCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeCryptoAssessmentCompartmentRequest, + ChangeCryptoAssessmentCompartmentResponse> + handler) { + LOG.trace("Called async changeCryptoAssessmentCompartment"); + final ChangeCryptoAssessmentCompartmentRequest interceptedRequest = + ChangeCryptoAssessmentCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeCryptoAssessmentCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ChangeCryptoAssessmentCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ChangeCryptoAssessmentCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeCryptoAssessmentCompartmentResponse> + transformer = + ChangeCryptoAssessmentCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeCryptoAssessmentCompartmentRequest, + ChangeCryptoAssessmentCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeCryptoAssessmentCompartmentRequest, + ChangeCryptoAssessmentCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeCryptoAssessmentCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeCryptoAssessmentCompartmentRequest, + ChangeCryptoAssessmentCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeDataSafePrivateEndpointCompartment( @@ -5267,6 +5326,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteCryptoAssessment( + DeleteCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCryptoAssessmentRequest, DeleteCryptoAssessmentResponse> + handler) { + LOG.trace("Called async deleteCryptoAssessment"); + final DeleteCryptoAssessmentRequest interceptedRequest = + DeleteCryptoAssessmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "DeleteCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DeleteCryptoAssessment"); + final java.util.function.Function + transformer = + DeleteCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteCryptoAssessmentRequest, DeleteCryptoAssessmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCryptoAssessmentRequest, DeleteCryptoAssessmentResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteCryptoAssessmentRequest, DeleteCryptoAssessmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteDataSafePrivateEndpoint( @@ -6884,6 +6990,64 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + downloadCryptoAssessmentReport( + DownloadCryptoAssessmentReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadCryptoAssessmentReportRequest, + DownloadCryptoAssessmentReportResponse> + handler) { + LOG.trace("Called async downloadCryptoAssessmentReport"); + final DownloadCryptoAssessmentReportRequest interceptedRequest = + DownloadCryptoAssessmentReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadCryptoAssessmentReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "DownloadCryptoAssessmentReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DownloadCryptoAssessmentReport"); + final java.util.function.Function< + javax.ws.rs.core.Response, DownloadCryptoAssessmentReportResponse> + transformer = + DownloadCryptoAssessmentReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DownloadCryptoAssessmentReportRequest, + DownloadCryptoAssessmentReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DownloadCryptoAssessmentReportRequest, + DownloadCryptoAssessmentReportResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getDownloadCryptoAssessmentReportDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DownloadCryptoAssessmentReportRequest, DownloadCryptoAssessmentReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future downloadDiscoveryReport( DownloadDiscoveryReportRequest request, @@ -7425,6 +7589,64 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + generateCryptoAssessmentReport( + GenerateCryptoAssessmentReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateCryptoAssessmentReportRequest, + GenerateCryptoAssessmentReportResponse> + handler) { + LOG.trace("Called async generateCryptoAssessmentReport"); + final GenerateCryptoAssessmentReportRequest interceptedRequest = + GenerateCryptoAssessmentReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateCryptoAssessmentReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "GenerateCryptoAssessmentReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GenerateCryptoAssessmentReport"); + final java.util.function.Function< + javax.ws.rs.core.Response, GenerateCryptoAssessmentReportResponse> + transformer = + GenerateCryptoAssessmentReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateCryptoAssessmentReportRequest, + GenerateCryptoAssessmentReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateCryptoAssessmentReportRequest, + GenerateCryptoAssessmentReportResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getGenerateCryptoAssessmentReportDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateCryptoAssessmentReportRequest, GenerateCryptoAssessmentReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future generateDiscoveryReportForDownload( @@ -8457,6 +8679,107 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getCryptoAssessment( + GetCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse> + handler) { + LOG.trace("Called async getCryptoAssessment"); + final GetCryptoAssessmentRequest interceptedRequest = + GetCryptoAssessmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "GetCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessment"); + final java.util.function.Function + transformer = + GetCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetCryptoAssessmentRequest, GetCryptoAssessmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getCryptoAssessmentSqlnetParameters( + GetCryptoAssessmentSqlnetParametersRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentSqlnetParametersRequest, + GetCryptoAssessmentSqlnetParametersResponse> + handler) { + LOG.trace("Called async getCryptoAssessmentSqlnetParameters"); + final GetCryptoAssessmentSqlnetParametersRequest interceptedRequest = + GetCryptoAssessmentSqlnetParametersConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCryptoAssessmentSqlnetParametersConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "GetCryptoAssessmentSqlnetParameters", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessmentSqlnetParameters"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetCryptoAssessmentSqlnetParametersResponse> + transformer = + GetCryptoAssessmentSqlnetParametersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentSqlnetParametersRequest, + GetCryptoAssessmentSqlnetParametersResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCryptoAssessmentSqlnetParametersRequest, + GetCryptoAssessmentSqlnetParametersResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetCryptoAssessmentSqlnetParametersRequest, + GetCryptoAssessmentSqlnetParametersResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getDataSafeConfiguration( GetDataSafeConfigurationRequest request, @@ -11550,44 +11873,45 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDataSafePrivateEndpoints( - ListDataSafePrivateEndpointsRequest request, + public java.util.concurrent.Future + listCryptoAssessmentBackupSets( + ListCryptoAssessmentBackupSetsRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListDataSafePrivateEndpointsRequest, - ListDataSafePrivateEndpointsResponse> + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse> handler) { - LOG.trace("Called async listDataSafePrivateEndpoints"); - final ListDataSafePrivateEndpointsRequest interceptedRequest = - ListDataSafePrivateEndpointsConverter.interceptRequest(request); + LOG.trace("Called async listCryptoAssessmentBackupSets"); + final ListCryptoAssessmentBackupSetsRequest interceptedRequest = + ListCryptoAssessmentBackupSetsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDataSafePrivateEndpointsConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentBackupSetsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDataSafePrivateEndpoints", + "ListCryptoAssessmentBackupSets", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpointSummary/ListDataSafePrivateEndpoints"); + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentBackupSets"); final java.util.function.Function< - javax.ws.rs.core.Response, ListDataSafePrivateEndpointsResponse> + javax.ws.rs.core.Response, ListCryptoAssessmentBackupSetsResponse> transformer = - ListDataSafePrivateEndpointsConverter.fromResponse( + ListCryptoAssessmentBackupSetsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListDataSafePrivateEndpointsRequest, ListDataSafePrivateEndpointsResponse> + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDataSafePrivateEndpointsRequest, - ListDataSafePrivateEndpointsResponse>, - java.util.concurrent.Future> + ListCryptoAssessmentBackupSetsRequest, + ListCryptoAssessmentBackupSetsResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDataSafePrivateEndpointsRequest, ListDataSafePrivateEndpointsResponse>( + ListCryptoAssessmentBackupSetsRequest, ListCryptoAssessmentBackupSetsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -11601,44 +11925,44 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDatabaseSecurityConfigs( - ListDatabaseSecurityConfigsRequest request, + public java.util.concurrent.Future + listCryptoAssessmentCbomItems( + ListCryptoAssessmentCbomItemsRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListDatabaseSecurityConfigsRequest, - ListDatabaseSecurityConfigsResponse> + ListCryptoAssessmentCbomItemsRequest, + ListCryptoAssessmentCbomItemsResponse> handler) { - LOG.trace("Called async listDatabaseSecurityConfigs"); - final ListDatabaseSecurityConfigsRequest interceptedRequest = - ListDatabaseSecurityConfigsConverter.interceptRequest(request); + LOG.trace("Called async listCryptoAssessmentCbomItems"); + final ListCryptoAssessmentCbomItemsRequest interceptedRequest = + ListCryptoAssessmentCbomItemsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseSecurityConfigsConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentCbomItemsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDatabaseSecurityConfigs", + "ListCryptoAssessmentCbomItems", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseSecurityConfigCollection/ListDatabaseSecurityConfigs"); + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCbomItems"); final java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseSecurityConfigsResponse> + javax.ws.rs.core.Response, ListCryptoAssessmentCbomItemsResponse> transformer = - ListDatabaseSecurityConfigsConverter.fromResponse( + ListCryptoAssessmentCbomItemsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListDatabaseSecurityConfigsRequest, ListDatabaseSecurityConfigsResponse> + ListCryptoAssessmentCbomItemsRequest, ListCryptoAssessmentCbomItemsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDatabaseSecurityConfigsRequest, - ListDatabaseSecurityConfigsResponse>, - java.util.concurrent.Future> + ListCryptoAssessmentCbomItemsRequest, + ListCryptoAssessmentCbomItemsResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDatabaseSecurityConfigsRequest, ListDatabaseSecurityConfigsResponse>( + ListCryptoAssessmentCbomItemsRequest, ListCryptoAssessmentCbomItemsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -11652,16 +11976,527 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDatabaseTableAccessEntries( - ListDatabaseTableAccessEntriesRequest request, + public java.util.concurrent.Future + listCryptoAssessmentCertificates( + ListCryptoAssessmentCertificatesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListDatabaseTableAccessEntriesRequest, - ListDatabaseTableAccessEntriesResponse> + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse> handler) { - LOG.trace("Called async listDatabaseTableAccessEntries"); - final ListDatabaseTableAccessEntriesRequest interceptedRequest = - ListDatabaseTableAccessEntriesConverter.interceptRequest(request); + LOG.trace("Called async listCryptoAssessmentCertificates"); + final ListCryptoAssessmentCertificatesRequest interceptedRequest = + ListCryptoAssessmentCertificatesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentCertificatesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentCertificates", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCertificates"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentCertificatesResponse> + transformer = + ListCryptoAssessmentCertificatesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentCertificatesRequest, + ListCryptoAssessmentCertificatesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentFindingAnalytics( + ListCryptoAssessmentFindingAnalyticsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse> + handler) { + LOG.trace("Called async listCryptoAssessmentFindingAnalytics"); + final ListCryptoAssessmentFindingAnalyticsRequest interceptedRequest = + ListCryptoAssessmentFindingAnalyticsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentFindingAnalyticsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentFindingAnalytics", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingAnalytics"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentFindingAnalyticsResponse> + transformer = + ListCryptoAssessmentFindingAnalyticsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentFindingAnalyticsRequest, + ListCryptoAssessmentFindingAnalyticsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentFindingTargets( + ListCryptoAssessmentFindingTargetsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse> + handler) { + LOG.trace("Called async listCryptoAssessmentFindingTargets"); + final ListCryptoAssessmentFindingTargetsRequest interceptedRequest = + ListCryptoAssessmentFindingTargetsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentFindingTargetsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentFindingTargets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingTargets"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentFindingTargetsResponse> + transformer = + ListCryptoAssessmentFindingTargetsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentFindingTargetsRequest, + ListCryptoAssessmentFindingTargetsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentFindings( + ListCryptoAssessmentFindingsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse> + handler) { + LOG.trace("Called async listCryptoAssessmentFindings"); + final ListCryptoAssessmentFindingsRequest interceptedRequest = + ListCryptoAssessmentFindingsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentFindingsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentFindings", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindings"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentFindingsResponse> + transformer = + ListCryptoAssessmentFindingsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingsRequest, ListCryptoAssessmentFindingsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentFindingsRequest, + ListCryptoAssessmentFindingsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentFindingsRequest, ListCryptoAssessmentFindingsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listCryptoAssessmentKeys( + ListCryptoAssessmentKeysRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse> + handler) { + LOG.trace("Called async listCryptoAssessmentKeys"); + final ListCryptoAssessmentKeysRequest interceptedRequest = + ListCryptoAssessmentKeysConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentKeysConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentKeys", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentKeys"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentKeysResponse> + transformer = + ListCryptoAssessmentKeysConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentKeysRequest, ListCryptoAssessmentKeysResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentTdeObjects( + ListCryptoAssessmentTdeObjectsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse> + handler) { + LOG.trace("Called async listCryptoAssessmentTdeObjects"); + final ListCryptoAssessmentTdeObjectsRequest interceptedRequest = + ListCryptoAssessmentTdeObjectsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentTdeObjectsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentTdeObjects", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentTdeObjects"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentTdeObjectsResponse> + transformer = + ListCryptoAssessmentTdeObjectsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentTdeObjectsRequest, + ListCryptoAssessmentTdeObjectsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentTdeObjectsRequest, ListCryptoAssessmentTdeObjectsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listCryptoAssessmentWallets( + ListCryptoAssessmentWalletsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentWalletsRequest, + ListCryptoAssessmentWalletsResponse> + handler) { + LOG.trace("Called async listCryptoAssessmentWallets"); + final ListCryptoAssessmentWalletsRequest interceptedRequest = + ListCryptoAssessmentWalletsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentWalletsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentWallets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentWallets"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentWalletsResponse> + transformer = + ListCryptoAssessmentWalletsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentWalletsRequest, ListCryptoAssessmentWalletsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentWalletsRequest, + ListCryptoAssessmentWalletsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentWalletsRequest, ListCryptoAssessmentWalletsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listCryptoAssessments( + ListCryptoAssessmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse> + handler) { + LOG.trace("Called async listCryptoAssessments"); + final ListCryptoAssessmentsRequest interceptedRequest = + ListCryptoAssessmentsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessments", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessments"); + final java.util.function.Function + transformer = + ListCryptoAssessmentsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCryptoAssessmentsRequest, ListCryptoAssessmentsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listDataSafePrivateEndpoints( + ListDataSafePrivateEndpointsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDataSafePrivateEndpointsRequest, + ListDataSafePrivateEndpointsResponse> + handler) { + LOG.trace("Called async listDataSafePrivateEndpoints"); + final ListDataSafePrivateEndpointsRequest interceptedRequest = + ListDataSafePrivateEndpointsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataSafePrivateEndpointsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDataSafePrivateEndpoints", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpointSummary/ListDataSafePrivateEndpoints"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDataSafePrivateEndpointsResponse> + transformer = + ListDataSafePrivateEndpointsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDataSafePrivateEndpointsRequest, ListDataSafePrivateEndpointsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDataSafePrivateEndpointsRequest, + ListDataSafePrivateEndpointsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDataSafePrivateEndpointsRequest, ListDataSafePrivateEndpointsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listDatabaseSecurityConfigs( + ListDatabaseSecurityConfigsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseSecurityConfigsRequest, + ListDatabaseSecurityConfigsResponse> + handler) { + LOG.trace("Called async listDatabaseSecurityConfigs"); + final ListDatabaseSecurityConfigsRequest interceptedRequest = + ListDatabaseSecurityConfigsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseSecurityConfigsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDatabaseSecurityConfigs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseSecurityConfigCollection/ListDatabaseSecurityConfigs"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseSecurityConfigsResponse> + transformer = + ListDatabaseSecurityConfigsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseSecurityConfigsRequest, ListDatabaseSecurityConfigsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDatabaseSecurityConfigsRequest, + ListDatabaseSecurityConfigsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDatabaseSecurityConfigsRequest, ListDatabaseSecurityConfigsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listDatabaseTableAccessEntries( + ListDatabaseTableAccessEntriesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDatabaseTableAccessEntriesRequest, + ListDatabaseTableAccessEntriesResponse> + handler) { + LOG.trace("Called async listDatabaseTableAccessEntries"); + final ListDatabaseTableAccessEntriesRequest interceptedRequest = + ListDatabaseTableAccessEntriesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ListDatabaseTableAccessEntriesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = @@ -16158,6 +16993,60 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future refreshCryptoAssessment( + RefreshCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RefreshCryptoAssessmentRequest, RefreshCryptoAssessmentResponse> + handler) { + LOG.trace("Called async refreshCryptoAssessment"); + final RefreshCryptoAssessmentRequest interceptedRequest = + RefreshCryptoAssessmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RefreshCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "RefreshCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/RefreshCryptoAssessment"); + final java.util.function.Function< + javax.ws.rs.core.Response, RefreshCryptoAssessmentResponse> + transformer = + RefreshCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RefreshCryptoAssessmentRequest, RefreshCryptoAssessmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RefreshCryptoAssessmentRequest, RefreshCryptoAssessmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRunCryptoAssessmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RefreshCryptoAssessmentRequest, RefreshCryptoAssessmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future refreshDatabaseSecurityConfiguration( @@ -17649,6 +18538,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateCryptoAssessment( + UpdateCryptoAssessmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateCryptoAssessmentRequest, UpdateCryptoAssessmentResponse> + handler) { + LOG.trace("Called async updateCryptoAssessment"); + final UpdateCryptoAssessmentRequest interceptedRequest = + UpdateCryptoAssessmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "UpdateCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/UpdateCryptoAssessment"); + final java.util.function.Function + transformer = + UpdateCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateCryptoAssessmentRequest, UpdateCryptoAssessmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateCryptoAssessmentRequest, UpdateCryptoAssessmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateCryptoAssessmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateCryptoAssessmentRequest, UpdateCryptoAssessmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @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 74c1178bb74..4bb04c397ef 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 @@ -388,7 +388,7 @@ protected DataSafeClient( LOG.warn( com.oracle.bmc.http.ApacheUtils.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")); } } @@ -1421,6 +1421,51 @@ public ChangeAuditProfileCompartmentResponse changeAuditProfileCompartment( }); } + @Override + public ChangeCryptoAssessmentCompartmentResponse changeCryptoAssessmentCompartment( + ChangeCryptoAssessmentCompartmentRequest request) { + LOG.trace("Called changeCryptoAssessmentCompartment"); + final ChangeCryptoAssessmentCompartmentRequest interceptedRequest = + ChangeCryptoAssessmentCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeCryptoAssessmentCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ChangeCryptoAssessmentCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ChangeCryptoAssessmentCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeCryptoAssessmentCompartmentResponse> + transformer = + ChangeCryptoAssessmentCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeCryptoAssessmentCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeDataSafePrivateEndpointCompartmentResponse changeDataSafePrivateEndpointCompartment( @@ -4341,6 +4386,45 @@ public DeleteAuditTrailResponse deleteAuditTrail(DeleteAuditTrailRequest request }); } + @Override + public DeleteCryptoAssessmentResponse deleteCryptoAssessment( + DeleteCryptoAssessmentRequest request) { + LOG.trace("Called deleteCryptoAssessment"); + final DeleteCryptoAssessmentRequest interceptedRequest = + DeleteCryptoAssessmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "DeleteCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DeleteCryptoAssessment"); + java.util.function.Function + transformer = + DeleteCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteDataSafePrivateEndpointResponse deleteDataSafePrivateEndpoint( DeleteDataSafePrivateEndpointRequest request) { @@ -5627,6 +5711,51 @@ public DiscoverAuditTrailsResponse discoverAuditTrails(DiscoverAuditTrailsReques }); } + @Override + public DownloadCryptoAssessmentReportResponse downloadCryptoAssessmentReport( + DownloadCryptoAssessmentReportRequest request) { + LOG.trace("Called downloadCryptoAssessmentReport"); + final DownloadCryptoAssessmentReportRequest interceptedRequest = + DownloadCryptoAssessmentReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadCryptoAssessmentReportConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "DownloadCryptoAssessmentReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DownloadCryptoAssessmentReport"); + java.util.function.Function< + javax.ws.rs.core.Response, DownloadCryptoAssessmentReportResponse> + transformer = + DownloadCryptoAssessmentReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getDownloadCryptoAssessmentReportDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DownloadDiscoveryReportResponse downloadDiscoveryReport( DownloadDiscoveryReportRequest request) { @@ -6052,6 +6181,51 @@ public EnableDataSafeConfigurationResponse enableDataSafeConfiguration( }); } + @Override + public GenerateCryptoAssessmentReportResponse generateCryptoAssessmentReport( + GenerateCryptoAssessmentReportRequest request) { + LOG.trace("Called generateCryptoAssessmentReport"); + final GenerateCryptoAssessmentReportRequest interceptedRequest = + GenerateCryptoAssessmentReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateCryptoAssessmentReportConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "GenerateCryptoAssessmentReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GenerateCryptoAssessmentReport"); + java.util.function.Function< + javax.ws.rs.core.Response, GenerateCryptoAssessmentReportResponse> + transformer = + GenerateCryptoAssessmentReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getGenerateCryptoAssessmentReportDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GenerateDiscoveryReportForDownloadResponse generateDiscoveryReportForDownload( GenerateDiscoveryReportForDownloadRequest request) { @@ -6853,6 +7027,83 @@ public GetCompatibleFormatsForSensitiveTypesResponse getCompatibleFormatsForSens }); } + @Override + public GetCryptoAssessmentResponse getCryptoAssessment(GetCryptoAssessmentRequest request) { + LOG.trace("Called getCryptoAssessment"); + final GetCryptoAssessmentRequest interceptedRequest = + GetCryptoAssessmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "GetCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessment"); + java.util.function.Function + transformer = + GetCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetCryptoAssessmentSqlnetParametersResponse getCryptoAssessmentSqlnetParameters( + GetCryptoAssessmentSqlnetParametersRequest request) { + LOG.trace("Called getCryptoAssessmentSqlnetParameters"); + final GetCryptoAssessmentSqlnetParametersRequest interceptedRequest = + GetCryptoAssessmentSqlnetParametersConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCryptoAssessmentSqlnetParametersConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "GetCryptoAssessmentSqlnetParameters", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessmentSqlnetParameters"); + java.util.function.Function< + javax.ws.rs.core.Response, GetCryptoAssessmentSqlnetParametersResponse> + transformer = + GetCryptoAssessmentSqlnetParametersConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetDataSafeConfigurationResponse getDataSafeConfiguration( GetDataSafeConfigurationRequest request) { @@ -9286,13 +9537,13 @@ public ListColumnsResponse listColumns(ListColumnsRequest request) { } @Override - public ListDataSafePrivateEndpointsResponse listDataSafePrivateEndpoints( - ListDataSafePrivateEndpointsRequest request) { - LOG.trace("Called listDataSafePrivateEndpoints"); - final ListDataSafePrivateEndpointsRequest interceptedRequest = - ListDataSafePrivateEndpointsConverter.interceptRequest(request); + public ListCryptoAssessmentBackupSetsResponse listCryptoAssessmentBackupSets( + ListCryptoAssessmentBackupSetsRequest request) { + LOG.trace("Called listCryptoAssessmentBackupSets"); + final ListCryptoAssessmentBackupSetsRequest interceptedRequest = + ListCryptoAssessmentBackupSetsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDataSafePrivateEndpointsConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentBackupSetsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -9301,12 +9552,13 @@ public ListDataSafePrivateEndpointsResponse listDataSafePrivateEndpoints( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDataSafePrivateEndpoints", + "ListCryptoAssessmentBackupSets", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpointSummary/ListDataSafePrivateEndpoints"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentBackupSets"); + java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentBackupSetsResponse> transformer = - ListDataSafePrivateEndpointsConverter.fromResponse( + ListCryptoAssessmentBackupSetsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -9324,13 +9576,13 @@ public ListDataSafePrivateEndpointsResponse listDataSafePrivateEndpoints( } @Override - public ListDatabaseSecurityConfigsResponse listDatabaseSecurityConfigs( - ListDatabaseSecurityConfigsRequest request) { - LOG.trace("Called listDatabaseSecurityConfigs"); - final ListDatabaseSecurityConfigsRequest interceptedRequest = - ListDatabaseSecurityConfigsConverter.interceptRequest(request); + public ListCryptoAssessmentCbomItemsResponse listCryptoAssessmentCbomItems( + ListCryptoAssessmentCbomItemsRequest request) { + LOG.trace("Called listCryptoAssessmentCbomItems"); + final ListCryptoAssessmentCbomItemsRequest interceptedRequest = + ListCryptoAssessmentCbomItemsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseSecurityConfigsConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentCbomItemsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -9339,12 +9591,13 @@ public ListDatabaseSecurityConfigsResponse listDatabaseSecurityConfigs( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDatabaseSecurityConfigs", + "ListCryptoAssessmentCbomItems", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseSecurityConfigCollection/ListDatabaseSecurityConfigs"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCbomItems"); + java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentCbomItemsResponse> transformer = - ListDatabaseSecurityConfigsConverter.fromResponse( + ListCryptoAssessmentCbomItemsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -9362,13 +9615,13 @@ public ListDatabaseSecurityConfigsResponse listDatabaseSecurityConfigs( } @Override - public ListDatabaseTableAccessEntriesResponse listDatabaseTableAccessEntries( - ListDatabaseTableAccessEntriesRequest request) { - LOG.trace("Called listDatabaseTableAccessEntries"); - final ListDatabaseTableAccessEntriesRequest interceptedRequest = - ListDatabaseTableAccessEntriesConverter.interceptRequest(request); + public ListCryptoAssessmentCertificatesResponse listCryptoAssessmentCertificates( + ListCryptoAssessmentCertificatesRequest request) { + LOG.trace("Called listCryptoAssessmentCertificates"); + final ListCryptoAssessmentCertificatesRequest interceptedRequest = + ListCryptoAssessmentCertificatesConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseTableAccessEntriesConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentCertificatesConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -9377,13 +9630,13 @@ public ListDatabaseTableAccessEntriesResponse listDatabaseTableAccessEntries( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDatabaseTableAccessEntries", + "ListCryptoAssessmentCertificates", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseTableAccessEntryCollection/ListDatabaseTableAccessEntries"); + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCertificates"); java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseTableAccessEntriesResponse> + javax.ws.rs.core.Response, ListCryptoAssessmentCertificatesResponse> transformer = - ListDatabaseTableAccessEntriesConverter.fromResponse( + ListCryptoAssessmentCertificatesConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -9401,13 +9654,14 @@ public ListDatabaseTableAccessEntriesResponse listDatabaseTableAccessEntries( } @Override - public ListDatabaseViewAccessEntriesResponse listDatabaseViewAccessEntries( - ListDatabaseViewAccessEntriesRequest request) { - LOG.trace("Called listDatabaseViewAccessEntries"); - final ListDatabaseViewAccessEntriesRequest interceptedRequest = - ListDatabaseViewAccessEntriesConverter.interceptRequest(request); + public ListCryptoAssessmentFindingAnalyticsResponse listCryptoAssessmentFindingAnalytics( + ListCryptoAssessmentFindingAnalyticsRequest request) { + LOG.trace("Called listCryptoAssessmentFindingAnalytics"); + final ListCryptoAssessmentFindingAnalyticsRequest interceptedRequest = + ListCryptoAssessmentFindingAnalyticsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDatabaseViewAccessEntriesConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentFindingAnalyticsConverter.fromRequest( + client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -9416,13 +9670,13 @@ public ListDatabaseViewAccessEntriesResponse listDatabaseViewAccessEntries( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDatabaseViewAccessEntries", + "ListCryptoAssessmentFindingAnalytics", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseViewAccessEntryCollection/ListDatabaseViewAccessEntries"); + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingAnalytics"); java.util.function.Function< - javax.ws.rs.core.Response, ListDatabaseViewAccessEntriesResponse> + javax.ws.rs.core.Response, ListCryptoAssessmentFindingAnalyticsResponse> transformer = - ListDatabaseViewAccessEntriesConverter.fromResponse( + ListCryptoAssessmentFindingAnalyticsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -9440,13 +9694,13 @@ public ListDatabaseViewAccessEntriesResponse listDatabaseViewAccessEntries( } @Override - public ListDifferenceColumnsResponse listDifferenceColumns( - ListDifferenceColumnsRequest request) { - LOG.trace("Called listDifferenceColumns"); - final ListDifferenceColumnsRequest interceptedRequest = - ListDifferenceColumnsConverter.interceptRequest(request); + public ListCryptoAssessmentFindingTargetsResponse listCryptoAssessmentFindingTargets( + ListCryptoAssessmentFindingTargetsRequest request) { + LOG.trace("Called listCryptoAssessmentFindingTargets"); + final ListCryptoAssessmentFindingTargetsRequest interceptedRequest = + ListCryptoAssessmentFindingTargetsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDifferenceColumnsConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentFindingTargetsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -9455,12 +9709,13 @@ public ListDifferenceColumnsResponse listDifferenceColumns( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDifferenceColumns", + "ListCryptoAssessmentFindingTargets", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SdmMaskingPolicyDifference/ListDifferenceColumns"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingTargets"); + java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentFindingTargetsResponse> transformer = - ListDifferenceColumnsConverter.fromResponse( + ListCryptoAssessmentFindingTargetsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -9478,13 +9733,13 @@ public ListDifferenceColumnsResponse listDifferenceColumns( } @Override - public ListDiscoveryAnalyticsResponse listDiscoveryAnalytics( - ListDiscoveryAnalyticsRequest request) { - LOG.trace("Called listDiscoveryAnalytics"); - final ListDiscoveryAnalyticsRequest interceptedRequest = - ListDiscoveryAnalyticsConverter.interceptRequest(request); + public ListCryptoAssessmentFindingsResponse listCryptoAssessmentFindings( + ListCryptoAssessmentFindingsRequest request) { + LOG.trace("Called listCryptoAssessmentFindings"); + final ListCryptoAssessmentFindingsRequest interceptedRequest = + ListCryptoAssessmentFindingsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDiscoveryAnalyticsConverter.fromRequest(client, interceptedRequest); + ListCryptoAssessmentFindingsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -9493,12 +9748,12 @@ public ListDiscoveryAnalyticsResponse listDiscoveryAnalytics( com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DataSafe", - "ListDiscoveryAnalytics", + "ListCryptoAssessmentFindings", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/ListDiscoveryAnalytics"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindings"); + java.util.function.Function transformer = - ListDiscoveryAnalyticsConverter.fromResponse( + ListCryptoAssessmentFindingsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -9516,9 +9771,392 @@ public ListDiscoveryAnalyticsResponse listDiscoveryAnalytics( } @Override - public ListDiscoveryJobResultsResponse listDiscoveryJobResults( - ListDiscoveryJobResultsRequest request) { - LOG.trace("Called listDiscoveryJobResults"); + public ListCryptoAssessmentKeysResponse listCryptoAssessmentKeys( + ListCryptoAssessmentKeysRequest request) { + LOG.trace("Called listCryptoAssessmentKeys"); + final ListCryptoAssessmentKeysRequest interceptedRequest = + ListCryptoAssessmentKeysConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentKeysConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentKeys", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentKeys"); + java.util.function.Function + transformer = + ListCryptoAssessmentKeysConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListCryptoAssessmentTdeObjectsResponse listCryptoAssessmentTdeObjects( + ListCryptoAssessmentTdeObjectsRequest request) { + LOG.trace("Called listCryptoAssessmentTdeObjects"); + final ListCryptoAssessmentTdeObjectsRequest interceptedRequest = + ListCryptoAssessmentTdeObjectsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentTdeObjectsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentTdeObjects", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentTdeObjects"); + java.util.function.Function< + javax.ws.rs.core.Response, ListCryptoAssessmentTdeObjectsResponse> + transformer = + ListCryptoAssessmentTdeObjectsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListCryptoAssessmentWalletsResponse listCryptoAssessmentWallets( + ListCryptoAssessmentWalletsRequest request) { + LOG.trace("Called listCryptoAssessmentWallets"); + final ListCryptoAssessmentWalletsRequest interceptedRequest = + ListCryptoAssessmentWalletsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentWalletsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessmentWallets", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentWallets"); + java.util.function.Function + transformer = + ListCryptoAssessmentWalletsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListCryptoAssessmentsResponse listCryptoAssessments( + ListCryptoAssessmentsRequest request) { + LOG.trace("Called listCryptoAssessments"); + final ListCryptoAssessmentsRequest interceptedRequest = + ListCryptoAssessmentsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCryptoAssessmentsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListCryptoAssessments", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessments"); + java.util.function.Function + transformer = + ListCryptoAssessmentsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDataSafePrivateEndpointsResponse listDataSafePrivateEndpoints( + ListDataSafePrivateEndpointsRequest request) { + LOG.trace("Called listDataSafePrivateEndpoints"); + final ListDataSafePrivateEndpointsRequest interceptedRequest = + ListDataSafePrivateEndpointsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDataSafePrivateEndpointsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDataSafePrivateEndpoints", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpointSummary/ListDataSafePrivateEndpoints"); + java.util.function.Function + transformer = + ListDataSafePrivateEndpointsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDatabaseSecurityConfigsResponse listDatabaseSecurityConfigs( + ListDatabaseSecurityConfigsRequest request) { + LOG.trace("Called listDatabaseSecurityConfigs"); + final ListDatabaseSecurityConfigsRequest interceptedRequest = + ListDatabaseSecurityConfigsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseSecurityConfigsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDatabaseSecurityConfigs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseSecurityConfigCollection/ListDatabaseSecurityConfigs"); + java.util.function.Function + transformer = + ListDatabaseSecurityConfigsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDatabaseTableAccessEntriesResponse listDatabaseTableAccessEntries( + ListDatabaseTableAccessEntriesRequest request) { + LOG.trace("Called listDatabaseTableAccessEntries"); + final ListDatabaseTableAccessEntriesRequest interceptedRequest = + ListDatabaseTableAccessEntriesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseTableAccessEntriesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDatabaseTableAccessEntries", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseTableAccessEntryCollection/ListDatabaseTableAccessEntries"); + java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseTableAccessEntriesResponse> + transformer = + ListDatabaseTableAccessEntriesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDatabaseViewAccessEntriesResponse listDatabaseViewAccessEntries( + ListDatabaseViewAccessEntriesRequest request) { + LOG.trace("Called listDatabaseViewAccessEntries"); + final ListDatabaseViewAccessEntriesRequest interceptedRequest = + ListDatabaseViewAccessEntriesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDatabaseViewAccessEntriesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDatabaseViewAccessEntries", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DatabaseViewAccessEntryCollection/ListDatabaseViewAccessEntries"); + java.util.function.Function< + javax.ws.rs.core.Response, ListDatabaseViewAccessEntriesResponse> + transformer = + ListDatabaseViewAccessEntriesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDifferenceColumnsResponse listDifferenceColumns( + ListDifferenceColumnsRequest request) { + LOG.trace("Called listDifferenceColumns"); + final ListDifferenceColumnsRequest interceptedRequest = + ListDifferenceColumnsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDifferenceColumnsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDifferenceColumns", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SdmMaskingPolicyDifference/ListDifferenceColumns"); + java.util.function.Function + transformer = + ListDifferenceColumnsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDiscoveryAnalyticsResponse listDiscoveryAnalytics( + ListDiscoveryAnalyticsRequest request) { + LOG.trace("Called listDiscoveryAnalytics"); + final ListDiscoveryAnalyticsRequest interceptedRequest = + ListDiscoveryAnalyticsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDiscoveryAnalyticsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "ListDiscoveryAnalytics", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SensitiveDataModel/ListDiscoveryAnalytics"); + java.util.function.Function + transformer = + ListDiscoveryAnalyticsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListDiscoveryJobResultsResponse listDiscoveryJobResults( + ListDiscoveryJobResultsRequest request) { + LOG.trace("Called listDiscoveryJobResults"); final ListDiscoveryJobResultsRequest interceptedRequest = ListDiscoveryJobResultsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = @@ -12876,6 +13514,49 @@ public PurgeSqlCollectionLogsResponse purgeSqlCollectionLogs( }); } + @Override + public RefreshCryptoAssessmentResponse refreshCryptoAssessment( + RefreshCryptoAssessmentRequest request) { + LOG.trace("Called refreshCryptoAssessment"); + final RefreshCryptoAssessmentRequest interceptedRequest = + RefreshCryptoAssessmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RefreshCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "RefreshCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/RefreshCryptoAssessment"); + java.util.function.Function + transformer = + RefreshCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getRunCryptoAssessmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public RefreshDatabaseSecurityConfigurationResponse refreshDatabaseSecurityConfiguration( RefreshDatabaseSecurityConfigurationRequest request) { @@ -14063,6 +14744,48 @@ public UpdateAuditTrailResponse updateAuditTrail(UpdateAuditTrailRequest request }); } + @Override + public UpdateCryptoAssessmentResponse updateCryptoAssessment( + UpdateCryptoAssessmentRequest request) { + LOG.trace("Called updateCryptoAssessment"); + final UpdateCryptoAssessmentRequest interceptedRequest = + UpdateCryptoAssessmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateCryptoAssessmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DataSafe", + "UpdateCryptoAssessment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/UpdateCryptoAssessment"); + java.util.function.Function + transformer = + UpdateCryptoAssessmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateCryptoAssessmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @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 3be21d8a178..3c9a3ed84ab 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 @@ -2202,6 +2202,1111 @@ 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 needed. 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 b046723b3c6..2b90f23e420 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 @@ -840,6 +840,111 @@ 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/internal/http/ActivateTargetDatabaseConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ActivateTargetDatabaseConverter.java index 59c3fdf596b..8f6e4aae0f9 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ActivateTargetDatabaseConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ActivateTargetDatabaseConverter.java @@ -29,9 +29,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.datasafe.requests.ActivateTargetDatabaseRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getActivateTargetDatabaseDetails(), - "activateTargetDatabaseDetails is required"); Validate.notBlank(request.getTargetDatabaseId(), "targetDatabaseId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ChangeCryptoAssessmentCompartmentConverter.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ChangeCryptoAssessmentCompartmentConverter.java index 04ea03f5585..002a68beaf4 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ChangeCryptoAssessmentCompartmentConverter.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.internal.http; +package com.oracle.bmc.datasafe.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeCryptoAssessmentCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ReinstateProxyInstanceConverter.class); + org.slf4j.LoggerFactory.getLogger(ChangeCryptoAssessmentCompartmentConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.ReinstateProxyInstanceRequest + public static com.oracle.bmc.datasafe.requests.ChangeCryptoAssessmentCompartmentRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ReinstateProxyInstanceRequest + com.oracle.bmc.datasafe.requests.ChangeCryptoAssessmentCompartmentRequest request) { return request; @@ -29,21 +29,22 @@ public class ReinstateProxyInstanceConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ReinstateProxyInstanceRequest request) { + com.oracle.bmc.datasafe.requests.ChangeCryptoAssessmentCompartmentRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Validate.notNull( + request.getChangeCryptoAssessmentCompartmentDetails(), + "changeCryptoAssessmentCompartmentDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") + .path("/20181201") + .path("cryptoAssessments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())) + request.getCryptoAssessmentId())) .path("actions") - .path("reinstateProxyInstance"); + .path("changeCompartment"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -69,30 +70,29 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ReinstateProxyInstanceResponse> + com.oracle.bmc.datasafe.responses.ChangeCryptoAssessmentCompartmentResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ReinstateProxyInstanceResponse> + com.oracle.bmc.datasafe.responses.ChangeCryptoAssessmentCompartmentResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse> + com.oracle.bmc.datasafe.responses.ChangeCryptoAssessmentCompartmentResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse>() { + com.oracle.bmc.datasafe.responses + .ChangeCryptoAssessmentCompartmentResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse + public com.oracle.bmc.datasafe.responses + .ChangeCryptoAssessmentCompartmentResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ReinstateProxyInstanceResponse"); + "Transform function invoked for com.oracle.bmc.datasafe.responses.ChangeCryptoAssessmentCompartmentResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -110,11 +110,12 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse.Builder + com.oracle.bmc.datasafe.responses + .ChangeCryptoAssessmentCompartmentResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse.builder() + com.oracle.bmc.datasafe.responses + .ChangeCryptoAssessmentCompartmentResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -140,8 +141,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse + com.oracle.bmc.datasafe.responses + .ChangeCryptoAssessmentCompartmentResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DeleteCryptoAssessmentConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DeleteCryptoAssessmentConverter.java new file mode 100644 index 00000000000..2ced15c3712 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DeleteCryptoAssessmentConverter.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteCryptoAssessmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteCryptoAssessmentConverter.class); + + public static com.oracle.bmc.datasafe.requests.DeleteCryptoAssessmentRequest interceptRequest( + com.oracle.bmc.datasafe.requests.DeleteCryptoAssessmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.DeleteCryptoAssessmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCryptoAssessmentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .DeleteCryptoAssessmentResponse>() { + @Override + public com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .DeleteCryptoAssessmentResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses.DeleteCryptoAssessmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DownloadCryptoAssessmentReportConverter.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DownloadCryptoAssessmentReportConverter.java index 232bbbdb05a..e91507acb6c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/DownloadCryptoAssessmentReportConverter.java @@ -2,27 +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.internal.http; +package com.oracle.bmc.datasafe.internal.http; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadCryptoAssessmentReportConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateDistributedDatabaseWalletConverter.class); + org.slf4j.LoggerFactory.getLogger(DownloadCryptoAssessmentReportConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedDatabaseWalletRequest + public static com.oracle.bmc.datasafe.requests.DownloadCryptoAssessmentReportRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedDatabaseWalletRequest + com.oracle.bmc.datasafe.requests.DownloadCryptoAssessmentReportRequest request) { return request; @@ -30,32 +28,26 @@ public class GenerateDistributedDatabaseWalletConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GenerateDistributedDatabaseWalletRequest - request) { + com.oracle.bmc.datasafe.requests.DownloadCryptoAssessmentReportRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); Validate.notNull( - request.getGenerateDistributedDatabaseWalletDetails(), - "generateDistributedDatabaseWalletDetails is required"); + request.getDownloadCryptoAssessmentReportDetails(), + "downloadCryptoAssessmentReportDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20181201") + .path("cryptoAssessments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) + request.getCryptoAssessmentId())) .path("actions") - .path("generateWallet"); + .path("downloadReport"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); @@ -65,6 +57,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-retry-token", request.getOpcRetryToken()); } + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -73,32 +69,29 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse> + com.oracle.bmc.datasafe.responses.DownloadCryptoAssessmentReportResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse> + com.oracle.bmc.datasafe.responses.DownloadCryptoAssessmentReportResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse> + com.oracle.bmc.datasafe.responses.DownloadCryptoAssessmentReportResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse>() { + com.oracle.bmc.datasafe.responses + .DownloadCryptoAssessmentReportResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse + public com.oracle.bmc.datasafe.responses + .DownloadCryptoAssessmentReportResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GenerateDistributedDatabaseWalletResponse"); + "Transform function invoked for com.oracle.bmc.datasafe.responses.DownloadCryptoAssessmentReportResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< @@ -120,11 +113,11 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse.Builder + com.oracle.bmc.datasafe.responses + .DownloadCryptoAssessmentReportResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse + com.oracle.bmc.datasafe.responses + .DownloadCryptoAssessmentReportResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -162,19 +155,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Long.class)); } - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse + com.oracle.bmc.datasafe.responses + .DownloadCryptoAssessmentReportResponse responseWrapper = builder.build(); return responseWrapper; diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GenerateCryptoAssessmentReportConverter.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GenerateCryptoAssessmentReportConverter.java index e2160779d6f..8629b46eea3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GenerateCryptoAssessmentReportConverter.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.internal.http; +package com.oracle.bmc.datasafe.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateCryptoAssessmentReportConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StopDistributedDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(GenerateCryptoAssessmentReportConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.StopDistributedDatabaseRequest + public static com.oracle.bmc.datasafe.requests.GenerateCryptoAssessmentReportRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.StopDistributedDatabaseRequest + com.oracle.bmc.datasafe.requests.GenerateCryptoAssessmentReportRequest request) { return request; @@ -29,25 +29,31 @@ public class StopDistributedDatabaseConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StopDistributedDatabaseRequest request) { + com.oracle.bmc.datasafe.requests.GenerateCryptoAssessmentReportRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Validate.notNull( + request.getGenerateCryptoAssessmentReportDetails(), + "generateCryptoAssessmentReportDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20181201") + .path("cryptoAssessments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) + request.getCryptoAssessmentId())) .path("actions") - .path("stopDatabase"); + .path("generateReport"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + if (request.getOpcRetryToken() != null) { ib.header("opc-retry-token", request.getOpcRetryToken()); } @@ -56,10 +62,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-request-id", request.getOpcRequestId()); } - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -68,30 +70,29 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.StopDistributedDatabaseResponse> + com.oracle.bmc.datasafe.responses.GenerateCryptoAssessmentReportResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.StopDistributedDatabaseResponse> + com.oracle.bmc.datasafe.responses.GenerateCryptoAssessmentReportResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse> + com.oracle.bmc.datasafe.responses.GenerateCryptoAssessmentReportResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse>() { + com.oracle.bmc.datasafe.responses + .GenerateCryptoAssessmentReportResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse + public com.oracle.bmc.datasafe.responses + .GenerateCryptoAssessmentReportResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StopDistributedDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.datasafe.responses.GenerateCryptoAssessmentReportResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -109,11 +110,12 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse.Builder + com.oracle.bmc.datasafe.responses + .GenerateCryptoAssessmentReportResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse.builder() + com.oracle.bmc.datasafe.responses + .GenerateCryptoAssessmentReportResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -139,8 +141,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse + com.oracle.bmc.datasafe.responses + .GenerateCryptoAssessmentReportResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentConverter.java new file mode 100644 index 00000000000..1989b3abb5a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetCryptoAssessmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetCryptoAssessmentConverter.class); + + public static com.oracle.bmc.datasafe.requests.GetCryptoAssessmentRequest interceptRequest( + com.oracle.bmc.datasafe.requests.GetCryptoAssessmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.GetCryptoAssessmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCryptoAssessmentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse>() { + @Override + public com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessment>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model.CryptoAssessment + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model.CryptoAssessment + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model.CryptoAssessment> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessment(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentSqlnetParametersConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentSqlnetParametersConverter.java new file mode 100644 index 00000000000..fd9543cee4a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/GetCryptoAssessmentSqlnetParametersConverter.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.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetCryptoAssessmentSqlnetParametersConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetCryptoAssessmentSqlnetParametersConverter.class); + + public static com.oracle.bmc.datasafe.requests.GetCryptoAssessmentSqlnetParametersRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.GetCryptoAssessmentSqlnetParametersRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.GetCryptoAssessmentSqlnetParametersRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCryptoAssessmentId())) + .path("sqlnetParameters"); + + if (request.getParameter() != null) { + target = + target.queryParam( + "parameter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getParameter())); + } + + if (request.getQuantumReadiness() != null) { + target = + target.queryParam( + "quantumReadiness", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getQuantumReadiness().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentSqlnetParametersResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.GetCryptoAssessmentSqlnetParametersResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentSqlnetParametersResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentSqlnetParametersResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentSqlnetParametersResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.GetCryptoAssessmentSqlnetParametersResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentSqlnetParameters>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentSqlnetParameters + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentSqlnetParameters + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentSqlnetParameters> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentSqlnetParametersResponse.Builder + builder = + com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentSqlnetParametersResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentSqlnetParameters(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .GetCryptoAssessmentSqlnetParametersResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentBackupSetsConverter.java similarity index 67% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentBackupSetsConverter.java index d00bb24e090..531bb940f2c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentBackupSetsConverter.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.internal.http; +package com.oracle.bmc.datasafe.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedAutonomousDatabasesConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentBackupSetsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListDistributedAutonomousDatabasesConverter.class); + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentBackupSetsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedAutonomousDatabasesRequest + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentBackupSetsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedAutonomousDatabasesRequest + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentBackupSetsRequest request) { return request; @@ -31,13 +29,15 @@ public class ListDistributedAutonomousDatabasesConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListDistributedAutonomousDatabasesRequest - request) { + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentBackupSetsRequest request) { Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedAutonomousDatabases"); + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path("backupSets"); target = target.queryParam( @@ -53,84 +53,93 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCompartmentIdInSubtree())); } - if (request.getPrivateEndpointId() != null) { + if (request.getAccessLevel() != null) { target = target.queryParam( - "privateEndpointId", + "accessLevel", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPrivateEndpointId())); + request.getAccessLevel().getValue())); } - if (request.getLifecycleState() != null) { + if (request.getAssessmentId() != null) { target = target.queryParam( - "lifecycleState", + "assessmentId", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); + request.getAssessmentId())); } - if (request.getLimit() != null) { + if (request.getAssessmentType() != null) { target = target.queryParam( - "limit", + "assessmentType", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); + request.getAssessmentType().getValue())); } - if (request.getPage() != null) { + if (request.getTargetId() != null) { target = target.queryParam( - "page", + "targetId", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); + request.getTargetId())); } - if (request.getSortOrder() != null) { + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getBackupSetKey() != null) { target = target.queryParam( - "sortOrder", + "backupSetKey", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); + request.getBackupSetKey())); } - if (request.getSortBy() != null) { + if (request.getIsEncrypted() != null) { target = target.queryParam( - "sortBy", + "isEncrypted", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); + request.getIsEncrypted())); } - if (request.getIsAutoResourceManagementEnabled() != null) { + if (request.getSortBy() != null) { target = target.queryParam( - "isAutoResourceManagementEnabled", + "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsAutoResourceManagementEnabled())); + request.getSortBy().getValue())); } - if (request.getDisplayName() != null) { + if (request.getSortOrder() != null) { target = target.queryParam( - "displayName", + "sortOrder", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDisplayName())); + request.getSortOrder().getValue())); } - if (request.getDbDeploymentType() != null) { + if (request.getLimit() != null) { target = target.queryParam( - "dbDeploymentType", + "limit", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDbDeploymentType())); + request.getLimit())); } - if (request.getMetadata() != null) { + if (request.getPage() != null) { target = target.queryParam( - "metadata", + "page", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); + request.getPage())); } com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -149,70 +158,67 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse> + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentBackupSetsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse> + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentBackupSetsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse> + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentBackupSetsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse>() { + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentBackupSetsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentBackupSetsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListDistributedAutonomousDatabasesResponse"); + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentBackupSetsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection>> + com.oracle.bmc.datasafe.model + .CryptoAssessmentBackupSetCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection + com.oracle.bmc.datasafe.model + .CryptoAssessmentBackupSetCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection + com.oracle.bmc.datasafe.model + .CryptoAssessmentBackupSetCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection> + com.oracle.bmc.datasafe.model + .CryptoAssessmentBackupSetCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse.Builder + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentBackupSetsResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentBackupSetsResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedAutonomousDatabaseCollection(response.getItem()); + builder.cryptoAssessmentBackupSetCollection(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -236,8 +242,19 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentBackupSetsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCbomItemsConverter.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCbomItemsConverter.java index a8ad99dcd3c..877700d00cd 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCbomItemsConverter.java @@ -2,49 +2,44 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.datasafe.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentCbomItemsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabaseRaftMetricConverter.class); + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentCbomItemsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabaseRaftMetricRequest + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentCbomItemsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabaseRaftMetricRequest - request) { + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentCbomItemsRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRaftMetricRequest - request) { + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentCbomItemsRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20181201") + .path("cryptoAssessments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("raftMetrics"); + request.getCryptoAssessmentId())) + .path("cbomItems"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -62,70 +57,67 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse> + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCbomItemsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse> + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCbomItemsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse> + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCbomItemsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse>() { + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCbomItemsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCbomItemsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseRaftMetricResponse"); + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCbomItemsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric>> + com.oracle.bmc.datasafe.model + .CryptoAssessmentCbomItemCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric + com.oracle.bmc.datasafe.model + .CryptoAssessmentCbomItemCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric + com.oracle.bmc.datasafe.model + .CryptoAssessmentCbomItemCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric> + com.oracle.bmc.datasafe.model + .CryptoAssessmentCbomItemCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse.Builder + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCbomItemsResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCbomItemsResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabaseRaftMetric(response.getItem()); + builder.cryptoAssessmentCbomItemCollection(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -138,8 +130,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCbomItemsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCertificatesConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCertificatesConverter.java new file mode 100644 index 00000000000..da1e5f4944a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentCertificatesConverter.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentCertificatesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentCertificatesConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentCertificatesRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentCertificatesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentCertificatesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path("certificates"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getAssessmentId() != null) { + target = + target.queryParam( + "assessmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentId())); + } + + if (request.getAssessmentType() != null) { + target = + target.queryParam( + "assessmentType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentType().getValue())); + } + + if (request.getTargetId() != null) { + target = + target.queryParam( + "targetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetId())); + } + + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getCertificateType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "certificateType", + request.getCertificateType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getStatus() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "status", + request.getStatus(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getPublicKeyType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "publicKeyType", + request.getPublicKeyType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSignatureAlgorithm() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "signatureAlgorithm", + request.getSignatureAlgorithm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getExpiryBucket() != null) { + target = + target.queryParam( + "expiryBucket", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExpiryBucket())); + } + + if (request.getDaysToExpiry() != null) { + target = + target.queryParam( + "daysToExpiry", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDaysToExpiry())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCertificatesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCertificatesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCertificatesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCertificatesResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCertificatesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentCertificatesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentCertificateCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentCertificateCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentCertificateCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentCertificateCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCertificatesResponse.Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCertificatesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentCertificateCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentCertificatesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingAnalyticsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingAnalyticsConverter.java new file mode 100644 index 00000000000..441f39d71de --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingAnalyticsConverter.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.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingAnalyticsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentFindingAnalyticsConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingAnalyticsRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingAnalyticsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingAnalyticsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path("findingAnalytics"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getCategory() != null) { + target = + target.queryParam( + "category", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCategory().getValue())); + } + + if (request.getFindingKey() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "findingKey", + request.getFindingKey(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getIsQuantumReadinessCheck() != null) { + target = + target.queryParam( + "isQuantumReadinessCheck", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsQuantumReadinessCheck())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingAnalyticsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingAnalyticsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingAnalyticsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingAnalyticsResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingAnalyticsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingAnalyticsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingAnalyticsCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingAnalyticsCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingAnalyticsCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingAnalyticsCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingAnalyticsResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingAnalyticsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentFindingAnalyticsCollection( + response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingAnalyticsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingTargetsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingTargetsConverter.java new file mode 100644 index 00000000000..c6424494bd9 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingTargetsConverter.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingTargetsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentFindingTargetsConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingTargetsRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingTargetsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingTargetsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + Validate.notNull(request.getFindingKey(), "findingKey is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path("findingTargets"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "findingKey", + request.getFindingKey(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + + if (request.getAssessmentType() != null) { + target = + target.queryParam( + "assessmentType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentType().getValue())); + } + + if (request.getTargetId() != null) { + target = + target.queryParam( + "targetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetId())); + } + + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getIsQuantumReadinessCheck() != null) { + target = + target.queryParam( + "isQuantumReadinessCheck", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsQuantumReadinessCheck())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingTargetsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingTargetsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingTargetsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingTargetsResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingTargetsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingTargetsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingTargetCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingTargetCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingTargetCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingTargetCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingTargetsResponse.Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingTargetsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentFindingTargetCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingTargetsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingsConverter.java new file mode 100644 index 00000000000..7c1174116b6 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentFindingsConverter.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.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentFindingsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentFindingsConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingsRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentFindingsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCryptoAssessmentId())) + .path("findings"); + + if (request.getFindingKey() != null) { + target = + target.queryParam( + "findingKey", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFindingKey())); + } + + if (request.getTitle() != null) { + target = + target.queryParam( + "title", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTitle())); + } + + if (request.getCategory() != null) { + target = + target.queryParam( + "category", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCategory().getValue())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getIsQuantumReadinessCheck() != null) { + target = + target.queryParam( + "isQuantumReadinessCheck", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsQuantumReadinessCheck())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingsResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentFindingsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentFindingCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingsResponse.Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentFindingCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentFindingsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentKeysConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentKeysConverter.java new file mode 100644 index 00000000000..59520665129 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentKeysConverter.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.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentKeysConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentKeysConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentKeysRequest interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentKeysRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentKeysRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20181201").path("cryptoAssessments").path("keys"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getAssessmentId() != null) { + target = + target.queryParam( + "assessmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentId())); + } + + if (request.getAssessmentType() != null) { + target = + target.queryParam( + "assessmentType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentType().getValue())); + } + + if (request.getTargetId() != null) { + target = + target.queryParam( + "targetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetId())); + } + + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getFeature() != null) { + target = + target.queryParam( + "feature", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFeature().getValue())); + } + + if (request.getKeyId() != null) { + target = + target.queryParam( + "keyId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getKeyId())); + } + + if (request.getKeyType() != null) { + target = + target.queryParam( + "keyType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getKeyType().getValue())); + } + + if (request.getKeyManagerType() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "keyManagerType", + request.getKeyManagerType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentKeysResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentKeysResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentKeysResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentKeysResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentKeysResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentKeysResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentKeyCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentKeyCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentKeyCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentKeyCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentKeysResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentKeysResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentKeyCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentKeysResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentTdeObjectsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentTdeObjectsConverter.java new file mode 100644 index 00000000000..194ee5f7c40 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentTdeObjectsConverter.java @@ -0,0 +1,282 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentTdeObjectsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentTdeObjectsConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentTdeObjectsRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentTdeObjectsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentTdeObjectsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + Validate.notNull(request.getObjectType(), "objectType is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path("tdeObjects"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getAssessmentId() != null) { + target = + target.queryParam( + "assessmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentId())); + } + + if (request.getAssessmentType() != null) { + target = + target.queryParam( + "assessmentType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentType().getValue())); + } + + if (request.getTargetId() != null) { + target = + target.queryParam( + "targetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetId())); + } + + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + target = + target.queryParam( + "objectType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getObjectType().getValue())); + + if (request.getQuantumReadiness() != null) { + target = + target.queryParam( + "quantumReadiness", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getQuantumReadiness().getValue())); + } + + if (request.getEncryptionObserved() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "encryptionObserved", + request.getEncryptionObserved(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getEncryptionStatus() != null) { + target = + target.queryParam( + "encryptionStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getEncryptionStatus().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentTdeObjectsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentTdeObjectsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentTdeObjectsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentTdeObjectsResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentTdeObjectsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentTdeObjectsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentTdeObjectCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentTdeObjectCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentTdeObjectCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentTdeObjectCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentTdeObjectsResponse.Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentTdeObjectsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentTdeObjectCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentTdeObjectsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentWalletsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentWalletsConverter.java new file mode 100644 index 00000000000..c2ce921548d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentWalletsConverter.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentWalletsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentWalletsConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentWalletsRequest + interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentWalletsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentWalletsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20181201").path("cryptoAssessments").path("wallets"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getAssessmentId() != null) { + target = + target.queryParam( + "assessmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentId())); + } + + if (request.getAssessmentType() != null) { + target = + target.queryParam( + "assessmentType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentType().getValue())); + } + + if (request.getTargetId() != null) { + target = + target.queryParam( + "targetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetId())); + } + + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getFeature() != null) { + target = + target.queryParam( + "feature", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFeature().getValue())); + } + + if (request.getWalletEncryptionAlgorithm() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "walletEncryptionAlgorithm", + request.getWalletEncryptionAlgorithm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentWalletsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentWalletsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentWalletsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentWalletsResponse>() { + @Override + public com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentWalletsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentWalletsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentWalletCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentWalletCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentWalletCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentWalletCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentWalletsResponse.Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentWalletsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentWalletCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentWalletsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentsConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentsConverter.java new file mode 100644 index 00000000000..4da0c517c4b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/ListCryptoAssessmentsConverter.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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListCryptoAssessmentsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCryptoAssessmentsConverter.class); + + public static com.oracle.bmc.datasafe.requests.ListCryptoAssessmentsRequest interceptRequest( + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.ListCryptoAssessmentsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20181201").path("cryptoAssessments"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + + if (request.getAccessLevel() != null) { + target = + target.queryParam( + "accessLevel", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAccessLevel().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getType() != null) { + target = + target.queryParam( + "type", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getType().getValue())); + } + + if (request.getAssessmentId() != null) { + target = + target.queryParam( + "assessmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getAssessmentId())); + } + + if (request.getTargetId() != null) { + target = + target.queryParam( + "targetId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetId())); + } + + if (request.getTargetIds() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "targetIds", + request.getTargetIds(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getTargetDatabaseGroupId() != null) { + target = + target.queryParam( + "targetDatabaseGroupId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetDatabaseGroupId())); + } + + if (request.getTargetType() != null) { + target = + target.queryParam( + "targetType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetType().getValue())); + } + + if (request.getPostureCategory() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "postureCategory", + request.getPostureCategory(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getIsAssessmentScheduled() != null) { + target = + target.queryParam( + "isAssessmentScheduled", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsAssessmentScheduled())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse>() { + @Override + public com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.datasafe.model + .CryptoAssessmentCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.datasafe.model + .CryptoAssessmentCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .ListCryptoAssessmentsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.cryptoAssessmentCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses.ListCryptoAssessmentsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/RefreshCryptoAssessmentConverter.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/RefreshCryptoAssessmentConverter.java index afd19181a06..d2f0795e234 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/RefreshCryptoAssessmentConverter.java @@ -2,59 +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.internal.http; +package com.oracle.bmc.datasafe.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class RefreshCryptoAssessmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DeleteDistributedDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(RefreshCryptoAssessmentConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.DeleteDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.DeleteDistributedDatabaseRequest - request) { + public static com.oracle.bmc.datasafe.requests.RefreshCryptoAssessmentRequest interceptRequest( + com.oracle.bmc.datasafe.requests.RefreshCryptoAssessmentRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.DeleteDistributedDatabaseRequest - request) { + com.oracle.bmc.datasafe.requests.RefreshCryptoAssessmentRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Validate.notNull( + request.getRunCryptoAssessmentDetails(), "runCryptoAssessmentDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20181201") + .path("cryptoAssessments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); + request.getCryptoAssessmentId())) + .path("actions") + .path("refresh"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - if (request.getOpcRetryToken() != null) { ib.header("opc-retry-token", request.getOpcRetryToken()); } + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } @@ -67,32 +67,28 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse> + com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse> + com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse> + com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse>() { + com.oracle.bmc.datasafe.responses + .RefreshCryptoAssessmentResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse + public com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.DeleteDistributedDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -110,11 +106,11 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse.Builder + com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse.builder() + com.oracle.bmc.datasafe.responses + .RefreshCryptoAssessmentResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -140,8 +136,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse + com.oracle.bmc.datasafe.responses.RefreshCryptoAssessmentResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/UpdateCryptoAssessmentConverter.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/UpdateCryptoAssessmentConverter.java new file mode 100644 index 00000000000..05efc5ce277 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/internal/http/UpdateCryptoAssessmentConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.datasafe.model.*; +import com.oracle.bmc.datasafe.requests.*; +import com.oracle.bmc.datasafe.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateCryptoAssessmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateCryptoAssessmentConverter.class); + + public static com.oracle.bmc.datasafe.requests.UpdateCryptoAssessmentRequest interceptRequest( + com.oracle.bmc.datasafe.requests.UpdateCryptoAssessmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.datasafe.requests.UpdateCryptoAssessmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getCryptoAssessmentId(), "cryptoAssessmentId must not be blank"); + Validate.notNull( + request.getUpdateCryptoAssessmentDetails(), + "updateCryptoAssessmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20181201") + .path("cryptoAssessments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCryptoAssessmentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.datasafe.responses + .UpdateCryptoAssessmentResponse>() { + @Override + public com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse + .Builder + builder = + com.oracle.bmc.datasafe.responses + .UpdateCryptoAssessmentResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.datasafe.responses.UpdateCryptoAssessmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} 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 a1d5c1327fc..7a4932e2faa 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 diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java new file mode 100644 index 00000000000..f14adf8a385 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeCryptoAssessmentCompartmentDetails.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeCryptoAssessmentCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeCryptoAssessmentCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeCryptoAssessmentCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment where you want to move the crypto assessment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where you want to move 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; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeCryptoAssessmentCompartmentDetails build() { + ChangeCryptoAssessmentCompartmentDetails model = + new ChangeCryptoAssessmentCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeCryptoAssessmentCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the compartment where you want to move the crypto assessment. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where you want to move the crypto assessment. + * + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeCryptoAssessmentCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeCryptoAssessmentCompartmentDetails)) { + return false; + } + + ChangeCryptoAssessmentCompartmentDetails other = + (ChangeCryptoAssessmentCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-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..d16222d7983 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessment.java @@ -0,0 +1,1458 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessment extends com.oracle.bmc.http.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 { + 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 { + 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 { + 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 { + 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..39c1ec6ea46 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentBackupSetCollection + extends com.oracle.bmc.http.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..825fc469e14 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentBackupSetSummary.java @@ -0,0 +1,768 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentBackupSetSummary + extends com.oracle.bmc.http.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 { + 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 { + 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..e1cd1abb589 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentCbomItemCollection + extends com.oracle.bmc.http.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..b146609c91e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCbomItemSummary.java @@ -0,0 +1,429 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentCbomItemSummary + extends com.oracle.bmc.http.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..469348326dc --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentCertificateCollection + extends com.oracle.bmc.http.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..8b275152f9b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCertificateSummary.java @@ -0,0 +1,940 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentCertificateSummary + extends com.oracle.bmc.http.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 { + 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 { + 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..c3c351a55f6 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentCollection.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentCollection + extends com.oracle.bmc.http.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsCollection.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/CryptoAssessmentFindingAnalyticsCollection.java index 138b29f598c..3d6c82f4762 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/CryptoAssessmentFindingAnalyticsCollection.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. + * 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 @@ -14,17 +14,17 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpointCollection.Builder.class + builder = CryptoAssessmentFindingAnalyticsCollection.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabasePrivateEndpointCollection +public final class CryptoAssessmentFindingAnalyticsCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public DistributedDatabasePrivateEndpointCollection( - java.util.List items) { + public CryptoAssessmentFindingAnalyticsCollection( + java.util.List items) { super(); this.items = items; } @@ -32,17 +32,17 @@ public DistributedDatabasePrivateEndpointCollection( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Array of private endpoint summaries. + * Array of crypto finding analytics summaries. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Array of private endpoint summaries. + * Array of crypto finding analytics summaries. * @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 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 CryptoAssessmentFindingAnalyticsCollection build() { + CryptoAssessmentFindingAnalyticsCollection model = + new CryptoAssessmentFindingAnalyticsCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,7 +61,7 @@ public DistributedDatabasePrivateEndpointCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpointCollection model) { + public Builder copy(CryptoAssessmentFindingAnalyticsCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -81,16 +81,16 @@ public Builder toBuilder() { } /** - * Array of private endpoint summaries. + * Array of crypto finding analytics summaries. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Array of private endpoint summaries. + * Array of crypto finding analytics summaries. * @return the value **/ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -106,7 +106,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpointCollection("); + sb.append("CryptoAssessmentFindingAnalyticsCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -118,12 +118,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDatabasePrivateEndpointCollection)) { + if (!(o instanceof CryptoAssessmentFindingAnalyticsCollection)) { return false; } - DistributedDatabasePrivateEndpointCollection other = - (DistributedDatabasePrivateEndpointCollection) o; + CryptoAssessmentFindingAnalyticsCollection other = + (CryptoAssessmentFindingAnalyticsCollection) 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/CryptoAssessmentFindingAnalyticsSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsSummary.java new file mode 100644 index 00000000000..1e6d4a9139a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingAnalyticsSummary.java @@ -0,0 +1,525 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentFindingAnalyticsSummary + extends com.oracle.bmc.http.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 { + 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 { + 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..c15cfcd1381 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCategorySummary.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentFindingCategorySummary + extends com.oracle.bmc.http.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..fbbbeef853e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingCollection.java @@ -0,0 +1,291 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentFindingCollection + extends com.oracle.bmc.http.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..86f6209f2f9 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummary.java @@ -0,0 +1,805 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentFindingSummary + extends com.oracle.bmc.http.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 { + 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..f507b1746d8 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingSummaryMetrics.java @@ -0,0 +1,499 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentFindingSummaryMetrics + extends com.oracle.bmc.http.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 b2a1edf8109..4b62108df08 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 @@ -14,17 +14,17 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseCollection +public final class CryptoAssessmentFindingTargetCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public DistributedAutonomousDatabaseCollection( - java.util.List items) { + public CryptoAssessmentFindingTargetCollection( + java.util.List items) { super(); this.items = items; } @@ -32,17 +32,17 @@ public DistributedAutonomousDatabaseCollection( @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()); } @@ -81,16 +81,16 @@ public Builder toBuilder() { } /** - * 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; } @@ -106,7 +106,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(")"); @@ -118,11 +118,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..fe5c2319395 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentFindingTargetSummary.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentFindingTargetSummary + extends com.oracle.bmc.http.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 { + 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.java new file mode 100644 index 00000000000..62a74d8e807 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeyCollection.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; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CryptoAssessmentKeyCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentKeyCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public CryptoAssessmentKeyCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Cryptographic key summaries for the specified crypto assessment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Cryptographic key summaries 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 CryptoAssessmentKeyCollection build() { + CryptoAssessmentKeyCollection model = new CryptoAssessmentKeyCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CryptoAssessmentKeyCollection 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); + } + + /** + * Cryptographic key summaries for the specified crypto assessment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Cryptographic key summaries 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("CryptoAssessmentKeyCollection("); + 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 CryptoAssessmentKeyCollection)) { + return false; + } + + CryptoAssessmentKeyCollection other = (CryptoAssessmentKeyCollection) 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/CryptoAssessmentKeySummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeySummary.java new file mode 100644 index 00000000000..bef9ba8cf08 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentKeySummary.java @@ -0,0 +1,759 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentKeySummary + extends com.oracle.bmc.http.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 { + 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..8e015786916 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSqlnetParameters.java @@ -0,0 +1,161 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentSqlnetParameters + extends com.oracle.bmc.http.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..9718f84bc79 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentSummary.java @@ -0,0 +1,1111 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentSummary + extends com.oracle.bmc.http.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..66dbbe692de --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentTdeObjectCollection + extends com.oracle.bmc.http.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..99352860ef7 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentTdeObjectSummary.java @@ -0,0 +1,551 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentTdeObjectSummary + extends com.oracle.bmc.http.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..1f705e5010a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletCollection.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; + +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentWalletCollection + extends com.oracle.bmc.http.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..d00d5f56706 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoAssessmentWalletSummary.java @@ -0,0 +1,531 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoAssessmentWalletSummary + extends com.oracle.bmc.http.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 { + 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 { + 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..3bfb1d0a38e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeature.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; + +/** + * Crypto feature for which details are reported. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFeature { + 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..0240e2df4f0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFeatureStatus.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * The observed status of a crypto feature. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFeatureStatus { + 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..e0d34f78e1d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingCategory.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFindingCategory { + 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..c94ad4ec258 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoFindingStatus.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoFindingStatus { + 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..97d476b3ea0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoKeyCacheStatus.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 key cache status observed for TDE keys. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoKeyCacheStatus { + 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 59% 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 4254724cbe5..9fbc2dc2ab7 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,16 +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.model; +package com.oracle.bmc.datasafe.model; /** - * The protection mode to set up between the primary and standby databases. + * The type of keystore observed on target. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum DistributedDbProtectionMode { - MaximumAvailability("MAXIMUM_AVAILABILITY"), - MaximumPerformance("MAXIMUM_PERFORMANCE"), - MaximumProtection("MAXIMUM_PROTECTION"), +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoKeystoreType { + 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 @@ -20,21 +25,21 @@ public enum DistributedDbProtectionMode { 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; } @@ -44,12 +49,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..71dea5c1c5b --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoNnePosture.java @@ -0,0 +1,527 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoNnePosture extends com.oracle.bmc.http.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 { + 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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.java new file mode 100644 index 00000000000..94a12657888 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoObservedBooleanValue.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; + +/** + * Boolean-like value observed during crypto assessment. NOT_SUPPORTED indicates the value could not be determined. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoObservedBooleanValue { + 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 + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CryptoObservedBooleanValue.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CryptoObservedBooleanValue v : CryptoObservedBooleanValue.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CryptoObservedBooleanValue(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CryptoObservedBooleanValue create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "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..628ae7cd96e --- /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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoPosture extends com.oracle.bmc.http.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 { + 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..765a52e9fd5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoPostureCategory.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; + +/** + * Posture category classification for assessed cryptographic posture. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoPostureCategory { + 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..69f73309631 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoQuantumReadiness.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; + +/** + * Quantum-readiness classification for cryptographic configurations. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public enum CryptoQuantumReadiness { + 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..4f0c0b924a0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameter.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoSqlnetParameter + extends com.oracle.bmc.http.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..b3ac5c34342 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterSource.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoSqlnetParameterSource + extends com.oracle.bmc.http.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 { + 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..1b1000ae973 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoSqlnetParameterValue.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoSqlnetParameterValue + extends com.oracle.bmc.http.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 { + 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..41e83630c72 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTdePosture.java @@ -0,0 +1,751 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoTdePosture extends com.oracle.bmc.http.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..017b6b392af --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/CryptoTlsPosture.java @@ -0,0 +1,482 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CryptoTlsPosture extends com.oracle.bmc.http.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-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java new file mode 100644 index 00000000000..86b3a7dbd00 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/DownloadCryptoAssessmentReportDetails.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DownloadCryptoAssessmentReportDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DownloadCryptoAssessmentReportDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"format"}) + public DownloadCryptoAssessmentReportDetails(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 DownloadCryptoAssessmentReportDetails build() { + DownloadCryptoAssessmentReportDetails model = + new DownloadCryptoAssessmentReportDetails(this.format); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DownloadCryptoAssessmentReportDetails 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 { + 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("DownloadCryptoAssessmentReportDetails("); + 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 DownloadCryptoAssessmentReportDetails)) { + return false; + } + + 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.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..56b69217b1c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateCryptoAssessmentReportDetails.java @@ -0,0 +1,171 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class GenerateCryptoAssessmentReportDetails + extends com.oracle.bmc.http.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 { + 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 0deb5cf00fc..0db28a14537 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 @@ -31,13 +31,13 @@ public GenerateOnPremConnectorConfigurationDetails(String password) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") 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 uppercase, 1 lowercase, 1 numeric, and 1 special character. + * The password to encrypt the keys inside the wallet included as part of the configuration. 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") private String password; /** - * 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 lowercase, 1 numeric, and 1 special character. + * The password to encrypt the keys inside the wallet included as part of the configuration. 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 * @return this builder **/ @@ -80,13 +80,13 @@ 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 lowercase, 1 numeric, and 1 special character. + * The password to encrypt the keys inside the wallet included as part of the configuration. 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") private final String password; /** - * 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 lowercase, 1 numeric, and 1 special character. + * The password to encrypt the keys inside the wallet included as part of the configuration. The 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 **/ public String getPassword() { 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 af88f28cb7b..cb7ce8472be 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 @@ -843,6 +843,7 @@ public enum Category { 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 a3ca0ad647d..89507868500 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 { 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 54305269708..d7bb768f821 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 @@ -480,6 +480,7 @@ public enum Category { 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/RunCryptoAssessmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java new file mode 100644 index 00000000000..ea8d571ab1f --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunCryptoAssessmentDetails.java @@ -0,0 +1,324 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RunCryptoAssessmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RunCryptoAssessmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "displayName", + "description", + "freeformTags", + "definedTags" + }) + public RunCryptoAssessmentDetails( + String compartmentId, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * This field is ignored when refreshing a crypto assessment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * This field is ignored when refreshing a 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 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; + } + /** + * 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 RunCryptoAssessmentDetails build() { + RunCryptoAssessmentDetails model = + new RunCryptoAssessmentDetails( + this.compartmentId, + this.displayName, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RunCryptoAssessmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * This field is ignored when refreshing a crypto assessment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * This field is ignored when refreshing a crypto assessment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * 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; + } + + /** + * 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("RunCryptoAssessmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RunCryptoAssessmentDetails)) { + return false; + } + + RunCryptoAssessmentDetails other = (RunCryptoAssessmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.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.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/RunSecurityAssessmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/RunSecurityAssessmentDetails.java index 0e6721ee063..fad31eeec0f 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,13 +43,13 @@ 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 **/ @@ -164,13 +164,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getCompartmentId() { 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 84610f81068..7813dd08f89 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,13 +46,13 @@ 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 **/ @@ -187,13 +187,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getCompartmentId() { 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..61910242ce5 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/UpdateCryptoAssessmentDetails.java @@ -0,0 +1,378 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class UpdateCryptoAssessmentDetails + extends com.oracle.bmc.http.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 e46f3bc29bd..e847fd65727 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 @@ -290,6 +290,7 @@ public enum OperationType { 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"), @@ -330,6 +331,13 @@ public enum OperationType { 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 a67c1de60a3..90da08757f9 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 @@ -51,9 +51,9 @@ 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. + * 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") @@ -61,9 +61,9 @@ 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. + * 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 @@ -164,9 +164,9 @@ 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. + * 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. * **/ public enum ActionType { @@ -174,7 +174,9 @@ public enum ActionType { 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 this @@ -219,9 +221,9 @@ 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. + * 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") @@ -229,9 +231,9 @@ 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. + * 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. * * @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 c80ce54750e..ffcf4d5707c 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 @@ -296,6 +296,7 @@ public enum OperationType { 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"), @@ -329,6 +330,13 @@ public enum OperationType { 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 cb574f14138..be509d82bba 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 @@ -13,6 +13,17 @@ 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. */ @@ -26,17 +37,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 @@ -108,35 +108,35 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The details used to reactivate a target database in Data Safe. + * The OCID of the Data Safe target database. */ - private com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails - activateTargetDatabaseDetails = null; + private String targetDatabaseId = null; /** - * The details used to reactivate a target database in Data Safe. - * @param activateTargetDatabaseDetails the value to set + * The OCID of the Data Safe target database. + * @param targetDatabaseId the value to set * @return this builder instance */ - public Builder activateTargetDatabaseDetails( - com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails - activateTargetDatabaseDetails) { - this.activateTargetDatabaseDetails = activateTargetDatabaseDetails; + public Builder targetDatabaseId(String targetDatabaseId) { + this.targetDatabaseId = targetDatabaseId; return this; } /** - * The OCID of the Data Safe target database. + * The details used to reactivate a target database in Data Safe. */ - private String targetDatabaseId = null; + private com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails + activateTargetDatabaseDetails = null; /** - * The OCID of the Data Safe target database. - * @param targetDatabaseId the value to set + * The details used to reactivate a target database in Data Safe. + * @param activateTargetDatabaseDetails the value to set * @return this builder instance */ - public Builder targetDatabaseId(String targetDatabaseId) { - this.targetDatabaseId = targetDatabaseId; + public Builder activateTargetDatabaseDetails( + com.oracle.bmc.datasafe.model.ActivateTargetDatabaseDetails + activateTargetDatabaseDetails) { + this.activateTargetDatabaseDetails = activateTargetDatabaseDetails; return this; } @@ -231,8 +231,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()); @@ -279,13 +279,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, opcRetryToken, ifMatch, opcRequestId); + // new ActivateTargetDatabaseRequest(targetDatabaseId, activateTargetDatabaseDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -295,8 +295,8 @@ public ActivateTargetDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .activateTargetDatabaseDetails(activateTargetDatabaseDetails) .targetDatabaseId(targetDatabaseId) + .activateTargetDatabaseDetails(activateTargetDatabaseDetails) .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); @@ -315,9 +315,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)); @@ -336,9 +336,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); @@ -348,14 +348,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 62% 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 8f71db77b8c..19e04c9e6c5 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,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.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. + * Example: Click here to see how to use ChangeCryptoAssessmentCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletRequest +@javax.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. + * The OCID of the crypto assessment. */ - private String distributedDatabaseId; + private String cryptoAssessmentId; /** - * Globally distributed database identifier. + * The OCID of the crypto assessment. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } /** - * Details for generating Globally distributed database wallet. + * The details used to change the compartment of a crypto assessment. */ - private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails; + private com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails + changeCryptoAssessmentCompartmentDetails; /** - * Details for generating Globally distributed database wallet. + * The details used to change the compartment of a crypto assessment. */ - public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - getGenerateDistributedDatabaseWalletDetails() { - return generateDistributedDatabaseWalletDetails; + 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 + * 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. @@ -61,7 +60,7 @@ public String getOpcRequestId() { /** * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the + * 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. @@ -74,8 +73,7 @@ public String getIfMatch() { * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. * */ private String opcRetryToken; @@ -84,8 +82,7 @@ public String getIfMatch() { * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. * */ public String getOpcRetryToken() { @@ -98,61 +95,59 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The OCID of the crypto assessment. */ - private String distributedDatabaseId = null; + private String cryptoAssessmentId = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The OCID of the crypto assessment. + * @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. + * The details used to change the compartment of a crypto assessment. */ - private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails = null; + private com.oracle.bmc.datasafe.model.ChangeCryptoAssessmentCompartmentDetails + changeCryptoAssessmentCompartmentDetails = null; /** - * Details for generating Globally distributed database wallet. - * @param generateDistributedDatabaseWalletDetails the value to set + * The details used to change the compartment of a crypto assessment. + * @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 */ @@ -163,7 +158,7 @@ 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 + * 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. @@ -173,7 +168,7 @@ 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 + * 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. @@ -190,8 +185,7 @@ 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. + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. * */ private String opcRetryToken = null; @@ -200,8 +194,7 @@ 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. + * 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 @@ -238,10 +231,10 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GenerateDistributedDatabaseWalletRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - generateDistributedDatabaseWalletDetails( - o.getGenerateDistributedDatabaseWalletDetails()); + public Builder copy(ChangeCryptoAssessmentCompartmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + changeCryptoAssessmentCompartmentDetails( + o.getChangeCryptoAssessmentCompartmentDetails()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); @@ -251,17 +244,17 @@ public Builder copy(GenerateDistributedDatabaseWalletRequest o) { } /** - * Build the instance of GenerateDistributedDatabaseWalletRequest as configured by this builder + * Build the instance of ChangeCryptoAssessmentCompartmentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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; @@ -274,31 +267,30 @@ 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 builder + * 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.util.internal.Consumer)} 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); } } @@ -308,8 +300,8 @@ public GenerateDistributedDatabaseWalletRequest buildWithoutInvocationCallback() */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .generateDistributedDatabaseWalletDetails(generateDistributedDatabaseWalletDetails) + .cryptoAssessmentId(cryptoAssessmentId) + .changeCryptoAssessmentCompartmentDetails(changeCryptoAssessmentCompartmentDetails) .opcRequestId(opcRequestId) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); @@ -328,9 +320,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)); @@ -343,17 +335,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); @@ -365,14 +357,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..f2bab016bd2 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteCryptoAssessmentRequest.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/ConfigureDistributedDatabaseGsmsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java index 17727ce6078..449fd6b0572 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DownloadCryptoAssessmentReportRequest.java @@ -2,48 +2,67 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 ConfigureDistributedDatabaseGsmsRequest. + * Example: Click here to see how to use DownloadCryptoAssessmentReportRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseGsmsRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DownloadCryptoAssessmentReportRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseGsmsDetails> { + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails> { /** - * Details to configure the new GSM instances for the distributed database. + * The OCID of the crypto assessment. */ - private com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails - configureDistributedDatabaseGsmsDetails; + private String cryptoAssessmentId; /** - * Details to configure the new GSM instances for the distributed database. + * The OCID of the crypto assessment. */ - public com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails - getConfigureDistributedDatabaseGsmsDetails() { - return configureDistributedDatabaseGsmsDetails; + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } /** - * Globally distributed database identifier. + * Details of the report. */ - private String distributedDatabaseId; + private com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + downloadCryptoAssessmentReportDetails; /** - * Globally distributed database identifier. + * Details of the report. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + 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 if-match parameter to the value of the + * etag from a previous GET or POST 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; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. * */ private String opcRetryToken; @@ -52,45 +71,23 @@ public String getDistributedDatabaseId() { * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * 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. + * 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 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. @@ -98,50 +95,73 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails - getBody$() { - return configureDistributedDatabaseGsmsDetails; + public com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails getBody$() { + return downloadCryptoAssessmentReportDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ConfigureDistributedDatabaseGsmsRequest, - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseGsmsDetails> { + DownloadCryptoAssessmentReportRequest, + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details to configure the new GSM instances for the distributed database. + * 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; + } + + /** + * Details of the report. */ - private com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails - configureDistributedDatabaseGsmsDetails = null; + private com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + downloadCryptoAssessmentReportDetails = null; /** - * Details to configure the new GSM instances for the distributed database. - * @param configureDistributedDatabaseGsmsDetails the value to set + * Details of the report. + * @param downloadCryptoAssessmentReportDetails the value to set * @return this builder instance */ - public Builder configureDistributedDatabaseGsmsDetails( - com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails - configureDistributedDatabaseGsmsDetails) { - this.configureDistributedDatabaseGsmsDetails = configureDistributedDatabaseGsmsDetails; + public Builder downloadCryptoAssessmentReportDetails( + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails + downloadCryptoAssessmentReportDetails) { + this.downloadCryptoAssessmentReportDetails = downloadCryptoAssessmentReportDetails; return this; } /** - * Globally distributed database identifier. + * 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 distributedDatabaseId = null; + private String ifMatch = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * 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 distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } @@ -149,8 +169,7 @@ public Builder distributedDatabaseId(String 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. + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. * */ private String opcRetryToken = null; @@ -159,8 +178,7 @@ public Builder distributedDatabaseId(String 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. + * 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 @@ -171,12 +189,12 @@ public Builder opcRetryToken(String opcRetryToken) { } /** - * 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 */ @@ -185,31 +203,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. * @param invocationCallback the invocation callback to be set for the request @@ -237,29 +230,29 @@ public Builder retryConfiguration( * 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()); + public Builder copy(DownloadCryptoAssessmentReportRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + downloadCryptoAssessmentReportDetails(o.getDownloadCryptoAssessmentReportDetails()); + ifMatch(o.getIfMatch()); 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 + * Build the instance of DownloadCryptoAssessmentReportRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ConfigureDistributedDatabaseGsmsRequest + * @return instance of DownloadCryptoAssessmentReportRequest */ - public ConfigureDistributedDatabaseGsmsRequest build() { - ConfigureDistributedDatabaseGsmsRequest request = buildWithoutInvocationCallback(); + public DownloadCryptoAssessmentReportRequest build() { + DownloadCryptoAssessmentReportRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -272,31 +265,29 @@ public ConfigureDistributedDatabaseGsmsRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.ConfigureDistributedDatabaseGsmsDetails - body) { - configureDistributedDatabaseGsmsDetails(body); + com.oracle.bmc.datasafe.model.DownloadCryptoAssessmentReportDetails body) { + downloadCryptoAssessmentReportDetails(body); return this; } /** - * Build the instance of ConfigureDistributedDatabaseGsmsRequest 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.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ConfigureDistributedDatabaseGsmsRequest + * @return instance of DownloadCryptoAssessmentReportRequest */ - public ConfigureDistributedDatabaseGsmsRequest buildWithoutInvocationCallback() { - ConfigureDistributedDatabaseGsmsRequest request = - new ConfigureDistributedDatabaseGsmsRequest(); - request.configureDistributedDatabaseGsmsDetails = - configureDistributedDatabaseGsmsDetails; - request.distributedDatabaseId = distributedDatabaseId; + public DownloadCryptoAssessmentReportRequest buildWithoutInvocationCallback() { + DownloadCryptoAssessmentReportRequest request = + new DownloadCryptoAssessmentReportRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.downloadCryptoAssessmentReportDetails = downloadCryptoAssessmentReportDetails; + request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; return request; - // new ConfigureDistributedDatabaseGsmsRequest(configureDistributedDatabaseGsmsDetails, distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); + // new DownloadCryptoAssessmentReportRequest(cryptoAssessmentId, downloadCryptoAssessmentReportDetails, ifMatch, opcRetryToken, opcRequestId); } } @@ -306,11 +297,11 @@ public ConfigureDistributedDatabaseGsmsRequest buildWithoutInvocationCallback() */ public Builder toBuilder() { return new Builder() - .configureDistributedDatabaseGsmsDetails(configureDistributedDatabaseGsmsDetails) - .distributedDatabaseId(distributedDatabaseId) + .cryptoAssessmentId(cryptoAssessmentId) + .downloadCryptoAssessmentReportDetails(downloadCryptoAssessmentReportDetails) + .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .opcRequestId(opcRequestId); } /** @@ -326,12 +317,12 @@ 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(",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)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); return sb.toString(); } @@ -341,19 +332,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedDatabaseGsmsRequest)) { + if (!(o instanceof DownloadCryptoAssessmentReportRequest)) { return false; } - ConfigureDistributedDatabaseGsmsRequest other = (ConfigureDistributedDatabaseGsmsRequest) o; + DownloadCryptoAssessmentReportRequest other = (DownloadCryptoAssessmentReportRequest) o; return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) && java.util.Objects.equals( - this.configureDistributedDatabaseGsmsDetails, - other.configureDistributedDatabaseGsmsDetails) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + 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) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -362,19 +353,19 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.configureDistributedDatabaseGsmsDetails == null + + (this.cryptoAssessmentId == null ? 43 - : this.configureDistributedDatabaseGsmsDetails.hashCode()); + : this.cryptoAssessmentId.hashCode()); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.downloadCryptoAssessmentReportDetails == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.downloadCryptoAssessmentReportDetails.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()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; } } diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java new file mode 100644 index 00000000000..1a098f1326a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateCryptoAssessmentReportRequest.java @@ -0,0 +1,371 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use GenerateCryptoAssessmentReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateCryptoAssessmentReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails> { + + /** + * The OCID of the crypto assessment. + */ + private String cryptoAssessmentId; + + /** + * The OCID of the crypto assessment. + */ + public String getCryptoAssessmentId() { + return cryptoAssessmentId; + } + /** + * Details of the report. + */ + private com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails + generateCryptoAssessmentReportDetails; + + /** + * 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 if-match parameter to the value of the + * etag from a previous GET or POST 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; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails getBody$() { + return generateCryptoAssessmentReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateCryptoAssessmentReportRequest, + com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * Details of the report. + */ + private com.oracle.bmc.datasafe.model.GenerateCryptoAssessmentReportDetails + generateCryptoAssessmentReportDetails = null; + + /** + * Details of the report. + * @param generateCryptoAssessmentReportDetails the value to set + * @return this builder instance + */ + 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 if-match parameter to the value of the + * etag from a previous GET or POST 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; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(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 GenerateCryptoAssessmentReportRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GenerateCryptoAssessmentReportRequest + */ + public GenerateCryptoAssessmentReportRequest build() { + GenerateCryptoAssessmentReportRequest 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.GenerateCryptoAssessmentReportDetails body) { + generateCryptoAssessmentReportDetails(body); + return this; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GenerateCryptoAssessmentReportRequest + */ + 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 GenerateCryptoAssessmentReportRequest(cryptoAssessmentId, generateCryptoAssessmentReportDetails, 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() + .cryptoAssessmentId(cryptoAssessmentId) + .generateCryptoAssessmentReportDetails(generateCryptoAssessmentReportDetails) + .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(",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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateCryptoAssessmentReportRequest)) { + return false; + } + + GenerateCryptoAssessmentReportRequest other = (GenerateCryptoAssessmentReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) + && java.util.Objects.equals( + 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.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.generateCryptoAssessmentReportDetails == null + ? 43 + : 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..6ac31d355c3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentRequest.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 GetCryptoAssessmentRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..e9c1867a267 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetCryptoAssessmentSqlnetParametersRequest.java @@ -0,0 +1,333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use GetCryptoAssessmentSqlnetParametersRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 a11be64550d..734b123f535 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 @@ -298,8 +298,8 @@ public AccessLevel getAccessLevel() { * (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") + * (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 @@ -325,8 +325,8 @@ public AccessLevel getAccessLevel() { * (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") + * (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 @@ -716,8 +716,8 @@ public Builder accessLevel(AccessLevel accessLevel) { * (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") + * (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 @@ -743,8 +743,8 @@ public Builder accessLevel(AccessLevel accessLevel) { * (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") + * (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 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 3fc76cab614..cfc357bdb7f 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 @@ -245,8 +245,8 @@ public SortBy getSortBy() { * (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") + * (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 @@ -272,8 +272,8 @@ public SortBy getSortBy() { * (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") + * (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 @@ -516,8 +516,8 @@ public Builder sortBy(SortBy sortBy) { * (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") + * (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 @@ -543,8 +543,8 @@ public Builder sortBy(SortBy sortBy) { * (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") + * (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 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..ed27f15ea39 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentBackupSetsRequest.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.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use ListCryptoAssessmentBackupSetsRequest. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..9cb948f35ac --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCbomItemsRequest.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.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use ListCryptoAssessmentCbomItemsRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..3af46386f6e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentCertificatesRequest.java @@ -0,0 +1,933 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..2b49a18360c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingAnalyticsRequest.java @@ -0,0 +1,643 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..28522e5652a --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingTargetsRequest.java @@ -0,0 +1,751 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..97937c56d16 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentFindingsRequest.java @@ -0,0 +1,429 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..a31c2bc3e4c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentKeysRequest.java @@ -0,0 +1,812 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..83a4eb64009 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentTdeObjectsRequest.java @@ -0,0 +1,892 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..0601d9ce9c4 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentWalletsRequest.java @@ -0,0 +1,751 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..8a956e7df3e --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListCryptoAssessmentsRequest.java @@ -0,0 +1,897 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 3a29bc8dc91..66e21d8bd55 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 @@ -290,6 +290,7 @@ public enum Category { CustomReports("CUSTOM_REPORTS"), Summary("SUMMARY"), ActivityAuditing("ACTIVITY_AUDITING"), + CryptoAssessment("CRYPTO_ASSESSMENT"), ; private final String value; diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java similarity index 62% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java index c575dfc4ddb..abd88c49b1b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/RefreshCryptoAssessmentRequest.java @@ -2,41 +2,73 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; +package com.oracle.bmc.datasafe.requests; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.datasafe.model.*; /** - * Example: Click here to see how to use GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest. + * Example: Click here to see how to use RefreshCryptoAssessmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - extends com.oracle.bmc.requests.BmcRequest { +@javax.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 autonomous database identifier + * The OCID of the crypto assessment. */ - private String distributedAutonomousDatabaseId; + private String cryptoAssessmentId; /** - * Globally distributed autonomous database identifier + * The OCID of the crypto assessment. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + public String getCryptoAssessmentId() { + return cryptoAssessmentId; } /** - * The client request ID for tracing. + * The details required to create an on-demand saved crypto assessment. + */ + private com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails runCryptoAssessmentDetails; + + /** + * 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 + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. */ private String opcRequestId; /** - * 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 + * 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. @@ -46,7 +78,7 @@ public String getOpcRequestId() { /** * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the + * 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. @@ -55,99 +87,55 @@ 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. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The ID of the Ca Bundle. - */ - private String caBundleId; /** - * The ID of the Ca Bundle. + * Alternative accessor for the body parameter. + * @return body parameter */ - public String getCaBundleId() { - return caBundleId; + @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< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - java.lang.Void> { + RefreshCryptoAssessmentRequest, + com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails> { private com.oracle.bmc.util.internal.Consumer 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. + * The OCID of the crypto assessment. */ - private String opcRequestId = null; + private String cryptoAssessmentId = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * The OCID of the crypto assessment. + * @param cryptoAssessmentId the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + 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 {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * + * The details required to create an on-demand saved crypto assessment. */ - private String ifMatch = null; + private com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails + runCryptoAssessmentDetails = 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 + * The details required to create an on-demand saved crypto assessment. + * @param runCryptoAssessmentDetails the value to set * @return this builder instance */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; + public Builder runCryptoAssessmentDetails( + com.oracle.bmc.datasafe.model.RunCryptoAssessmentDetails + runCryptoAssessmentDetails) { + this.runCryptoAssessmentDetails = runCryptoAssessmentDetails; return this; } @@ -155,8 +143,7 @@ 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. + * has been deleted and purged from the system, then a retry of the original creation request might be rejected. * */ private String opcRetryToken = null; @@ -165,8 +152,7 @@ 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. + * 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 @@ -177,17 +163,42 @@ public Builder opcRetryToken(String opcRetryToken) { } /** - * The ID of the Ca Bundle. + * 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 caBundleId = null; + private String ifMatch = null; /** - * The ID of the Ca Bundle. - * @param caBundleId the value to set + * 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 caBundleId(String caBundleId) { - this.caBundleId = caBundleId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } @@ -218,55 +229,62 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + public Builder copy(RefreshCryptoAssessmentRequest o) { + cryptoAssessmentId(o.getCryptoAssessmentId()); + runCryptoAssessmentDetails(o.getRunCryptoAssessmentDetails()); + opcRetryToken(o.getOpcRetryToken()); 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 + * Build the instance of RefreshCryptoAssessmentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest + * @return instance of RefreshCryptoAssessmentRequest */ - public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest build() { - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); + public RefreshCryptoAssessmentRequest build() { + RefreshCryptoAssessmentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest 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.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest + * @return instance of RefreshCryptoAssessmentRequest */ - public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - new GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public RefreshCryptoAssessmentRequest buildWithoutInvocationCallback() { + RefreshCryptoAssessmentRequest request = new RefreshCryptoAssessmentRequest(); + request.cryptoAssessmentId = cryptoAssessmentId; + request.runCryptoAssessmentDetails = runCryptoAssessmentDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.caBundleId = caBundleId; return request; - // new GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(distributedAutonomousDatabaseId, opcRequestId, ifMatch, opcRetryToken, caBundleId); + // new RefreshCryptoAssessmentRequest(cryptoAssessmentId, runCryptoAssessmentDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -276,11 +294,11 @@ public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) + .cryptoAssessmentId(cryptoAssessmentId) + .runCryptoAssessmentDetails(runCryptoAssessmentDetails) .opcRetryToken(opcRetryToken) - .caBundleId(caBundleId); + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); } /** @@ -296,12 +314,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(",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)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",caBundleId=").append(String.valueOf(this.caBundleId)); sb.append(")"); return sb.toString(); } @@ -311,21 +329,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o - instanceof - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest)) { + if (!(o instanceof RefreshCryptoAssessmentRequest)) { return false; } - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest other = - (GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest) o; + RefreshCryptoAssessmentRequest other = (RefreshCryptoAssessmentRequest) o; return super.equals(o) + && java.util.Objects.equals(this.cryptoAssessmentId, other.cryptoAssessmentId) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) + this.runCryptoAssessmentDetails, other.runCryptoAssessmentDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.caBundleId, other.caBundleId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @Override @@ -334,15 +349,19 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null + + (this.cryptoAssessmentId == 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()); + : this.cryptoAssessmentId.hashCode()); + result = + (result * PRIME) + + (this.runCryptoAssessmentDetails == null + ? 43 + : this.runCryptoAssessmentDetails.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.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()); return result; } } 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..27c5180edce --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/UpdateCryptoAssessmentRequest.java @@ -0,0 +1,318 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.requests; + +import com.oracle.bmc.datasafe.model.*; +/** + * Example: Click here to see how to use UpdateCryptoAssessmentRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 74% 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 17c3056393d..a646caca0da 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,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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedAutonomousDatabaseResponse +@javax.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 */ @@ -25,15 +25,13 @@ public String getOpcWorkRequestId() { } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 */ @@ -47,7 +45,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private StopDistributedAutonomousDatabaseResponse( + private ChangeCryptoAssessmentCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +71,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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 @@ -90,15 +88,13 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 @@ -112,7 +108,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(StopDistributedAutonomousDatabaseResponse o) { + public Builder copy(ChangeCryptoAssessmentCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +121,8 @@ public Builder copy(StopDistributedAutonomousDatabaseResponse o) { * Build the response object. * @return the response object */ - public StopDistributedAutonomousDatabaseResponse build() { - return new StopDistributedAutonomousDatabaseResponse( + public ChangeCryptoAssessmentCompartmentResponse build() { + return new ChangeCryptoAssessmentCompartmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +151,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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.java new file mode 100644 index 00000000000..2935ddb549d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteCryptoAssessmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteCryptoAssessmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteCryptoAssessmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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 + */ + 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 + */ + public Builder copy(DeleteCryptoAssessmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteCryptoAssessmentResponse build() { + return new DeleteCryptoAssessmentResponse( + __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 DeleteCryptoAssessmentResponse)) { + return false; + } + + DeleteCryptoAssessmentResponse other = (DeleteCryptoAssessmentResponse) 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/GenerateDistributedDatabaseWalletResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DownloadCryptoAssessmentReportResponse.java similarity index 70% 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 4e63cb76f9d..a74c66c94ef 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,23 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 */ @@ -27,13 +24,13 @@ public String getOpcRequestId() { } /** - * 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 */ @@ -54,19 +51,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 java.io.InputStream instance. */ @@ -86,22 +70,19 @@ public java.io.InputStream getInputStream() { "opcRequestId", "etag", "contentLength", - "lastModified", "inputStream" }) - private GenerateDistributedDatabaseWalletResponse( + private DownloadCryptoAssessmentReportResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap 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; } @@ -121,15 +102,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 @@ -140,13 +119,13 @@ public Builder opcRequestId(String 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) * * @param etag the value to set * @return this builder @@ -171,21 +150,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 java.io.InputStream instance. */ @@ -205,13 +169,12 @@ public Builder inputStream(java.io.InputStream inputStream) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - 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; @@ -221,15 +184,9 @@ public Builder copy(GenerateDistributedDatabaseWalletResponse o) { * Build the response object. * @return the response object */ - 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); } } @@ -249,7 +206,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(); @@ -260,17 +216,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); } @@ -283,7 +237,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/ConfigureDistributedAutonomousDatabaseGsmsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java similarity index 74% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java rename to bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java index d7209808ee6..99630da91b6 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateCryptoAssessmentReportResponse.java @@ -2,21 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseGsmsResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.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 */ @@ -25,15 +24,13 @@ public String getOpcWorkRequestId() { } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 */ @@ -47,7 +44,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private ConfigureDistributedAutonomousDatabaseGsmsResponse( + private GenerateCryptoAssessmentReportResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +70,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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 @@ -90,15 +87,13 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 @@ -112,7 +107,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ConfigureDistributedAutonomousDatabaseGsmsResponse o) { + public Builder copy(GenerateCryptoAssessmentReportResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +120,8 @@ public Builder copy(ConfigureDistributedAutonomousDatabaseGsmsResponse o) { * Build the response object. * @return the response object */ - public ConfigureDistributedAutonomousDatabaseGsmsResponse build() { - return new ConfigureDistributedAutonomousDatabaseGsmsResponse( + public GenerateCryptoAssessmentReportResponse build() { + return new GenerateCryptoAssessmentReportResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +150,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseGsmsResponse)) { + if (!(o instanceof GenerateCryptoAssessmentReportResponse)) { return false; } - ConfigureDistributedAutonomousDatabaseGsmsResponse other = - (ConfigureDistributedAutonomousDatabaseGsmsResponse) 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..5b5bf2a3b70 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessment instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessment cryptoAssessment; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessment instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessment cryptoAssessment; + + /** + * The returned 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 + */ + 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 + */ + 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..8b4e77bfae3 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetCryptoAssessmentSqlnetParametersResponse.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.*; + +@javax.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 CryptoAssessmentSqlnetParameters instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + cryptoAssessmentSqlnetParameters; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentSqlnetParameters instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentSqlnetParameters + cryptoAssessmentSqlnetParameters; + + /** + * The returned 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 + */ + 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 + */ + 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..6b5f5442e23 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentBackupSetsResponse.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentBackupSetCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + cryptoAssessmentBackupSetCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentBackupSetCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentBackupSetCollection + cryptoAssessmentBackupSetCollection; + + /** + * The returned 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 + */ + 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 + */ + 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 56% 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 f18f9dd174f..1f6862fb62d 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,22 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.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. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 */ @@ -26,35 +24,35 @@ public String getOpcRequestId() { } /** - * The returned DistributedDatabaseRaftMetric instance. + * The returned CryptoAssessmentCbomItemCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric; + private com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + cryptoAssessmentCbomItemCollection; /** - * The returned DistributedDatabaseRaftMetric instance. + * The returned 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__, javax.ws.rs.core.MultivaluedMap 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 { @@ -73,15 +71,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * 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 @@ -92,20 +88,20 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The returned DistributedDatabaseRaftMetric instance. + * The returned CryptoAssessmentCbomItemCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric; + private com.oracle.bmc.datasafe.model.CryptoAssessmentCbomItemCollection + cryptoAssessmentCbomItemCollection; /** - * The returned DistributedDatabaseRaftMetric instance. - * @param distributedDatabaseRaftMetric the value to set + * The returned CryptoAssessmentCbomItemCollection instance. + * @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; } @@ -113,11 +109,11 @@ public Builder distributedDatabaseRaftMetric( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - 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; } @@ -126,9 +122,9 @@ public Builder copy(GetDistributedDatabaseRaftMetricResponse o) { * Build the response object. * @return the response object */ - public GetDistributedDatabaseRaftMetricResponse build() { - return new GetDistributedDatabaseRaftMetricResponse( - __httpStatusCode__, headers, opcRequestId, distributedDatabaseRaftMetric); + public ListCryptoAssessmentCbomItemsResponse build() { + return new ListCryptoAssessmentCbomItemsResponse( + __httpStatusCode__, headers, opcRequestId, cryptoAssessmentCbomItemCollection); } } @@ -146,8 +142,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(); } @@ -157,16 +153,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 @@ -176,9 +172,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..ddc229b921d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentCertificatesResponse.java @@ -0,0 +1,272 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentCertificateCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + cryptoAssessmentCertificateCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentCertificateCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCertificateCollection + cryptoAssessmentCertificateCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..800cd1f31fd --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingAnalyticsResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentFindingAnalyticsCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + cryptoAssessmentFindingAnalyticsCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentFindingAnalyticsCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingAnalyticsCollection + cryptoAssessmentFindingAnalyticsCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..6292bdfcc80 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingTargetsResponse.java @@ -0,0 +1,273 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.*; + +@javax.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 CryptoAssessmentFindingTargetCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + cryptoAssessmentFindingTargetCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentFindingTargetCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingTargetCollection + cryptoAssessmentFindingTargetCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..3341589bd4c --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentFindingsResponse.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.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentFindingCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + cryptoAssessmentFindingCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentFindingCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentFindingCollection + cryptoAssessmentFindingCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..292f3e5496d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentKeysResponse.java @@ -0,0 +1,270 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentKeyCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + cryptoAssessmentKeyCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentKeyCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentKeyCollection + cryptoAssessmentKeyCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..f029d779289 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentTdeObjectsResponse.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentTdeObjectCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + cryptoAssessmentTdeObjectCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentTdeObjectCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentTdeObjectCollection + cryptoAssessmentTdeObjectCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..6a836e67b51 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentWalletsResponse.java @@ -0,0 +1,271 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentWalletCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + cryptoAssessmentWalletCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentWalletCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentWalletCollection + cryptoAssessmentWalletCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..1973541c000 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListCryptoAssessmentsResponse.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.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 CryptoAssessmentCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCollection cryptoAssessmentCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CryptoAssessmentCollection instance. + */ + private com.oracle.bmc.datasafe.model.CryptoAssessmentCollection cryptoAssessmentCollection; + + /** + * The returned 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 + */ + 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 + */ + 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.java new file mode 100644 index 00000000000..1ff003f0b96 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/RefreshCryptoAssessmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class RefreshCryptoAssessmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RefreshCryptoAssessmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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 + */ + 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 + */ + public Builder copy(RefreshCryptoAssessmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RefreshCryptoAssessmentResponse build() { + return new RefreshCryptoAssessmentResponse( + __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 RefreshCryptoAssessmentResponse)) { + return false; + } + + RefreshCryptoAssessmentResponse other = (RefreshCryptoAssessmentResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.java new file mode 100644 index 00000000000..cba12a92daa --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/UpdateCryptoAssessmentResponse.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.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class UpdateCryptoAssessmentResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateCryptoAssessmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * The OCID of the work request. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with this OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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 + */ + 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 + */ + public Builder copy(UpdateCryptoAssessmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateCryptoAssessmentResponse build() { + return new UpdateCryptoAssessmentResponse( + __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 UpdateCryptoAssessmentResponse)) { + return false; + } + + UpdateCryptoAssessmentResponse other = (UpdateCryptoAssessmentResponse) 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-datascience/pom.xml b/bmc-datascience/pom.xml index 5e2cc2ab28e..344447d0635 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-datascience @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 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 209434d3786..ca3b79127af 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 @@ -27,20 +27,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 = "") @@ -129,6 +132,22 @@ 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(); @@ -140,7 +159,8 @@ public InstanceConfiguration build() { this.modelDeploymentInstanceShapeConfigDetails, this.subnetId, this.privateEndpointId, - this.networkAccessType); + this.networkAccessType, + this.capacityReservationIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -165,6 +185,9 @@ public Builder copy(InstanceConfiguration model) { if (model.wasPropertyExplicitlySet("networkAccessType")) { this.networkAccessType(model.getNetworkAccessType()); } + if (model.wasPropertyExplicitlySet("capacityReservationIds")) { + this.capacityReservationIds(model.getCapacityReservationIds()); + } return this; } } @@ -302,6 +325,20 @@ 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 +359,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 +381,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 +405,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 49ec94ebaa1..c288a6f9c45 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 @@ -24,15 +24,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; } @@ -55,6 +58,22 @@ 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. **/ @@ -89,6 +108,7 @@ public ManagedComputeClusterInstanceConfigurationDetails build() { ManagedComputeClusterInstanceConfigurationDetails model = new ManagedComputeClusterInstanceConfigurationDetails( this.instanceShape, + this.capacityReservationIds, this.bootVolumeSizeInGBs, this.instanceShapeDetails); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -102,6 +122,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()); } @@ -137,6 +160,20 @@ 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. **/ @@ -173,6 +210,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(")"); @@ -191,6 +229,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); @@ -203,6 +243,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 93ba714919e..af4de305252 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 @@ -62,6 +62,24 @@ 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; @@ -78,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); } @@ -93,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()); } @@ -115,10 +139,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; } @@ -152,6 +178,22 @@ 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; @@ -175,6 +217,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(); @@ -193,6 +236,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); } @@ -207,6 +251,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 524807d3934..4128e85acb0 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 @@ -60,6 +60,24 @@ 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; @@ -76,7 +94,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); } @@ -91,6 +112,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()); } @@ -113,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; } @@ -148,6 +174,22 @@ 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; @@ -171,6 +213,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(); @@ -189,6 +232,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); } @@ -203,6 +248,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 9afe857d024..83086c6f701 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 @@ -27,6 +27,7 @@ public final class NotebookSessionConfigDetails "blockStorageSizeInGBs", "subnetId", "privateEndpointId", + "capacityReservationId", "notebookSessionShapeConfigDetails" }) public NotebookSessionConfigDetails( @@ -34,12 +35,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; } @@ -117,6 +120,24 @@ 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; @@ -138,6 +159,7 @@ public NotebookSessionConfigDetails build() { this.blockStorageSizeInGBs, this.subnetId, this.privateEndpointId, + this.capacityReservationId, this.notebookSessionShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -159,6 +181,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()); @@ -242,6 +267,22 @@ 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; @@ -267,6 +308,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(")"); @@ -287,6 +329,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) @@ -307,6 +350,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 6cc7000c78d..2407d7c3083 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 @@ -27,6 +27,7 @@ public final class NotebookSessionConfigurationDetails "blockStorageSizeInGBs", "subnetId", "privateEndpointId", + "capacityReservationId", "notebookSessionShapeConfigDetails" }) public NotebookSessionConfigurationDetails( @@ -34,12 +35,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; } @@ -117,6 +120,24 @@ 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; @@ -138,6 +159,7 @@ public NotebookSessionConfigurationDetails build() { this.blockStorageSizeInGBs, this.subnetId, this.privateEndpointId, + this.capacityReservationId, this.notebookSessionShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -159,6 +181,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()); @@ -242,6 +267,22 @@ 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; @@ -267,6 +308,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(")"); @@ -287,6 +329,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) @@ -307,6 +350,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 db24d733c43..030ed863518 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 @@ -27,20 +27,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 = "") @@ -127,6 +130,24 @@ 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(); @@ -138,7 +159,8 @@ public PipelineInfrastructureConfigurationDetails build() { this.blockStorageSizeInGBs, this.subnetId, this.shapeConfigDetails, - this.blockStorageSizeInGBsParameterized); + this.blockStorageSizeInGBsParameterized, + this.capacityReservationId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -163,6 +185,9 @@ public Builder copy(PipelineInfrastructureConfigurationDetails model) { this.blockStorageSizeInGBsParameterized( model.getBlockStorageSizeInGBsParameterized()); } + if (model.wasPropertyExplicitlySet("capacityReservationId")) { + this.capacityReservationId(model.getCapacityReservationId()); + } return this; } } @@ -249,6 +274,22 @@ 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); @@ -269,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(); } @@ -291,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); } @@ -315,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 5c2e7b6c6b9..8625c6b0670 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 @@ -80,6 +80,24 @@ 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; @@ -99,6 +117,7 @@ public StandaloneJobInfrastructureConfigurationDetails build() { this.shapeName, this.subnetId, this.blockStorageSizeInGBs, + this.capacityReservationId, this.jobShapeConfigDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -117,6 +136,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()); } @@ -140,11 +162,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; } @@ -194,6 +218,22 @@ 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; @@ -218,6 +258,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(); @@ -237,6 +278,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); } @@ -252,6 +294,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 bb01e64813e..0b3789b3e69 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 @@ -23,15 +23,18 @@ public final class UpdateManagedComputeClusterInstanceConfigurationDetails extends com.oracle.bmc.http.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; @@ -39,6 +42,22 @@ 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. **/ @@ -88,6 +107,7 @@ public Builder instanceShapeDetails( public UpdateManagedComputeClusterInstanceConfigurationDetails build() { UpdateManagedComputeClusterInstanceConfigurationDetails model = new UpdateManagedComputeClusterInstanceConfigurationDetails( + this.capacityReservationIds, this.instanceShape, this.bootVolumeSizeInGBs, this.instanceShapeDetails); @@ -99,6 +119,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()); } @@ -123,6 +146,20 @@ 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. **/ @@ -172,7 +209,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(")"); @@ -190,7 +228,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); @@ -200,6 +239,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 5604665dbd3..0397a5b092c 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index 5a23d7cc8d2..c5924afe0f3 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml index 02b2ec77df9..8e6de316fc2 100644 --- a/bmc-ddfs/pom.xml +++ b/bmc-ddfs/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-ddfs @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.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 e4b4de185a6..435fba368ee 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 @@ -482,7 +482,10 @@ public java.util.concurrent.Future cancelWorkRequest( CancelWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + "Instance", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/CancelWorkRequest"); final java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -525,7 +528,10 @@ public java.util.concurrent.Future changeInst ChangeInstanceCompartmentConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ChangeInstanceCompartment", ib.getRequestUri().toString(), ""); + "Instance", + "ChangeInstanceCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/ChangeInstanceCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeInstanceCompartmentResponse> transformer = @@ -577,7 +583,10 @@ public java.util.concurrent.Future createInstance( com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "CreateInstance", ib.getRequestUri().toString(), ""); + "Instance", + "CreateInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/CreateInstance"); final java.util.function.Function transformer = CreateInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -624,7 +633,10 @@ public java.util.concurrent.Future deleteInstance( DeleteInstanceConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "DeleteInstance", ib.getRequestUri().toString(), ""); + "Instance", + "DeleteInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/DeleteInstance"); final java.util.function.Function transformer = DeleteInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -665,7 +677,10 @@ public java.util.concurrent.Future getInstance( GetInstanceConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "GetInstance", ib.getRequestUri().toString(), ""); + "Instance", + "GetInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/GetInstance"); final java.util.function.Function transformer = GetInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -707,7 +722,10 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "Instance", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -748,7 +766,10 @@ public java.util.concurrent.Future listInstances( ListInstancesConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListInstances", ib.getRequestUri().toString(), ""); + "Instance", + "ListInstances", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/InstanceCollection/ListInstances"); final java.util.function.Function transformer = ListInstancesConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -790,7 +811,10 @@ public java.util.concurrent.Future listWorkReques ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + "Instance", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -834,7 +858,10 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "Instance", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -878,7 +905,10 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "Instance", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -921,7 +951,10 @@ public java.util.concurrent.Future updateInstance( UpdateInstanceConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "UpdateInstance", ib.getRequestUri().toString(), ""); + "Instance", + "UpdateInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/UpdateInstance"); final java.util.function.Function transformer = UpdateInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); 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 86a17d48492..614cfac4e9a 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 @@ -572,7 +572,10 @@ public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest requ com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "CancelWorkRequest", ib.getRequestUri().toString(), ""); + "Instance", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/CancelWorkRequest"); java.util.function.Function transformer = CancelWorkRequestConverter.fromResponse( @@ -608,7 +611,10 @@ public ChangeInstanceCompartmentResponse changeInstanceCompartment( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ChangeInstanceCompartment", ib.getRequestUri().toString(), ""); + "Instance", + "ChangeInstanceCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/ChangeInstanceCompartment"); java.util.function.Function transformer = ChangeInstanceCompartmentConverter.fromResponse( @@ -648,7 +654,10 @@ public CreateInstanceResponse createInstance(CreateInstanceRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "CreateInstance", ib.getRequestUri().toString(), ""); + "Instance", + "CreateInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/CreateInstance"); java.util.function.Function transformer = CreateInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -684,7 +693,10 @@ public DeleteInstanceResponse deleteInstance(DeleteInstanceRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "DeleteInstance", ib.getRequestUri().toString(), ""); + "Instance", + "DeleteInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/DeleteInstance"); java.util.function.Function transformer = DeleteInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -717,7 +729,10 @@ public GetInstanceResponse getInstance(GetInstanceRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "GetInstance", ib.getRequestUri().toString(), ""); + "Instance", + "GetInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/GetInstance"); java.util.function.Function transformer = GetInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -749,7 +764,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "GetWorkRequest", ib.getRequestUri().toString(), ""); + "Instance", + "GetWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -781,7 +799,10 @@ public ListInstancesResponse listInstances(ListInstancesRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListInstances", ib.getRequestUri().toString(), ""); + "Instance", + "ListInstances", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/InstanceCollection/ListInstances"); java.util.function.Function transformer = ListInstancesConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -814,7 +835,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListWorkRequestErrors", ib.getRequestUri().toString(), ""); + "Instance", + "ListWorkRequestErrors", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -848,7 +872,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListWorkRequestLogs", ib.getRequestUri().toString(), ""); + "Instance", + "ListWorkRequestLogs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -882,7 +909,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "ListWorkRequests", ib.getRequestUri().toString(), ""); + "Instance", + "ListWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/WorkRequest/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -916,7 +946,10 @@ public UpdateInstanceResponse updateInstance(UpdateInstanceRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "Instance", "UpdateInstance", ib.getRequestUri().toString(), ""); + "Instance", + "UpdateInstance", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ddfs/20260831/Instance/UpdateInstance"); java.util.function.Function transformer = UpdateInstanceConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 3da4c08000d..1a417c5d64f 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index 42ba9d0bc84..6ad553ffc84 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 34549b22866..faa7a291a55 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 63a9cf9979e..547f1e12321 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-devops @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 97c3cbadbb1..0b31d2f704d 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 1acfa09e522..69c3cd10bb0 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index 53958ac1a21..d561e78ec98 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.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 09f5dc780f1..b1717e1fb20 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 @@ -11,7 +11,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedAutonomousDbService extends AutoCloseable { /** @@ -103,6 +103,21 @@ 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. * @@ -179,43 +194,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. * @@ -259,6 +237,21 @@ 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. * @@ -334,7 +327,21 @@ 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 * @throws BmcException when an error occurs. @@ -347,7 +354,7 @@ 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 * @throws BmcException when an error occurs. @@ -373,24 +380,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 3aca915f983..bdcf82a517c 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 @@ -10,7 +10,7 @@ /** * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedAutonomousDbServiceAsync extends AutoCloseable { /** @@ -115,6 +115,26 @@ 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. * @@ -214,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. * @@ -319,6 +292,26 @@ 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. * @@ -416,7 +409,26 @@ 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. @@ -434,7 +446,7 @@ 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. @@ -470,29 +482,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 26e890c0510..82a78cbcc29 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 @@ -23,7 +23,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedAutonomousDbServiceAsyncClient implements DistributedAutonomousDbServiceAsync { /** @@ -312,7 +312,7 @@ public DistributedAutonomousDbServiceAsyncClient( LOG.warn( com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( "DistributedAutonomousDbServiceAsyncClient", - "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest,generateDistributedAutonomousDatabaseWallet")); + "generateDistributedAutonomousDatabaseWallet")); } } @@ -497,7 +497,7 @@ public void close() { "DistributedAutonomousDbService", "AddDistributedAutonomousDatabaseGdsControlNode", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, AddDistributedAutonomousDatabaseGdsControlNodeResponse> @@ -560,7 +560,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ChangeDistributedAutonomousDatabaseCompartment", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedAutonomousDatabaseCompartmentResponse> @@ -623,7 +623,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ChangeDistributedAutonomousDbBackupConfig", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedAutonomousDbBackupConfigResponse> @@ -666,6 +666,72 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + configureDistributedAutonomousDatabaseAutoResourceManagement( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + handler) { + LOG.trace("Called async configureDistributedAutonomousDatabaseAutoResourceManagement"); + final ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + interceptedRequest = + ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter + .interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement"); + final java.util.function.Function< + javax.ws.rs.core.Response, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + transformer = + ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>, + java.util.concurrent.Future< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future configureDistributedAutonomousDatabaseGsmWallet( @@ -686,7 +752,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsmWallet", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedAutonomousDatabaseGsmWalletResponse> @@ -749,7 +815,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsms", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedAutonomousDatabaseGsmsResponse> @@ -812,7 +878,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseSharding", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedAutonomousDatabaseShardingResponse> @@ -929,7 +995,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "DeleteDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDistributedAutonomousDatabaseResponse> transformer = @@ -964,128 +1030,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request, - final com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handler) { - LOG.trace("Called async downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - final DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptedRequest = - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - final java.util.function.Function< - javax.ws.rs.core.Response, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>, - java.util.concurrent.Future< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - generateDistributedAutonomousDatabaseGsmCertificateSigningRequest( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handler) { - LOG.trace("Called async generateDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - final GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptedRequest = - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>, - java.util.concurrent.Future< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future generateDistributedAutonomousDatabaseWallet( @@ -1106,7 +1050,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "GenerateDistributedAutonomousDatabaseWallet", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, GenerateDistributedAutonomousDatabaseWalletResponse> @@ -1167,7 +1111,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "GetDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseResponse> transformer = @@ -1221,7 +1165,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "GetDistributedAutonomousDatabaseRaftMetric", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseRaftMetricResponse> @@ -1258,6 +1202,62 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + getDistributedAutonomousDatabaseRuChangeLog( + GetDistributedAutonomousDatabaseRuChangeLogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRuChangeLogRequest, + GetDistributedAutonomousDatabaseRuChangeLogResponse> + handler) { + LOG.trace("Called async getDistributedAutonomousDatabaseRuChangeLog"); + final GetDistributedAutonomousDatabaseRuChangeLogRequest interceptedRequest = + GetDistributedAutonomousDatabaseRuChangeLogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDistributedAutonomousDatabaseRuChangeLogConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabaseRuChangeLog", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog"); + final java.util.function.Function< + javax.ws.rs.core.Response, + GetDistributedAutonomousDatabaseRuChangeLogResponse> + transformer = + GetDistributedAutonomousDatabaseRuChangeLogConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRuChangeLogRequest, + GetDistributedAutonomousDatabaseRuChangeLogResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDistributedAutonomousDatabaseRuChangeLogRequest, + GetDistributedAutonomousDatabaseRuChangeLogResponse>, + java.util.concurrent.Future< + GetDistributedAutonomousDatabaseRuChangeLogResponse>> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDistributedAutonomousDatabaseRuChangeLogRequest, + GetDistributedAutonomousDatabaseRuChangeLogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listDistributedAutonomousDatabases( @@ -1276,7 +1276,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ListDistributedAutonomousDatabases", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ListDistributedAutonomousDatabasesResponse> transformer = @@ -1331,7 +1331,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "MoveDistributedAutonomousDatabaseReplicationUnit", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, MoveDistributedAutonomousDatabaseReplicationUnitResponse> @@ -1393,7 +1393,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "PatchDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, PatchDistributedAutonomousDatabaseResponse> transformer = @@ -1454,7 +1454,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "RecreateFailedDistributedAutonomousDatabaseResource", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, RecreateFailedDistributedAutonomousDatabaseResourceResponse> @@ -1511,7 +1511,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "RotateDistributedAutonomousDatabasePasswords", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, RotateDistributedAutonomousDatabasePasswordsResponse> @@ -1529,7 +1529,13 @@ protected void beforeRetryAction() {} RotateDistributedAutonomousDatabasePasswordsResponse>, java.util.concurrent.Future< RotateDistributedAutonomousDatabasePasswordsResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getRotateDistributedAutonomousDatabasePasswordsDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { @@ -1548,6 +1554,67 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + scaleDistributedAutonomousDatabaseGsms( + ScaleDistributedAutonomousDatabaseGsmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedAutonomousDatabaseGsmsRequest, + ScaleDistributedAutonomousDatabaseGsmsResponse> + handler) { + LOG.trace("Called async scaleDistributedAutonomousDatabaseGsms"); + final ScaleDistributedAutonomousDatabaseGsmsRequest interceptedRequest = + ScaleDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleDistributedAutonomousDatabaseGsmsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedAutonomousDbService", + "ScaleDistributedAutonomousDatabaseGsms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms"); + final java.util.function.Function< + javax.ws.rs.core.Response, ScaleDistributedAutonomousDatabaseGsmsResponse> + transformer = + ScaleDistributedAutonomousDatabaseGsmsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedAutonomousDatabaseGsmsRequest, + ScaleDistributedAutonomousDatabaseGsmsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedAutonomousDatabaseGsmsRequest, + ScaleDistributedAutonomousDatabaseGsmsResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getScaleDistributedAutonomousDatabaseGsmsDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ScaleDistributedAutonomousDatabaseGsmsRequest, + ScaleDistributedAutonomousDatabaseGsmsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future startDistributedAutonomousDatabase( @@ -1567,7 +1634,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "StartDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, StartDistributedAutonomousDatabaseResponse> transformer = @@ -1621,7 +1688,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "StopDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, StopDistributedAutonomousDatabaseResponse> transformer = @@ -1675,7 +1742,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "UpdateDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDistributedAutonomousDatabaseResponse> transformer = @@ -1715,74 +1782,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request, - final com.oracle.bmc.responses.AsyncHandler< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - handler) { - LOG.trace( - "Called async uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet"); - final UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - interceptedRequest = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse>, - java.util.concurrent.Future< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future validateDistributedAutonomousDatabaseCaBundle( @@ -1803,7 +1802,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseCaBundle", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDistributedAutonomousDatabaseCaBundleResponse> @@ -1860,7 +1859,7 @@ protected void beforeRetryAction() {} "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseNetwork", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDistributedAutonomousDatabaseNetworkResponse> 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 2fc7a87b463..b3daf3a555a 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 @@ -11,7 +11,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedAutonomousDbServiceClient implements DistributedAutonomousDbService { /** * Service instance for DistributedAutonomousDbService. @@ -388,7 +388,7 @@ protected DistributedAutonomousDbServiceClient( LOG.warn( com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( "DistributedAutonomousDbServiceClient", - "downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest,generateDistributedAutonomousDatabaseWallet")); + "generateDistributedAutonomousDatabaseWallet")); } } @@ -586,7 +586,7 @@ public void close() { "DistributedAutonomousDbService", "AddDistributedAutonomousDatabaseGdsControlNode", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, AddDistributedAutonomousDatabaseGdsControlNodeResponse> @@ -634,7 +634,7 @@ public void close() { "DistributedAutonomousDbService", "ChangeDistributedAutonomousDatabaseCompartment", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedAutonomousDatabaseCompartmentResponse> @@ -682,7 +682,7 @@ public void close() { "DistributedAutonomousDbService", "ChangeDistributedAutonomousDbBackupConfig", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedAutonomousDbBackupConfigResponse> @@ -709,6 +709,56 @@ public void close() { }); } + @Override + public ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse + configureDistributedAutonomousDatabaseAutoResourceManagement( + ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request) { + LOG.trace("Called configureDistributedAutonomousDatabaseAutoResourceManagement"); + final ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest + interceptedRequest = + ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter + .interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedAutonomousDbService", + "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement"); + java.util.function.Function< + javax.ws.rs.core.Response, + ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> + transformer = + ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter + .fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ConfigureDistributedAutonomousDatabaseGsmWalletResponse configureDistributedAutonomousDatabaseGsmWallet( @@ -730,7 +780,7 @@ public void close() { "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsmWallet", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedAutonomousDatabaseGsmWalletResponse> @@ -778,7 +828,7 @@ public void close() { "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseGsms", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedAutonomousDatabaseGsmsResponse> @@ -826,7 +876,7 @@ public void close() { "DistributedAutonomousDbService", "ConfigureDistributedAutonomousDatabaseSharding", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedAutonomousDatabaseShardingResponse> @@ -915,7 +965,7 @@ public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDa "DistributedAutonomousDbService", "DeleteDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDistributedAutonomousDatabaseResponse> transformer = @@ -937,100 +987,6 @@ public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDa }); } - @Override - public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - LOG.trace("Called downloadDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - final DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptedRequest = - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - java.util.function.Function< - javax.ws.rs.core.Response, - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - generateDistributedAutonomousDatabaseGsmCertificateSigningRequest( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - LOG.trace("Called generateDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - final GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptedRequest = - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequest"); - java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public GenerateDistributedAutonomousDatabaseWalletResponse generateDistributedAutonomousDatabaseWallet( @@ -1052,7 +1008,7 @@ public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDa "DistributedAutonomousDbService", "GenerateDistributedAutonomousDatabaseWallet", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, GenerateDistributedAutonomousDatabaseWalletResponse> @@ -1097,7 +1053,7 @@ public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase "DistributedAutonomousDbService", "GetDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseResponse> transformer = @@ -1138,7 +1094,7 @@ public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase "DistributedAutonomousDbService", "GetDistributedAutonomousDatabaseRaftMetric", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseRaftMetricResponse> @@ -1160,6 +1116,48 @@ public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase }); } + @Override + public GetDistributedAutonomousDatabaseRuChangeLogResponse + getDistributedAutonomousDatabaseRuChangeLog( + GetDistributedAutonomousDatabaseRuChangeLogRequest request) { + LOG.trace("Called getDistributedAutonomousDatabaseRuChangeLog"); + final GetDistributedAutonomousDatabaseRuChangeLogRequest interceptedRequest = + GetDistributedAutonomousDatabaseRuChangeLogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDistributedAutonomousDatabaseRuChangeLogConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedAutonomousDbService", + "GetDistributedAutonomousDatabaseRuChangeLog", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog"); + java.util.function.Function< + javax.ws.rs.core.Response, + GetDistributedAutonomousDatabaseRuChangeLogResponse> + transformer = + GetDistributedAutonomousDatabaseRuChangeLogConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatabases( ListDistributedAutonomousDatabasesRequest request) { @@ -1178,7 +1176,7 @@ public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatab "DistributedAutonomousDbService", "ListDistributedAutonomousDatabases", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ListDistributedAutonomousDatabasesResponse> transformer = @@ -1220,7 +1218,7 @@ public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatab "DistributedAutonomousDbService", "MoveDistributedAutonomousDatabaseReplicationUnit", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, MoveDistributedAutonomousDatabaseReplicationUnitResponse> @@ -1266,7 +1264,7 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData "DistributedAutonomousDbService", "PatchDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, PatchDistributedAutonomousDatabaseResponse> transformer = @@ -1314,7 +1312,7 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData "DistributedAutonomousDbService", "RecreateFailedDistributedAutonomousDatabaseResource", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, RecreateFailedDistributedAutonomousDatabaseResourceResponse> @@ -1358,7 +1356,7 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData "DistributedAutonomousDbService", "RotateDistributedAutonomousDatabasePasswords", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, RotateDistributedAutonomousDatabasePasswordsResponse> @@ -1375,7 +1373,57 @@ public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousData retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getRotateDistributedAutonomousDatabasePasswordsDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ScaleDistributedAutonomousDatabaseGsmsResponse scaleDistributedAutonomousDatabaseGsms( + ScaleDistributedAutonomousDatabaseGsmsRequest request) { + LOG.trace("Called scaleDistributedAutonomousDatabaseGsms"); + final ScaleDistributedAutonomousDatabaseGsmsRequest interceptedRequest = + ScaleDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleDistributedAutonomousDatabaseGsmsConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedAutonomousDbService", + "ScaleDistributedAutonomousDatabaseGsms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms"); + java.util.function.Function< + javax.ws.rs.core.Response, ScaleDistributedAutonomousDatabaseGsmsResponse> + transformer = + ScaleDistributedAutonomousDatabaseGsmsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getScaleDistributedAutonomousDatabaseGsmsDetails(), + retriedRequest); return transformer.apply(response); }); }); @@ -1400,7 +1448,7 @@ public StartDistributedAutonomousDatabaseResponse startDistributedAutonomousData "DistributedAutonomousDbService", "StartDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, StartDistributedAutonomousDatabaseResponse> transformer = @@ -1441,7 +1489,7 @@ public StopDistributedAutonomousDatabaseResponse stopDistributedAutonomousDataba "DistributedAutonomousDbService", "StopDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, StopDistributedAutonomousDatabaseResponse> transformer = @@ -1482,7 +1530,7 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa "DistributedAutonomousDbService", "UpdateDistributedAutonomousDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDistributedAutonomousDatabaseResponse> transformer = @@ -1508,57 +1556,6 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa }); } - @Override - public UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request) { - LOG.trace("Called uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet"); - final UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - interceptedRequest = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedAutonomousDatabase/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public ValidateDistributedAutonomousDatabaseCaBundleResponse validateDistributedAutonomousDatabaseCaBundle( @@ -1580,7 +1577,7 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseCaBundle", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDistributedAutonomousDatabaseCaBundleResponse> @@ -1624,7 +1621,7 @@ public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDa "DistributedAutonomousDbService", "ValidateDistributedAutonomousDatabaseNetwork", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDistributedAutonomousDatabaseNetworkResponse> 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 9caecafa691..436a7a2ee16 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 @@ -25,7 +25,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 89cd4c10de6..34bbe33c7de 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 @@ -13,7 +13,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 0d919071d0d..47038684a8e 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 @@ -11,7 +11,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbPrivateEndpointService extends AutoCloseable { /** @@ -130,6 +130,20 @@ 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 3971cc0a368..d7a8a8d3718 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 @@ -10,7 +10,7 @@ /** * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable { /** @@ -153,6 +153,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 49d6b8bfb9b..11da70dd18c 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 @@ -23,7 +23,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbPrivateEndpointServiceAsyncClient implements DistributedDbPrivateEndpointServiceAsync { /** @@ -492,7 +492,7 @@ public void close() { "DistributedDbPrivateEndpointService", "ChangeDistributedDatabasePrivateEndpointCompartment", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedDatabasePrivateEndpointCompartmentResponse> @@ -617,7 +617,7 @@ protected void beforeRetryAction() {} "DistributedDbPrivateEndpointService", "DeleteDistributedDatabasePrivateEndpoint", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDistributedDatabasePrivateEndpointResponse> transformer = @@ -672,7 +672,7 @@ protected void beforeRetryAction() {} "DistributedDbPrivateEndpointService", "GetDistributedDatabasePrivateEndpoint", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, GetDistributedDatabasePrivateEndpointResponse> transformer = @@ -726,7 +726,7 @@ protected void beforeRetryAction() {} "DistributedDbPrivateEndpointService", "ListDistributedDatabasePrivateEndpoints", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ListDistributedDatabasePrivateEndpointsResponse> transformer = @@ -762,6 +762,68 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + patchDistributedDatabasePrivateEndpoint( + PatchDistributedDatabasePrivateEndpointRequest request, + final com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabasePrivateEndpointRequest, + PatchDistributedDatabasePrivateEndpointResponse> + handler) { + LOG.trace("Called async patchDistributedDatabasePrivateEndpoint"); + final PatchDistributedDatabasePrivateEndpointRequest interceptedRequest = + PatchDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchDistributedDatabasePrivateEndpointConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbPrivateEndpointService", + "PatchDistributedDatabasePrivateEndpoint", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint"); + final java.util.function.Function< + javax.ws.rs.core.Response, PatchDistributedDatabasePrivateEndpointResponse> + transformer = + PatchDistributedDatabasePrivateEndpointConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabasePrivateEndpointRequest, + PatchDistributedDatabasePrivateEndpointResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + PatchDistributedDatabasePrivateEndpointRequest, + PatchDistributedDatabasePrivateEndpointResponse>, + java.util.concurrent.Future< + PatchDistributedDatabasePrivateEndpointResponse>> + futureSupplier = + client.patchFutureSupplier( + interceptedRequest, + interceptedRequest + .getPatchDistributedDatabasePrivateEndpointDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + PatchDistributedDatabasePrivateEndpointRequest, + PatchDistributedDatabasePrivateEndpointResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future reinstateProxyInstance( ReinstateProxyInstanceRequest request, @@ -779,7 +841,7 @@ public java.util.concurrent.Future reinstateProx "DistributedDbPrivateEndpointService", "ReinstateProxyInstance", ib.getRequestUri().toString(), - "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"); final java.util.function.Function transformer = ReinstateProxyInstanceConverter.fromResponse( @@ -830,7 +892,7 @@ protected void beforeRetryAction() {} "DistributedDbPrivateEndpointService", "UpdateDistributedDatabasePrivateEndpoint", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDistributedDatabasePrivateEndpointResponse> transformer = 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 fc3b524aa4a..b6ad22c018a 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 @@ -11,7 +11,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbPrivateEndpointServiceClient implements DistributedDbPrivateEndpointService { /** @@ -582,7 +582,7 @@ public void close() { "DistributedDbPrivateEndpointService", "ChangeDistributedDatabasePrivateEndpointCompartment", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedDatabasePrivateEndpointCompartmentResponse> @@ -677,7 +677,7 @@ public void close() { "DistributedDbPrivateEndpointService", "DeleteDistributedDatabasePrivateEndpoint", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, DeleteDistributedDatabasePrivateEndpointResponse> transformer = @@ -718,7 +718,7 @@ public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePriva "DistributedDbPrivateEndpointService", "GetDistributedDatabasePrivateEndpoint", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, GetDistributedDatabasePrivateEndpointResponse> transformer = @@ -758,7 +758,7 @@ public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePr "DistributedDbPrivateEndpointService", "ListDistributedDatabasePrivateEndpoints", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ListDistributedDatabasePrivateEndpointsResponse> transformer = @@ -779,6 +779,52 @@ public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePr }); } + @Override + public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateEndpoint( + PatchDistributedDatabasePrivateEndpointRequest request) { + LOG.trace("Called patchDistributedDatabasePrivateEndpoint"); + final PatchDistributedDatabasePrivateEndpointRequest interceptedRequest = + PatchDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + PatchDistributedDatabasePrivateEndpointConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbPrivateEndpointService", + "PatchDistributedDatabasePrivateEndpoint", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint"); + java.util.function.Function< + javax.ws.rs.core.Response, PatchDistributedDatabasePrivateEndpointResponse> + transformer = + PatchDistributedDatabasePrivateEndpointConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.patch( + ib, + retriedRequest + .getPatchDistributedDatabasePrivateEndpointDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ReinstateProxyInstanceResponse reinstateProxyInstance( ReinstateProxyInstanceRequest request) { @@ -798,7 +844,7 @@ public ReinstateProxyInstanceResponse reinstateProxyInstance( "DistributedDbPrivateEndpointService", "ReinstateProxyInstance", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = ReinstateProxyInstanceConverter.fromResponse( @@ -840,7 +886,7 @@ public ReinstateProxyInstanceResponse reinstateProxyInstance( "DistributedDbPrivateEndpointService", "UpdateDistributedDatabasePrivateEndpoint", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, UpdateDistributedDatabasePrivateEndpointResponse> transformer = 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 0368e7cec1b..b2d845ed708 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 @@ -25,7 +25,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 03fb7890dc4..f3a005d64f6 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 @@ -13,7 +13,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 a0e2213334e..92c4cd91a98 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 @@ -11,7 +11,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbService extends AutoCloseable { /** @@ -101,6 +101,21 @@ 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. * @@ -148,9 +163,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 @@ -163,41 +176,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. * @@ -240,6 +218,21 @@ 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. * @@ -272,8 +265,6 @@ 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. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -314,48 +305,46 @@ 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 * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use StartDistributedDatabase API. + * Example: Click here to see how to use 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 * @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. + * Example: Click here to see how to use 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 * @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. + * Example: Click here to see how to use 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 @@ -363,11 +352,10 @@ UpdateDistributedDatabaseResponse updateDistributedDatabase( * 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 UploadDistributedDatabaseSignedCertificateAndGenerateWallet API. + * Example: Click here to see how to use 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 3a4ea87eb8f..6e02a6d005c 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 @@ -10,7 +10,7 @@ /** * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbServiceAsync extends AutoCloseable { /** @@ -115,6 +115,25 @@ 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. * @@ -175,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 @@ -193,49 +210,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. * @@ -292,6 +266,26 @@ 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. * @@ -332,8 +326,6 @@ 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. * * * @param request The request object containing the details to send @@ -387,7 +379,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. @@ -396,14 +389,15 @@ java.util.concurrent.Future patchDistributedDa * 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, + 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. @@ -412,15 +406,14 @@ java.util.concurrent.Future startDistributedDa * 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, + 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. @@ -429,16 +422,14 @@ java.util.concurrent.Future stopDistributedData * 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, + 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 @@ -448,13 +439,11 @@ java.util.concurrent.Future updateDistributed * 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 - 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 58d3b303305..6bd7044a7e6 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 @@ -23,7 +23,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbServiceAsyncClient implements DistributedDbServiceAsync { /** * Service instance for DistributedDbService. @@ -311,7 +311,7 @@ public DistributedDbServiceAsyncClient( LOG.warn( com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( "DistributedDbServiceAsyncClient", - "downloadDistributedDatabaseGsmCertificateSigningRequest,generateDistributedDatabaseWallet")); + "generateDistributedDatabaseWallet")); } } @@ -496,7 +496,7 @@ public void close() { "DistributedDbService", "AddDistributedDatabaseGdsControlNode", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, AddDistributedDatabaseGdsControlNodeResponse> transformer = @@ -556,7 +556,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "ChangeDistributedDatabaseCompartment", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedDatabaseCompartmentResponse> transformer = @@ -615,7 +615,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "ChangeDistributedDbBackupConfig", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedDbBackupConfigResponse> transformer = @@ -655,6 +655,70 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + configureDistributedDatabaseAutoResourceManagement( + ConfigureDistributedDatabaseAutoResourceManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + ConfigureDistributedDatabaseAutoResourceManagementResponse> + handler) { + LOG.trace("Called async configureDistributedDatabaseAutoResourceManagement"); + final ConfigureDistributedDatabaseAutoResourceManagementRequest interceptedRequest = + ConfigureDistributedDatabaseAutoResourceManagementConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConfigureDistributedDatabaseAutoResourceManagementConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseAutoResourceManagement", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement"); + final java.util.function.Function< + javax.ws.rs.core.Response, + ConfigureDistributedDatabaseAutoResourceManagementResponse> + transformer = + ConfigureDistributedDatabaseAutoResourceManagementConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + ConfigureDistributedDatabaseAutoResourceManagementResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + ConfigureDistributedDatabaseAutoResourceManagementResponse>, + java.util.concurrent.Future< + ConfigureDistributedDatabaseAutoResourceManagementResponse>> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest + .getConfigureDistributedDatabaseAutoResourceManagementDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ConfigureDistributedDatabaseAutoResourceManagementRequest, + ConfigureDistributedDatabaseAutoResourceManagementResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future configureDistributedDatabaseGsms( @@ -674,7 +738,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "ConfigureDistributedDatabaseGsms", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedDatabaseGsmsResponse> transformer = @@ -734,7 +798,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "ConfigureDistributedDatabaseSharding", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedDatabaseShardingResponse> transformer = @@ -841,7 +905,7 @@ public java.util.concurrent.Future deleteDist "DistributedDbService", "DeleteDistributedDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, DeleteDistributedDatabaseResponse> transformer = @@ -874,124 +938,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future< - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - downloadDistributedDatabaseGsmCertificateSigningRequest( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - handler) { - LOG.trace("Called async downloadDistributedDatabaseGsmCertificateSigningRequest"); - final DownloadDistributedDatabaseGsmCertificateSigningRequestRequest interceptedRequest = - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "DownloadDistributedDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/DownloadDistributedDatabaseGsmCertificateSigningRequest"); - final java.util.function.Function< - javax.ws.rs.core.Response, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse>, - java.util.concurrent.Future< - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future< - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - generateDistributedDatabaseGsmCertificateSigningRequest( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - handler) { - LOG.trace("Called async generateDistributedDatabaseGsmCertificateSigningRequest"); - final GenerateDistributedDatabaseGsmCertificateSigningRequestRequest interceptedRequest = - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/GenerateDistributedDatabaseGsmCertificateSigningRequest"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse>, - java.util.concurrent.Future< - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future generateDistributedDatabaseWallet( @@ -1011,7 +957,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "GenerateDistributedDatabaseWallet", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, GenerateDistributedDatabaseWalletResponse> transformer = @@ -1067,7 +1013,7 @@ public java.util.concurrent.Future getDistribute "DistributedDbService", "GetDistributedDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function transformer = GetDistributedDatabaseConverter.fromResponse( @@ -1116,7 +1062,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "GetDistributedDatabaseRaftMetric", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, GetDistributedDatabaseRaftMetricResponse> transformer = @@ -1151,6 +1097,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + getDistributedDatabaseRuChangeLog( + GetDistributedDatabaseRuChangeLogRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRuChangeLogRequest, + GetDistributedDatabaseRuChangeLogResponse> + handler) { + LOG.trace("Called async getDistributedDatabaseRuChangeLog"); + final GetDistributedDatabaseRuChangeLogRequest interceptedRequest = + GetDistributedDatabaseRuChangeLogConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDistributedDatabaseRuChangeLogConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbService", + "GetDistributedDatabaseRuChangeLog", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetDistributedDatabaseRuChangeLogResponse> + transformer = + GetDistributedDatabaseRuChangeLogConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRuChangeLogRequest, + GetDistributedDatabaseRuChangeLogResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDistributedDatabaseRuChangeLogRequest, + GetDistributedDatabaseRuChangeLogResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDistributedDatabaseRuChangeLogRequest, + GetDistributedDatabaseRuChangeLogResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listDistributedDatabases( ListDistributedDatabasesRequest request, @@ -1167,7 +1166,7 @@ public java.util.concurrent.Future listDistrib "DistributedDbService", "ListDistributedDatabases", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ListDistributedDatabasesResponse> transformer = @@ -1219,7 +1218,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "MoveDistributedDatabaseReplicationUnit", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, MoveDistributedDatabaseReplicationUnitResponse> transformer = @@ -1277,7 +1276,7 @@ public java.util.concurrent.Future patchDistri "DistributedDbService", "PatchDistributedDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, PatchDistributedDatabaseResponse> transformer = @@ -1334,7 +1333,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "RecreateFailedDistributedDatabaseResource", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, RecreateFailedDistributedDatabaseResourceResponse> @@ -1390,7 +1389,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "RotateDistributedDatabasePasswords", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, RotateDistributedDatabasePasswordsResponse> transformer = @@ -1406,7 +1405,12 @@ protected void beforeRetryAction() {} RotateDistributedDatabasePasswordsRequest, RotateDistributedDatabasePasswordsResponse>, java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getRotateDistributedDatabasePasswordsDetails(), + ib, + transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { @@ -1425,6 +1429,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedDatabaseGsmsRequest, + ScaleDistributedDatabaseGsmsResponse> + handler) { + LOG.trace("Called async scaleDistributedDatabaseGsms"); + final ScaleDistributedDatabaseGsmsRequest interceptedRequest = + ScaleDistributedDatabaseGsmsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbService", + "ScaleDistributedDatabaseGsms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms"); + final java.util.function.Function< + javax.ws.rs.core.Response, ScaleDistributedDatabaseGsmsResponse> + transformer = + ScaleDistributedDatabaseGsmsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedDatabaseGsmsRequest, ScaleDistributedDatabaseGsmsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ScaleDistributedDatabaseGsmsRequest, + ScaleDistributedDatabaseGsmsResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getScaleDistributedDatabaseGsmsDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ScaleDistributedDatabaseGsmsRequest, ScaleDistributedDatabaseGsmsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future startDistributedDatabase( StartDistributedDatabaseRequest request, @@ -1442,7 +1503,7 @@ public java.util.concurrent.Future startDistri "DistributedDbService", "StartDistributedDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, StartDistributedDatabaseResponse> transformer = @@ -1491,7 +1552,7 @@ public java.util.concurrent.Future stopDistribu "DistributedDbService", "StopDistributedDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, StopDistributedDatabaseResponse> transformer = @@ -1539,7 +1600,7 @@ public java.util.concurrent.Future updateDist "DistributedDbService", "UpdateDistributedDatabase", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, UpdateDistributedDatabaseResponse> transformer = @@ -1577,72 +1638,6 @@ protected void beforeRetryAction() {} } } - @Override - public java.util.concurrent.Future< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - uploadDistributedDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - handler) { - LOG.trace("Called async uploadDistributedDatabaseSignedCertificateAndGenerateWallet"); - final UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - interceptedRequest = - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter - .interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "UploadDistributedDatabaseSignedCertificateAndGenerateWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/UploadDistributedDatabaseSignedCertificateAndGenerateWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse>, - java.util.concurrent.Future< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - @Override public java.util.concurrent.Future validateDistributedDatabaseNetwork( @@ -1662,7 +1657,7 @@ protected void beforeRetryAction() {} "DistributedDbService", "ValidateDistributedDatabaseNetwork", ib.getRequestUri().toString(), - "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"); final java.util.function.Function< javax.ws.rs.core.Response, ValidateDistributedDatabaseNetworkResponse> transformer = 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 0c0995d6507..d87aafc3b83 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 @@ -11,7 +11,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbServiceClient implements DistributedDbService { /** * Service instance for DistributedDbService. @@ -387,8 +387,7 @@ protected DistributedDbServiceClient( if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { LOG.warn( com.oracle.bmc.http.ApacheUtils.getStreamWarningMessage( - "DistributedDbServiceClient", - "downloadDistributedDatabaseGsmCertificateSigningRequest,generateDistributedDatabaseWallet")); + "DistributedDbServiceClient", "generateDistributedDatabaseWallet")); } } @@ -585,7 +584,7 @@ public AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsCon "DistributedDbService", "AddDistributedDatabaseGdsControlNode", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, AddDistributedDatabaseGdsControlNodeResponse> transformer = @@ -631,7 +630,7 @@ public ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCom "DistributedDbService", "ChangeDistributedDatabaseCompartment", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedDatabaseCompartmentResponse> transformer = @@ -676,7 +675,7 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( "DistributedDbService", "ChangeDistributedDbBackupConfig", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ChangeDistributedDbBackupConfigResponse> transformer = @@ -702,6 +701,55 @@ public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( }); } + @Override + public ConfigureDistributedDatabaseAutoResourceManagementResponse + configureDistributedDatabaseAutoResourceManagement( + ConfigureDistributedDatabaseAutoResourceManagementRequest request) { + LOG.trace("Called configureDistributedDatabaseAutoResourceManagement"); + final ConfigureDistributedDatabaseAutoResourceManagementRequest interceptedRequest = + ConfigureDistributedDatabaseAutoResourceManagementConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConfigureDistributedDatabaseAutoResourceManagementConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbService", + "ConfigureDistributedDatabaseAutoResourceManagement", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement"); + java.util.function.Function< + javax.ws.rs.core.Response, + ConfigureDistributedDatabaseAutoResourceManagementResponse> + transformer = + ConfigureDistributedDatabaseAutoResourceManagementConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getConfigureDistributedDatabaseAutoResourceManagementDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( ConfigureDistributedDatabaseGsmsRequest request) { @@ -721,7 +769,7 @@ public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms "DistributedDbService", "ConfigureDistributedDatabaseGsms", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedDatabaseGsmsResponse> transformer = @@ -767,7 +815,7 @@ public ConfigureDistributedDatabaseShardingResponse configureDistributedDatabase "DistributedDbService", "ConfigureDistributedDatabaseSharding", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ConfigureDistributedDatabaseShardingResponse> transformer = @@ -852,7 +900,7 @@ public DeleteDistributedDatabaseResponse deleteDistributedDatabase( "DistributedDbService", "DeleteDistributedDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = DeleteDistributedDatabaseConverter.fromResponse( @@ -873,96 +921,6 @@ public DeleteDistributedDatabaseResponse deleteDistributedDatabase( }); } - @Override - public DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - downloadDistributedDatabaseGsmCertificateSigningRequest( - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request) { - LOG.trace("Called downloadDistributedDatabaseGsmCertificateSigningRequest"); - final DownloadDistributedDatabaseGsmCertificateSigningRequestRequest interceptedRequest = - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.interceptRequest( - request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "DownloadDistributedDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/DownloadDistributedDatabaseGsmCertificateSigningRequest"); - java.util.function.Function< - javax.ws.rs.core.Response, - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - generateDistributedDatabaseGsmCertificateSigningRequest( - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request) { - LOG.trace("Called generateDistributedDatabaseGsmCertificateSigningRequest"); - final GenerateDistributedDatabaseGsmCertificateSigningRequestRequest interceptedRequest = - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.interceptRequest( - request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseGsmCertificateSigningRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/GenerateDistributedDatabaseGsmCertificateSigningRequest"); - java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( GenerateDistributedDatabaseWalletRequest request) { @@ -982,7 +940,7 @@ public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWall "DistributedDbService", "GenerateDistributedDatabaseWallet", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, GenerateDistributedDatabaseWalletResponse> transformer = @@ -1026,7 +984,7 @@ public GetDistributedDatabaseResponse getDistributedDatabase( "DistributedDbService", "GetDistributedDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = GetDistributedDatabaseConverter.fromResponse( @@ -1064,7 +1022,7 @@ public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric "DistributedDbService", "GetDistributedDatabaseRaftMetric", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, GetDistributedDatabaseRaftMetricResponse> transformer = @@ -1085,6 +1043,45 @@ public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric }); } + @Override + public GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( + GetDistributedDatabaseRuChangeLogRequest request) { + LOG.trace("Called getDistributedDatabaseRuChangeLog"); + final GetDistributedDatabaseRuChangeLogRequest interceptedRequest = + GetDistributedDatabaseRuChangeLogConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDistributedDatabaseRuChangeLogConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbService", + "GetDistributedDatabaseRuChangeLog", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog"); + java.util.function.Function< + javax.ws.rs.core.Response, GetDistributedDatabaseRuChangeLogResponse> + transformer = + GetDistributedDatabaseRuChangeLogConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListDistributedDatabasesResponse listDistributedDatabases( ListDistributedDatabasesRequest request) { @@ -1103,7 +1100,7 @@ public ListDistributedDatabasesResponse listDistributedDatabases( "DistributedDbService", "ListDistributedDatabases", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = ListDistributedDatabasesConverter.fromResponse( @@ -1143,7 +1140,7 @@ public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseRep "DistributedDbService", "MoveDistributedDatabaseReplicationUnit", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, MoveDistributedDatabaseReplicationUnitResponse> transformer = @@ -1188,7 +1185,7 @@ public PatchDistributedDatabaseResponse patchDistributedDatabase( "DistributedDbService", "PatchDistributedDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = PatchDistributedDatabaseConverter.fromResponse( @@ -1233,7 +1230,7 @@ public PatchDistributedDatabaseResponse patchDistributedDatabase( "DistributedDbService", "RecreateFailedDistributedDatabaseResource", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, RecreateFailedDistributedDatabaseResourceResponse> @@ -1275,7 +1272,7 @@ public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePassw "DistributedDbService", "RotateDistributedDatabasePasswords", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, RotateDistributedDatabasePasswordsResponse> transformer = @@ -1291,7 +1288,55 @@ public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePassw retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + client.post( + ib, + retriedRequest + .getRotateDistributedDatabasePasswordsDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( + ScaleDistributedDatabaseGsmsRequest request) { + LOG.trace("Called scaleDistributedDatabaseGsms"); + final ScaleDistributedDatabaseGsmsRequest interceptedRequest = + ScaleDistributedDatabaseGsmsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScaleDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DistributedDbService", + "ScaleDistributedDatabaseGsms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms"); + java.util.function.Function + transformer = + ScaleDistributedDatabaseGsmsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getScaleDistributedDatabaseGsmsDetails(), + retriedRequest); return transformer.apply(response); }); }); @@ -1316,7 +1361,7 @@ public StartDistributedDatabaseResponse startDistributedDatabase( "DistributedDbService", "StartDistributedDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = StartDistributedDatabaseConverter.fromResponse( @@ -1356,7 +1401,7 @@ public StopDistributedDatabaseResponse stopDistributedDatabase( "DistributedDbService", "StopDistributedDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = StopDistributedDatabaseConverter.fromResponse( @@ -1395,7 +1440,7 @@ public UpdateDistributedDatabaseResponse updateDistributedDatabase( "DistributedDbService", "UpdateDistributedDatabase", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = UpdateDistributedDatabaseConverter.fromResponse( @@ -1420,56 +1465,6 @@ public UpdateDistributedDatabaseResponse updateDistributedDatabase( }); } - @Override - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - uploadDistributedDatabaseSignedCertificateAndGenerateWallet( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest request) { - LOG.trace("Called uploadDistributedDatabaseSignedCertificateAndGenerateWallet"); - final UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - interceptedRequest = - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter - .interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "UploadDistributedDatabaseSignedCertificateAndGenerateWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20250101/DistributedDatabase/UploadDistributedDatabaseSignedCertificateAndGenerateWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - @Override public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( ValidateDistributedDatabaseNetworkRequest request) { @@ -1489,7 +1484,7 @@ public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNet "DistributedDbService", "ValidateDistributedDatabaseNetwork", ib.getRequestUri().toString(), - "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"); java.util.function.Function< javax.ws.rs.core.Response, ValidateDistributedDatabaseNetworkResponse> transformer = 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 f556c05a98a..fce71b973cb 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 @@ -25,7 +25,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 49e5a475532..c032194d555 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 @@ -13,7 +13,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 52de8378f93..83b536d1842 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 @@ -11,7 +11,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbWorkRequestService extends AutoCloseable { /** 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 0afc2e65fae..0e0799ed836 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 @@ -10,7 +10,7 @@ /** * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public interface DistributedDbWorkRequestServiceAsync extends AutoCloseable { /** 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 4d589959f7e..b52a75fa337 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 @@ -23,7 +23,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbWorkRequestServiceAsyncClient implements DistributedDbWorkRequestServiceAsync { /** @@ -487,7 +487,7 @@ public java.util.concurrent.Future getWorkRequest( "DistributedDbWorkRequestService", "GetWorkRequest", ib.getRequestUri().toString(), - "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"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -532,7 +532,7 @@ public java.util.concurrent.Future listWorkReques "DistributedDbWorkRequestService", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "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"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -579,7 +579,7 @@ public java.util.concurrent.Future listWorkRequestL "DistributedDbWorkRequestService", "ListWorkRequestLogs", ib.getRequestUri().toString(), - "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"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -626,7 +626,7 @@ public java.util.concurrent.Future listWorkRequests( "DistributedDbWorkRequestService", "ListWorkRequests", ib.getRequestUri().toString(), - "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"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( 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 dc2999861fc..c41a2b848c3 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 @@ -11,7 +11,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DistributedDbWorkRequestServiceClient implements DistributedDbWorkRequestService { /** * Service instance for DistributedDbWorkRequestService. @@ -576,7 +576,7 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { "DistributedDbWorkRequestService", "GetWorkRequest", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -612,7 +612,7 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( "DistributedDbWorkRequestService", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -649,7 +649,7 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques "DistributedDbWorkRequestService", "ListWorkRequestLogs", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -686,7 +686,7 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request "DistributedDbWorkRequestService", "ListWorkRequests", ib.getRequestUri().toString(), - "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"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( 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 2b552e626dc..3f353e0c287 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 @@ -25,7 +25,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 ecc080413b3..f1c27491431 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 @@ -13,7 +13,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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/SdkClientsMetadata.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/SdkClientsMetadata.java index e739f814c30..12f10b36c7e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/SdkClientsMetadata.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/SdkClientsMetadata.java @@ -6,7 +6,7 @@ import com.oracle.bmc.SdkClients; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @SdkClients({ DistributedAutonomousDbServiceAsyncClient.class, DistributedAutonomousDbServiceClient.class, diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java index 37d9105999a..3b5413c2764 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class AddDistributedAutonomousDatabaseGdsControlNodeConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java index b9dffe116eb..71da846dc76 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class AddDistributedDatabaseGdsControlNodeConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java index fe3676edc24..167f6d6ffe4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDatabaseCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java index facb63e8dfe..cdabe80f355 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDbBackupConfigConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabaseCompartmentConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabaseCompartmentConverter.java index 32b4b6f5907..206fe9309f2 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabaseCompartmentConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabaseCompartmentConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabaseCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java index 30a6d699970..9d7b7022c31 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabasePrivateEndpointCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDbBackupConfigConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDbBackupConfigConverter.java index cd828fa8182..6865a0e5821 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDbBackupConfigConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ChangeDistributedDbBackupConfigConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDbBackupConfigConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -41,7 +41,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java similarity index 90% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java index 2a682b79335..7fdaa7f5ba2 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -20,10 +20,10 @@ public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementConvert org.slf4j.LoggerFactory.getLogger( ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests + public static com.oracle.bmc.distributeddatabase.requests .ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request) { @@ -32,7 +32,7 @@ public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementConvert public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request) { Validate.notNull(request, "request instance is required"); @@ -77,7 +77,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -85,57 +85,57 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -164,7 +164,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java index 582cc422b8f..73d0d20b87b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmWalletConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java index ff87e5d85a8..5091f33ed6c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java index 25487f31bf7..db09094de61 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseShardingConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java similarity index 90% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java index 67ee1484892..4471a40a86b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -20,10 +20,10 @@ public class ConfigureDistributedDatabaseAutoResourceManagementConverter { org.slf4j.LoggerFactory.getLogger( ConfigureDistributedDatabaseAutoResourceManagementConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests + public static com.oracle.bmc.distributeddatabase.requests .ConfigureDistributedDatabaseAutoResourceManagementRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .ConfigureDistributedDatabaseAutoResourceManagementRequest request) { @@ -32,7 +32,7 @@ public class ConfigureDistributedDatabaseAutoResourceManagementConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .ConfigureDistributedDatabaseAutoResourceManagementRequest request) { Validate.notNull(request, "request instance is required"); @@ -76,7 +76,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -84,57 +84,57 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedDatabaseAutoResourceManagementResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.ConfigureDistributedDatabaseAutoResourceManagementResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -163,7 +163,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ConfigureDistributedDatabaseAutoResourceManagementResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseGsmsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseGsmsConverter.java index 317fa421b2e..0aab5221d98 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseGsmsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseGsmsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseGsmsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseShardingConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseShardingConverter.java index 68da675bd3f..dad8fac6b34 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseShardingConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ConfigureDistributedDatabaseShardingConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseShardingConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,7 +39,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedAutonomousDatabaseConverter.java index df72deac098..3490fb6358a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,7 +39,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "createDistributedAutonomousDatabaseDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250101").path("distributedAutonomousDatabases"); + client.getBaseTarget().path("/20260101").path("distributedAutonomousDatabases"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabaseConverter.java index 47b84c15b3e..1c86d8af539 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,7 +36,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "createDistributedDatabaseDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250101").path("distributedDatabases"); + client.getBaseTarget().path("/20260101").path("distributedDatabases"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java index e0c0ab44acc..638bf6e6214 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class CreateDistributedDatabasePrivateEndpointConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedAutonomousDatabaseConverter.java index 73d1db3fd68..ef62587ca14 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -40,7 +40,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabaseConverter.java index 573e61ca07e..9786291e0e8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,20 +36,12 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( request.getDistributedDatabaseId())); - if (request.getMustDeleteInfra() != null) { - target = - target.queryParam( - "mustDeleteInfra", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMustDeleteInfra())); - } - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java index 8a39f0d3c49..4ebfb00d784 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class DeleteDistributedDatabasePrivateEndpointConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index 6c98d048fa2..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java +++ /dev/null @@ -1,187 +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.internal.http; - -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .class); - - public static com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("downloadGsmCertificateSigningRequest"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index b5cb38c5b1e..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.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.internal.http; - -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.class); - - public static com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("downloadGsmCertificateSigningRequest"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.DownloadDistributedDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index 38c4d68a213..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.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.distributeddatabase.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .class); - - public static com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("generateGsmCertificateSigningRequest"); - - if (request.getCaBundleId() != null) { - target = - target.queryParam( - "caBundleId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCaBundleId())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java index c661b26f9aa..2dde144d3cb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GenerateDistributedAutonomousDatabaseWalletConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -44,7 +44,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index 7ea6823ce83..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.class); - - public static com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull(request.getCaBundleId(), "caBundleId is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("generateGsmCertificateSigningRequest"); - - target = - target.queryParam( - "caBundleId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCaBundleId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.GenerateDistributedDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseWalletConverter.java index da0d98c8269..59593246594 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseWalletConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseWalletConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GenerateDistributedDatabaseWalletConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -41,7 +41,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseConverter.java index f9bdd97ff8d..2b1b889aff0 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -40,7 +40,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java index 39a55c7d893..9019e07d00c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseRaftMetricConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java similarity index 89% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java index b12630c4d3a..16971438622 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -20,10 +20,10 @@ public class GetDistributedAutonomousDatabaseRuChangeLogConverter { org.slf4j.LoggerFactory.getLogger( GetDistributedAutonomousDatabaseRuChangeLogConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests + public static com.oracle.bmc.distributeddatabase.requests .GetDistributedAutonomousDatabaseRuChangeLogRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .GetDistributedAutonomousDatabaseRuChangeLogRequest request) { @@ -32,7 +32,7 @@ public class GetDistributedAutonomousDatabaseRuChangeLogConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .GetDistributedAutonomousDatabaseRuChangeLogRequest request) { Validate.notNull(request, "request instance is required"); @@ -73,7 +73,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -81,57 +81,57 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedAutonomousDatabaseRuChangeLogResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.GetDistributedAutonomousDatabaseRuChangeLogResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseRuChangeLog>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseRuChangeLog .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseRuChangeLog .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseRuChangeLog> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -151,7 +151,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedAutonomousDatabaseRuChangeLogResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseConverter.java index 150b5b13934..8b52fe9efc6 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,7 +36,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabasePrivateEndpointConverter.java index 0e588d1922c..6f27d19187a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabasePrivateEndpointConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabasePrivateEndpointConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -40,7 +40,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRaftMetricConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRaftMetricConverter.java index 3ca87eaaddd..5ea6d3c88ec 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRaftMetricConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRaftMetricConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabaseRaftMetricConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,7 +39,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRuChangeLogConverter.java similarity index 88% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRuChangeLogConverter.java index 259eb6f6580..6e8b82e6f0c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetDistributedDatabaseRuChangeLogConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -19,10 +19,10 @@ public class GetDistributedDatabaseRuChangeLogConverter { private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(GetDistributedDatabaseRuChangeLogConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests + public static com.oracle.bmc.distributeddatabase.requests .GetDistributedDatabaseRuChangeLogRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .GetDistributedDatabaseRuChangeLogRequest request) { @@ -31,7 +31,7 @@ public class GetDistributedDatabaseRuChangeLogConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRuChangeLogRequest + com.oracle.bmc.distributeddatabase.requests.GetDistributedDatabaseRuChangeLogRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank( @@ -70,7 +70,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -78,56 +78,56 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseRuChangeLogResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.GetDistributedDatabaseRuChangeLogResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseRuChangeLog>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseRuChangeLog .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseRuChangeLog .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseRuChangeLog> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -146,7 +146,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .GetDistributedDatabaseRuChangeLogResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetWorkRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetWorkRequestConverter.java index 09c28d0bd35..ba34ec605f8 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetWorkRequestConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GetWorkRequestConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetWorkRequestConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedAutonomousDatabasesConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedAutonomousDatabasesConverter.java index 398dd51fa06..109cbb0aae9 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedAutonomousDatabasesConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedAutonomousDatabasesConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedAutonomousDatabasesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -37,7 +37,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250101").path("distributedAutonomousDatabases"); + client.getBaseTarget().path("/20260101").path("distributedAutonomousDatabases"); target = target.queryParam( @@ -45,6 +45,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getCompartmentId())); + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + if (request.getPrivateEndpointId() != null) { target = target.queryParam( @@ -93,6 +101,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortBy().getValue())); } + if (request.getIsAutoResourceManagementEnabled() != null) { + target = + target.queryParam( + "isAutoResourceManagementEnabled", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsAutoResourceManagementEnabled())); + } + if (request.getDisplayName() != null) { target = target.queryParam( @@ -106,7 +122,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "dbDeploymentType", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDbDeploymentType().getValue())); + request.getDbDeploymentType())); } if (request.getMetadata() != null) { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java index cd127aa8507..0f1e89ef5ab 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasePrivateEndpointsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -40,7 +40,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints"); target = @@ -49,6 +49,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getCompartmentId())); + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + if (request.getLifecycleState() != null) { target = target.queryParam( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasesConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasesConverter.java index 24880e09059..b891673051b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasesConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListDistributedDatabasesConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasesConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250101").path("distributedDatabases"); + client.getBaseTarget().path("/20260101").path("distributedDatabases"); target = target.queryParam( @@ -42,6 +42,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getCompartmentId())); + if (request.getCompartmentIdInSubtree() != null) { + target = + target.queryParam( + "compartmentIdInSubtree", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentIdInSubtree())); + } + if (request.getPrivateEndpointId() != null) { target = target.queryParam( @@ -90,6 +98,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getSortBy().getValue())); } + if (request.getIsAutoResourceManagementEnabled() != null) { + target = + target.queryParam( + "isAutoResourceManagementEnabled", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsAutoResourceManagementEnabled())); + } + if (request.getDisplayName() != null) { target = target.queryParam( @@ -103,7 +119,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( target.queryParam( "dbDeploymentType", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDbDeploymentType().getValue())); + request.getDbDeploymentType())); } if (request.getMetadata() != null) { diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestErrorsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestErrorsConverter.java index 853df2bdc31..a4daae8c4af 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestErrorsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestErrorsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestErrorsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -35,7 +35,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestLogsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestLogsConverter.java index 8e2ce68b9e7..8dc90b98b3b 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestLogsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestLogsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestLogsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -35,7 +35,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("workRequests") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestsConverter.java index d92c529423e..1a1924eb5b7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ListWorkRequestsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20250101").path("workRequests"); + client.getBaseTarget().path("/20260101").path("workRequests"); target = target.queryParam( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java index 4ccbd7fbdc9..3ff2d009a0e 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class MoveDistributedAutonomousDatabaseReplicationUnitConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java index c30975d4442..c57e9321dfb 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class MoveDistributedDatabaseReplicationUnitConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -44,7 +44,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedAutonomousDatabaseConverter.java index 93ba7a92035..ac83f391e7a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class PatchDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -43,7 +43,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabaseConverter.java index 4d5e4ab829f..527b3114674 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class PatchDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,7 +39,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java similarity index 90% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java index 46e0ac589cd..fa4ee19e98b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/PatchDistributedDatabasePrivateEndpointConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -20,10 +20,10 @@ public class PatchDistributedDatabasePrivateEndpointConverter { org.slf4j.LoggerFactory.getLogger( PatchDistributedDatabasePrivateEndpointConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests + public static com.oracle.bmc.distributeddatabase.requests .PatchDistributedDatabasePrivateEndpointRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .PatchDistributedDatabasePrivateEndpointRequest request) { @@ -32,7 +32,7 @@ public class PatchDistributedDatabasePrivateEndpointConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .PatchDistributedDatabasePrivateEndpointRequest request) { Validate.notNull(request, "request instance is required"); @@ -75,7 +75,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -83,24 +83,24 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.PatchDistributedDatabasePrivateEndpointResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.PatchDistributedDatabasePrivateEndpointResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -118,11 +118,11 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -150,7 +150,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .PatchDistributedDatabasePrivateEndpointResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java index a476593b8f2..46f554c27a5 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RecreateFailedDistributedAutonomousDatabaseResourceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -43,7 +43,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -57,14 +57,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getResourceName())); - if (request.getShardGroup() != null) { - target = - target.queryParam( - "shardGroup", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getShardGroup())); - } - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java index b83082b15b1..a10d7ce6e17 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RecreateFailedDistributedDatabaseResourceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -56,14 +56,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getResourceName())); - if (request.getShardGroup() != null) { - target = - target.queryParam( - "shardGroup", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getShardGroup())); - } - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ReinstateProxyInstanceConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ReinstateProxyInstanceConverter.java index d94b80fb7db..65c4fa4ca3a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ReinstateProxyInstanceConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ReinstateProxyInstanceConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ReinstateProxyInstanceConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -37,7 +37,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java index f1d3c726ca0..e0fc8570a4f 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RotateDistributedAutonomousDatabasePasswordsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,10 +39,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notBlank( request.getDistributedAutonomousDatabaseId(), "distributedAutonomousDatabaseId must not be blank"); + Validate.notNull( + request.getRotateDistributedAutonomousDatabasePasswordsDetails(), + "rotateDistributedAutonomousDatabasePasswordsDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -54,6 +57,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } @@ -62,10 +69,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("if-match", request.getIfMatch()); } - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedDatabasePasswordsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedDatabasePasswordsConverter.java index 5f2c39648e2..edbcfdb31e7 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedDatabasePasswordsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/RotateDistributedDatabasePasswordsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class RotateDistributedDatabasePasswordsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,10 +36,13 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); Validate.notBlank( request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + Validate.notNull( + request.getRotateDistributedDatabasePasswordsDetails(), + "rotateDistributedDatabasePasswordsDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -51,6 +54,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } @@ -59,10 +66,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("if-match", request.getIfMatch()); } - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java similarity index 90% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java index b779f5d31db..21988d507f3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -20,10 +20,10 @@ public class ScaleDistributedAutonomousDatabaseGsmsConverter { org.slf4j.LoggerFactory.getLogger( ScaleDistributedAutonomousDatabaseGsmsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests + public static com.oracle.bmc.distributeddatabase.requests .ScaleDistributedAutonomousDatabaseGsmsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .ScaleDistributedAutonomousDatabaseGsmsRequest request) { @@ -32,7 +32,7 @@ public class ScaleDistributedAutonomousDatabaseGsmsConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests + com.oracle.bmc.distributeddatabase.requests .ScaleDistributedAutonomousDatabaseGsmsRequest request) { Validate.notNull(request, "request instance is required"); @@ -77,7 +77,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -85,24 +85,24 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ScaleDistributedAutonomousDatabaseGsmsResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.ScaleDistributedAutonomousDatabaseGsmsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -120,11 +120,11 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -152,7 +152,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedAutonomousDatabaseGsmsResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ScaleDistributedDatabaseGsmsConverter.java similarity index 88% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.java rename to bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ScaleDistributedDatabaseGsmsConverter.java index cfb6e507333..89614e3e8f8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ScaleDistributedDatabaseGsmsConverter.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.internal.http; +package com.oracle.bmc.distributeddatabase.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.distributeddatabase.requests.*; +import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @@ -19,10 +19,9 @@ public class ScaleDistributedDatabaseGsmsConverter { private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ScaleDistributedDatabaseGsmsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.ScaleDistributedDatabaseGsmsRequest + public static com.oracle.bmc.distributeddatabase.requests.ScaleDistributedDatabaseGsmsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ScaleDistributedDatabaseGsmsRequest + com.oracle.bmc.distributeddatabase.requests.ScaleDistributedDatabaseGsmsRequest request) { return request; @@ -30,7 +29,7 @@ public class ScaleDistributedDatabaseGsmsConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ScaleDistributedDatabaseGsmsRequest + com.oracle.bmc.distributeddatabase.requests.ScaleDistributedDatabaseGsmsRequest request) { Validate.notNull(request, "request instance is required"); Validate.notNull( @@ -73,7 +72,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); @@ -81,24 +80,24 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses + public com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ScaleDistributedDatabaseGsmsResponse"); + "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.ScaleDistributedDatabaseGsmsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -116,10 +115,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) @@ -147,7 +146,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.distributeddatabase.responses .ScaleDistributedDatabaseGsmsResponse responseWrapper = builder.build(); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedAutonomousDatabaseConverter.java index 8fd263ee892..80231de0c56 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StartDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -40,7 +40,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedDatabaseConverter.java index 34f16192a22..403aa75fa96 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StartDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StartDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,7 +36,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedAutonomousDatabaseConverter.java index b25d4d10dc5..2ab0515de2c 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StopDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -40,7 +40,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedDatabaseConverter.java index cf9e494255f..d2961f1497a 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/StopDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StopDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -36,7 +36,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedAutonomousDatabaseConverter.java index bded63e4807..2859829006f 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedAutonomousDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedAutonomousDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedAutonomousDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -43,7 +43,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabaseConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabaseConverter.java index 317c3214741..39297918ae1 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabaseConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabaseConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedDatabaseConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,7 +39,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java index d091314c1dd..d1ccf4943ea 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class UpdateDistributedDatabasePrivateEndpointConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -45,7 +45,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabasePrivateEndpoints") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.java deleted file mode 100644 index 5135d9850e1..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.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.distributeddatabase.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .class); - - public static com.oracle.bmc.distributeddatabase.requests - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("uploadSignedCertificateAndGenerateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java deleted file mode 100644 index b95eef6408b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java +++ /dev/null @@ -1,164 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.class); - - public static com.oracle.bmc.distributeddatabase.requests - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("uploadSignedCertificateAndGenerateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java index cbc9b126aed..c7447b84322 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedAutonomousDatabaseCaBundleConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java index 60e437067c1..ec15f9b9072 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedAutonomousDatabaseNetworkConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -42,7 +42,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedAutonomousDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -58,22 +58,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getIsSurrogate())); } - if (request.getResourceName() != null) { - target = - target.queryParam( - "resourceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceName())); - } - - if (request.getShardGroup() != null) { - target = - target.queryParam( - "shardGroup", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getShardGroup())); - } - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedDatabaseNetworkConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedDatabaseNetworkConverter.java index b157f2bfa33..a8e3d299cc4 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedDatabaseNetworkConverter.java +++ b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/ValidateDistributedDatabaseNetworkConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.distributeddatabase.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedDatabaseNetworkConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -39,7 +39,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20250101") + .path("/20260101") .path("distributedDatabases") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -55,22 +55,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getIsSurrogate())); } - if (request.getResourceName() != null) { - target = - target.queryParam( - "resourceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceName())); - } - - if (request.getShardGroup() != null) { - target = - target.queryParam( - "shardGroup", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getShardGroup())); - } - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); 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 be02b7f71d1..4c165f019b0 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 @@ -7,7 +7,7 @@ /** * Possible types of actions. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum ActionType { 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 b1331f0c1bc..38296b7b243 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AddDistributedAutonomousDatabaseGdsControlNodeDetails.Builder.class ) 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 a007a0c10f0..081b3b96b45 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AddDistributedDatabaseGdsControlNodeDetails.Builder.class ) 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 7491bd7e0e3..52a1de41fd8 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 134b04c6577..7a00a2a63d3 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 d106b37025e..a4be732de95 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 79e989f2423..14f2b40fab2 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 140c14c3c4c..78c9255a297 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 1b59b35b25c..00f2326d783 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 bcbaff08dbc..66a9592bbdf 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 d3ba243ba69..b0e1cea26cd 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 d6a6b5a717d..ba13f8d8929 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 b5f16f7a5b5..86c55c92874 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 efd96c8bfa9..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithDedicatedInfra.java +++ /dev/null @@ -1,670 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CatalogPeerWithDedicatedInfra - extends com.oracle.bmc.http.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 { - 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 af7084972b3..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXs.java +++ /dev/null @@ -1,553 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CatalogPeerWithExadbXs - extends com.oracle.bmc.http.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 { - 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 1ae7165db63..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXsNewVaultAndCluster.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CatalogPeerWithExadbXsNewVaultAndCluster - extends com.oracle.bmc.http.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 { - 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 8387ac5f1c1..1ee03f43b40 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedAutonomousDatabaseCompartmentDetails.Builder.class ) 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 29ff1afecfd..01fa1164089 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedAutonomousDbBackupConfigDetails.Builder.class ) 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 abecc34e409..b86a235a8ca 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedDatabaseCompartmentDetails.Builder.class ) 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 b2d844c8259..37caa9f84b2 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedDatabasePrivateEndpointCompartmentDetails.Builder.class ) 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 6612aa54c8b..88be28aaba9 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeDistributedDbBackupConfigDetails.Builder.class ) 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 861671f71f8..8fe06feb67d 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 294d11aae29..48a13c73408 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 354633fda5b..8e650a531ad 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 39acdc9efa7..4e0b8b5e0c1 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 4a4add55ea6..73c5634da8e 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 database. 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 7fb7b9dc36b..4d39d5953e1 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConfigureDistributedAutonomousDatabaseGsmWalletDetails.Builder.class ) 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 846a01c11e2..7166f081073 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConfigureDistributedAutonomousDatabaseGsmsDetails.Builder.class ) 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 dadcde7f659..5c1ddf8564d 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 19bcb3401fc..bbb24243bf6 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConfigureDistributedDatabaseGsmsDetails.Builder.class ) 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 b2122904a3b..c2707e5eb6b 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 0c31a23051d..ae8db5e070e 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 a972535a7b0..9f04ee3c881 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 ddac3d62bb0..0b29cad8063 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 autonomous database. 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 59363c7dd20..08424fc93ee 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 autonomous database. 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 e91be131b55..621a911268c 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 database. 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 2825e419fe6..80bd3aeed01 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 5248a77fcca..8ae6fa1b502 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 174466a65d7..74b570c37a0 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 fa3c5938c09..d01f5c5afb3 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 a179b4f938e..afe84d5daae 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 f56d2af9b73..7627c181793 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 fb2d289ad95..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java +++ /dev/null @@ -1,343 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateCatalogPeerWithDedicatedInfraDetails - extends com.oracle.bmc.http.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 4a97915fb68..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateCatalogPeerWithExadbXsDetails - extends com.oracle.bmc.http.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 d255688d857..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails - extends com.oracle.bmc.http.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 c8dbc7d5faa..d371e73ed99 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 64203f78ed7..f82de924993 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 ae521160a5f..dd87f4062c3 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 4cd21bda64e..bf347d9013e 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 77b11d86d51..c4210b2f62b 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,7 @@ 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.Builder.class ) @@ -25,25 +25,64 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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. **/ @@ -77,13 +116,17 @@ public Builder dataStorageSizeInGbs(Double 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 **/ @@ -109,51 +152,17 @@ public Builder cloudAutonomousVmClusterId(String 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. + * 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 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 [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. + * 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 **/ @@ -163,13 +172,13 @@ 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 **/ @@ -179,14 +188,14 @@ 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 @@ -215,17 +224,70 @@ public Builder okvKeyStoreId(String okvKeyStoreId) { /** * 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 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; } @@ -236,17 +298,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); } @@ -259,6 +324,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()); } @@ -271,12 +342,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()); } @@ -289,8 +354,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; } @@ -310,46 +385,128 @@ 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( + char[] adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, + 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; + 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; + + /** + * 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; + } /** - * Admin password for catalog database. + * The admin password for the catalog associated with the distributed autonomous database. * @return the value **/ - public String getAdminPassword() { + @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. **/ @@ -379,13 +536,17 @@ public Double getDataStorageSizeInGbs() { } /** - * 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 **/ public Boolean getIsAutoScalingEnabled() { @@ -407,45 +568,17 @@ public String getCloudAutonomousVmClusterId() { } /** - * 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. + * 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 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 [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. + * 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() { @@ -453,13 +586,13 @@ 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 **/ public String getKmsKeyId() { @@ -467,14 +600,14 @@ 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 **/ @@ -499,15 +632,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 @@ -524,20 +703,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(); } @@ -554,19 +738,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); } @@ -577,6 +768,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) @@ -593,12 +794,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 = @@ -609,7 +804,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 900406f91c0..9dffae51685 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedAutonomousDatabaseDetails.Builder.class ) @@ -28,22 +28,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" }) @@ -53,22 +55,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(); @@ -77,22 +82,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; } @@ -184,35 +191,35 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private ShardingMethod shardingMethod; + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; /** - * Sharding Methods for the Globally distributed autonomous database. - * @param shardingMethod the value to set + * 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 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; } /** @@ -247,30 +254,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 databases. Same port number @@ -362,107 +345,124 @@ public Builder onsPortRemote(Integer 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. - * + * Count of chunks associated with system raft clusters or system data guard databases. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private ReplicationMethod replicationMethod; + @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. - * - * @param replicationMethod the value to set + * Count of chunks associated with system raft clusters or system data guard databases. + * @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. - * + * Number of replication units associated with system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + @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. - * - * @param replicationFactor the value to set + * Number of replication units associated with system raft clusters. + * @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. - * + * Collection of composite raft shards. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + @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. - * - * @param replicationUnit the value to set + * Collection of composite raft shards. + * @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; } /** - * The distributed autonomous database deployment type. - * + * Collection of composite data guard shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List + compositeDataGuardShardSpaces; /** - * The distributed autonomous database deployment type. - * - * @param dbDeploymentType the value to set + * 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 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. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards for the Globally distributed autonomous database. - * @param shardDetails the value to set + * Collection of user defined shard spaces. + * @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. @@ -470,7 +470,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; @@ -484,6 +484,22 @@ 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"}} @@ -537,22 +553,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__) { @@ -578,11 +596,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()); @@ -590,9 +608,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()); } @@ -605,20 +620,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()); @@ -626,6 +647,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()); } @@ -722,73 +746,38 @@ public java.util.List getPrivateEndpointIds() { } /** - * 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. **/ - public enum ShardingMethod { - 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; + @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 { + public enum DbWorkloadType { 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; } @@ -798,25 +787,25 @@ 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; } /** @@ -847,28 +836,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. Same port number @@ -952,176 +919,111 @@ public Integer getOnsPortRemote() { } /** - * 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. **/ - public enum ReplicationMethod { - Raft("RAFT"), - Dg("DG"), - ; + @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. - * - **/ - @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. - * + * Count of chunks associated with system raft clusters or system data guard databases. * @return the value **/ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public Integer getSystemChunkCount() { + return systemChunkCount; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + @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 **/ - public Integer getReplicationFactor() { - return replicationFactor; + public Integer getSystemRaftReplicationUnitCount() { + return 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. - * + * Collection of composite raft shards. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final 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. * @return the value **/ - public Integer getReplicationUnit() { - return replicationUnit; + public java.util.List + getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; } /** - * The distributed autonomous database deployment type. - * + * Collection of composite data guard shard spaces. **/ - public enum DbDeploymentType { - 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.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); - } - throw new IllegalArgumentException("Invalid DbDeploymentType: " + key); - } - }; /** - * The distributed autonomous database deployment type. - * + * Collection of system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; + @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. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + @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; } @@ -1132,6 +1034,20 @@ 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"}} @@ -1187,22 +1103,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(")"); @@ -1225,22 +1147,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); @@ -1265,13 +1193,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) @@ -1282,23 +1213,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 e9cc9242c19..1920764b8c2 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 57434a4af93..2fd754bea5d 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,7 @@ 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.Builder.class ) @@ -25,25 +25,64 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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. * @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. **/ @@ -77,35 +116,39 @@ 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,44 +173,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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. **/ @@ -185,13 +190,13 @@ 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 **/ @@ -201,14 +206,14 @@ 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 @@ -237,17 +242,68 @@ public Builder okvKeyStoreId(String okvKeyStoreId) { /** * 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 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 okvEndPointGroup(String okvEndPointGroup) { - this.okvEndPointGroup = okvEndPointGroup; - this.__explicitlySet__.add("okvEndPointGroup"); + public Builder standbyMaintenanceBufferInDays(Integer standbyMaintenanceBufferInDays) { + this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; + this.__explicitlySet__.add("standbyMaintenanceBufferInDays"); return this; } @@ -258,18 +314,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); } @@ -282,14 +341,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()); @@ -297,12 +362,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()); } @@ -315,8 +374,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; } @@ -336,48 +405,132 @@ public Builder toBuilder() { @Deprecated public CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails( String adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, + 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.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( + char[] 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; + 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 **/ - public String getAdminPassword() { + @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. **/ @@ -407,33 +560,37 @@ 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 **/ public Boolean getIsAutoScalingEnabled() { @@ -454,38 +611,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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. **/ @@ -501,13 +626,13 @@ 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 **/ public String getKmsKeyId() { @@ -515,14 +640,14 @@ 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 **/ @@ -547,15 +672,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 @@ -572,21 +741,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(); } @@ -603,20 +777,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); } @@ -627,13 +808,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 @@ -644,12 +837,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 = @@ -660,7 +847,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 df11f12f4b4..25df4aa4151 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. @@ -47,9 +47,94 @@ public class CreateDistributedDatabaseCatalogDatabaseDetails extends com.oracle.bmc.http.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 @@ -66,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(); } @@ -81,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 43d4c1cf395..bb5ff1574f0 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. @@ -28,6 +28,40 @@ public final class CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -67,6 +101,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -160,8 +226,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, @@ -175,12 +246,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()); } @@ -213,16 +300,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; @@ -233,16 +327,23 @@ public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String dbHomeId, char[] 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; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -290,6 +391,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -382,6 +511,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)); @@ -404,6 +536,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) @@ -420,6 +556,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 2c4b3482120..264f31ae2b9 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. @@ -28,6 +28,40 @@ public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -67,6 +101,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -162,8 +228,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, @@ -177,12 +248,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()); } @@ -215,16 +302,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; @@ -235,16 +329,23 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, char[] 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; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -292,6 +393,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -386,6 +515,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)); @@ -408,6 +540,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) @@ -424,6 +560,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 421de8d7521..397e7b7cb12 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. @@ -28,6 +28,40 @@ public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -67,6 +101,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -160,8 +226,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, @@ -175,12 +246,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()); } @@ -213,16 +300,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; @@ -233,16 +327,23 @@ public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, char[] 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; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -290,6 +391,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -382,6 +511,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)); @@ -404,6 +536,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) @@ -420,6 +556,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 3cd68900e5b..c99db0ee927 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 @@ -14,30 +14,108 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.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 +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateDistributedDatabaseCatalogDetails.Builder.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" - ) -}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedDatabaseCatalogDetails +public final class CreateDistributedDatabaseCatalogDetails extends com.oracle.bmc.http.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 +132,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 +148,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 { - 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 46c74806450..4c2536dc1f0 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 8c39e8abf27..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java +++ /dev/null @@ -1,443 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 e5d0a3bc3b2..a92407c6651 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,40 @@ public final class CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails extends CreateDistributedDatabaseCatalogDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -51,6 +85,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -185,7 +251,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, @@ -202,9 +273,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()); } @@ -246,7 +333,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, @@ -255,8 +347,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; @@ -270,7 +364,12 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, char[] adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, @@ -279,8 +378,10 @@ public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( VmClusterDetails vmClusterDetails, DistributedDbProtectionMode protectionMode, 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; @@ -317,6 +418,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -443,6 +572,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)); @@ -468,6 +600,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) @@ -487,6 +623,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 537596fdf36..af71331acde 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,7 @@ 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.Builder.class ) @@ -25,9 +25,43 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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 char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -52,50 +86,49 @@ public Builder adminPassword(String adminPassword) { } /** - * 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. - * @param peerDetails the value to set + * 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 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. - * - * @param shardSpace the value to set + * 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 shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); + 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * 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. + * 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 **/ @@ -105,13 +138,15 @@ 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 **/ @@ -121,14 +156,14 @@ 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 @@ -139,13 +174,13 @@ public Builder kmsKeyVersionId(String kmsKeyVersionId) { return this; } /** - * 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 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. * @param availabilityDomain the value to set * @return this builder **/ @@ -172,6 +207,38 @@ 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(); @@ -179,15 +246,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); } @@ -197,14 +269,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()); @@ -224,6 +306,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; } } @@ -241,49 +329,63 @@ 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( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, char[] 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; - 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; } /** @@ -313,45 +415,45 @@ 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; } /** - * 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. + * 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. + * 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() { @@ -359,13 +461,15 @@ 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 **/ public String getKmsKeyId() { @@ -373,14 +477,14 @@ 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 **/ @@ -389,13 +493,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 **/ public String getAvailabilityDomain() { @@ -416,6 +520,34 @@ 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); @@ -431,14 +563,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(); } @@ -455,14 +590,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); } @@ -473,8 +612,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 = @@ -493,6 +640,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 e9e1f64aca0..cd4f559dcc4 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabaseDetails.Builder.class ) @@ -28,23 +28,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" }) @@ -54,23 +56,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(); @@ -79,23 +83,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; } @@ -171,13 +177,13 @@ public Builder prefix(String 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. + * 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 endpoint associated with Globally distributed autonomous database. + * 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 **/ @@ -187,19 +193,19 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private ShardingMethod shardingMethod; + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; /** - * Sharding Methods for the Globally distributed database. - * @param shardingMethod the value to set + * 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 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; } /** @@ -234,30 +240,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 number should @@ -283,7 +265,7 @@ 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, + * 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. * **/ @@ -293,7 +275,7 @@ 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, + * 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 @@ -349,20 +331,18 @@ 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 @@ -373,110 +353,125 @@ public Builder scanListenerPort(Integer 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. - * + * Count of chunks associated with system raft clusters or system data guard databases. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private ReplicationMethod replicationMethod; + @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. - * - * @param replicationMethod the value to set + * Count of chunks associated with system raft clusters or system data guard databases. + * @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. - * + * Number of replication units associated with system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + @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. - * - * @param replicationFactor the value to set + * Number of replication units associated with system raft clusters. + * @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 database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. - * + * Collection of composite raft shards. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + @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. - * - * @param replicationUnit the value to set + * Collection of composite raft shards. + * @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; } /** - * The distributed database deployment type. - * + * Collection of composite data guard shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List + compositeDataGuardShardSpaces; /** - * The distributed database deployment type. - * - * @param dbDeploymentType the value to set + * Collection of composite data guard shard spaces. + * @param compositeDataGuardShardSpaces the value to set * @return this builder **/ - public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); + 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 shards for the Globally distributed database. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards for the Globally distributed database. - * @param shardDetails the value to set + * Collection of user defined shard spaces. + * @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 **/ @@ -511,6 +506,22 @@ 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 +575,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 +619,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 +628,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 +643,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 +673,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,13 +758,13 @@ 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. + * 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 endpoint associated with Globally distributed autonomous database. + * 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() { @@ -753,52 +772,17 @@ public java.util.List getPrivateEndpointIds() { } /** - * Sharding Methods for the Globally distributed database. - **/ - public enum ShardingMethod { - 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. + * 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("shardingMethod") - private final ShardingMethod shardingMethod; + @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; } /** @@ -829,28 +813,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 @@ -874,7 +836,7 @@ 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, + * 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. * **/ @@ -884,7 +846,7 @@ 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, + * 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 @@ -934,20 +896,18 @@ 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 **/ @@ -956,173 +916,106 @@ public Integer getScanListenerPort() { } /** - * 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 { - 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; - } - - @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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") + private final 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. * @return the value **/ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public Integer getSystemChunkCount() { + return systemChunkCount; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + @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 **/ - public Integer getReplicationFactor() { - return replicationFactor; + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final 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. * @return the value **/ - public Integer getReplicationUnit() { - return replicationUnit; + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; } /** - * The distributed database deployment type. - * + * Collection of composite data guard shard spaces. **/ - public enum DbDeploymentType { - ExadbXs("EXADB_XS"), - ; - - private final String value; - private static java.util.Map map; + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private final java.util.List + compositeDataGuardShardSpaces; - 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; - } + /** + * 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); - } - throw new IllegalArgumentException("Invalid DbDeploymentType: " + key); - } - }; /** - * The distributed database deployment type. - * + * Collection of system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; + @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. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + @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 **/ public java.util.List getCatalogDetails() { @@ -1150,6 +1043,20 @@ 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"}} @@ -1205,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(")"); @@ -1243,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); @@ -1284,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) @@ -1303,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.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); + + (this.systemRaftReplicationUnitCount == null + ? 43 + : this.systemRaftReplicationUnitCount.hashCode()); + result = + (result * PRIME) + + (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.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()); @@ -1323,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 6680ce3a6c2..44a9191d17c 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabasePrivateEndpointDetails.Builder.class ) @@ -27,7 +27,7 @@ public final class CreateDistributedDatabasePrivateEndpointDetails "subnetId", "displayName", "description", - "nsgIds", + "vcnNsgIds", "freeformTags", "definedTags" }) @@ -36,7 +36,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(); @@ -44,7 +44,7 @@ public CreateDistributedDatabasePrivateEndpointDetails( this.subnetId = subnetId; this.displayName = displayName; this.description = description; - this.nsgIds = nsgIds; + this.vcnNsgIds = vcnNsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -116,21 +116,19 @@ public Builder description(String description) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; /** - * The OCIDs of the network security groups that the private endpoint belongs to. - * - * @param nsgIds the value to set + * The list of network security group (NSG) details to be associated with the private endpoint. + * @param vcnNsgIds the value to set * @return this builder **/ - public Builder 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; } /** @@ -185,7 +183,7 @@ public CreateDistributedDatabasePrivateEndpointDetails build() { this.subnetId, this.displayName, this.description, - this.nsgIds, + this.vcnNsgIds, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -208,8 +206,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()); @@ -289,19 +287,17 @@ public String getDescription() { } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + @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; } /** @@ -358,7 +354,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(")"); @@ -380,7 +376,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); @@ -396,7 +392,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..283b6a1c23f --- /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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class CreateDistributedDatabaseShardDatabaseDetails + extends com.oracle.bmc.http.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 { + 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 3f4f0f8c8d7..c4b5090ed8a 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,40 @@ public final class CreateDistributedDatabaseShardDatabaseWithDbHomeDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -67,6 +101,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -162,8 +228,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, @@ -177,12 +248,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()); } @@ -215,16 +302,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; @@ -235,16 +329,23 @@ public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String dbHomeId, char[] 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; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -292,6 +393,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -386,6 +515,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)); @@ -408,6 +540,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) @@ -424,6 +560,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 9a4aa7822d5..a0d0ed90ea0 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. @@ -28,6 +28,40 @@ public final class CreateDistributedDatabaseShardDatabaseWithExadbXdDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -67,6 +101,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -162,8 +228,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, @@ -177,12 +248,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()); } @@ -215,16 +302,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; @@ -235,16 +329,23 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, char[] 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; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -292,6 +393,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -386,6 +515,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)); @@ -408,6 +540,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) @@ -424,6 +560,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 365f75af11c..ed2e63275d7 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. @@ -28,6 +28,40 @@ public final class CreateDistributedDatabaseShardDatabaseWithExadbXsDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -67,6 +101,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -162,8 +228,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, @@ -177,12 +248,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()); } @@ -215,16 +302,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; @@ -235,16 +329,23 @@ public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, String vmClusterId, char[] 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; + this.adminPasswordSecretId = adminPasswordSecretId; + this.adminPasswordSecretVersionNumber = adminPasswordSecretVersionNumber; this.vaultId = vaultId; this.kmsKeyId = kmsKeyId; this.kmsKeyVersionId = kmsKeyVersionId; @@ -292,6 +393,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -386,6 +515,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)); @@ -408,6 +540,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) @@ -424,6 +560,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 d5ad724845d..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java +++ /dev/null @@ -1,442 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 785d1247b93..e5699c42e39 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,40 @@ public final class CreateDistributedDatabaseShardWithExadbXsNewClusterDetails extends CreateDistributedDatabaseShardDatabaseDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("tdeWalletPassword") + private char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -51,6 +85,38 @@ public Builder adminPassword(String 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -185,7 +251,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, @@ -202,9 +273,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()); } @@ -246,7 +333,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, @@ -255,8 +347,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; @@ -270,7 +364,12 @@ public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( @com.fasterxml.jackson.annotation.JsonCreator @Deprecated public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, char[] adminPassword, + String adminPasswordSecretId, + Integer adminPasswordSecretVersionNumber, String vaultId, String kmsKeyId, String kmsKeyVersionId, @@ -279,8 +378,10 @@ public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( VmClusterDetails vmClusterDetails, DistributedDbProtectionMode protectionMode, 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; @@ -317,6 +418,34 @@ 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. @@ -443,6 +572,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)); @@ -468,6 +600,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) @@ -487,6 +623,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 16d740b1dd7..a88185e9ddd 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,7 @@ 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.Builder.class ) @@ -25,9 +25,43 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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 char[] tdeWalletPassword; + + public Builder tdeWalletPassword(char[] tdeWalletPassword) { + this.tdeWalletPassword = tdeWalletPassword; + this.__explicitlySet__.add("tdeWalletPassword"); + return this; + } + + public Builder tdeWalletPassword(String tdeWalletPassword) { + this.tdeWalletPassword = + tdeWalletPassword != null ? tdeWalletPassword.toCharArray() : null; + 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. **/ @@ -52,50 +86,49 @@ public Builder adminPassword(String adminPassword) { } /** - * 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. - * @param peerDetails the value to set + * 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 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. - * - * @param shardSpace the value to set + * 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 shardSpace(String shardSpace) { - this.shardSpace = shardSpace; - this.__explicitlySet__.add("shardSpace"); + 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. + * 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. + * 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 **/ @@ -105,13 +138,15 @@ 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 **/ @@ -121,14 +156,14 @@ 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 @@ -172,6 +207,38 @@ 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(); @@ -179,15 +246,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); } @@ -197,14 +269,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()); @@ -224,6 +306,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; } } @@ -241,49 +329,63 @@ 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( + char[] tdeWalletPassword, + String tdeWalletPasswordSecretId, + Integer tdeWalletPasswordSecretVersionNumber, char[] 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; - 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; } /** @@ -313,45 +415,45 @@ public char[] getAdminPassword__AsCharArray() { } /** - * 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 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 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; } /** - * 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. + * 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. + * 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() { @@ -359,13 +461,15 @@ 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 **/ public String getKmsKeyId() { @@ -373,14 +477,14 @@ 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 **/ @@ -416,6 +520,34 @@ 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); @@ -431,14 +563,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(); } @@ -455,14 +590,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); } @@ -473,8 +612,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 = @@ -493,6 +640,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 2342df5fe73..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithDedicatedInfraDetails.java +++ /dev/null @@ -1,343 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateShardPeerWithDedicatedInfraDetails - extends com.oracle.bmc.http.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 eeb4fd2d554..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateShardPeerWithExadbXsDetails - extends com.oracle.bmc.http.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 324d06ab07b..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateShardPeerWithExadbXsNewVaultAndClusterDetails - extends com.oracle.bmc.http.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 bdde8b4b100..75f7c9366f3 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 ce4ba0a5d63..aed440184ef 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 0c874ea665d..0437f7f76db 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 d2b0c1da17c..686a58cfc20 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 0f7764bbeec..634763080c9 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 3aed7ff8e22..09713a41caf 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DbStorageVaultDetails.Builder.class ) @@ -24,18 +24,47 @@ public final class DbStorageVaultDetails extends com.oracle.bmc.http.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. **/ @@ -68,6 +97,54 @@ 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(); @@ -75,7 +152,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); } @@ -84,12 +166,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; } } @@ -105,6 +199,20 @@ 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. **/ @@ -133,6 +241,48 @@ 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); @@ -147,10 +297,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(); } @@ -165,10 +319,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); } @@ -176,6 +334,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 @@ -186,6 +347,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 8d2b15ea43d..729b7ecab48 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabase.Builder.class ) @@ -30,28 +30,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", @@ -65,28 +72,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, @@ -99,28 +113,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; @@ -178,13 +199,13 @@ public Builder displayName(String displayName) { return this; } /** - * The time the Globally distributed autonomous database was created. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed autonomous database was created. An RFC3339 formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -194,13 +215,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted datetime string. * @param timeUpdated the value to set * @return this builder **/ @@ -241,6 +262,64 @@ 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. **/ @@ -304,35 +383,35 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private ShardingMethod shardingMethod; + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; /** - * Sharding Methods for the Globally distributed autonomous database. - * @param shardingMethod the value to set + * 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 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; } /** @@ -367,26 +446,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. **/ @@ -452,115 +511,133 @@ public Builder onsPortRemote(Integer 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. - * + * Count of chunks associated with system raft clusters or system data guard databases. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private ReplicationMethod replicationMethod; + @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. - * - * @param replicationMethod the value to set + * Count of chunks associated with system raft clusters or system data guard databases. + * @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. - * + * Number of replication units associated with system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + @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. - * - * @param replicationFactor the value to set + * Number of replication units associated with system raft clusters. + * @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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImage") + private DistributedAutonomousDatabaseGsmImage latestGsmImage; + + public Builder latestGsmImage(DistributedAutonomousDatabaseGsmImage latestGsmImage) { + this.latestGsmImage = latestGsmImage; + this.__explicitlySet__.add("latestGsmImage"); 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. - * + * Collection of composite raft shards. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + @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. - * - * @param replicationUnit the value to set + * Collection of composite raft shards. + * @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. - * + * Collection of system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") + private java.util.List systemRaftClusters; /** - * The distributed autonomous database deployment type. - * - * @param dbDeploymentType the value to set + * Collection of system raft clusters. + * @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. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards associated with the Globally distributed autonomous database. - * @param shardDetails the value to set + * Collection of user defined shard spaces. + * @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 **/ @@ -571,13 +648,13 @@ public Builder 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 **/ @@ -586,6 +663,23 @@ 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; @@ -596,6 +690,32 @@ 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; @@ -679,28 +799,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, @@ -734,6 +861,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()); } @@ -746,11 +882,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()); @@ -758,9 +894,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()); } @@ -773,23 +906,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("shardDetails")) { - this.shardDetails(model.getShardDetails()); + 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()); @@ -797,9 +936,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()); } @@ -870,13 +1018,13 @@ public String getDisplayName() { } /** - * The time the Globally distributed autonomous database was created. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed autonomous database was created. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { @@ -884,13 +1032,13 @@ public java.util.Date getTimeCreated() { } /** - * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed autonomous database was last updated. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeUpdated() { @@ -980,64 +1128,12 @@ public LifecycleState getLifecycleState() { } /** - * 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 { 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 @@ -1081,13 +1177,13 @@ public static ShardingMethod create(String key) { } }; /** - * 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 **/ public ShardingMethod getShardingMethod() { @@ -1095,11 +1191,15 @@ public ShardingMethod getShardingMethod() { } /** - * Possible workload types. Currently only OLTP workload type is supported. + * 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 DbWorkload { - Oltp("OLTP"), - Dw("DW"), + public enum ReplicationMethod { + Raft("RAFT"), + Dg("DG"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -1108,21 +1208,21 @@ public enum DbWorkload { 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; } @@ -1132,140 +1232,175 @@ 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. + * 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("dbWorkload") - private final DbWorkload dbWorkload; + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; /** - * Possible workload types. Currently only OLTP workload type is supported. + * 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 DbWorkload getDbWorkload() { - return dbWorkload; + public ReplicationMethod getReplicationMethod() { + return replicationMethod; } /** - * The character set for the database. + * The distributed autonomous database deployment type. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private final String characterSet; + public enum DbDeploymentType { + AdbD("ADB_D"), - /** - * The character set for the database. - * @return the value - **/ - public String getCharacterSet() { - return characterSet; - } + /** + * 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); - /** - * The national character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DbDeploymentType.class); - /** - * The national character set for the database. - * @return the value - **/ - public String getNcharacterSet() { - return ncharacterSet; - } + 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 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 autonomous database deployment type. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunks") - private final Integer chunks; + @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 autonomous database deployment type. * * @return the value **/ - public Integer getChunks() { - return chunks; + public DbDeploymentType getDbDeploymentType() { + return dbDeploymentType; } /** - * The listener port number for the Globally distributed autonomous database. + * The lifecycleDetails for the Globally distributed autonomous database. **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private final Integer listenerPort; + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; /** - * The listener port number for the Globally distributed autonomous database. + * The lifecycleDetails for the Globally distributed autonomous database. * @return the value **/ - public Integer getListenerPort() { - return listenerPort; + public String getLifecycleDetails() { + return lifecycleDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") + private final DistributedAutonomousDatabaseConnectionString connectionStrings; + + public DistributedAutonomousDatabaseConnectionString getConnectionStrings() { + return connectionStrings; } /** - * 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. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private final Integer listenerPortTls; + @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. + * 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("onsPortLocal") - private final Integer onsPortLocal; + @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. + * 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("onsPortRemote") - private final Integer onsPortRemote; + @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. - * + * Possible workload types. Currently only OLTP workload type is supported. **/ - public enum ReplicationMethod { - Raft("RAFT"), - Dg("DG"), + public enum DbWorkloadType { + Oltp("OLTP"), + Dw("DW"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -1274,21 +1409,21 @@ public enum ReplicationMethod { 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; } @@ -1298,66 +1433,140 @@ 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; } }; /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + @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 **/ - public ReplicationMethod getReplicationMethod() { - return replicationMethod; + public DbWorkloadType getDbWorkloadType() { + return dbWorkloadType; } /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. Currently supported values are 3, 5 and 7. - * + * The character set for the database. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private final String characterSet; /** - * The Replication factor for RAFT replication based Globally distributed autonomous database. Currently supported values are 3, 5 and 7. - * + * The character set for the database. * @return the value **/ - public Integer getReplicationFactor() { - return replicationFactor; + public String getCharacterSet() { + return characterSet; } /** - * 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 national character set for the database. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private final String ncharacterSet; /** - * 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 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 getReplicationUnit() { - return replicationUnit; + 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") @@ -1368,91 +1577,78 @@ public DistributedAutonomousDatabaseGsmImage getLatestGsmImage() { } /** - * The distributed autonomous database deployment type. - * + * Collection of composite raft shards. **/ - public enum DbDeploymentType { - 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); + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final java.util.List compositeRaftShardSpaces; - 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. - * + * Collection of system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; + @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 AutonomousSystemDataGuardDatabase systemDataGuardDatabases; + + public AutonomousSystemDataGuardDatabase getSystemDataGuardDatabases() { + return systemDataGuardDatabases; } /** - * Collection of shards associated with the Globally distributed autonomous database. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + @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 **/ public java.util.List getCatalogDetails() { @@ -1460,19 +1656,33 @@ public java.util.List getCatalogDetails() } /** - * 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 **/ 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; @@ -1480,6 +1690,27 @@ 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; @@ -1562,28 +1793,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)); @@ -1609,28 +1852,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) @@ -1655,6 +1910,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()); @@ -1669,13 +1933,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) @@ -1686,27 +1953,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 0c656c2597d..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint - extends com.oracle.bmc.http.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 3689bb4c92a..c6f2f57bd29 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 database. 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 3e1ecc8aad0..f72e902eb2f 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 @@ -14,72 +14,108 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.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 +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedAutonomousDatabaseCatalog.Builder.class ) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.class, - name = "ADB_D" - ) -}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class DistributedAutonomousDatabaseCatalog +public final class DistributedAutonomousDatabaseCatalog extends com.oracle.bmc.http.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 + * The details of data guard replicas for the catalog. **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; + @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 @@ -96,9 +132,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(); } @@ -113,9 +148,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); } @@ -123,59 +157,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 { - 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 5c810ad7185..99009e3e8b7 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 25033f17d63..ae28b2ed77c 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 5730835ad24..0fbfbc9e540 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.Builder.class ) @@ -25,7 +25,7 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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. **/ @@ -87,13 +96,17 @@ public Builder dataStorageSizeInGbs(Double 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 **/ @@ -103,29 +116,13 @@ public Builder isAutoScalingEnabled(Boolean 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. + * 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 cloudAutonomousVmCluster. + * 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 **/ @@ -134,23 +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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. **/ @@ -168,13 +148,13 @@ 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 **/ @@ -184,14 +164,14 @@ 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 @@ -202,108 +182,136 @@ 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. - * @param status the value to set + * 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 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. + * The OKV endpoint name. **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set + * The OKV endpoint name. + * @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. + * The protection mode for the catalog peer. **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set + * The protection mode for the catalog peer. + * @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. + * The lag time preference based on data loss tolerance in seconds. **/ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; /** - * Peer details for the catalog with dedicated infrastructure. - * @param peerDetails the value to set + * The lag time preference based on data loss tolerance in seconds. + * @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. - * @param okvKeyStoreId the value to set + * 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 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. + * Status of the distributed autonomous database catalog. **/ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private String okvEndPointGroup; + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; /** - * The OKV endpoint name. - * @param okvEndPointGroup the value to set + * Status of the distributed autonomous database catalog. + * @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; } @@ -316,22 +324,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); } @@ -349,6 +357,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()); } @@ -358,15 +369,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()); } @@ -376,6 +381,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()); } @@ -385,18 +406,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; } } @@ -417,39 +426,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; } /** @@ -481,13 +489,17 @@ public Double getDataStorageSizeInGbs() { } /** - * 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 **/ public Boolean getIsAutoScalingEnabled() { @@ -495,47 +507,19 @@ public Boolean getIsAutoScalingEnabled() { } /** - * 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. + * 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 cloudAutonomousVmCluster. + * 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; } - /** - * 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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. **/ @@ -551,13 +535,13 @@ 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 **/ public String getKmsKeyId() { @@ -565,14 +549,14 @@ 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 **/ @@ -581,7 +565,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 { Failed("FAILED"), @@ -635,13 +693,13 @@ public static Status create(String key) { } }; /** - * 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 **/ public Status getStatus() { @@ -676,55 +734,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); @@ -742,21 +751,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(); } @@ -775,21 +784,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); } @@ -808,22 +818,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) @@ -835,14 +860,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 3252c65b2af..d936c418a7b 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseCollection.Builder.class ) 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 b44afbce9bb..edaf014a913 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseConnectionString.Builder.class ) 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 f18e511255e..a44ef95a9f6 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 autonomous database. 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 3a085385938..2c8ccd6a8d1 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 96280e69138..38a7ffc8f78 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseGsm.Builder.class ) @@ -61,13 +61,13 @@ 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 **/ @@ -109,13 +109,13 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { return this; } /** - * The time the Global service manager instance was created. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was created. An RFC3339 formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -125,13 +125,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string. * @param timeUpdated the value to set * @return this builder **/ @@ -157,13 +157,13 @@ public Builder status(Status status) { return this; } /** - * The time the ssl certificate associated with Global service manager expires. An RFC3339 formatted datetime string + * 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 + * 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 **/ @@ -277,13 +277,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getName() { @@ -319,13 +319,13 @@ public Double getDataStorageSizeInGbs() { } /** - * The time the Global service manager instance was created. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was created. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { @@ -333,13 +333,13 @@ public java.util.Date getTimeCreated() { } /** - * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeUpdated() { @@ -415,13 +415,13 @@ public Status getStatus() { } /** - * The time the ssl certificate associated with Global service manager expires. An RFC3339 formatted datetime string + * 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 + * The time the ssl certificate associated with Global service manager expires. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeSslCertificateExpires() { 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 346ea4ff8ed..aaca07b7e1e 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseGsmImage.Builder.class ) @@ -22,11 +22,11 @@ public final class DistributedAutonomousDatabaseGsmImage extends com.oracle.bmc.http.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 = "") @@ -48,19 +48,19 @@ public Builder id(String id) { return this; } /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. **/ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private Integer versionNumber; + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; /** - * The version number associated with the image identified by id. - * @param versionNumber the value to set + * The version associated with the image identified by id. + * @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; } @@ -69,7 +69,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); } @@ -81,8 +81,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; } @@ -114,17 +114,17 @@ public String getId() { } /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. **/ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private final Integer versionNumber; + @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 @@ -142,7 +142,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(); } @@ -158,7 +158,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); } @@ -167,9 +167,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 cab7b942abf..c6d2db8c715 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseRaftMetric.Builder.class ) 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 7475004e62a..fde60339c6f 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 b269766a9e1..41bab052f7f 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 6e0664ee63b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class DistributedAutonomousDatabaseShard - extends com.oracle.bmc.http.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 { - 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 7ce956cde7f..caa91e7a8a9 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 6f008343ddb..8af1d060075 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseShardWithDedicatedInfra.Builder.class ) @@ -25,7 +25,7 @@ ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.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. **/ @@ -87,13 +96,17 @@ public Builder dataStorageSizeInGbs(Double 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 **/ @@ -103,29 +116,13 @@ public Builder isAutoScalingEnabled(Boolean 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. + * 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 cloudAutonomousVmCluster. + * 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 **/ @@ -134,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 [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. **/ @@ -188,13 +148,13 @@ 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 **/ @@ -204,14 +164,14 @@ 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 @@ -222,108 +182,134 @@ 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. - * @param status the value to set + * 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 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. + * The OKV endpoint name. **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private String okvEndPointGroupName; /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set + * The OKV endpoint name. + * @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. + * The protection mode for the shard peer. **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private DistributedAutonomousDbProtectionMode protectionMode; /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set + * The protection mode for the shard peer. + * @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. + * The lag time preference based on data loss tolerance in seconds. **/ - @com.fasterxml.jackson.annotation.JsonProperty("peerDetails") - private java.util.List peerDetails; + @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") + private Integer fastStartFailOverLagLimitInSeconds; /** - * Peer details for the shard with dedicated infrastructure. - * @param peerDetails the value to set + * The lag time preference based on data loss tolerance in seconds. + * @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. - * @param okvKeyStoreId the value to set + * 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 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. + * Status of the distributed autonomous database shard. **/ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroup") - private String okvEndPointGroup; + @com.fasterxml.jackson.annotation.JsonProperty("status") + private Status status; /** - * The OKV endpoint name. - * @param okvEndPointGroup the value to set + * Status of the distributed autonomous database shard. + * @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; } @@ -336,23 +322,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); } @@ -370,6 +355,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()); } @@ -379,18 +367,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()); } @@ -400,6 +379,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()); } @@ -409,18 +404,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; } } @@ -441,41 +424,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; } /** @@ -507,13 +487,17 @@ public Double getDataStorageSizeInGbs() { } /** - * 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 **/ public Boolean getIsAutoScalingEnabled() { @@ -521,111 +505,137 @@ public Boolean getIsAutoScalingEnabled() { } /** - * The name of the shardGroup for the shard. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud Autonomous Exadata VM Cluster. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardGroup") - private final String shardGroup; + @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") + private final String cloudAutonomousVmClusterId; /** - * The name of the shardGroup for the shard. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud Autonomous Exadata VM Cluster. * @return the value **/ - public String getShardGroup() { - return shardGroup; + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloudAutonomousVmCluster. + * 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("cloudAutonomousVmClusterId") - private final String cloudAutonomousVmClusterId; + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloudAutonomousVmCluster. + * 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 getCloudAutonomousVmClusterId() { - return cloudAutonomousVmClusterId; + public String getVaultId() { + return vaultId; } /** - * This field is deprecated. For shard peer details please refer peerDetails attribute. + * 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("peerCloudAutonomousVmClusterIds") - private final java.util.List peerCloudAutonomousVmClusterIds; + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; /** - * This field is deprecated. For shard peer details please refer peerDetails attribute. + * 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 java.util.List getPeerCloudAutonomousVmClusterIds() { - return peerCloudAutonomousVmClusterIds; + public String getKmsKeyId() { + return kmsKeyId; } /** - * 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. + * 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("shardSpace") - private final String shardSpace; + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") + private final String kmsKeyVersionId; /** - * 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. + * 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 getShardSpace() { - return shardSpace; + 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 [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. + * The OKV endpoint name. **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; + @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") + private final String okvEndPointGroupName; /** - * 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. + * The OKV endpoint name. * @return the value **/ - public String getVaultId() { - return vaultId; + public String getOkvEndPointGroupName() { + return okvEndPointGroupName; } /** - * The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + * The protection mode for the shard peer. **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; + @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") + private final DistributedAutonomousDbProtectionMode protectionMode; /** - * The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + * The protection mode for the shard peer. * @return the value **/ - public String getKmsKeyId() { - return kmsKeyId; + 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 OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. + * The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; + @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") + private final Integer standbyMaintenanceBufferInDays; /** - * 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 scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. * * @return the value **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; + public Integer getStandbyMaintenanceBufferInDays() { + return standbyMaintenanceBufferInDays; } /** - * Status of shard with dedicated infrastructure for the Globally distributed autonomous database. + * Status of the distributed autonomous database shard. **/ public enum Status { Failed("FAILED"), @@ -679,13 +689,13 @@ public static Status create(String key) { } }; /** - * 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 **/ public Status getStatus() { @@ -720,55 +730,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); @@ -786,22 +747,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(); } @@ -820,22 +780,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); } @@ -854,23 +814,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) @@ -882,14 +856,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 614525401f5..1a1d918f4f8 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDatabaseSummary.Builder.class ) @@ -31,23 +31,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" @@ -61,23 +61,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) { @@ -90,23 +90,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; @@ -242,16 +242,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 letter and number. @@ -289,35 +279,35 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private DistributedAutonomousDatabase.ShardingMethod shardingMethod; + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; /** - * Sharding Methods for the Globally distributed autonomous database. - * @param shardingMethod the value to set + * 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 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; } /** @@ -352,26 +342,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. **/ @@ -437,62 +407,94 @@ public Builder onsPortRemote(Integer 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. - * + * Count of chunks associated with system raft clusters or system data guard databases. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private DistributedAutonomousDatabase.ReplicationMethod replicationMethod; + @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. - * - * @param replicationMethod the value to set + * Count of chunks associated with system raft clusters or system data guard databases. + * @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; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + @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. - * - * @param replicationFactor the value to set + * Number of replication units associated with system raft clusters. + * @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; } + + @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 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. + * 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("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; } /** @@ -513,15 +515,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"}} @@ -598,23 +591,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); @@ -650,20 +643,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()); @@ -671,9 +661,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()); } @@ -686,21 +673,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()); } @@ -837,13 +830,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 and number. @@ -877,31 +863,31 @@ public java.util.List getPrivateEndpointIds() { } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private final DistributedAutonomousDatabase.ShardingMethod shardingMethod; + @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; } /** @@ -932,24 +918,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. **/ @@ -1007,55 +975,182 @@ public Integer getOnsPortRemote() { } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final DistributedAutonomousDatabase.ReplicationMethod replicationMethod; + @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; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + @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 + **/ + 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 { + 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 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 { + 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; } /** @@ -1122,13 +1217,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"}} @@ -1205,23 +1293,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)); @@ -1247,23 +1337,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) @@ -1290,9 +1382,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) @@ -1301,13 +1390,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) @@ -1318,17 +1410,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 6a23febc2b4..2eac0859b91 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDbBackupConfig.Builder.class ) 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 ac82ad27912..b730577ab6f 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDbBackupDestination.Builder.class ) @@ -25,8 +25,6 @@ public final class DistributedAutonomousDbBackupDestination @java.beans.ConstructorProperties({ "type", "id", - "vpcUser", - "vpcPassword", "internetProxy", "dbrsPolicyId", "isRemote", @@ -35,8 +33,6 @@ public final class DistributedAutonomousDbBackupDestination public DistributedAutonomousDbBackupDestination( Type type, String id, - String vpcUser, - String vpcPassword, String internetProxy, String dbrsPolicyId, Boolean isRemote, @@ -44,8 +40,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; @@ -86,38 +80,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. **/ @@ -197,8 +159,6 @@ public DistributedAutonomousDbBackupDestination build() { new DistributedAutonomousDbBackupDestination( this.type, this.id, - this.vpcUser, - this.vpcPassword, this.internetProxy, this.dbrsPolicyId, this.isRemote, @@ -217,12 +177,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()); } @@ -255,7 +209,6 @@ public Builder toBuilder() { **/ public enum Type { Nfs("NFS"), - RecoveryAppliance("RECOVERY_APPLIANCE"), ObjectStore("OBJECT_STORE"), Local("LOCAL"), Dbrs("DBRS"), @@ -327,34 +280,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. **/ @@ -433,8 +358,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)); @@ -456,8 +379,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) @@ -471,8 +392,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 4ac48666bb9..c073169100b 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedAutonomousDbMetadata.Builder.class ) 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 4f91537d8fb..2082b7724c2 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 @@ * in the Oracle Data Guard documentation. * **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum DistributedAutonomousDbProtectionMode { 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 311fa12b25a..a070fd6e85a 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabase.Builder.class ) @@ -29,29 +29,36 @@ public final class DistributedDatabase extends com.oracle.bmc.http.internal.Expl "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", @@ -65,29 +72,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, @@ -100,29 +114,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; @@ -180,13 +201,13 @@ public Builder displayName(String displayName) { return this; } /** - * 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 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. * @param timeCreated the value to set * @return this builder **/ @@ -196,13 +217,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time the Globally distributed database was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed database was last updated. An RFC3339 formatted datetime string. * @param timeUpdated the value to set * @return this builder **/ @@ -243,6 +264,64 @@ 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. **/ @@ -304,6 +383,22 @@ 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; @@ -313,22 +408,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. **/ @@ -361,26 +440,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. **/ @@ -446,13 +505,13 @@ 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 **/ @@ -462,105 +521,120 @@ public Builder scanListenerPort(Integer 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. - * + * Count of chunks associated with system raft clusters or system data guard databases. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private ReplicationMethod replicationMethod; + @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. - * - * @param replicationMethod the value to set + * Count of chunks associated with system raft clusters or system data guard databases. + * @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. - * + * Number of replication units associated with system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + @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. - * - * @param replicationFactor the value to set + * Number of replication units associated with system raft clusters. + * @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 database. For RAFT replication based - * Globally distributed database, the value should be at least twice the number of shards. - * + * Collection of composite raft shards. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private Integer replicationUnit; + @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. - * - * @param replicationUnit the value to set + * Collection of composite raft shards. + * @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; } /** - * The distributed database deployment type. - * + * Collection of composite data guard shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private DbDeploymentType dbDeploymentType; + @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") + private java.util.List compositeDataGuardShardSpaces; /** - * The distributed database deployment type. - * - * @param dbDeploymentType the value to set + * Collection of composite data guard shard spaces. + * @param compositeDataGuardShardSpaces the value to set * @return this builder **/ - public Builder dbDeploymentType(DbDeploymentType dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - this.__explicitlySet__.add("dbDeploymentType"); + 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 shards associated with the Globally distributed database. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private java.util.List shardDetails; + @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") + private java.util.List userShardSpaces; /** - * Collection of shards associated with the Globally distributed database. - * @param shardDetails the value to set + * Collection of user defined shard spaces. + * @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 **/ @@ -570,13 +644,13 @@ public Builder catalogDetails(java.util.List catalog 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 **/ @@ -585,6 +659,23 @@ 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; @@ -594,6 +685,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. **/ @@ -610,6 +711,22 @@ 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; @@ -694,29 +811,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, @@ -750,6 +874,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()); } @@ -762,21 +895,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()); } @@ -792,20 +922,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("shardDetails")) { - this.shardDetails(model.getShardDetails()); + 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()); @@ -813,12 +949,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()); } @@ -889,13 +1034,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 **/ public java.util.Date getTimeCreated() { @@ -903,13 +1048,13 @@ public java.util.Date getTimeCreated() { } /** - * The time the Globally distributed database was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Globally distributed database was last updated. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeUpdated() { @@ -999,71 +1144,12 @@ public LifecycleState getLifecycleState() { } /** - * 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 { 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 @@ -1107,13 +1193,13 @@ public static ShardingMethod create(String key) { } }; /** - * 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 **/ public ShardingMethod getShardingMethod() { @@ -1121,49 +1207,243 @@ public ShardingMethod getShardingMethod() { } /** - * 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 { + 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 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("ncharacterSet") - private final String ncharacterSet; + @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") + private final ReplicationMethod replicationMethod; /** - * 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. + * * @return the value **/ - public String getNcharacterSet() { - return ncharacterSet; + public ReplicationMethod getReplicationMethod() { + return replicationMethod; + } + + /** + * The distributed database deployment type. + * + **/ + public enum DbDeploymentType { + 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; } /** - * 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. + * 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("chunks") - private final Integer chunks; + @com.fasterxml.jackson.annotation.JsonProperty("prefix") + private final String prefix; /** - * 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. + * 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 Integer getChunks() { - return chunks; + 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; } /** @@ -1223,13 +1503,13 @@ public Integer getOnsPortRemote() { } /** - * 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 **/ public Integer getScanListenerPort() { @@ -1237,193 +1517,104 @@ public Integer getScanListenerPort() { } /** - * 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 { - 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 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final ReplicationMethod replicationMethod; + @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 ReplicationMethod getReplicationMethod() { - return replicationMethod; + public Integer getSystemChunkCount() { + return systemChunkCount; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + @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 **/ - public Integer getReplicationFactor() { - return replicationFactor; + public Integer getSystemRaftReplicationUnitCount() { + return systemRaftReplicationUnitCount; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnit") - private final Integer replicationUnit; + @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") + private final 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. * @return the value **/ - public Integer getReplicationUnit() { - return replicationUnit; + public java.util.List getCompositeRaftShardSpaces() { + return compositeRaftShardSpaces; } /** - * The distributed database deployment type. - * + * Collection of composite data guard shard spaces. **/ - public enum DbDeploymentType { - 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.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 database deployment type. - * + * Collection of system raft clusters. **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; + @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 SystemDataGuardDatabase systemDataGuardDatabases; + + public SystemDataGuardDatabase getSystemDataGuardDatabases() { + return systemDataGuardDatabases; } /** - * Collection of shards associated with the Globally distributed database. + * Collection of user defined shard spaces. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardDetails") - private final java.util.List shardDetails; + @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 **/ public java.util.List getCatalogDetails() { @@ -1431,19 +1622,33 @@ public java.util.List getCatalogDetails() { } /** - * 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 **/ 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; @@ -1451,6 +1656,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. **/ @@ -1465,6 +1677,20 @@ 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; @@ -1547,29 +1773,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)); @@ -1595,29 +1833,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) @@ -1642,6 +1892,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()); @@ -1656,17 +1915,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) @@ -1680,27 +1940,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 dbfbdf6bd17..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseAssociatedWithPrivateEndpoint - extends com.oracle.bmc.http.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 3294e9a155a..ce55c3c04ba 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 3378ea9d62d..e07cefacaea 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 @@ -14,75 +14,106 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.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 +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DistributedDatabaseCatalog.Builder.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" - ) -}) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class DistributedDatabaseCatalog extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class DistributedDatabaseCatalog + extends com.oracle.bmc.http.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 + * The details of data guard replicas for the catalog. **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; + @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 @@ -99,9 +130,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(); } @@ -116,9 +146,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); } @@ -126,63 +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; } - - /** - * 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 { - 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 c195762791a..b98dcbcb836 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 f0633a4c90a..4b0e0e990b8 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 c3a2c4a7c25..c2309b2bd87 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 821f75b5445..053559c9cd3 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 68432fcd9a0..1cbc8fd92ba 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 86ba5193671..c89470e439f 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 691e753ba71..453432c7d3e 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 7a71c49da01..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXs.java +++ /dev/null @@ -1,626 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 1c76c5c254b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,689 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 2c8236a172b..e0df71be850 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseCollection.Builder.class ) 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 a9bf0a2ab12..ddb9f2f4918 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 database. 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 d75d969122e..a5940eed4e3 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseGsm.Builder.class ) @@ -109,13 +109,13 @@ public Builder dataStorageSizeInGbs(Double dataStorageSizeInGbs) { return this; } /** - * The time the Global service manager instance was created. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was created. An RFC3339 formatted datetime string. * @param timeCreated the value to set * @return this builder **/ @@ -125,13 +125,13 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } /** - * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string. * @param timeUpdated the value to set * @return this builder **/ @@ -319,13 +319,13 @@ public Double getDataStorageSizeInGbs() { } /** - * The time the Global service manager instance was created. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was created. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeCreated() { @@ -333,13 +333,13 @@ public java.util.Date getTimeCreated() { } /** - * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string + * 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 + * The time the Global service manager instance was last updated. An RFC3339 formatted datetime string. * @return the value **/ public java.util.Date getTimeUpdated() { 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 5f50d16e86f..9fe40314208 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabasePrivateEndpoint.Builder.class ) @@ -30,9 +30,7 @@ public final class DistributedDatabasePrivateEndpoint "displayName", "description", "privateIp", - "nsgIds", - "globallyDistributedDatabases", - "globallyDistributedAutonomousDatabases", + "vcnNsgIds", "timeCreated", "timeUpdated", "lifecycleState", @@ -50,11 +48,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, @@ -71,9 +65,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; @@ -199,63 +191,19 @@ public Builder privateIp(String 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. - * + * The list of network security group (NSG) details associated with the private endpoint. **/ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedDatabases") - private java.util.List - globallyDistributedDatabases; + @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. - * - * @param globallyDistributedDatabases the value to set + * The list of network security group (NSG) details associated with the private endpoint. + * @param vcnNsgIds 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. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedAutonomousDatabases") - private java.util.List - globallyDistributedAutonomousDatabases; - - /** - * This field is deprecated. Support for this field will be removed after Mon, 1 Mar 2027 00:00:00 GMT. - * - * @param globallyDistributedAutonomousDatabases 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; } /** @@ -413,9 +361,7 @@ public DistributedDatabasePrivateEndpoint build() { this.displayName, this.description, this.privateIp, - this.nsgIds, - this.globallyDistributedDatabases, - this.globallyDistributedAutonomousDatabases, + this.vcnNsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -453,15 +399,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()); @@ -601,55 +540,17 @@ public String getPrivateIp() { } /** - * 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. - * + * The list of network security group (NSG) details associated with the private endpoint. **/ - @com.fasterxml.jackson.annotation.JsonProperty("globallyDistributedDatabases") - private final java.util.List - globallyDistributedDatabases; + @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 - 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; - - /** - * 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 - getGloballyDistributedAutonomousDatabases() { - return globallyDistributedAutonomousDatabases; + public java.util.List getVcnNsgIds() { + return vcnNsgIds; } /** @@ -850,11 +751,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)); @@ -884,12 +781,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) @@ -915,17 +807,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 1122ef5272a..9bfddb6eca1 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabasePrivateEndpointCollection.Builder.class ) 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 d6b85fb237a..34852167d82 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabasePrivateEndpointSummary.Builder.class ) @@ -29,7 +29,7 @@ public final class DistributedDatabasePrivateEndpointSummary "subnetId", "vcnId", "displayName", - "nsgIds", + "vcnNsgIds", "timeCreated", "timeUpdated", "lifecycleState", @@ -45,7 +45,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, @@ -60,7 +60,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; @@ -169,21 +169,19 @@ public Builder displayName(String displayName) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; + @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") + private java.util.List vcnNsgIds; /** - * The OCIDs of the network security groups that the private endpoint belongs to. - * - * @param nsgIds the value to set + * The list of network security group (NSG) details associated with the private endpoint. + * @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; } /** @@ -325,7 +323,7 @@ public DistributedDatabasePrivateEndpointSummary build() { this.subnetId, this.vcnId, this.displayName, - this.nsgIds, + this.vcnNsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -359,8 +357,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()); @@ -483,19 +481,17 @@ public String getDisplayName() { } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + @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; } /** @@ -628,7 +624,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)); @@ -657,7 +653,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) @@ -680,7 +676,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 d36b6b4525b..418a51337d3 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseRaftMetric.Builder.class ) 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 14813359b78..337c797078f 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 29760c88943..ca1e5626cf7 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 13ee2e046c9..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class DistributedDatabaseShard extends com.oracle.bmc.http.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 { - 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 cfd25ac0e09..6076a713964 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 71ecba6757a..d04c9285702 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 c5b16e30dcb..f107dc3015d 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 22ac6ea554e..8dee16c3e58 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 0a07d2feff0..96a38f1b02f 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 1a86c2022e2..d1ceae3c6d3 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 ecf6154a7a3..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXs.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 1898c36b953..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,736 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 39ba2cc8580..a143ffa60e9 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDatabaseSummary.Builder.class ) @@ -31,22 +31,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" @@ -60,22 +60,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) { @@ -88,22 +88,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; @@ -239,15 +239,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 number. @@ -285,19 +276,19 @@ public Builder privateEndpointIds(java.util.List privateEndpointIds) { return this; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private DistributedDatabase.ShardingMethod shardingMethod; + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") + private java.util.List notificationTopicIds; /** - * Sharding Methods for the Globally distributed database. - * @param shardingMethod the value to set + * 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 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; } /** @@ -332,26 +323,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. **/ @@ -417,61 +388,94 @@ public Builder onsPortRemote(Integer 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. - * + * Count of chunks associated with system raft clusters or system data guard databases. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private DistributedDatabase.ReplicationMethod replicationMethod; + @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. - * - * @param replicationMethod the value to set + * Count of chunks associated with system raft clusters or system data guard databases. + * @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; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; + @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. - * - * @param replicationFactor the value to set + * Number of replication units associated with system raft clusters. + * @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; } + + @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 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. + * 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("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; } /** @@ -492,15 +496,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"}} @@ -577,22 +572,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); @@ -628,17 +623,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()); @@ -646,9 +638,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()); } @@ -661,21 +650,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()); } @@ -812,13 +807,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. @@ -852,17 +840,17 @@ public java.util.List getPrivateEndpointIds() { } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardingMethod") - private final DistributedDatabase.ShardingMethod shardingMethod; + @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; } /** @@ -893,24 +881,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. **/ @@ -968,55 +938,182 @@ public Integer getOnsPortRemote() { } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationMethod") - private final DistributedDatabase.ReplicationMethod replicationMethod; + @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; } /** - * 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. **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; + @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 + **/ + 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 { + 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 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 { + 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; } /** @@ -1024,7 +1121,7 @@ public Integer getReplicationUnit() { * **/ public enum DbDeploymentType { - ExadbXs("EXADB_XS"), + Exadb("EXADB"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -1083,13 +1180,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"}} @@ -1166,22 +1256,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)); @@ -1207,22 +1299,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) @@ -1249,9 +1343,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) @@ -1260,12 +1351,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) @@ -1276,17 +1368,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/DistributedDbBackupConfig.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDbBackupConfig.java index 7af4215c8eb..6fbf0fee25e 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbBackupConfig.Builder.class ) 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 b85172ee428..3ee3f5e2db4 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbBackupDestination.Builder.class ) @@ -25,9 +25,6 @@ public final class DistributedDbBackupDestination @java.beans.ConstructorProperties({ "type", "id", - "vpcUser", - "vpcPassword", - "isZeroDataLossEnabled", "internetProxy", "dbrsPolicyId", "isRemote", @@ -36,9 +33,6 @@ public final class DistributedDbBackupDestination public DistributedDbBackupDestination( Type type, String id, - String vpcUser, - String vpcPassword, - Boolean isZeroDataLossEnabled, String internetProxy, String dbrsPolicyId, Boolean isRemote, @@ -46,9 +40,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; @@ -89,54 +80,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. **/ @@ -216,9 +159,6 @@ public DistributedDbBackupDestination build() { new DistributedDbBackupDestination( this.type, this.id, - this.vpcUser, - this.vpcPassword, - this.isZeroDataLossEnabled, this.internetProxy, this.dbrsPolicyId, this.isRemote, @@ -237,15 +177,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()); } @@ -278,7 +209,6 @@ public Builder toBuilder() { **/ public enum Type { Nfs("NFS"), - RecoveryAppliance("RECOVERY_APPLIANCE"), ObjectStore("OBJECT_STORE"), Local("LOCAL"), Dbrs("DBRS"), @@ -350,48 +280,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. **/ @@ -470,9 +358,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)); @@ -493,9 +378,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) @@ -509,13 +391,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 89ac242bc79..1ccd185b1a2 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbConnectionString.Builder.class ) 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 b4141844b03..ce15cf70f82 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 034c937b25b..46ff2a030c6 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbGsmImage.Builder.class ) @@ -22,11 +22,11 @@ public final class DistributedDbGsmImage extends com.oracle.bmc.http.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 = "") @@ -48,19 +48,19 @@ public Builder id(String id) { return this; } /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. **/ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private Integer versionNumber; + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; /** - * The version number associated with the image identified by id. - * @param versionNumber the value to set + * The version associated with the image identified by id. + * @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; } @@ -68,7 +68,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); } @@ -80,8 +80,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; } @@ -113,17 +113,17 @@ public String getId() { } /** - * The version number associated with the image identified by id. + * The version associated with the image identified by id. **/ - @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") - private final Integer versionNumber; + @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 @@ -141,7 +141,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(); } @@ -157,7 +157,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); } @@ -166,9 +166,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 3c95dc7aac4..db495a5a8b6 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbMetadata.Builder.class ) 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 9fc060cad5e..21cd68817bd 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 @@ -7,7 +7,7 @@ /** * The protection mode to set up between the primary and standby databases. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum DistributedDbProtectionMode { 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 b532bb21eb6..15dc90f8067 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbStorageVault.Builder.class ) @@ -23,25 +23,53 @@ public final class DistributedDbStorageVault extends com.oracle.bmc.http.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. **/ @@ -59,13 +87,13 @@ public Builder displayName(String displayName) { return this; } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Vault Storage. + * 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 Database Vault Storage. + * 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 **/ @@ -106,6 +134,54 @@ 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(); @@ -113,10 +189,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); } @@ -125,6 +205,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()); } @@ -137,6 +220,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; } } @@ -152,6 +244,20 @@ 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. **/ @@ -167,13 +273,13 @@ public String getDisplayName() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Vault Storage. + * 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 Database Vault Storage. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. * @return the value **/ public String getDbStorageVaultId() { @@ -208,6 +314,48 @@ 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); @@ -222,12 +370,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(); } @@ -242,12 +394,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); } @@ -255,6 +411,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) @@ -269,6 +428,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 01b094f8a16..f1060d806c6 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 @@ -5,9 +5,9 @@ package com.oracle.bmc.distributeddatabase.model; /** - * The redo transport type to use for this Data Guard association. + * The transport type to use for this Data Guard association. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum DistributedDbTransportType { 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 2cf5248ee5e..f163d1a33d0 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DistributedDbVmCluster.Builder.class ) @@ -23,6 +23,7 @@ public final class DistributedDbVmCluster extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "vmClusterId", "displayName", "subnetId", @@ -38,9 +39,11 @@ public final class DistributedDbVmCluster "backupNetworkNsgIds", "isDiagnosticsEventsEnabled", "isHealthMonitoringEnabled", - "isIncidentLogsEnabled" + "isIncidentLogsEnabled", + "subscriptionId" }) public DistributedDbVmCluster( + String compartmentId, String vmClusterId, String displayName, String subnetId, @@ -56,8 +59,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; @@ -74,18 +79,35 @@ 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. + * 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 Exadata VM cluster on Exascale Infrastructure. + * 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 **/ @@ -390,6 +412,22 @@ 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(); @@ -397,6 +435,7 @@ public Builder isIncidentLogsEnabled(Boolean isIncidentLogsEnabled) { public DistributedDbVmCluster build() { DistributedDbVmCluster model = new DistributedDbVmCluster( + this.compartmentId, this.vmClusterId, this.displayName, this.subnetId, @@ -412,7 +451,8 @@ public DistributedDbVmCluster build() { this.backupNetworkNsgIds, this.isDiagnosticsEventsEnabled, this.isHealthMonitoringEnabled, - this.isIncidentLogsEnabled); + this.isIncidentLogsEnabled, + this.subscriptionId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -421,6 +461,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()); } @@ -469,6 +512,9 @@ public Builder copy(DistributedDbVmCluster model) { if (model.wasPropertyExplicitlySet("isIncidentLogsEnabled")) { this.isIncidentLogsEnabled(model.getIsIncidentLogsEnabled()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } return this; } } @@ -485,13 +531,27 @@ public Builder toBuilder() { } /** - * 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 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 **/ public String getVmClusterId() { @@ -813,6 +873,20 @@ 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); @@ -827,7 +901,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)); @@ -846,6 +921,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(); } @@ -860,7 +936,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) @@ -879,6 +956,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); } @@ -886,6 +964,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()); @@ -932,6 +1013,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 8044f994d9c..21d870a6c7f 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = GenerateDistributedAutonomousDatabaseWalletDetails.Builder.class ) @@ -23,8 +23,15 @@ public final class GenerateDistributedAutonomousDatabaseWalletDetails extends com.oracle.bmc.http.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; } @@ -35,19 +42,25 @@ 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 String 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(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(); @@ -84,13 +97,25 @@ public Builder toBuilder() { * 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 String 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 **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -108,7 +133,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 6545556f734..e86ec84f5b5 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = GenerateDistributedDatabaseWalletDetails.Builder.class ) @@ -23,8 +23,15 @@ public final class GenerateDistributedDatabaseWalletDetails extends com.oracle.bmc.http.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; } @@ -35,19 +42,25 @@ 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 String 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(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(); @@ -84,13 +97,25 @@ public Builder toBuilder() { * 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 String 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 **/ - public String getPassword() { + @com.fasterxml.jackson.annotation.JsonProperty("password") + public char[] getPassword__AsCharArray() { return password; } @@ -108,7 +133,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 c3ffc424fe7..cbba638332f 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MoveDistributedAutonomousDatabaseReplicationUnitDetails.Builder.class ) 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 cf9eaaa3216..702a164f35f 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MoveDistributedDatabaseReplicationUnitDetails.Builder.class ) 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 c148aa82b6e..e65fbce76ff 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 @@ -7,7 +7,7 @@ /** * Possible operation status. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum OperationStatus { 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 0ee290eb83e..d248a8a4e5c 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 @@ -7,17 +7,17 @@ /** * Possible operation types. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum OperationType { 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"), @@ -25,8 +25,6 @@ public enum OperationType { 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"), @@ -35,6 +33,7 @@ public enum OperationType { 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"), @@ -42,8 +41,10 @@ public enum OperationType { 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 d7f1c892f9c..21970e0ba71 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,7 +5,7 @@ package com.oracle.bmc.distributeddatabase.model; /** - * Provide PatchInstuction(s) in items array. All instructions in items have to be of same type. + * 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. @@ -18,7 +18,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchDistributedAutonomousDatabaseDetails.Builder.class ) 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 db41440556f..036a4eec000 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchDistributedDatabaseDetails.Builder.class ) 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 743de8ccf5b..3838659f0ad 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 0952bf1e561..4c295909a25 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchInsertInstruction.Builder.class ) 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 e4c3cc950d7..75878610d1d 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 d8931151ab4..27942dccab9 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 @@ -21,7 +21,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchMergeInstruction.Builder.class ) 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 b5253cc0c8e..dac50941e44 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PatchRemoveInstruction.Builder.class ) 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 a19d947fc84..c6660f9e0cf 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 database. 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 ef99aef18be..5c947419bca 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 database. 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 beab9e429df..3a95e99aeec 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 761e33a8728..438964953e5 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 12469ba1a78..a76b18485f8 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 database. 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 98732048411..43521086e58 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 6011b6d27af..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java +++ /dev/null @@ -1,670 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ShardPeerWithDedicatedInfra - extends com.oracle.bmc.http.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 { - 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 858b4852a7c..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXs.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ShardPeerWithExadbXs extends com.oracle.bmc.http.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 { - 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 0f0546ea36a..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,615 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ShardPeerWithExadbXsNewVaultAndCluster - extends com.oracle.bmc.http.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 { - 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 0cc492c387c..4844d3e2162 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 @@ -7,7 +7,7 @@ /** * Sort orders. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum SortOrder { 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 d1ca6605103..e99e673629a 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 b0041a40afe..24d0357ab30 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 bc7b857ed87..2b57c77b461 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 05d9c133868..46bd0ad9f5b 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDistributedAutonomousDatabaseDetails.Builder.class ) @@ -22,13 +22,20 @@ public final class UpdateDistributedAutonomousDatabaseDetails extends com.oracle.bmc.http.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,26 @@ 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"}} @@ -99,7 +126,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); } @@ -111,6 +141,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()); } @@ -146,6 +179,24 @@ 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"}} @@ -197,6 +248,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(")"); @@ -215,6 +267,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); @@ -225,6 +278,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 7d53cb7346e..712e692d1dc 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDistributedDatabaseDetails.Builder.class ) @@ -22,13 +22,20 @@ public final class UpdateDistributedDatabaseDetails extends com.oracle.bmc.http.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,26 @@ 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"}} @@ -99,7 +126,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); } @@ -111,6 +141,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()); } @@ -146,6 +179,24 @@ 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"}} @@ -197,6 +248,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(")"); @@ -214,6 +266,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); @@ -224,6 +277,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 98269ff29e8..14af0cc5a14 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDistributedDatabasePrivateEndpointDetails.Builder.class ) @@ -22,23 +22,15 @@ public final class UpdateDistributedDatabasePrivateEndpointDetails extends com.oracle.bmc.http.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; } @@ -77,24 +69,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"}} @@ -145,7 +119,6 @@ public UpdateDistributedDatabasePrivateEndpointDetails build() { new UpdateDistributedDatabasePrivateEndpointDetails( this.displayName, this.description, - this.nsgIds, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -162,9 +135,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()); } @@ -214,22 +184,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"}} @@ -282,7 +236,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(")"); @@ -302,7 +255,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); @@ -314,7 +266,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 e6a4f80fec9..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java +++ /dev/null @@ -1,153 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - extends com.oracle.bmc.http.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java deleted file mode 100644 index 148f38d2dcc..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.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.distributeddatabase.model; - -/** - * Details of the request to upload the CA signed certificates to GSMs and generate wallets for - * GSMs 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"caSignedCertificate"}) - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails build() { - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails model = - new UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - this.caSignedCertificate); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails 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("UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails("); - 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails)) { - return false; - } - - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails other = - (UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails) 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 de4277fdd75..2a690e75dd3 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 a53309604fa..a72a4e4190d 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 5e0051152d3..edfecdf7ba7 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) OCIDs. 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 2a484669139..cf189000420 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 @@ -15,12 +15,13 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class VmClusterDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "compartmentId", "subnetId", "backupSubnetId", "enabledECpuCount", @@ -34,9 +35,11 @@ public final class VmClusterDetails extends com.oracle.bmc.http.internal.Explici "isHealthMonitoringEnabled", "isIncidentLogsEnabled", "nsgIds", - "backupNetworkNsgIds" + "backupNetworkNsgIds", + "subscriptionId" }) public VmClusterDetails( + String compartmentId, String subnetId, String backupSubnetId, Integer enabledECpuCount, @@ -50,8 +53,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; @@ -66,10 +71,27 @@ 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. * @@ -350,6 +372,22 @@ 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(); @@ -357,6 +395,7 @@ public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { public VmClusterDetails build() { VmClusterDetails model = new VmClusterDetails( + this.compartmentId, this.subnetId, this.backupSubnetId, this.enabledECpuCount, @@ -370,7 +409,8 @@ public VmClusterDetails build() { this.isHealthMonitoringEnabled, this.isIncidentLogsEnabled, this.nsgIds, - this.backupNetworkNsgIds); + this.backupNetworkNsgIds, + this.subscriptionId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -379,6 +419,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()); } @@ -421,6 +464,9 @@ public Builder copy(VmClusterDetails model) { if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) { this.backupNetworkNsgIds(model.getBackupNetworkNsgIds()); } + if (model.wasPropertyExplicitlySet("subscriptionId")) { + this.subscriptionId(model.getSubscriptionId()); + } return this; } } @@ -436,6 +482,20 @@ 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. * @@ -724,6 +784,20 @@ 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); @@ -738,7 +812,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)); @@ -755,6 +830,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(); } @@ -769,7 +845,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) @@ -786,6 +863,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); } @@ -793,6 +871,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) @@ -837,6 +918,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 eabb0dd25d6..eea06952598 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 979260c6acb..e4ef20eb6b6 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 8c05271314f..0667b517a46 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestErrorCollection.Builder.class ) 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 b572fd2477d..aa2922aa475 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntry.Builder.class ) 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 cce0d18c262..615373e714a 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntryCollection.Builder.class ) 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 fe40dfc23d4..96738cb4f2f 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestResource.Builder.class ) 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 ec6f08dd4a5..e37150fcc15 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 @@ -7,7 +7,7 @@ /** * Possible Metadata keys for workRequest resource metadata **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public enum WorkRequestResourceMetadataKey { 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 3bfe34fb585..bb07a5c84aa 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummary.Builder.class ) 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 70745c94b2b..8db5607016e 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummaryCollection.Builder.class ) 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 c0f84eff161..4d146508ed7 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use AddDistributedAutonomousDatabaseGdsControlNodeRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -118,12 +118,12 @@ public static class Builder 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 434f21ec432..4633b003763 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use AddDistributedDatabaseGdsControlNodeRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -115,12 +115,12 @@ public static class Builder 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 b87dff2902a..f390f6c074f 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ChangeDistributedAutonomousDatabaseCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedAutonomousDatabaseCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -30,12 +30,12 @@ public class ChangeDistributedAutonomousDatabaseCompartmentRequest 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; @@ -137,12 +137,12 @@ public Builder changeDistributedAutonomousDatabaseCompartmentDetails( } /** - * 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 8640496a16f..0a1474b2703 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use ChangeDistributedAutonomousDbBackupConfigRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -114,12 +114,12 @@ public static class Builder 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 362f23aa078..54de8ccf157 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ChangeDistributedDatabaseCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDatabaseCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -28,12 +28,12 @@ public class ChangeDistributedDatabaseCompartmentRequest 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; @@ -132,12 +132,12 @@ public Builder changeDistributedDatabaseCompartmentDetails( } /** - * 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 976424641cb..59bc7d3b0ed 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ChangeDistributedDatabasePrivateEndpointCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 242c05656de..16f6a189def 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 @@ -8,18 +8,18 @@ /** * Example: Click here to see how to use ChangeDistributedDbBackupConfigRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -112,12 +112,12 @@ public static class Builder 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 95% 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 6122a8e393b..91adb4d02d0 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,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.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. + * Example: Click here to see how to use ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest. */ @javax.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> { /** @@ -28,14 +28,14 @@ public String getDistributedAutonomousDatabaseId() { /** * 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; @@ -100,7 +100,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; @@ -109,7 +109,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.util.internal.Consumer invocationCallback = null; @@ -133,7 +133,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; @@ -143,7 +143,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 = @@ -280,7 +280,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 1f763705dce..58e6061029d 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ConfigureDistributedAutonomousDatabaseGsmWalletRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmWalletRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -30,12 +30,12 @@ public class ConfigureDistributedAutonomousDatabaseGsmWalletRequest 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; @@ -137,12 +137,12 @@ public Builder configureDistributedAutonomousDatabaseGsmWalletDetails( } /** - * 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 40e2dec61d8..79f34bf7ac9 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ConfigureDistributedAutonomousDatabaseGsmsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseGsmsRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model @@ -30,12 +30,12 @@ public class ConfigureDistributedAutonomousDatabaseGsmsRequest 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; @@ -137,12 +137,12 @@ public Builder configureDistributedAutonomousDatabaseGsmsDetails( } /** - * 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 fa7177d6a3c..040cc2e6415 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use ConfigureDistributedAutonomousDatabaseShardingRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -122,12 +122,12 @@ public static class Builder 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 95% 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 6b3bb1eb709..ca7e303efeb 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,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.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. + * Example: Click here to see how to use ConfigureDistributedDatabaseAutoResourceManagementRequest. */ @javax.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> { /** @@ -28,14 +28,14 @@ public String getDistributedDatabaseId() { /** * 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; @@ -100,7 +100,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; @@ -109,7 +109,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.util.internal.Consumer invocationCallback = null; @@ -133,7 +133,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; @@ -143,7 +143,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 = @@ -280,7 +280,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 8f318b250be..aee793ea21c 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ConfigureDistributedDatabaseGsmsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseGsmsRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.distributeddatabase.model.ConfigureDistributedDatabaseGsmsDetails> { @@ -27,12 +27,12 @@ public class ConfigureDistributedDatabaseGsmsRequest 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; @@ -130,12 +130,12 @@ public Builder configureDistributedDatabaseGsmsDetails( } /** - * 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 5e515c2dd70..80d675ba914 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use ConfigureDistributedDatabaseShardingRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -100,12 +100,12 @@ public static class Builder 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 fe5ddb1249d..9a665d65690 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CreateDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 7775da0c692..8deca9fedb8 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CreateDistributedDatabasePrivateEndpointRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 22c4957d193..08db30e6768 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CreateDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 c845f5d0bda..098603f9285 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use DeleteDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -85,12 +85,12 @@ public static class Builder 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 b1d44f8e82e..64366e05d2a 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use DeleteDistributedDatabasePrivateEndpointRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 d9cf8e84153..ed17e5ff630 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 @@ -8,32 +8,21 @@ /** * Example: Click here to see how to use DeleteDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. */ @@ -96,12 +85,12 @@ public static class Builder 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 */ @@ -110,21 +99,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. */ @@ -219,7 +193,6 @@ public Builder retryConfiguration( */ public Builder copy(DeleteDistributedDatabaseRequest o) { distributedDatabaseId(o.getDistributedDatabaseId()); - mustDeleteInfra(o.getMustDeleteInfra()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); @@ -256,12 +229,11 @@ 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); } } @@ -272,7 +244,6 @@ public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) - .mustDeleteInfra(mustDeleteInfra) .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken) .ifMatch(ifMatch); @@ -292,7 +263,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)); @@ -312,7 +282,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); @@ -327,9 +296,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/GenerateDistributedAutonomousDatabaseWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java index 67b7b913fca..e8e7eb0de16 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use GenerateDistributedAutonomousDatabaseWalletRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -116,12 +116,12 @@ public static class Builder 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/GenerateDistributedDatabaseWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseWalletRequest.java index 78abd3b37f2..9c479dccf54 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 @@ -8,18 +8,18 @@ /** * Example: Click here to see how to use GenerateDistributedDatabaseWalletRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -112,12 +112,12 @@ public static class Builder 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 2e6a303c903..68cee4d0a49 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use GetDistributedAutonomousDatabaseRaftMetricRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -43,12 +43,12 @@ public static class Builder 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 4998bf804ed..5dce6a0332a 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 @@ -8,29 +8,29 @@ /** * Example: Click here to see how to use GetDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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() { @@ -77,12 +77,12 @@ public static class Builder 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 */ @@ -92,13 +92,13 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab } /** - * 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 96% 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 ad61e786e4b..e7925c69021 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,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.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. + * Example: Click here to see how to use GetDistributedAutonomousDatabaseRuChangeLogRequest. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class 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 36a3d6581a4..684d17c4e24 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetDistributedDatabasePrivateEndpointRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 dcf9cbd4fc4..d7c576f9cc7 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use GetDistributedDatabaseRaftMetricRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -43,12 +43,12 @@ public static class Builder 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 4b69bdb9d8e..fb788a5918a 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 @@ -8,29 +8,29 @@ /** * Example: Click here to see how to use GetDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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() { @@ -77,12 +77,12 @@ public static class Builder 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 */ @@ -92,13 +92,13 @@ public Builder distributedDatabaseId(String 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 = 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 96% 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 b565228eb73..2e8cbe13ca3 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,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.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. + * Example: Click here to see how to use GetDistributedDatabaseRuChangeLogRequest. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class 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 a860a8e7632..c63881aef10 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetWorkRequestRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 7182e023305..de4ebeff5a5 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListDistributedAutonomousDatabasesRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedAutonomousDatabasesRequest extends com.oracle.bmc.requests.BmcRequest { @@ -23,6 +23,17 @@ 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. */ @@ -35,13 +46,13 @@ 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() { @@ -141,6 +152,17 @@ 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. */ @@ -153,26 +175,24 @@ public String getDisplayName() { return displayName; } /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. + * A filter to return only resources whose dbDeploymentType matches the specified value. */ - private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase.DbDeploymentType - dbDeploymentType; + private String dbDeploymentType; /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. + * A filter to return only resources whose dbDeploymentType matches the specified value. */ - public com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase.DbDeploymentType - getDbDeploymentType() { + 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() { @@ -201,6 +221,21 @@ 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. */ @@ -217,14 +252,14 @@ public Builder privateEndpointId(String 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 = 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 */ @@ -313,6 +348,21 @@ 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. */ @@ -329,33 +379,28 @@ public Builder displayName(String displayName) { } /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. + * A filter to return only resources whose dbDeploymentType matches the specified value. */ - private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabase - .DbDeploymentType - dbDeploymentType = null; + 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 @@ -394,6 +439,7 @@ public Builder retryConfiguration( */ public Builder copy(ListDistributedAutonomousDatabasesRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); privateEndpointId(o.getPrivateEndpointId()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); @@ -401,6 +447,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()); @@ -438,6 +485,7 @@ public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback( ListDistributedAutonomousDatabasesRequest request = new ListDistributedAutonomousDatabasesRequest(); request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.privateEndpointId = privateEndpointId; request.lifecycleState = lifecycleState; request.limit = limit; @@ -445,11 +493,12 @@ 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); } } @@ -460,6 +509,7 @@ public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback( public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .privateEndpointId(privateEndpointId) .lifecycleState(lifecycleState) .limit(limit) @@ -467,6 +517,7 @@ public Builder toBuilder() { .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) + .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) .displayName(displayName) .dbDeploymentType(dbDeploymentType) .metadata(metadata); @@ -486,6 +537,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)); @@ -493,6 +545,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)); @@ -513,6 +567,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) @@ -520,6 +576,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); @@ -532,6 +590,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()); @@ -543,6 +606,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 f3e3d137ccd..6865aef0dd4 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListDistributedDatabasePrivateEndpointsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasePrivateEndpointsRequest extends com.oracle.bmc.requests.BmcRequest { @@ -23,6 +23,17 @@ 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. */ @@ -166,6 +177,21 @@ 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. */ @@ -307,6 +333,7 @@ public Builder retryConfiguration( */ public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); page(o.getPage()); @@ -349,6 +376,7 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall ListDistributedDatabasePrivateEndpointsRequest request = new ListDistributedDatabasePrivateEndpointsRequest(); request.compartmentId = compartmentId; + request.compartmentIdInSubtree = compartmentIdInSubtree; request.lifecycleState = lifecycleState; request.limit = limit; request.page = page; @@ -357,7 +385,7 @@ 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); } } @@ -368,6 +396,7 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .lifecycleState(lifecycleState) .limit(limit) .page(page) @@ -391,6 +420,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)); @@ -415,6 +445,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) @@ -431,6 +463,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 676c4cbadcc..6c8f0f67160 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListDistributedDatabasesRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListDistributedDatabasesRequest extends com.oracle.bmc.requests.BmcRequest { @@ -23,6 +23,17 @@ 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. */ @@ -35,13 +46,13 @@ 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() { @@ -141,6 +152,17 @@ 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. */ @@ -153,26 +175,24 @@ public String getDisplayName() { return displayName; } /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. + * A filter to return only resources whose dbDeploymentType matches the specified value. */ - private com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - dbDeploymentType; + private String dbDeploymentType; /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. + * A filter to return only resources whose dbDeploymentType matches the specified value. */ - public com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - getDbDeploymentType() { + 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() { @@ -201,6 +221,21 @@ 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. */ @@ -217,13 +252,13 @@ public Builder privateEndpointId(String 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 = 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 */ @@ -311,6 +346,21 @@ 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. */ @@ -327,31 +377,28 @@ public Builder displayName(String displayName) { } /** - * A filter to return only resources their dbDeploymentType matches the given dbDeploymentType. + * A filter to return only resources whose dbDeploymentType matches the specified value. */ - private com.oracle.bmc.distributeddatabase.model.DistributedDatabase.DbDeploymentType - dbDeploymentType = null; + 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 @@ -390,6 +437,7 @@ public Builder retryConfiguration( */ public Builder copy(ListDistributedDatabasesRequest o) { compartmentId(o.getCompartmentId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); privateEndpointId(o.getPrivateEndpointId()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); @@ -397,6 +445,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()); @@ -433,6 +482,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; @@ -440,11 +490,12 @@ 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); } } @@ -455,6 +506,7 @@ public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) + .compartmentIdInSubtree(compartmentIdInSubtree) .privateEndpointId(privateEndpointId) .lifecycleState(lifecycleState) .limit(limit) @@ -462,6 +514,7 @@ public Builder toBuilder() { .sortOrder(sortOrder) .sortBy(sortBy) .opcRequestId(opcRequestId) + .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) .displayName(displayName) .dbDeploymentType(dbDeploymentType) .metadata(metadata); @@ -481,6 +534,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)); @@ -488,6 +542,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)); @@ -507,6 +563,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) @@ -514,6 +572,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); @@ -526,6 +586,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()); @@ -537,6 +602,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 0b45fda1f0d..0c6edfe21ee 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListWorkRequestErrorsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestErrorsRequest extends com.oracle.bmc.requests.BmcRequest { @@ -57,17 +57,17 @@ public Integer getLimit() { return 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; /** - * 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. * **/ public enum SortBy { - TimeAccepted("timeAccepted"), + Timestamp("timestamp"), ; private final String value; @@ -99,7 +99,7 @@ public static SortBy create(String key) { }; /** - * 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. * */ public SortBy getSortBy() { @@ -185,13 +185,13 @@ 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 294f2321c2b..35e154725b8 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListWorkRequestLogsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { /** @@ -56,17 +56,17 @@ public Integer getLimit() { return 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; /** - * 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. * **/ public enum SortBy { - TimeAccepted("timeAccepted"), + Timestamp("timestamp"), ; private final String value; @@ -98,7 +98,7 @@ public static SortBy create(String key) { }; /** - * 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. * */ public SortBy getSortBy() { @@ -184,13 +184,13 @@ 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 1b697d949b8..d42a2bb0ce6 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListWorkRequestsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 438d2864337..075819e6aee 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use MoveDistributedAutonomousDatabaseReplicationUnitRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -118,12 +118,12 @@ public static class Builder 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 02713eb7894..abecf867734 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use MoveDistributedDatabaseReplicationUnitRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -115,12 +115,12 @@ public static class Builder 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 1d0ff5e7f44..4dbd43173cb 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use PatchDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -113,12 +113,12 @@ public static class Builder 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 0b210960597..95b2c46ecd6 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,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.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. + * Example: Click here to see how to use PatchDistributedDatabasePrivateEndpointRequest. */ @javax.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> { /** @@ -28,15 +28,13 @@ public String getDistributedDatabasePrivateEndpointId() { /** * 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; } @@ -100,8 +98,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; } @@ -109,7 +106,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.util.internal.Consumer invocationCallback = null; @@ -134,7 +131,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; @@ -144,7 +141,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 = @@ -281,7 +278,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 9572602e47b..15b2d48ca01 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 @@ -8,18 +8,18 @@ /** * Example: Click here to see how to use PatchDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -110,12 +110,12 @@ public static class Builder 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 c35c6505ffa..9bd36b1adaf 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 @@ -8,47 +8,34 @@ /** * Example: Click here to see how to use RecreateFailedDistributedAutonomousDatabaseResourceRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. */ @@ -111,12 +98,12 @@ public static class Builder 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 */ @@ -126,13 +113,13 @@ public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatab } /** - * 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 @@ -142,23 +129,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. */ @@ -254,7 +224,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()); @@ -295,12 +264,11 @@ 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); + // new RecreateFailedDistributedAutonomousDatabaseResourceRequest(distributedAutonomousDatabaseId, resourceName, opcRequestId, ifMatch, opcRetryToken); } } @@ -312,7 +280,6 @@ public Builder toBuilder() { return new Builder() .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) .resourceName(resourceName) - .shardGroup(shardGroup) .opcRequestId(opcRequestId) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); @@ -334,7 +301,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)); @@ -357,7 +323,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); @@ -373,7 +338,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 ec119e91d09..c938faf5e47 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 @@ -8,47 +8,34 @@ /** * Example: Click here to see how to use RecreateFailedDistributedDatabaseResourceRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 @@ -111,12 +98,12 @@ public static class Builder 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 */ @@ -126,13 +113,13 @@ public Builder distributedDatabaseId(String distributedDatabaseId) { } /** - * 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 @@ -142,23 +129,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 @@ -254,7 +224,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()); @@ -294,12 +263,11 @@ 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); + // new RecreateFailedDistributedDatabaseResourceRequest(distributedDatabaseId, resourceName, ifMatch, opcRetryToken, opcRequestId); } } @@ -311,7 +279,6 @@ public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) .resourceName(resourceName) - .shardGroup(shardGroup) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -332,7 +299,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)); @@ -354,7 +320,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); @@ -370,7 +335,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 c80bc3f9f19..4f281cdf686 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ReinstateProxyInstanceRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 eea3428ae16..4bf4090b760 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 @@ -8,21 +8,59 @@ /** * Example: Click here to see how to use RotateDistributedAutonomousDatabasePasswordsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. */ @@ -55,42 +93,35 @@ 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.util.internal.Consumer 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 */ @@ -99,6 +130,52 @@ 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. */ @@ -139,31 +216,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. * @param invocationCallback the invocation callback to be set for the request @@ -193,9 +245,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; @@ -219,6 +273,20 @@ 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 * @@ -232,11 +300,13 @@ 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); + // new RotateDistributedAutonomousDatabasePasswordsRequest(distributedAutonomousDatabaseId, rotateDistributedAutonomousDatabasePasswordsDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -247,9 +317,11 @@ public RotateDistributedAutonomousDatabasePasswordsRequest build() { public Builder toBuilder() { return new Builder() .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .rotateDistributedAutonomousDatabasePasswordsDetails( + rotateDistributedAutonomousDatabasePasswordsDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .ifMatch(ifMatch); } /** @@ -267,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(); } @@ -288,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 @@ -302,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 f57afcf5a48..768433eb205 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 @@ -8,21 +8,57 @@ /** * Example: Click here to see how to use RotateDistributedDatabasePasswordsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. */ @@ -55,42 +91,34 @@ 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.util.internal.Consumer 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,6 +127,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. */ @@ -139,31 +211,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. * @param invocationCallback the invocation callback to be set for the request @@ -193,9 +240,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; @@ -218,6 +267,19 @@ 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 * @@ -230,11 +292,13 @@ 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); } } @@ -245,9 +309,11 @@ public RotateDistributedDatabasePasswordsRequest buildWithoutInvocationCallback( public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) + .rotateDistributedDatabasePasswordsDetails( + rotateDistributedDatabasePasswordsDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); + .ifMatch(ifMatch); } /** @@ -264,9 +330,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(); } @@ -284,9 +352,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 @@ -298,11 +369,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 94% 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 7b5b023e385..2c72032664c 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,29 +2,28 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + * Example: Click here to see how to use ScaleDistributedAutonomousDatabaseGsmsRequest. */ @javax.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; } @@ -99,7 +98,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; } @@ -107,7 +106,7 @@ 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.util.internal.Consumer invocationCallback = null; @@ -116,7 +115,7 @@ public static class Builder /** * 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; @@ -126,7 +125,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 = @@ -278,7 +277,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 92% 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 7bb4aa6e748..66f052ad74d 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,27 +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 ScaleDistributedDatabaseGsmsRequest. + * Example: Click here to see how to use ScaleDistributedDatabaseGsmsRequest. */ @javax.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; } @@ -97,16 +97,14 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -114,7 +112,7 @@ public static class Builder /** * 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; /** @@ -123,7 +121,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; @@ -271,8 +269,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 4c1f52242df..e40351b85b6 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use StartDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -85,12 +85,12 @@ public static class Builder 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 fa4d356149a..c0469a46d8a 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use StartDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -85,12 +85,12 @@ public static class Builder 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 9743a60cb6b..2fc430badff 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use StopDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -85,12 +85,12 @@ public static class Builder 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 fd4473d1cfd..1fbe74d1967 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use StopDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -85,12 +85,12 @@ public static class Builder 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 0a4088ec6dc..91f2b14c8a9 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 @@ -8,19 +8,19 @@ /** * Example: Click here to see how to use UpdateDistributedAutonomousDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -92,12 +92,12 @@ public static class Builder 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 3b3c4b8c4b6..c31d49dc53b 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use UpdateDistributedDatabasePrivateEndpointRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 44b5a3b4b50..d7f9a991d6d 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 @@ -8,18 +8,18 @@ /** * Example: Click here to see how to use UpdateDistributedDatabaseRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -89,12 +89,12 @@ public static class Builder 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 bb7191b79db..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java +++ /dev/null @@ -1,412 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 d92f973448c..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.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.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 eaeaad3a508..2ebf29f850d 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use ValidateDistributedAutonomousDatabaseCaBundleRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -85,12 +85,12 @@ public static class Builder 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 4d4e52e53c7..521c95f32b2 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use ValidateDistributedAutonomousDatabaseNetworkRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -34,32 +34,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 @@ -122,12 +96,12 @@ public static class Builder 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 */ @@ -151,40 +125,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 @@ -280,8 +220,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()); @@ -322,13 +260,11 @@ 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); + // new ValidateDistributedAutonomousDatabaseNetworkRequest(distributedAutonomousDatabaseId, isSurrogate, ifMatch, opcRetryToken, opcRequestId); } } @@ -340,8 +276,6 @@ public Builder toBuilder() { return new Builder() .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) .isSurrogate(isSurrogate) - .resourceName(resourceName) - .shardGroup(shardGroup) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -363,8 +297,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)); @@ -387,8 +319,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); @@ -404,8 +334,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 285024936a1..ef4d1c42f2d 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 @@ -8,17 +8,17 @@ /** * Example: Click here to see how to use ValidateDistributedDatabaseNetworkRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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; @@ -34,32 +34,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 @@ -122,12 +96,12 @@ public static class Builder 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 */ @@ -151,40 +125,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 @@ -280,8 +220,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()); @@ -320,13 +258,11 @@ 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); + // new ValidateDistributedDatabaseNetworkRequest(distributedDatabaseId, isSurrogate, ifMatch, opcRetryToken, opcRequestId); } } @@ -338,8 +274,6 @@ public Builder toBuilder() { return new Builder() .distributedDatabaseId(distributedDatabaseId) .isSurrogate(isSurrogate) - .resourceName(resourceName) - .shardGroup(shardGroup) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -360,8 +294,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)); @@ -383,8 +315,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); @@ -400,8 +330,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 2e47b86815f..4185d1c6369 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 a46fd0ef693..9025210f219 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 d22c2254d58..5e5bb0300ab 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 729bff5e2ec..f3873ba7851 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 274e7e25dd6..68e625e0293 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 0223109ae14..2f51f2de8bc 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 f6e211e3ea3..bccf8262616 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ChangeDistributedDbBackupConfigResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. 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 30c9b8ae289..5527fc2706f 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.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse @@ -44,7 +44,7 @@ public String getEtag() { /** * The returned DistributedAutonomousDatabaseAutoResourceManagementDetails instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails; @@ -52,7 +52,7 @@ public String getEtag() { * The returned DistributedAutonomousDatabaseAutoResourceManagementDetails instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model + public com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails getDistributedAutonomousDatabaseAutoResourceManagementDetails() { return distributedAutonomousDatabaseAutoResourceManagementDetails; @@ -70,7 +70,7 @@ private ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse( javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails) { super(__httpStatusCode__, headers); @@ -134,7 +134,7 @@ public Builder etag(String etag) { /** * The returned DistributedAutonomousDatabaseAutoResourceManagementDetails instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedAutonomousDatabaseAutoResourceManagementDetails distributedAutonomousDatabaseAutoResourceManagementDetails; @@ -144,7 +144,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 33c08e0601f..8376bd76e77 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 a155839801e..3d7bd29b46c 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 235e62f1ef7..d41419f1c70 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 82a41efbd0b..cb186a026bd 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.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseAutoResourceManagementResponse @@ -44,7 +44,7 @@ public String getEtag() { /** * The returned DistributedDatabaseAutoResourceManagementDetails instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails; @@ -52,8 +52,7 @@ public String getEtag() { * The returned DistributedDatabaseAutoResourceManagementDetails instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails + public com.oracle.bmc.distributeddatabase.model.DistributedDatabaseAutoResourceManagementDetails getDistributedDatabaseAutoResourceManagementDetails() { return distributedDatabaseAutoResourceManagementDetails; } @@ -70,7 +69,7 @@ private ConfigureDistributedDatabaseAutoResourceManagementResponse( javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails) { super(__httpStatusCode__, headers); @@ -134,7 +133,7 @@ public Builder etag(String etag) { /** * The returned DistributedDatabaseAutoResourceManagementDetails instance. */ - private com.oracle.bmc.distributeddatabasev26.model + private com.oracle.bmc.distributeddatabase.model .DistributedDatabaseAutoResourceManagementDetails distributedDatabaseAutoResourceManagementDetails; @@ -144,7 +143,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 43efa547956..8da363d0ac3 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ConfigureDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. 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 0063c701b92..f394fb62c85 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 4421c879821..fec0bae5393 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 f9322f26245..8461fddcef0 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 e7436951d05..243de3ee815 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. 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 988b5c2982d..06f57c8d128 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 fa6f668022a..844a8a64acb 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 b6a29936900..7a0d8ed3d26 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. 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 654d006a679..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,293 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@javax.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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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 - */ - 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 - */ - 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/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 0e60442e6c8..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,182 +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.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 fedcb4344fe..471376ec056 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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/GenerateDistributedDatabaseWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseWalletResponse.java index 5c6f6d616ee..eca2bf4eb1c 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 a91de4e3d2c..21d4b091ca7 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 e1b892ef055..e2d44a7454c 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 2a4d0c5d8b4..438a1d1ebf8 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.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedAutonomousDatabaseRuChangeLogResponse @@ -29,14 +29,14 @@ public String getOpcRequestId() { /** * The returned DistributedAutonomousDatabaseRuChangeLog instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + private com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog distributedAutonomousDatabaseRuChangeLog; /** * The returned DistributedAutonomousDatabaseRuChangeLog instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + public com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog getDistributedAutonomousDatabaseRuChangeLog() { return distributedAutonomousDatabaseRuChangeLog; } @@ -51,7 +51,7 @@ private GetDistributedAutonomousDatabaseRuChangeLogResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog + com.oracle.bmc.distributeddatabase.model.DistributedAutonomousDatabaseRuChangeLog distributedAutonomousDatabaseRuChangeLog) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; @@ -95,7 +95,7 @@ public Builder opcRequestId(String opcRequestId) { /** * The returned 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 76ea6b30c0a..3074b7d28ef 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 e1025567578..2b2772505e2 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 d69f4e1aa72..f8c0e6e6346 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 91% 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 697ced6c04d..3e52dce9541 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.*; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class GetDistributedDatabaseRuChangeLogResponse @@ -29,14 +29,14 @@ public String getOpcRequestId() { /** * The returned DistributedDatabaseRuChangeLog instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + private com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog distributedDatabaseRuChangeLog; /** * The returned DistributedDatabaseRuChangeLog instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + public com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog getDistributedDatabaseRuChangeLog() { return distributedDatabaseRuChangeLog; } @@ -51,7 +51,7 @@ private GetDistributedDatabaseRuChangeLogResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog + com.oracle.bmc.distributeddatabase.model.DistributedDatabaseRuChangeLog distributedDatabaseRuChangeLog) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; @@ -95,7 +95,7 @@ public Builder opcRequestId(String opcRequestId) { /** * The returned 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 e216b75309a..f6753f6fa76 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 39820362c59..50f387e8671 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 c8aaa87df3c..3f796f36e0b 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 7c419b65730..1c599e7ded2 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 bbab1dc9b56..6da22fe4188 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For pagination of a list of items. When paging through a list, if this header appears in the response, 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 8370df3477d..40a6e6ebb2e 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For pagination of a list of items. When paging through a list, if this header appears in the response, 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 f24c762aec3..91d81371801 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 4ee6c5d580e..65930cb4e4a 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 f10576287f1..ef06cd3d4b7 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 6df6bda7dc7..ed4e23710c5 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 af18dad0b86..ad5b1365316 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.*; @javax.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 272912e33d8..2702d68f2b5 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. 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 5a678add54b..132ad2dee60 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 d4f65b60b40..8d1f1f4bf19 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 23946eebf6a..476fbefe04e 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ReinstateProxyInstanceResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. 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 be93c247a94..35eb30c1572 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 6003a6cbe29..68be7c1c953 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 1759df874c0..731d9e66d62 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.*; @javax.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 c35d70008b4..dd315244149 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.*; @javax.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 e8208548bb3..aeae8e501fd 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 4bc049df17f..c5cbe59bed6 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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. 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 17a1bd9069e..9bfac666dd8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 1023ac639f7..dcc988a2b88 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class StopDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. 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 9585fc4e19e..5a15da07ce8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 22682e32c2f..1827c5eaeb0 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 f53770cea80..a2675d91a82 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 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 4e23e6326fe..56847cef09f 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 2d216f4f7df..4cee450f658 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 8389510e6f3..be12bc50503 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") public class ValidateDistributedDatabaseNetworkResponse extends com.oracle.bmc.responses.BmcResponse { /** 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 818549921e0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java +++ /dev/null @@ -1,428 +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. - */ -@javax.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 96d7d56715a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java +++ /dev/null @@ -1,522 +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. - */ -@javax.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 0a87a307805..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java +++ /dev/null @@ -1,1898 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedAutonomousDbServiceAsyncClient - 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); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedAutonomousDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedAutonomousDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedAutonomousDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedAutonomousDbServiceAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedAutonomousDbServiceAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future - addDistributedAutonomousDatabaseGdsControlNode( - AddDistributedAutonomousDatabaseGdsControlNodeRequest request, - final com.oracle.bmc.responses.AsyncHandler< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - handler) { - LOG.trace("Called async addDistributedAutonomousDatabaseGdsControlNode"); - final AddDistributedAutonomousDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "AddDistributedAutonomousDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/AddDistributedAutonomousDatabaseGdsControlNode"); - final java.util.function.Function< - javax.ws.rs.core.Response, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - transformer = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse>, - java.util.concurrent.Future< - AddDistributedAutonomousDatabaseGdsControlNodeResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedAutonomousDatabaseCompartment( - ChangeDistributedAutonomousDatabaseCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - handler) { - LOG.trace("Called async changeDistributedAutonomousDatabaseCompartment"); - final ChangeDistributedAutonomousDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedAutonomousDatabaseCompartmentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDatabaseCompartment"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - transformer = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse>, - java.util.concurrent.Future< - ChangeDistributedAutonomousDatabaseCompartmentResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getChangeDistributedAutonomousDatabaseCompartmentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedAutonomousDbBackupConfig( - ChangeDistributedAutonomousDbBackupConfigRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse> - handler) { - LOG.trace("Called async changeDistributedAutonomousDbBackupConfig"); - final ChangeDistributedAutonomousDbBackupConfigRequest interceptedRequest = - ChangeDistributedAutonomousDbBackupConfigConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDbBackupConfigConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDbBackupConfig"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDbBackupConfigResponse> - transformer = - ChangeDistributedAutonomousDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse>, - java.util.concurrent.Future< - ChangeDistributedAutonomousDbBackupConfigResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getChangeDistributedAutonomousDbBackupConfigDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - configureDistributedAutonomousDatabaseAutoResourceManagement( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseAutoResourceManagement"); - final ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - interceptedRequest = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedAutonomousDatabaseGsmWallet( - ConfigureDistributedAutonomousDatabaseGsmWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseGsmWallet"); - final ConfigureDistributedAutonomousDatabaseGsmWalletRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsmWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsmWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseGsmWalletResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedAutonomousDatabaseGsms( - ConfigureDistributedAutonomousDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseGsms"); - final ConfigureDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseGsmsResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedAutonomousDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedAutonomousDatabaseSharding( - ConfigureDistributedAutonomousDatabaseShardingRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseSharding"); - final ConfigureDistributedAutonomousDatabaseShardingRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseShardingConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseSharding"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseShardingResponse> - transformer = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseShardingResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - createDistributedAutonomousDatabase( - CreateDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async createDistributedAutonomousDatabase"); - final CreateDistributedAutonomousDatabaseRequest interceptedRequest = - CreateDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "CreateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - ""); - final java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedAutonomousDatabaseResponse> - transformer = - CreateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getCreateDistributedAutonomousDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - deleteDistributedAutonomousDatabase( - DeleteDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async deleteDistributedAutonomousDatabase"); - final DeleteDistributedAutonomousDatabaseRequest interceptedRequest = - DeleteDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "DeleteDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/DeleteDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedAutonomousDatabaseResponse> - transformer = - DeleteDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - generateDistributedAutonomousDatabaseWallet( - GenerateDistributedAutonomousDatabaseWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse> - handler) { - LOG.trace("Called async generateDistributedAutonomousDatabaseWallet"); - final GenerateDistributedAutonomousDatabaseWalletRequest interceptedRequest = - GenerateDistributedAutonomousDatabaseWalletConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedAutonomousDatabaseWalletConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedAutonomousDatabaseWalletResponse> - transformer = - GenerateDistributedAutonomousDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse>, - java.util.concurrent.Future< - GenerateDistributedAutonomousDatabaseWalletResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getGenerateDistributedAutonomousDatabaseWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedAutonomousDatabase( - GetDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async getDistributedAutonomousDatabase"); - final GetDistributedAutonomousDatabaseRequest interceptedRequest = - GetDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GetDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseResponse> - transformer = - GetDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedAutonomousDatabaseRaftMetric( - GetDistributedAutonomousDatabaseRaftMetricRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse> - handler) { - LOG.trace("Called async getDistributedAutonomousDatabaseRaftMetric"); - final GetDistributedAutonomousDatabaseRaftMetricRequest interceptedRequest = - GetDistributedAutonomousDatabaseRaftMetricConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRaftMetric"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRaftMetricResponse> - transformer = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse>, - java.util.concurrent.Future< - GetDistributedAutonomousDatabaseRaftMetricResponse>> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedAutonomousDatabaseRuChangeLog( - GetDistributedAutonomousDatabaseRuChangeLogRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - handler) { - LOG.trace("Called async getDistributedAutonomousDatabaseRuChangeLog"); - final GetDistributedAutonomousDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedAutonomousDatabaseRuChangeLogConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - transformer = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse>, - java.util.concurrent.Future< - GetDistributedAutonomousDatabaseRuChangeLogResponse>> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - listDistributedAutonomousDatabases( - ListDistributedAutonomousDatabasesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse> - handler) { - LOG.trace("Called async listDistributedAutonomousDatabases"); - final ListDistributedAutonomousDatabasesRequest interceptedRequest = - ListDistributedAutonomousDatabasesConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedAutonomousDatabasesConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ListDistributedAutonomousDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabaseCollection/ListDistributedAutonomousDatabases"); - final java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedAutonomousDatabasesResponse> - transformer = - ListDistributedAutonomousDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - moveDistributedAutonomousDatabaseReplicationUnit( - MoveDistributedAutonomousDatabaseReplicationUnitRequest request, - final com.oracle.bmc.responses.AsyncHandler< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - handler) { - LOG.trace("Called async moveDistributedAutonomousDatabaseReplicationUnit"); - final MoveDistributedAutonomousDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "MoveDistributedAutonomousDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/MoveDistributedAutonomousDatabaseReplicationUnit"); - final java.util.function.Function< - javax.ws.rs.core.Response, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - transformer = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse>, - java.util.concurrent.Future< - MoveDistributedAutonomousDatabaseReplicationUnitResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - patchDistributedAutonomousDatabase( - PatchDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async patchDistributedAutonomousDatabase"); - final PatchDistributedAutonomousDatabaseRequest interceptedRequest = - PatchDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "PatchDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/PatchDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedAutonomousDatabaseResponse> - transformer = - PatchDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.patchFutureSupplier( - interceptedRequest, - interceptedRequest.getPatchDistributedAutonomousDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - recreateFailedDistributedAutonomousDatabaseResource( - RecreateFailedDistributedAutonomousDatabaseResourceRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - handler) { - LOG.trace("Called async recreateFailedDistributedAutonomousDatabaseResource"); - final RecreateFailedDistributedAutonomousDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RecreateFailedDistributedAutonomousDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RecreateFailedDistributedAutonomousDatabaseResource"); - final java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - transformer = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse>, - java.util.concurrent.Future< - RecreateFailedDistributedAutonomousDatabaseResourceResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - rotateDistributedAutonomousDatabasePasswords( - RotateDistributedAutonomousDatabasePasswordsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse> - handler) { - LOG.trace("Called async rotateDistributedAutonomousDatabasePasswords"); - final RotateDistributedAutonomousDatabasePasswordsRequest interceptedRequest = - RotateDistributedAutonomousDatabasePasswordsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedAutonomousDatabasePasswordsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RotateDistributedAutonomousDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RotateDistributedAutonomousDatabasePasswords"); - final java.util.function.Function< - javax.ws.rs.core.Response, - RotateDistributedAutonomousDatabasePasswordsResponse> - transformer = - RotateDistributedAutonomousDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse>, - java.util.concurrent.Future< - RotateDistributedAutonomousDatabasePasswordsResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getRotateDistributedAutonomousDatabasePasswordsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - scaleDistributedAutonomousDatabaseGsms( - ScaleDistributedAutonomousDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse> - handler) { - LOG.trace("Called async scaleDistributedAutonomousDatabaseGsms"); - final ScaleDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ScaleDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ScaleDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, ScaleDistributedAutonomousDatabaseGsmsResponse> - transformer = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getScaleDistributedAutonomousDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - startDistributedAutonomousDatabase( - StartDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async startDistributedAutonomousDatabase"); - final StartDistributedAutonomousDatabaseRequest interceptedRequest = - StartDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StartDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StartDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StartDistributedAutonomousDatabaseResponse> - transformer = - StartDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - stopDistributedAutonomousDatabase( - StopDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async stopDistributedAutonomousDatabase"); - final StopDistributedAutonomousDatabaseRequest interceptedRequest = - StopDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StopDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StopDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StopDistributedAutonomousDatabaseResponse> - transformer = - StopDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - updateDistributedAutonomousDatabase( - UpdateDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async updateDistributedAutonomousDatabase"); - final UpdateDistributedAutonomousDatabaseRequest interceptedRequest = - UpdateDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "UpdateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/UpdateDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedAutonomousDatabaseResponse> - transformer = - UpdateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.putFutureSupplier( - interceptedRequest, - interceptedRequest.getUpdateDistributedAutonomousDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - validateDistributedAutonomousDatabaseCaBundle( - ValidateDistributedAutonomousDatabaseCaBundleRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - handler) { - LOG.trace("Called async validateDistributedAutonomousDatabaseCaBundle"); - final ValidateDistributedAutonomousDatabaseCaBundleRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseCaBundleConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseCaBundle", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseCaBundle"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - transformer = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse>, - java.util.concurrent.Future< - ValidateDistributedAutonomousDatabaseCaBundleResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - validateDistributedAutonomousDatabaseNetwork( - ValidateDistributedAutonomousDatabaseNetworkRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse> - handler) { - LOG.trace("Called async validateDistributedAutonomousDatabaseNetwork"); - final ValidateDistributedAutonomousDatabaseNetworkRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseNetworkConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseNetwork"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseNetworkResponse> - transformer = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse>, - java.util.concurrent.Future< - ValidateDistributedAutonomousDatabaseNetworkResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} 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 43cae12aab4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java +++ /dev/null @@ -1,1656 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedAutonomousDbServiceClient 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(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbServiceClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final DistributedAutonomousDbServiceWaiters waiters; - - private final DistributedAutonomousDbServicePaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedAutonomousDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedAutonomousDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedAutonomousDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - 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 (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 java.util.concurrent.ExecutorService executorService; - - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedAutonomousDbServiceClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedAutonomousDbServiceClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public AddDistributedAutonomousDatabaseGdsControlNodeResponse - addDistributedAutonomousDatabaseGdsControlNode( - AddDistributedAutonomousDatabaseGdsControlNodeRequest request) { - LOG.trace("Called addDistributedAutonomousDatabaseGdsControlNode"); - final AddDistributedAutonomousDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "AddDistributedAutonomousDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/AddDistributedAutonomousDatabaseGdsControlNode"); - java.util.function.Function< - javax.ws.rs.core.Response, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - transformer = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedAutonomousDatabaseCompartmentResponse - changeDistributedAutonomousDatabaseCompartment( - ChangeDistributedAutonomousDatabaseCompartmentRequest request) { - LOG.trace("Called changeDistributedAutonomousDatabaseCompartment"); - final ChangeDistributedAutonomousDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedAutonomousDatabaseCompartmentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDatabaseCompartment"); - java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - transformer = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedAutonomousDatabaseCompartmentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedAutonomousDbBackupConfigResponse - changeDistributedAutonomousDbBackupConfig( - ChangeDistributedAutonomousDbBackupConfigRequest request) { - LOG.trace("Called changeDistributedAutonomousDbBackupConfig"); - final ChangeDistributedAutonomousDbBackupConfigRequest interceptedRequest = - ChangeDistributedAutonomousDbBackupConfigConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDbBackupConfigConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDbBackupConfig"); - java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDbBackupConfigResponse> - transformer = - ChangeDistributedAutonomousDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedAutonomousDbBackupConfigDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - configureDistributedAutonomousDatabaseAutoResourceManagement( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseAutoResourceManagement"); - final ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - interceptedRequest = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseGsmWalletResponse - configureDistributedAutonomousDatabaseGsmWallet( - ConfigureDistributedAutonomousDatabaseGsmWalletRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseGsmWallet"); - final ConfigureDistributedAutonomousDatabaseGsmWalletRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsmWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsmWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseGsmsResponse - configureDistributedAutonomousDatabaseGsms( - ConfigureDistributedAutonomousDatabaseGsmsRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseGsms"); - final ConfigureDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsms"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedAutonomousDatabaseGsmsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseShardingResponse - configureDistributedAutonomousDatabaseSharding( - ConfigureDistributedAutonomousDatabaseShardingRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseSharding"); - final ConfigureDistributedAutonomousDatabaseShardingRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseShardingConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseSharding"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseShardingResponse> - transformer = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public CreateDistributedAutonomousDatabaseResponse createDistributedAutonomousDatabase( - CreateDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called createDistributedAutonomousDatabase"); - final CreateDistributedAutonomousDatabaseRequest interceptedRequest = - CreateDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "CreateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - ""); - java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedAutonomousDatabaseResponse> - transformer = - CreateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getCreateDistributedAutonomousDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDatabase( - DeleteDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called deleteDistributedAutonomousDatabase"); - final DeleteDistributedAutonomousDatabaseRequest interceptedRequest = - DeleteDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "DeleteDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/DeleteDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedAutonomousDatabaseResponse> - transformer = - DeleteDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GenerateDistributedAutonomousDatabaseWalletResponse - generateDistributedAutonomousDatabaseWallet( - GenerateDistributedAutonomousDatabaseWalletRequest request) { - LOG.trace("Called generateDistributedAutonomousDatabaseWallet"); - final GenerateDistributedAutonomousDatabaseWalletRequest interceptedRequest = - GenerateDistributedAutonomousDatabaseWalletConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedAutonomousDatabaseWalletConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedAutonomousDatabaseWalletResponse> - transformer = - GenerateDistributedAutonomousDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getGenerateDistributedAutonomousDatabaseWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase( - GetDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called getDistributedAutonomousDatabase"); - final GetDistributedAutonomousDatabaseRequest interceptedRequest = - GetDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GetDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseResponse> - transformer = - GetDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedAutonomousDatabaseRaftMetricResponse - getDistributedAutonomousDatabaseRaftMetric( - GetDistributedAutonomousDatabaseRaftMetricRequest request) { - LOG.trace("Called getDistributedAutonomousDatabaseRaftMetric"); - final GetDistributedAutonomousDatabaseRaftMetricRequest interceptedRequest = - GetDistributedAutonomousDatabaseRaftMetricConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRaftMetric"); - java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRaftMetricResponse> - transformer = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedAutonomousDatabaseRuChangeLogResponse - getDistributedAutonomousDatabaseRuChangeLog( - GetDistributedAutonomousDatabaseRuChangeLogRequest request) { - LOG.trace("Called getDistributedAutonomousDatabaseRuChangeLog"); - final GetDistributedAutonomousDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedAutonomousDatabaseRuChangeLogConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog"); - java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - transformer = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatabases( - ListDistributedAutonomousDatabasesRequest request) { - LOG.trace("Called listDistributedAutonomousDatabases"); - final ListDistributedAutonomousDatabasesRequest interceptedRequest = - ListDistributedAutonomousDatabasesConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedAutonomousDatabasesConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ListDistributedAutonomousDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabaseCollection/ListDistributedAutonomousDatabases"); - java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedAutonomousDatabasesResponse> - transformer = - ListDistributedAutonomousDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public MoveDistributedAutonomousDatabaseReplicationUnitResponse - moveDistributedAutonomousDatabaseReplicationUnit( - MoveDistributedAutonomousDatabaseReplicationUnitRequest request) { - LOG.trace("Called moveDistributedAutonomousDatabaseReplicationUnit"); - final MoveDistributedAutonomousDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "MoveDistributedAutonomousDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/MoveDistributedAutonomousDatabaseReplicationUnit"); - java.util.function.Function< - javax.ws.rs.core.Response, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - transformer = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousDatabase( - PatchDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called patchDistributedAutonomousDatabase"); - final PatchDistributedAutonomousDatabaseRequest interceptedRequest = - PatchDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "PatchDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/PatchDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedAutonomousDatabaseResponse> - transformer = - PatchDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.patch( - ib, - retriedRequest - .getPatchDistributedAutonomousDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RecreateFailedDistributedAutonomousDatabaseResourceResponse - recreateFailedDistributedAutonomousDatabaseResource( - RecreateFailedDistributedAutonomousDatabaseResourceRequest request) { - LOG.trace("Called recreateFailedDistributedAutonomousDatabaseResource"); - final RecreateFailedDistributedAutonomousDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.interceptRequest( - request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RecreateFailedDistributedAutonomousDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RecreateFailedDistributedAutonomousDatabaseResource"); - java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - transformer = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RotateDistributedAutonomousDatabasePasswordsResponse - rotateDistributedAutonomousDatabasePasswords( - RotateDistributedAutonomousDatabasePasswordsRequest request) { - LOG.trace("Called rotateDistributedAutonomousDatabasePasswords"); - final RotateDistributedAutonomousDatabasePasswordsRequest interceptedRequest = - RotateDistributedAutonomousDatabasePasswordsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedAutonomousDatabasePasswordsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RotateDistributedAutonomousDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RotateDistributedAutonomousDatabasePasswords"); - java.util.function.Function< - javax.ws.rs.core.Response, - RotateDistributedAutonomousDatabasePasswordsResponse> - transformer = - RotateDistributedAutonomousDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getRotateDistributedAutonomousDatabasePasswordsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ScaleDistributedAutonomousDatabaseGsmsResponse scaleDistributedAutonomousDatabaseGsms( - ScaleDistributedAutonomousDatabaseGsmsRequest request) { - LOG.trace("Called scaleDistributedAutonomousDatabaseGsms"); - final ScaleDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ScaleDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ScaleDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms"); - java.util.function.Function< - javax.ws.rs.core.Response, ScaleDistributedAutonomousDatabaseGsmsResponse> - transformer = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getScaleDistributedAutonomousDatabaseGsmsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StartDistributedAutonomousDatabaseResponse startDistributedAutonomousDatabase( - StartDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called startDistributedAutonomousDatabase"); - final StartDistributedAutonomousDatabaseRequest interceptedRequest = - StartDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StartDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StartDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, StartDistributedAutonomousDatabaseResponse> - transformer = - StartDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StopDistributedAutonomousDatabaseResponse stopDistributedAutonomousDatabase( - StopDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called stopDistributedAutonomousDatabase"); - final StopDistributedAutonomousDatabaseRequest interceptedRequest = - StopDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StopDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StopDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, StopDistributedAutonomousDatabaseResponse> - transformer = - StopDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDatabase( - UpdateDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called updateDistributedAutonomousDatabase"); - final UpdateDistributedAutonomousDatabaseRequest interceptedRequest = - UpdateDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "UpdateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/UpdateDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedAutonomousDatabaseResponse> - transformer = - UpdateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest - .getUpdateDistributedAutonomousDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ValidateDistributedAutonomousDatabaseCaBundleResponse - validateDistributedAutonomousDatabaseCaBundle( - ValidateDistributedAutonomousDatabaseCaBundleRequest request) { - LOG.trace("Called validateDistributedAutonomousDatabaseCaBundle"); - final ValidateDistributedAutonomousDatabaseCaBundleRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseCaBundleConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseCaBundle", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseCaBundle"); - java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - transformer = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ValidateDistributedAutonomousDatabaseNetworkResponse - validateDistributedAutonomousDatabaseNetwork( - ValidateDistributedAutonomousDatabaseNetworkRequest request) { - LOG.trace("Called validateDistributedAutonomousDatabaseNetwork"); - final ValidateDistributedAutonomousDatabaseNetworkRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseNetworkConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseNetwork"); - java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseNetworkResponse> - transformer = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DistributedAutonomousDbServiceWaiters getWaiters() { - return waiters; - } - - @Override - public DistributedAutonomousDbServicePaginators getPaginators() { - return paginators; - } -} 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 c1ce590437e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.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; - -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. - */ -@javax.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/DistributedDbPrivateEndpointServicePaginators.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java deleted file mode 100644 index 8c67f1940ed..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java +++ /dev/null @@ -1,172 +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. - */ -@javax.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 4a2c83b7ab4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceWaiters.java +++ /dev/null @@ -1,154 +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}. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbPrivateEndpointServiceWaiters { - private final java.util.concurrent.ExecutorService executorService; - private final DistributedDbPrivateEndpointService client; - - public DistributedDbPrivateEndpointServiceWaiters( - java.util.concurrent.ExecutorService executorService, - DistributedDbPrivateEndpointService client) { - this.executorService = executorService; - this.client = client; - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. - * - * @param request the request to send - * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states - * @return a new {@code Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState... - targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); - - return forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param targetState the desired state to wait for - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState - targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { - com.oracle.bmc.util.internal.Validate.notNull( - targetState, "The targetState cannot be null"); - - return forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetState); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState... - targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one target state must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null target states are not permitted"); - - return forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for DistributedDatabasePrivateEndpoint. - private com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint.LifecycleState... - targetStates) { - final java.util.Set< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint.LifecycleState> - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); - - return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( - executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse>() { - @Override - public GetDistributedDatabasePrivateEndpointResponse apply( - GetDistributedDatabasePrivateEndpointRequest request) { - return client.getDistributedDatabasePrivateEndpoint(request); - } - }, - new java.util.function.Predicate< - GetDistributedDatabasePrivateEndpointResponse>() { - @Override - public boolean test( - GetDistributedDatabasePrivateEndpointResponse response) { - return targetStatesSet.contains( - response.getDistributedDatabasePrivateEndpoint() - .getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint.LifecycleState - .Deleted)), - request); - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java deleted file mode 100644 index 60ffbc81400..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java +++ /dev/null @@ -1,389 +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. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbService extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

- * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Add new Global database services control(GDS CTL) node for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use AddDistributedDatabaseGdsControlNode API. - */ - AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request); - - /** - * Move the Globally distributed database and its dependent resources to the specified compartment. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ChangeDistributedDatabaseCompartment API. - */ - ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCompartment( - ChangeDistributedDatabaseCompartmentRequest request); - - /** - * Change the DbBackupConfig for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ChangeDistributedDbBackupConfig API. - */ - ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( - ChangeDistributedDbBackupConfigRequest request); - - /** - * Configure autoResourceManagement options for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ConfigureDistributedDatabaseAutoResourceManagement API. - */ - ConfigureDistributedDatabaseAutoResourceManagementResponse - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request); - - /** - * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ConfigureDistributedDatabaseGsms API. - */ - ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request); - - /** - * Once all components of Globally distributed database are provisioned, and signed GSM certificates are successfully uploaded, this - * api shall be invoked to configure sharding on the Globally distributed database. Note that this 'ConfigureSharding' API also needs to be - * invoked after successfully adding a new shard to the Globally distributed database using PATCH api. If this API is not - * invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of - * the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ConfigureDistributedDatabaseSharding API. - */ - ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request); - - /** - * Creates a Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use CreateDistributedDatabase API. - */ - CreateDistributedDatabaseResponse createDistributedDatabase( - CreateDistributedDatabaseRequest request); - - /** - * Terminate the given Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use DeleteDistributedDatabase API. - */ - DeleteDistributedDatabaseResponse deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request); - - /** - * Generate the wallet associated with Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GenerateDistributedDatabaseWallet API. - */ - GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request); - - /** - * Gets the details of the Globally distributed database identified by given id. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetDistributedDatabase API. - */ - GetDistributedDatabaseResponse getDistributedDatabase(GetDistributedDatabaseRequest request); - - /** - * Operation to retrieve RAFT metrics for the Globally distributed database. If the Globally distributed database is not - * RAFT based then empty response is returned from the API. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetDistributedDatabaseRaftMetric API. - */ - GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request); - - /** - * Operation to retrieve move RU invocation history and status for the Globally distributed database. - * Results are ordered by created timestamp in descending order. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetDistributedDatabaseRuChangeLog API. - */ - GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request); - - /** - * List of Globally distributed databases. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ListDistributedDatabases API. - */ - ListDistributedDatabasesResponse listDistributedDatabases( - ListDistributedDatabasesRequest request); - - /** - * Move the replication units for RAFT based globally distributed database from source shard to destination shard. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use MoveDistributedDatabaseReplicationUnit API. - */ - MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request); - - /** - * Patch operation to add, remove or update shards to the Globally distributed database topology. In single patch - * operation, multiple shards can be either added, or removed or updated. Combination of inserts, update - * and remove in single operation is not allowed. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use PatchDistributedDatabase API. - */ - PatchDistributedDatabaseResponse patchDistributedDatabase( - PatchDistributedDatabaseRequest request); - - /** - * Recreate the failed resource for the Globally Distributed Database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use RecreateFailedDistributedDatabaseResource API. - */ - RecreateFailedDistributedDatabaseResourceResponse recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request); - - /** - * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally distributed database. This operation will also remove GdsCtlNodes if present. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use RotateDistributedDatabasePasswords API. - */ - RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request); - - /** - * Scale global service manager(GSM aka shard manager) instances for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ScaleDistributedDatabaseGsms API. - */ - ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request); - - /** - * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed database. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use StartDistributedDatabase API. - */ - StartDistributedDatabaseResponse startDistributedDatabase( - StartDistributedDatabaseRequest request); - - /** - * Stop the shards, catalog, GSMs and GDSCTL instances for the Globally distributed database. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use StopDistributedDatabase API. - */ - StopDistributedDatabaseResponse stopDistributedDatabase(StopDistributedDatabaseRequest request); - - /** - * Updates the configuration of the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use UpdateDistributedDatabase API. - */ - UpdateDistributedDatabaseResponse updateDistributedDatabase( - UpdateDistributedDatabaseRequest request); - - /** - * Validate the network connectivity between components of the globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ValidateDistributedDatabaseNetwork API. - */ - ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( - ValidateDistributedDatabaseNetworkRequest request); - - /** - * Gets the pre-configured waiters available for resources for this service. - * - * @return The service waiters. - */ - DistributedDbServiceWaiters getWaiters(); - - /** - * Gets the pre-configured paginators available for list operations in this service which may return multiple - * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or - * resources/records, can be iterated through without having to manually deal with pagination and page tokens. - * - * @return The service paginators. - */ - DistributedDbServicePaginators getPaginators(); -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java deleted file mode 100644 index b2e55ac0f53..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java +++ /dev/null @@ -1,466 +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. - */ -@javax.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 8d9ff79a970..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java +++ /dev/null @@ -1,1694 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServiceAsyncClient 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); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

- * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedDbServiceAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbServiceAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future - addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request, - final com.oracle.bmc.responses.AsyncHandler< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse> - handler) { - LOG.trace("Called async addDistributedDatabaseGdsControlNode"); - final AddDistributedDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedDatabaseGdsControlNodeConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "AddDistributedDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/AddDistributedDatabaseGdsControlNode"); - final java.util.function.Function< - javax.ws.rs.core.Response, AddDistributedDatabaseGdsControlNodeResponse> - transformer = - AddDistributedDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getAddDistributedDatabaseGdsControlNodeDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedDatabaseCompartment( - ChangeDistributedDatabaseCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse> - handler) { - LOG.trace("Called async changeDistributedDatabaseCompartment"); - final ChangeDistributedDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedDatabaseCompartmentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDatabaseCompartment"); - final java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDatabaseCompartmentResponse> - transformer = - ChangeDistributedDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getChangeDistributedDatabaseCompartmentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedDbBackupConfig( - ChangeDistributedDbBackupConfigRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse> - handler) { - LOG.trace("Called async changeDistributedDbBackupConfig"); - final ChangeDistributedDbBackupConfigRequest interceptedRequest = - ChangeDistributedDbBackupConfigConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDbBackupConfigConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDbBackupConfig"); - final java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDbBackupConfigResponse> - transformer = - ChangeDistributedDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getChangeDistributedDbBackupConfigDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - handler) { - LOG.trace("Called async configureDistributedDatabaseAutoResourceManagement"); - final ConfigureDistributedDatabaseAutoResourceManagementRequest interceptedRequest = - ConfigureDistributedDatabaseAutoResourceManagementConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse>, - java.util.concurrent.Future< - ConfigureDistributedDatabaseAutoResourceManagementResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedDatabaseAutoResourceManagementDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse> - handler) { - LOG.trace("Called async configureDistributedDatabaseGsms"); - final ConfigureDistributedDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseGsmsResponse> - transformer = - ConfigureDistributedDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getConfigureDistributedDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse> - handler) { - LOG.trace("Called async configureDistributedDatabaseSharding"); - final ConfigureDistributedDatabaseShardingRequest interceptedRequest = - ConfigureDistributedDatabaseShardingConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseSharding"); - final java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseShardingResponse> - transformer = - ConfigureDistributedDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future createDistributedDatabase( - CreateDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse> - handler) { - LOG.trace("Called async createDistributedDatabase"); - final CreateDistributedDatabaseRequest interceptedRequest = - CreateDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "CreateDistributedDatabase", - ib.getRequestUri().toString(), - ""); - final java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedDatabaseResponse> - transformer = - CreateDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabaseRequest, - CreateDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getCreateDistributedDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> - handler) { - LOG.trace("Called async deleteDistributedDatabase"); - final DeleteDistributedDatabaseRequest interceptedRequest = - DeleteDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "DeleteDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/DeleteDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedDatabaseResponse> - transformer = - DeleteDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabaseRequest, - DeleteDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse> - handler) { - LOG.trace("Called async generateDistributedDatabaseWallet"); - final GenerateDistributedDatabaseWalletRequest interceptedRequest = - GenerateDistributedDatabaseWalletConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedDatabaseWalletConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GenerateDistributedDatabaseWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, GenerateDistributedDatabaseWalletResponse> - transformer = - GenerateDistributedDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getGenerateDistributedDatabaseWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future getDistributedDatabase( - GetDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - handler) { - LOG.trace("Called async getDistributedDatabase"); - final GetDistributedDatabaseRequest interceptedRequest = - GetDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabase"); - final java.util.function.Function - transformer = - GetDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse> - handler) { - LOG.trace("Called async getDistributedDatabaseRaftMetric"); - final GetDistributedDatabaseRaftMetricRequest interceptedRequest = - GetDistributedDatabaseRaftMetricConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRaftMetricConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRaftMetric"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRaftMetricResponse> - transformer = - GetDistributedDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse> - handler) { - LOG.trace("Called async getDistributedDatabaseRuChangeLog"); - final GetDistributedDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedDatabaseRuChangeLogConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRuChangeLogConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRuChangeLogResponse> - transformer = - GetDistributedDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future listDistributedDatabases( - ListDistributedDatabasesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse> - handler) { - LOG.trace("Called async listDistributedDatabases"); - final ListDistributedDatabasesRequest interceptedRequest = - ListDistributedDatabasesConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasesConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ListDistributedDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabaseCollection/ListDistributedDatabases"); - final java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedDatabasesResponse> - transformer = - ListDistributedDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request, - final com.oracle.bmc.responses.AsyncHandler< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse> - handler) { - LOG.trace("Called async moveDistributedDatabaseReplicationUnit"); - final MoveDistributedDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedDatabaseReplicationUnitConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "MoveDistributedDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/MoveDistributedDatabaseReplicationUnit"); - final java.util.function.Function< - javax.ws.rs.core.Response, MoveDistributedDatabaseReplicationUnitResponse> - transformer = - MoveDistributedDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getMoveDistributedDatabaseReplicationUnitDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future patchDistributedDatabase( - PatchDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse> - handler) { - LOG.trace("Called async patchDistributedDatabase"); - final PatchDistributedDatabaseRequest interceptedRequest = - PatchDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "PatchDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/PatchDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedDatabaseResponse> - transformer = - PatchDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.patchFutureSupplier( - interceptedRequest, - interceptedRequest.getPatchDistributedDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse> - handler) { - LOG.trace("Called async recreateFailedDistributedDatabaseResource"); - final RecreateFailedDistributedDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedDatabaseResourceConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RecreateFailedDistributedDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RecreateFailedDistributedDatabaseResource"); - final java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedDatabaseResourceResponse> - transformer = - RecreateFailedDistributedDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse>, - java.util.concurrent.Future< - RecreateFailedDistributedDatabaseResourceResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse> - handler) { - LOG.trace("Called async rotateDistributedDatabasePasswords"); - final RotateDistributedDatabasePasswordsRequest interceptedRequest = - RotateDistributedDatabasePasswordsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedDatabasePasswordsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RotateDistributedDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RotateDistributedDatabasePasswords"); - final java.util.function.Function< - javax.ws.rs.core.Response, RotateDistributedDatabasePasswordsResponse> - transformer = - RotateDistributedDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getRotateDistributedDatabasePasswordsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedDatabaseGsmsRequest, - ScaleDistributedDatabaseGsmsResponse> - handler) { - LOG.trace("Called async scaleDistributedDatabaseGsms"); - final ScaleDistributedDatabaseGsmsRequest interceptedRequest = - ScaleDistributedDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ScaleDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, ScaleDistributedDatabaseGsmsResponse> - transformer = - ScaleDistributedDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedDatabaseGsmsRequest, ScaleDistributedDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedDatabaseGsmsRequest, - ScaleDistributedDatabaseGsmsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getScaleDistributedDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ScaleDistributedDatabaseGsmsRequest, ScaleDistributedDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future startDistributedDatabase( - StartDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> - handler) { - LOG.trace("Called async startDistributedDatabase"); - final StartDistributedDatabaseRequest interceptedRequest = - StartDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StartDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StartDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StartDistributedDatabaseResponse> - transformer = - StartDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future stopDistributedDatabase( - StopDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> - handler) { - LOG.trace("Called async stopDistributedDatabase"); - final StopDistributedDatabaseRequest interceptedRequest = - StopDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StopDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StopDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StopDistributedDatabaseResponse> - transformer = - StopDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future updateDistributedDatabase( - UpdateDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> - handler) { - LOG.trace("Called async updateDistributedDatabase"); - final UpdateDistributedDatabaseRequest interceptedRequest = - UpdateDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "UpdateDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/UpdateDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedDatabaseResponse> - transformer = - UpdateDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, - UpdateDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.putFutureSupplier( - interceptedRequest, - interceptedRequest.getUpdateDistributedDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - validateDistributedDatabaseNetwork( - ValidateDistributedDatabaseNetworkRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse> - handler) { - LOG.trace("Called async validateDistributedDatabaseNetwork"); - final ValidateDistributedDatabaseNetworkRequest interceptedRequest = - ValidateDistributedDatabaseNetworkConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedDatabaseNetworkConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ValidateDistributedDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ValidateDistributedDatabaseNetwork"); - final java.util.function.Function< - javax.ws.rs.core.Response, ValidateDistributedDatabaseNetworkResponse> - transformer = - ValidateDistributedDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java deleted file mode 100644 index d8d4422f585..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java +++ /dev/null @@ -1,20 +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.SdkClients; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@SdkClients({ - DistributedAutonomousDbServiceAsyncClient.class, - DistributedAutonomousDbServiceClient.class, - DistributedDbPrivateEndpointServiceAsyncClient.class, - DistributedDbPrivateEndpointServiceClient.class, - DistributedDbServiceAsyncClient.class, - DistributedDbServiceClient.class, - DistributedDbWorkRequestServiceAsyncClient.class, - DistributedDbWorkRequestServiceClient.class -}) -public final class SdkClientsMetadata {} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java deleted file mode 100644 index 6a009de041a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedAutonomousDatabaseGdsControlNodeConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - AddDistributedAutonomousDatabaseGdsControlNodeConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedAutonomousDatabaseGdsControlNodeRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedAutonomousDatabaseGdsControlNodeRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedAutonomousDatabaseGdsControlNodeRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), - "addDistributedAutonomousDatabaseGdsControlNodeDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("addGdsControlNode"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.AddDistributedAutonomousDatabaseGdsControlNodeResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java deleted file mode 100644 index 9b69c8bb284..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java +++ /dev/null @@ -1,163 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(AddDistributedDatabaseGdsControlNodeConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedDatabaseGdsControlNodeRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedDatabaseGdsControlNodeRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedDatabaseGdsControlNodeRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getAddDistributedDatabaseGdsControlNodeDetails(), - "addDistributedDatabaseGdsControlNodeDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("addGdsControlNode"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.AddDistributedDatabaseGdsControlNodeResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java deleted file mode 100644 index ab09a366bd5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDatabaseCompartmentConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ChangeDistributedAutonomousDatabaseCompartmentConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDatabaseCompartmentRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDatabaseCompartmentRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDatabaseCompartmentRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getChangeDistributedAutonomousDatabaseCompartmentDetails(), - "changeDistributedAutonomousDatabaseCompartmentDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("changeCompartment"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedAutonomousDatabaseCompartmentResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java deleted file mode 100644 index 806a7b23eaf..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDbBackupConfigConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ChangeDistributedAutonomousDbBackupConfigConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDbBackupConfigRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDbBackupConfigRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDbBackupConfigRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getChangeDistributedAutonomousDbBackupConfigDetails(), - "changeDistributedAutonomousDbBackupConfigDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("changeDbBackupConfig"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedAutonomousDbBackupConfigResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java deleted file mode 100644 index 4dc2da85fc1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDatabasePrivateEndpointCompartmentConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabasePrivateEndpointCompartmentRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabasePrivateEndpointCompartmentRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabasePrivateEndpointCompartmentRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), - "changeDistributedDatabasePrivateEndpointCompartmentDetails is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())) - .path("actions") - .path("changeCompartment"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedDatabasePrivateEndpointCompartmentResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java deleted file mode 100644 index 51c36f83c22..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java +++ /dev/null @@ -1,161 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ChangeDistributedDbBackupConfigConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDbBackupConfigRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDbBackupConfigRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ChangeDistributedDbBackupConfigRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getChangeDistributedDbBackupConfigDetails(), - "changeDistributedDbBackupConfigDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("changeDbBackupConfig"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedDbBackupConfigResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java deleted file mode 100644 index 7a2a6e38a27..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseGsmWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), - "configureDistributedAutonomousDatabaseGsmWalletDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureGsmWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseGsmWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java deleted file mode 100644 index 80b489d4f74..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseGsmsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseGsmsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getConfigureDistributedAutonomousDatabaseGsmsDetails(), - "configureDistributedAutonomousDatabaseGsmsDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureGsms"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseGsmsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java deleted file mode 100644 index da80c23e017..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseShardingConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseShardingConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseShardingRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseShardingRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseShardingRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureSharding"); - - if (request.getIsRebalanceRequired() != null) { - target = - target.queryParam( - "isRebalanceRequired", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsRebalanceRequired())); - } - - if (request.getCertificateId() != null) { - target = - target.queryParam( - "certificateId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCertificateId())); - } - - if (request.getCaBundleId() != null) { - target = - target.queryParam( - "caBundleId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCaBundleId())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseShardingResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java deleted file mode 100644 index 940b186c1c5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java +++ /dev/null @@ -1,161 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseGsmsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ConfigureDistributedDatabaseGsmsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseGsmsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseGsmsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ConfigureDistributedDatabaseGsmsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getConfigureDistributedDatabaseGsmsDetails(), - "configureDistributedDatabaseGsmsDetails is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("configureGsms"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedDatabaseGsmsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java deleted file mode 100644 index d11b14b4b65..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseShardingConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ConfigureDistributedDatabaseShardingConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseShardingRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseShardingRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseShardingRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("configureSharding"); - - if (request.getIsRebalanceRequired() != null) { - target = - target.queryParam( - "isRebalanceRequired", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsRebalanceRequired())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedDatabaseShardingResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 6289c0492f4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DeleteDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.DeleteDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java deleted file mode 100644 index 59eddc9ed13..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabasePrivateEndpointConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - DeleteDistributedDatabasePrivateEndpointConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedDatabasePrivateEndpointRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedDatabasePrivateEndpointRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.DeleteDistributedDatabasePrivateEndpointResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java deleted file mode 100644 index 5ed6b8cbc62..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java +++ /dev/null @@ -1,189 +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.internal.http; - -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedAutonomousDatabaseWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GenerateDistributedAutonomousDatabaseWalletConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedAutonomousDatabaseWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedAutonomousDatabaseWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedAutonomousDatabaseWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getGenerateDistributedAutonomousDatabaseWalletDetails(), - "generateDistributedAutonomousDatabaseWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("generateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GenerateDistributedAutonomousDatabaseWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java deleted file mode 100644 index 5dbbf2e6aa5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedAutonomousDatabaseReplicationUnitConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - MoveDistributedAutonomousDatabaseReplicationUnitConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedAutonomousDatabaseReplicationUnitRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedAutonomousDatabaseReplicationUnitRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedAutonomousDatabaseReplicationUnitRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), - "moveDistributedAutonomousDatabaseReplicationUnitDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("moveReplicationUnit"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.MoveDistributedAutonomousDatabaseReplicationUnitResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java deleted file mode 100644 index 7883724abee..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java +++ /dev/null @@ -1,164 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedDatabaseReplicationUnitConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - MoveDistributedDatabaseReplicationUnitConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedDatabaseReplicationUnitRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedDatabaseReplicationUnitRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedDatabaseReplicationUnitRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getMoveDistributedDatabaseReplicationUnitDetails(), - "moveDistributedDatabaseReplicationUnitDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("moveReplicationUnit"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.MoveDistributedDatabaseReplicationUnitResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 72123768714..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(PatchDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getPatchDistributedAutonomousDatabaseDetails(), - "patchDistributedAutonomousDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.PatchDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java deleted file mode 100644 index 765d198e482..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java +++ /dev/null @@ -1,156 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(PatchDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getPatchDistributedDatabaseDetails(), - "patchDistributedDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.PatchDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java deleted file mode 100644 index 5cefd732950..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RecreateFailedDistributedAutonomousDatabaseResourceConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - RecreateFailedDistributedAutonomousDatabaseResourceConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedAutonomousDatabaseResourceRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedAutonomousDatabaseResourceRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedAutonomousDatabaseResourceRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull(request.getResourceName(), "resourceName is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("recreateFailedResource"); - - target = - target.queryParam( - "resourceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceName())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RecreateFailedDistributedAutonomousDatabaseResourceResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java deleted file mode 100644 index cede2d35ffa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RecreateFailedDistributedDatabaseResourceConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - RecreateFailedDistributedDatabaseResourceConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedDatabaseResourceRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedDatabaseResourceRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedDatabaseResourceRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull(request.getResourceName(), "resourceName is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("recreateFailedResource"); - - target = - target.queryParam( - "resourceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceName())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RecreateFailedDistributedDatabaseResourceResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java deleted file mode 100644 index 14027af0d50..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RotateDistributedAutonomousDatabasePasswordsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - RotateDistributedAutonomousDatabasePasswordsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedAutonomousDatabasePasswordsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedAutonomousDatabasePasswordsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedAutonomousDatabasePasswordsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getRotateDistributedAutonomousDatabasePasswordsDetails(), - "rotateDistributedAutonomousDatabasePasswordsDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("rotateDbPasswords"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RotateDistributedAutonomousDatabasePasswordsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java deleted file mode 100644 index eb5623127e6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java +++ /dev/null @@ -1,161 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RotateDistributedDatabasePasswordsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(RotateDistributedDatabasePasswordsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedDatabasePasswordsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedDatabasePasswordsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.RotateDistributedDatabasePasswordsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getRotateDistributedDatabasePasswordsDetails(), - "rotateDistributedDatabasePasswordsDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("rotateDbPasswords"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RotateDistributedDatabasePasswordsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index c48eedbceec..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java +++ /dev/null @@ -1,159 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StartDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .StartDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .StartDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StartDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("startDatabase"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StartDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 435bb8ea6c8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java +++ /dev/null @@ -1,159 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StopDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .StopDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .StopDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StopDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("stopDatabase"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StopDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java deleted file mode 100644 index 5c60b08e56a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java +++ /dev/null @@ -1,162 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseCaBundleConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ValidateDistributedAutonomousDatabaseCaBundleConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseCaBundleRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseCaBundleRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseCaBundleRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("validateCaBundle"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ValidateDistributedAutonomousDatabaseCaBundleResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java deleted file mode 100644 index 1e43eca8b71..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java +++ /dev/null @@ -1,170 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseNetworkConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ValidateDistributedAutonomousDatabaseNetworkConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseNetworkRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseNetworkRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseNetworkRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("validateNetwork"); - - if (request.getIsSurrogate() != null) { - target = - target.queryParam( - "isSurrogate", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsSurrogate())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ValidateDistributedAutonomousDatabaseNetworkResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java deleted file mode 100644 index ab51065f979..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java +++ /dev/null @@ -1,166 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedDatabaseNetworkConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ValidateDistributedDatabaseNetworkConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedDatabaseNetworkRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedDatabaseNetworkRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ValidateDistributedDatabaseNetworkRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("validateNetwork"); - - if (request.getIsSurrogate() != null) { - target = - target.queryParam( - "isSurrogate", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsSurrogate())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ValidateDistributedDatabaseNetworkResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} 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 bd6e3e4eaae..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class AddDistributedAutonomousDatabaseGdsControlNodeDetails - extends com.oracle.bmc.http.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 c0aa7bb7c51..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java +++ /dev/null @@ -1,177 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class AddDistributedDatabaseGdsControlNodeDetails - extends com.oracle.bmc.http.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 31b37a95b5d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java +++ /dev/null @@ -1,127 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedAutonomousDbBackupConfigDetails - extends com.oracle.bmc.http.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/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java deleted file mode 100644 index 70111b57fc4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedAutonomousDatabaseGsmWalletDetails - extends com.oracle.bmc.http.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 f1f255aeb90..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedAutonomousDatabaseGsmsDetails - extends com.oracle.bmc.http.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 ddd2ffe06f5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java +++ /dev/null @@ -1,187 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedDatabaseGsmsDetails - extends com.oracle.bmc.http.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 8932f4f90ac..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java +++ /dev/null @@ -1,732 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] 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; - 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 6b9f76731e4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,1257 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedAutonomousDatabaseDetails - extends com.oracle.bmc.http.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 { - 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 2a4ed8ad9b9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java +++ /dev/null @@ -1,775 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] 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; - 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 c586ee580c7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogDetails - extends com.oracle.bmc.http.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 3ee990b1db4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,505 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - 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 70e1e39141d..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseDetails - extends com.oracle.bmc.http.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 91e90d0c2eb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,505 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - 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 a35943b31ae..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java +++ /dev/null @@ -1,366 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DbStorageVaultDetails - extends com.oracle.bmc.http.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 889b5350b37..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java +++ /dev/null @@ -1,2013 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabase - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 { - 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 { - 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 427909bbc19..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseCatalog - extends com.oracle.bmc.http.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 f3dcadd0971..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java +++ /dev/null @@ -1,865 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 5477818a53f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java +++ /dev/null @@ -1,543 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseGsm - extends com.oracle.bmc.http.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 { - 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/DistributedAutonomousDatabaseRaftMetric.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.java deleted file mode 100644 index 4f158649f23..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseRaftMetric - extends com.oracle.bmc.http.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 184b4799e9c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java +++ /dev/null @@ -1,861 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 1c00c5743ad..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java +++ /dev/null @@ -1,1440 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseSummary - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 4629585544b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java +++ /dev/null @@ -1,201 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDbBackupConfig - extends com.oracle.bmc.http.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 4f1c333c101..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java +++ /dev/null @@ -1,404 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDbBackupDestination - extends com.oracle.bmc.http.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 { - 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 e1ec474d4a9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java +++ /dev/null @@ -1,2000 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabase extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 { - 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 08c7c25d002..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalog - extends com.oracle.bmc.http.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 53da0f22a6f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java +++ /dev/null @@ -1,543 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseGsm - extends com.oracle.bmc.http.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 { - 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 75938c0df91..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseRaftMetric - extends com.oracle.bmc.http.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 73ce89cb094..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java +++ /dev/null @@ -1,1398 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseSummary - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 0b14c9dcf92..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java +++ /dev/null @@ -1,813 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbBackupConfig - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 { - 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 e4ef197fc70..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java +++ /dev/null @@ -1,403 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbBackupDestination - extends com.oracle.bmc.http.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 { - 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 310068fd534..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java +++ /dev/null @@ -1,447 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbStorageVault - extends com.oracle.bmc.http.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 2d2bb820edb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java +++ /dev/null @@ -1,1022 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbVmCluster - extends com.oracle.bmc.http.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 { - 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 be799857f0b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java +++ /dev/null @@ -1,163 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class GenerateDistributedAutonomousDatabaseWalletDetails - extends com.oracle.bmc.http.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 562a7a7087e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java +++ /dev/null @@ -1,163 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class GenerateDistributedDatabaseWalletDetails - extends com.oracle.bmc.http.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 780c04b9e66..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java +++ /dev/null @@ -1,229 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class MoveDistributedAutonomousDatabaseReplicationUnitDetails - extends com.oracle.bmc.http.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 5f2904eccdf..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java +++ /dev/null @@ -1,229 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class MoveDistributedDatabaseReplicationUnitDetails - extends com.oracle.bmc.http.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 9d79aeea7cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java +++ /dev/null @@ -1,91 +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. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum OperationType { - 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/PatchInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java deleted file mode 100644 index 13d01c4936c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java +++ /dev/null @@ -1,145 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class PatchInstruction extends com.oracle.bmc.http.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 { - 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/VmClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java deleted file mode 100644 index d9517f36724..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java +++ /dev/null @@ -1,927 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class VmClusterDetails extends com.oracle.bmc.http.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 { - 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 0363d504550..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java +++ /dev/null @@ -1,399 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 534427c4963..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.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 ChangeDistributedAutonomousDatabaseCompartmentRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java deleted file mode 100644 index 7c62b6b9986..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java +++ /dev/null @@ -1,399 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 2101f0bd3f4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.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.distributeddatabasev26.requests; - -import com.oracle.bmc.distributeddatabasev26.model.*; -/** - * Example: Click here to see how to use ConfigureDistributedAutonomousDatabaseGsmWalletRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 13a50f3d6aa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java +++ /dev/null @@ -1,394 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 3387dc2c1cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java +++ /dev/null @@ -1,422 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/DeleteDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index c792af3218e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,310 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 eebf03584fa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java +++ /dev/null @@ -1,313 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 0307197d88f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java +++ /dev/null @@ -1,394 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 20b286be80a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,291 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/ListDistributedAutonomousDatabasesRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java deleted file mode 100644 index 0ed346b969d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java +++ /dev/null @@ -1,621 +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. - */ -@javax.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 { - 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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 7ffe9311fe0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java +++ /dev/null @@ -1,401 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 b8397fcf1f0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.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 MoveDistributedDatabaseReplicationUnitRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 468f1f6299a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,389 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/RecreateFailedDistributedDatabaseResourceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java deleted file mode 100644 index d0c7476fe29..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java +++ /dev/null @@ -1,345 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 68e020452b3..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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 5e7c72f3113..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.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 RotateDistributedDatabasePasswordsRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 0dec316b633..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,310 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 75f15ea9f0e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,335 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 bbf600b8e11..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.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 UpdateDistributedDatabasePrivateEndpointRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/ValidateDistributedAutonomousDatabaseCaBundleRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java deleted file mode 100644 index 946597b3b01..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java +++ /dev/null @@ -1,312 +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 ValidateDistributedAutonomousDatabaseCaBundleRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseCaBundleRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ValidateDistributedAutonomousDatabaseCaBundleRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId = null; - - /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ValidateDistributedAutonomousDatabaseCaBundleRequest - */ - public ValidateDistributedAutonomousDatabaseCaBundleRequest build() { - ValidateDistributedAutonomousDatabaseCaBundleRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ValidateDistributedAutonomousDatabaseCaBundleRequest - */ - public ValidateDistributedAutonomousDatabaseCaBundleRequest - buildWithoutInvocationCallback() { - ValidateDistributedAutonomousDatabaseCaBundleRequest request = - new ValidateDistributedAutonomousDatabaseCaBundleRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new ValidateDistributedAutonomousDatabaseCaBundleRequest(distributedAutonomousDatabaseId, ifMatch, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ValidateDistributedAutonomousDatabaseCaBundleRequest)) { - return false; - } - - ValidateDistributedAutonomousDatabaseCaBundleRequest other = - (ValidateDistributedAutonomousDatabaseCaBundleRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java deleted file mode 100644 index b5d28b5f9b0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java +++ /dev/null @@ -1,340 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/ChangeDistributedAutonomousDbBackupConfigResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java deleted file mode 100644 index 764e2131624..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDbBackupConfigResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ChangeDistributedAutonomousDbBackupConfigResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ChangeDistributedAutonomousDbBackupConfigResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ChangeDistributedAutonomousDbBackupConfigResponse build() { - return new ChangeDistributedAutonomousDbBackupConfigResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigResponse)) { - return false; - } - - ChangeDistributedAutonomousDbBackupConfigResponse other = - (ChangeDistributedAutonomousDbBackupConfigResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.java deleted file mode 100644 index 070f2cf8f9d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 40a86aff056..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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/ConfigureDistributedAutonomousDatabaseShardingResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.java deleted file mode 100644 index 0e7ebdc21ea..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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/GetDistributedAutonomousDatabaseRaftMetricResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java deleted file mode 100644 index b722e50d36b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java +++ /dev/null @@ -1,189 +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.*; - -@javax.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 DistributedAutonomousDatabaseRaftMetric instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric - distributedAutonomousDatabaseRaftMetric; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric - distributedAutonomousDatabaseRaftMetric) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.distributedAutonomousDatabaseRaftMetric = distributedAutonomousDatabaseRaftMetric; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabaseRaftMetric instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric - distributedAutonomousDatabaseRaftMetric; - - /** - * The returned 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 - */ - 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 - */ - 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 b93947aab28..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 3f7c0b5a4f1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 4d278b8be30..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 c845e5f483b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 3f24548fd9d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 0300b10993b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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/ValidateDistributedAutonomousDatabaseCaBundleResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java deleted file mode 100644 index 8c5c951ad34..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 6a102fade25..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 b0cd81c81b2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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-dns/pom.xml b/bmc-dns/pom.xml index 9869cb5e790..d5d376cf8a8 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.97.0 + 2.98.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index c48125a8db2..8fca0676a45 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 01ba2da0821..ec13cbf0624 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index db7310204a4..99c505ae0a0 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-emwarehouse @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 29b6526d074..174eb217947 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,18 +19,18 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 2.97.0 + 2.98.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 2.97.0 + 2.98.0 com.fasterxml.jackson.core diff --git a/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java b/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java index ce38ad8c698..fd1f61d54f8 100644 --- a/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java +++ b/bmc-encryption/src/main/java/com/oracle/bmc/encryption/internal/DecryptionHandler.java @@ -7,9 +7,13 @@ import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; +import java.util.Optional; import javax.crypto.Cipher; -import com.oracle.bmc.auth.AuthenticationDetailsProvider; +import com.oracle.bmc.Region; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider; import com.oracle.bmc.encryption.*; public class DecryptionHandler extends CipherHandler { @@ -50,24 +54,110 @@ public OciCryptoResult decrypt(byte[] dataWithHeader) throws IOException { } /** - * If this key provider already has the KMSMasterKey that was requested, it will return it. - * If it does not have a representation of the KMSMasterKey locally, it will attempt to - * retrieve it from KMS. + * If this key provider already has the requested KMSMasterKey, it will return it after + * validating the encrypted blob metadata. If it does not have a representation of the + * KMSMasterKey locally, it will attempt to retrieve it from KMS only when the blob region is + * registered with the SDK or matches the provider's configured region. */ private KmsMasterKey createDecryptionKmsMasterKey(EncryptionHeader encryptionHeader) { - KmsMasterKey kmsMasterKey = (KmsMasterKey) provider.getMasterKey(); + if (encryptionHeader == null) { + throw new IllegalArgumentException("Encrypted blob header is missing."); + } + + if (encryptionHeader.getEncryptedDataKeys() == null + || encryptionHeader.getEncryptedDataKeys().isEmpty() + || encryptionHeader.getEncryptionKey() == null) { + throw new IllegalArgumentException("Encrypted blob KMS key metadata is missing."); + } + EncryptionKey encryptionKey = encryptionHeader.getEncryptionKey(); - if (kmsMasterKey == null - || !kmsMasterKey.getVaultId().equals(encryptionKey.getVaultId()) - || !kmsMasterKey.getKmsMasterKeyId().equals(encryptionKey.getMasterKeyId()) - || !kmsMasterKey.getRegion().equals(encryptionKey.getRegion())) { - return new KmsMasterKey( - (AuthenticationDetailsProvider) provider.getAuthenticationProvider(), - encryptionKey.getRegion(), - encryptionKey.getVaultId(), - encryptionKey.getMasterKeyId()); + validateRequiredMetadata(encryptionKey.getMasterKeyId(), "master key ID"); + validateRequiredMetadata(encryptionKey.getVaultId(), "vault ID"); + validateRequiredMetadata(encryptionKey.getRegion(), "region"); + + KmsMasterKey kmsMasterKey = (KmsMasterKey) provider.getMasterKey(); + if (kmsMasterKey != null) { + if (!kmsMasterKey.getKmsMasterKeyId().equals(encryptionKey.getMasterKeyId())) { + throw new IllegalArgumentException( + "Encrypted blob master key ID does not match the configured KMS master key."); + } + if (!kmsMasterKey.getVaultId().equals(encryptionKey.getVaultId())) { + throw new IllegalArgumentException( + "Encrypted blob vault ID does not match the configured KMS master key."); + } + if (!regionsMatch(kmsMasterKey.getRegion(), encryptionKey.getRegion())) { + throw new IllegalArgumentException( + "Encrypted blob region does not match the configured KMS master key."); + } + return kmsMasterKey; + } + + Optional resolvedRegion = + Region.resolveRegionWithoutDefaultRealmFallback(encryptionKey.getRegion()); + BasicAuthenticationDetailsProvider authenticationDetailsProvider = null; + if (!resolvedRegion.isPresent()) { + authenticationDetailsProvider = + (BasicAuthenticationDetailsProvider) provider.getAuthenticationProvider(); + resolvedRegion = + getMatchingConfiguredRegion( + authenticationDetailsProvider, encryptionKey.getRegion()); + } + + Region region = + resolvedRegion.orElseThrow( + () -> + new IllegalArgumentException( + "Encrypted blob region is not registered with the SDK.")); + if (authenticationDetailsProvider == null) { + authenticationDetailsProvider = + (BasicAuthenticationDetailsProvider) provider.getAuthenticationProvider(); + } + return new KmsMasterKey( + authenticationDetailsProvider, + region.getRegionId(), + encryptionKey.getVaultId(), + encryptionKey.getMasterKeyId()); + } + + static Optional getMatchingConfiguredRegion( + BasicAuthenticationDetailsProvider authenticationDetailsProvider, + String requestedRegion) { + Region configuredRegion; + if (authenticationDetailsProvider instanceof ConfigFileAuthenticationDetailsProvider) { + configuredRegion = + ((ConfigFileAuthenticationDetailsProvider) authenticationDetailsProvider) + .getRegion(); + } else if (authenticationDetailsProvider + instanceof SessionTokenAuthenticationDetailsProvider) { + configuredRegion = + ((SessionTokenAuthenticationDetailsProvider) authenticationDetailsProvider) + .getRegion(); } else { - return (KmsMasterKey) provider.getMasterKey(); + return Optional.empty(); + } + + if (configuredRegion != null + && configuredRegion.getRegionId().equalsIgnoreCase(requestedRegion)) { + return Optional.of(configuredRegion); + } + return Optional.empty(); + } + + private static boolean regionsMatch(String configuredRegion, String blobRegion) { + if (configuredRegion.equalsIgnoreCase(blobRegion)) { + return true; + } + + return Region.resolveRegisteredRegion(configuredRegion) + .flatMap( + configured -> + Region.resolveRegisteredRegion(blobRegion).map(configured::equals)) + .orElse(false); + } + + private static void validateRequiredMetadata(String value, String fieldName) { + if (value == null || value.isEmpty()) { + throw new IllegalArgumentException("Encrypted blob " + fieldName + " is missing."); } } } diff --git a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java index 8d44c6e1b7e..e592576e2b2 100644 --- a/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java +++ b/bmc-encryption/src/test/java/com/oracle/bmc/encryption/internal/DecryptionHandlerTest.java @@ -4,20 +4,280 @@ */ package com.oracle.bmc.encryption.internal; +import com.oracle.bmc.Realm; +import com.oracle.bmc.Region; import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider; +import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider; +import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +import com.oracle.bmc.auth.RegionProvider; +import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider; +import com.oracle.bmc.encryption.KmsMasterKey; import com.oracle.bmc.encryption.MasterKey; import com.oracle.bmc.encryption.MasterKeyProvider; +import com.oracle.bmc.http.Serialization; import java.io.ByteArrayInputStream; import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Base64; +import java.util.Optional; import org.junit.Test; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertThrows; +import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; +import static org.mockito.Matchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import static org.mockito.Mockito.withSettings; public class DecryptionHandlerTest { private static final int MAX_HEADER_SIZE = 2 * 1024 * 1024; private static final String INVALID_HEADER_SIZE_MESSAGE = "Failed to read a valid encryption header size. Check if this encrypted file has the correct format."; + private static final String REGION = "us-phoenix-1"; + private static final String VAULT_ID = "test-vault-id"; + private static final String MASTER_KEY_ID = "test-master-key-id"; + + @Test + public void decryptingStreamAcceptsBlobWhenPinnedMetadataMatches() throws Exception { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader(REGION, VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptRejectsDifferentPinnedMasterKeyId() { + assertPinnedMetadataRejected( + createEncryptionHeader(REGION, VAULT_ID, "different-master-key-id"), + "Encrypted blob master key ID does not match the configured KMS master key."); + } + + @Test + public void decryptRejectsDifferentPinnedVaultId() { + assertPinnedMetadataRejected( + createEncryptionHeader(REGION, "different-vault-id", MASTER_KEY_ID), + "Encrypted blob vault ID does not match the configured KMS master key."); + } + + @Test + public void decryptRejectsDifferentPinnedRegion() { + assertPinnedMetadataRejected( + createEncryptionHeader("us-ashburn-1", VAULT_ID, MASTER_KEY_ID), + "Encrypted blob region does not match the configured KMS master key."); + } + + @Test + public void decryptingStreamAcceptsPinnedRegionShortName() throws Exception { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader("phx", VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptingStreamAcceptsPinnedRegionCaseDifference() throws Exception { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader( + "US-PHOENIX-1", VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptingStreamAcceptsMatchingPinnedPrivateRegion() throws Exception { + String privateRegion = "private.customer.example.com"; + KmsMasterKey pinnedKey = createMasterKey(privateRegion, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + assertNotNull( + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader( + privateRegion, VAULT_ID, MASTER_KEY_ID))))); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + + @Test + public void decryptOnlyProviderRejectsUnknownDottedRegionBeforeCreatingKey() { + assertDiscoveryRejectedBeforeCreatingKey("attacker.example.com"); + } + + @Test + public void decryptOnlyProviderRejectsUnknownRegionBeforeCreatingKey() { + assertDiscoveryRejectedBeforeCreatingKey("unknown-region-1"); + } + + @Test + public void decryptOnlyProviderRequiresMasterKeyId() { + assertMissingMetadataRejected( + createEncryptionHeader(REGION, VAULT_ID, null), + "Encrypted blob master key ID is missing."); + } + + @Test + public void decryptOnlyProviderRequiresVaultId() { + assertMissingMetadataRejected( + createEncryptionHeader(REGION, "", MASTER_KEY_ID), + "Encrypted blob vault ID is missing."); + } + + @Test + public void decryptOnlyProviderRequiresRegion() { + assertMissingMetadataRejected( + createEncryptionHeader(null, VAULT_ID, MASTER_KEY_ID), + "Encrypted blob region is missing."); + } + + @Test + public void decryptRequiresKmsKeyMetadata() { + assertMissingMetadataRejected( + new EncryptionHeader(), "Encrypted blob KMS key metadata is missing."); + } + + @Test + public void decryptRejectsMissingEncryptionHeader() { + assertMissingMetadataRejected(null, "Encrypted blob header is missing."); + } + + @Test + public void configFileProviderAllowsItsMatchingUnregisteredRegion() { + String regionId = "config-file.private.example.com"; + Region configuredRegion = Region.registerFromConfigFileFallback(regionId, Realm.OC1); + assertFalse(Region.resolveRegisteredRegion(regionId).isPresent()); + + ConfigFileAuthenticationDetailsProvider authenticationDetailsProvider = + mock(ConfigFileAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(configuredRegion); + + Optional result = + DecryptionHandler.getMatchingConfiguredRegion( + authenticationDetailsProvider, "CONFIG-FILE.PRIVATE.EXAMPLE.COM"); + + assertTrue(result.isPresent()); + assertSame(configuredRegion, result.get()); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void decryptOnlyProviderRejectsUnregisteredRegionWhenConfiguredRegionDiffers() + throws Exception { + String region = "configured-by-another-provider.example.com"; + Region.registerFromConfigFileFallback(region, Realm.OC1); + ConfigFileAuthenticationDetailsProvider authenticationDetailsProvider = + mock(ConfigFileAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(Region.US_ASHBURN_1); + CountingMasterKeyProvider provider = + new CountingMasterKeyProvider(null, authenticationDetailsProvider); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> + handler.getDecryptInputStream( + new ByteArrayInputStream( + createPayload( + createEncryptionHeader( + region, + VAULT_ID, + MASTER_KEY_ID))))); + + assertEquals( + "Encrypted blob region is not registered with the SDK.", exception.getMessage()); + assertEquals(1, provider.getAuthenticationProviderCalls); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void sessionTokenProviderAllowsItsMatchingUnregisteredRegion() { + String regionId = "session-token.private.example.com"; + Region configuredRegion = Region.registerFromConfigFileFallback(regionId, Realm.OC1); + assertFalse(Region.resolveRegisteredRegion(regionId).isPresent()); + + SessionTokenAuthenticationDetailsProvider authenticationDetailsProvider = + mock(SessionTokenAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(configuredRegion); + + Optional result = + DecryptionHandler.getMatchingConfiguredRegion( + authenticationDetailsProvider, "SESSION-TOKEN.PRIVATE.EXAMPLE.COM"); + + assertTrue(result.isPresent()); + assertSame(configuredRegion, result.get()); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void sessionTokenProviderRejectsDifferentUnregisteredRegion() { + String requestedRegion = "different-session-token.private.example.com"; + Region configuredRegion = + Region.registerFromConfigFileFallback( + "configured-session-token.private.example.com", Realm.OC1); + SessionTokenAuthenticationDetailsProvider authenticationDetailsProvider = + mock(SessionTokenAuthenticationDetailsProvider.class); + when(authenticationDetailsProvider.getRegion()).thenReturn(configuredRegion); + + assertFalse( + DecryptionHandler.getMatchingConfiguredRegion( + authenticationDetailsProvider, requestedRegion) + .isPresent()); + verify(authenticationDetailsProvider).getRegion(); + } + + @Test + public void decryptOnlyProviderDoesNotTrustRegionFromGenericRegionProvider() throws Exception { + String region = "signer-only.private.example.com"; + Region fallbackRegion = Region.registerFromConfigFileFallback(region, Realm.OC1); + BasicAuthenticationDetailsProvider authenticationDetailsProvider = + mock( + BasicAuthenticationDetailsProvider.class, + withSettings().extraInterfaces(RegionProvider.class)); + when(((RegionProvider) authenticationDetailsProvider).getRegion()) + .thenReturn(fallbackRegion); + CountingMasterKeyProvider provider = + new CountingMasterKeyProvider(null, authenticationDetailsProvider); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> + handler.decrypt( + createPayload( + createEncryptionHeader( + region, VAULT_ID, MASTER_KEY_ID)))); + + assertEquals( + "Encrypted blob region is not registered with the SDK.", exception.getMessage()); + verify((RegionProvider) authenticationDetailsProvider, never()).getRegion(); + } @Test public void testDecrypt_ThrowsIllegalArgumentException_WhenHeaderSizeExceedsMaxHeaderSize() @@ -92,21 +352,118 @@ private static byte[] createPayloadWithHeaderSize(int headerSize) { return buffer.array(); } + private static EncryptionHeader createEncryptionHeader( + String region, String vaultId, String masterKeyId) { + EncryptionHeader encryptionHeader = new EncryptionHeader(); + encryptionHeader.setEncryptionHeader( + new EncryptionKey(region, vaultId, masterKeyId, "encrypted-data-key"), + "AAAAAAAAAAAAAAAA", + ""); + return encryptionHeader; + } + + private static byte[] createPayload(EncryptionHeader encryptionHeader) throws Exception { + byte[] header = + Serialization.getObjectMapper() + .writeValueAsString(encryptionHeader) + .getBytes(StandardCharsets.UTF_8); + ByteBuffer buffer = ByteBuffer.allocate(6 + header.length); + buffer.putShort((short) 1); + buffer.putInt(header.length); + buffer.put(header); + return buffer.array(); + } + + private static KmsMasterKey createMasterKey(String region, String vaultId, String masterKeyId) { + KmsMasterKey masterKey = mock(KmsMasterKey.class); + when(masterKey.getRegion()).thenReturn(region); + when(masterKey.getVaultId()).thenReturn(vaultId); + when(masterKey.getKmsMasterKeyId()).thenReturn(masterKeyId); + when(masterKey.decryptDataKey("encrypted-data-key", masterKeyId)) + .thenReturn(Base64.getEncoder().encodeToString(new byte[32])); + return masterKey; + } + + private static void assertPinnedMetadataRejected( + EncryptionHeader encryptionHeader, String expectedMessage) { + KmsMasterKey pinnedKey = createMasterKey(REGION, VAULT_ID, MASTER_KEY_ID); + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(pinnedKey, null); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> handler.decrypt(createPayload(encryptionHeader))); + + assertEquals(expectedMessage, exception.getMessage()); + assertEquals(0, provider.getAuthenticationProviderCalls); + verify(pinnedKey, never()).decryptDataKey(anyString(), anyString()); + } + + private static void assertDiscoveryRejectedBeforeCreatingKey(String region) { + BasicAuthenticationDetailsProvider authenticationDetailsProvider = + mock(BasicAuthenticationDetailsProvider.class); + CountingMasterKeyProvider provider = + new CountingMasterKeyProvider(null, authenticationDetailsProvider); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> + handler.decrypt( + createPayload( + createEncryptionHeader( + region, VAULT_ID, MASTER_KEY_ID)))); + + assertEquals( + "Encrypted blob region is not registered with the SDK.", exception.getMessage()); + assertEquals(1, provider.getAuthenticationProviderCalls); + } + + private static void assertMissingMetadataRejected( + EncryptionHeader encryptionHeader, String expectedMessage) { + CountingMasterKeyProvider provider = new CountingMasterKeyProvider(); + DecryptionHandler handler = new DecryptionHandler(provider); + + IllegalArgumentException exception = + assertThrows( + IllegalArgumentException.class, + () -> handler.decrypt(createPayload(encryptionHeader))); + + assertEquals(expectedMessage, exception.getMessage()); + assertEquals(0, provider.getMasterKeyCalls); + assertEquals(0, provider.getAuthenticationProviderCalls); + } + private static final class CountingMasterKeyProvider implements MasterKeyProvider { + private final MasterKey masterKey; + private final AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private int getMasterKeyCalls = 0; private int getAuthenticationProviderCalls = 0; + private CountingMasterKeyProvider() { + this(null, null); + } + + private CountingMasterKeyProvider( + MasterKey masterKey, + AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { + this.masterKey = masterKey; + this.authenticationDetailsProvider = authenticationDetailsProvider; + } + @Override public MasterKey getMasterKey() { getMasterKeyCalls++; - return null; + return masterKey; } @Override public AbstractAuthenticationDetailsProvider getAuthenticationProvider() { getAuthenticationProviderCalls++; - return null; + return authenticationDetailsProvider; } @Override diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index b58b2b69c8e..cb98f079708 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index a5ecd72d030..ea79f75e291 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-events @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 886fdafdb7b..0e4ce07681c 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-examples @@ -28,7 +28,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.97.0 + 2.98.0 pom import @@ -665,10 +665,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 @@ -763,7 +759,11 @@ com.oracle.oci.sdk - oci-java-sdk-distributeddatabasev26 + oci-java-sdk-clusterhealth + + + com.oracle.oci.sdk + oci-java-sdk-distributeddatabase \ No newline at end of file diff --git a/bmc-examples/src/main/java/InvokeFunctionExample.java b/bmc-examples/src/main/java/InvokeFunctionExample.java index 8aa0a82cf4b..2a1ea401dac 100644 --- a/bmc-examples/src/main/java/InvokeFunctionExample.java +++ b/bmc-examples/src/main/java/InvokeFunctionExample.java @@ -2,1185 +2,1186 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -import com.oracle.bmc.ConfigFileReader; -import com.oracle.bmc.Region; -import com.oracle.bmc.auth.AuthenticationDetailsProvider; -import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; -import com.oracle.bmc.core.VirtualNetworkClient; -import com.oracle.bmc.core.model.CreateInternetGatewayDetails; -import com.oracle.bmc.core.model.CreateSubnetDetails; -import com.oracle.bmc.core.model.CreateVcnDetails; -import com.oracle.bmc.core.model.InternetGateway; -import com.oracle.bmc.core.model.RouteRule; -import com.oracle.bmc.core.model.RouteRule.DestinationType; -import com.oracle.bmc.core.model.RouteTable; -import com.oracle.bmc.core.model.Subnet; -import com.oracle.bmc.core.model.UpdateRouteTableDetails; -import com.oracle.bmc.core.model.Vcn; -import com.oracle.bmc.core.requests.CreateInternetGatewayRequest; -import com.oracle.bmc.core.requests.CreateSubnetRequest; -import com.oracle.bmc.core.requests.CreateVcnRequest; -import com.oracle.bmc.core.requests.DeleteInternetGatewayRequest; -import com.oracle.bmc.core.requests.DeleteSubnetRequest; -import com.oracle.bmc.core.requests.DeleteVcnRequest; -import com.oracle.bmc.core.requests.GetInternetGatewayRequest; -import com.oracle.bmc.core.requests.GetSubnetRequest; -import com.oracle.bmc.core.requests.GetVcnRequest; -import com.oracle.bmc.core.requests.ListInternetGatewaysRequest; -import com.oracle.bmc.core.requests.ListRouteTablesRequest; -import com.oracle.bmc.core.requests.ListSubnetsRequest; -import com.oracle.bmc.core.requests.ListVcnsRequest; -import com.oracle.bmc.core.requests.UpdateRouteTableRequest; -import com.oracle.bmc.core.responses.CreateInternetGatewayResponse; -import com.oracle.bmc.core.responses.CreateSubnetResponse; -import com.oracle.bmc.core.responses.CreateVcnResponse; -import com.oracle.bmc.core.responses.GetSubnetResponse; -import com.oracle.bmc.core.responses.GetVcnResponse; -import com.oracle.bmc.core.responses.ListInternetGatewaysResponse; -import com.oracle.bmc.core.responses.ListRouteTablesResponse; -import com.oracle.bmc.core.responses.ListSubnetsResponse; -import com.oracle.bmc.core.responses.ListVcnsResponse; -import com.oracle.bmc.core.responses.UpdateRouteTableResponse; -import com.oracle.bmc.functions.FunctionsInvokeClient; -import com.oracle.bmc.functions.FunctionsManagementClient; -import com.oracle.bmc.functions.model.Application; -import com.oracle.bmc.functions.model.ApplicationSummary; -import com.oracle.bmc.functions.model.CreateApplicationDetails; -import com.oracle.bmc.functions.model.CreateFunctionDetails; -import com.oracle.bmc.functions.model.Function; -import com.oracle.bmc.functions.model.FunctionSummary; -import com.oracle.bmc.functions.requests.CreateApplicationRequest; -import com.oracle.bmc.functions.requests.CreateFunctionRequest; -import com.oracle.bmc.functions.requests.DeleteApplicationRequest; -import com.oracle.bmc.functions.requests.DeleteFunctionRequest; -import com.oracle.bmc.functions.requests.GetApplicationRequest; -import com.oracle.bmc.functions.requests.GetFunctionRequest; -import com.oracle.bmc.functions.requests.InvokeFunctionRequest; -import com.oracle.bmc.functions.requests.ListApplicationsRequest; -import com.oracle.bmc.functions.requests.ListFunctionsRequest; -import com.oracle.bmc.functions.responses.CreateApplicationResponse; -import com.oracle.bmc.functions.responses.CreateFunctionResponse; -import com.oracle.bmc.functions.responses.GetApplicationResponse; -import com.oracle.bmc.functions.responses.GetFunctionResponse; -import com.oracle.bmc.functions.responses.InvokeFunctionResponse; -import com.oracle.bmc.functions.responses.ListApplicationsResponse; -import com.oracle.bmc.functions.responses.ListFunctionsResponse; -import com.oracle.bmc.identity.Identity; -import com.oracle.bmc.identity.IdentityClient; -import com.oracle.bmc.identity.model.AvailabilityDomain; -import com.oracle.bmc.identity.requests.ListAvailabilityDomainsRequest; -import com.oracle.bmc.identity.responses.ListAvailabilityDomainsResponse; -import com.oracle.bmc.model.BmcException; -import com.oracle.bmc.util.StreamUtils; - -import java.nio.charset.StandardCharsets; -import java.util.ArrayList; -import java.util.List; - -public class InvokeFunctionExample { - - final static Region DEFAULT_REGION = Region.US_PHOENIX_1; - - final static String SETUP = "setup"; - final static String INVOKE = "invoke"; - final static String TEARDOWN = "teardown"; - - /** - * This is a basic example of how to register and invoke a serverless Function - * on OCI using the Java SDK. - * - * The example has some pre-requisites. In particular you will need to create a - * Function image and publish it to OCI Registry. The best way to do this is with the 'Fn - * CLI': - * - * 1. Install Fn CLI : https://github.com/fnproject/cli - * - * 2. Create Function - Quick Guide : - * https://github.com/fnproject/fn/blob/master/README.md - * - * This sample will do following things: - * - * 1. Create VCN and subnets - Provide an endpoint on which your function can be - * invoked. - * - * 2. Create Application and Function - Register and configure your function. - * - * 3. Invoke Function - How your function can be invoked. - * - * 4. Clean-up - Tidy up the resources created above. - * - * NB: To simplify things, this example is hardcoded to use the 'us-phoenix-1' OCI - * region. - * - * NB: Currently, after invoking a function we must wait up to 30 minutes before - * clearing down any supporting Subnets and VCN. - * - * @param args Arguments to provide to the example. The following arguments are expected: - *

    - *
  • The operation to perform - 'setup', 'invoke' or 'teardown'.
  • - *
  • The OCID of the compartment where the function and associated resources will be created.
  • - *
  • A valid OCI Registry function image.
  • - *
  • The payload to be sent to the function on invocation (optional).
  • - *
- * @throws Exception - */ - public static void main(String[] args) throws Exception { - if (args.length < 3) { - throw new IllegalArgumentException( - "Invalid number of arguments provided to the script."); - } - - // Handle commands: {setup, invoke, teardown} - final String command = args[0]; - if (!command.equalsIgnoreCase(SETUP) - && !command.equalsIgnoreCase(INVOKE) - && !command.equalsIgnoreCase(TEARDOWN)) { - throw new Exception( - "Please provide 'setup', 'invoke' or 'teardown' as the first argument."); - } - - // We need a target compartment. - final String compartmentId = args[1]; - - // We need an accessible image in the Phoenix region to invoke. - // e.g. phx.ocir.io/tenancy-name/registry/imagename:version - final String image = args[2]; - - // All resources will be prefixed with this name. - final String name = "oci-java-sdk-function-example"; - - // The default region to use. - final Region region = DEFAULT_REGION; - - // Depending on the image chosen a payload can be specified. - final String payload = (args.length >= 4) ? args[3] : ""; - - // Configure Auth - final String configurationFilePath = "~/.oci/config"; - final String profile = "DEFAULT"; - // Configuring the AuthenticationDetailsProvider. It's assuming there is a default OCI config file - // "~/.oci/config", and a profile in that config with the name "DEFAULT". Make changes to the following - // line if needed and use ConfigFileReader.parse(configurationFilePath, profile); - - final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault(); - - final AuthenticationDetailsProvider provider = - new ConfigFileAuthenticationDetailsProvider(configFile); - - try { - if (command.equalsIgnoreCase(SETUP)) { - setupResources(provider, region, compartmentId, name, image); - } - - if (command.equalsIgnoreCase(INVOKE)) { - invokeFunction(provider, region, compartmentId, name, payload); - } - - if (command.equalsIgnoreCase(TEARDOWN)) { - teardownResources(provider, region, compartmentId, name); - } - } catch (Exception e) { - e.printStackTrace(); - System.err.println("Error: " + e); - } - } - - /** - * Create all the OCI and Fn resources required to invoke a function. - * - * @param provider the OCI credentials provider. - * @param region the OCI region in which to create the required - * resources. - * @param compartmentId the compartment in which to create the required - * resources. - * @param name a name prefix to easily identify the resources. - * @param image a valid OCI Registry image for the function. - * @throws Exception - */ - public static void setupResources( - final AuthenticationDetailsProvider provider, - final Region region, - final String compartmentId, - final String name, - final String image) - throws Exception { - - final Identity identityClient = new IdentityClient(provider); - identityClient.setRegion(region); - - final VirtualNetworkClient vcnClient = new VirtualNetworkClient(provider); - vcnClient.setRegion(region); - - final FunctionsManagementClient fnManagementClient = - new FunctionsManagementClient(provider); - fnManagementClient.setRegion(region); - - try { - // 1. A list of AvailabilityDomains are required to determine where to host each - // subnet. - final List availabilityDomains = - getAvailabilityDomains(identityClient, compartmentId); - final AvailabilityDomain ad = availabilityDomains.get(0); - System.out.println("Using availability domain: " + ad.getName()); - - // 2. A VCN is required to host subnets. - final String vcnDisplayName = vcnName(name); - final String vcnCidrBlock = "10.0.0.0/16"; - final Vcn vcn = createVcn(vcnClient, compartmentId, vcnDisplayName, vcnCidrBlock); - System.out.println("Created VCN: " + vcn.getDisplayName()); - - // 3. An Internet Gateway is required to enable the VCN to talk to the wider world. - final String igDisplayName = igName(name); - final InternetGateway ig = - createInternetGateway(vcnClient, compartmentId, igDisplayName, vcn.getId()); - - // 4. We must configure the VCN's traffic to be routed through the IG. - final String drtDisplayName = drtName(name); - configureInternetGateway( - vcnClient, compartmentId, vcn.getId(), ig.getId(), drtDisplayName); - - // 5. A subnet is required to expose and be able invoke the function. - // In multiple AD regions, subnets can be created in multiple ADs to provide - // redundancy. - final String subnetDisplayName = subnetName(name); - final String subnetCidrBlock = "10.0.0.0/24"; - final Subnet subnet = - createSubnet( - vcnClient, - compartmentId, - vcn.getId(), - subnetDisplayName, - ad.getName(), - subnetCidrBlock); - System.out.println("Created VCN subnet: " + subnet.getDisplayName()); - - // 6. Create an Application to host and manage the function(s). - final String appDisplayName = applicationName(name); - final List subnetIds = new ArrayList<>(); - subnetIds.add(subnet.getId()); - final Application app = - createApplication(fnManagementClient, compartmentId, appDisplayName, subnetIds); - System.out.println("Created Application: " + app.getDisplayName()); - - // 7. Create a single Function, set its execution image and limits. - final String fnDisplayName = functionName(name); - final long memoryInMBs = 128L; - final int timeoutInSeconds = 30; - final Function fn = - createFunction( - fnManagementClient, - app.getId(), - fnDisplayName, - image, - memoryInMBs, - timeoutInSeconds); - System.out.println("Created Function: " + fn.getDisplayName()); - - } finally { - fnManagementClient.close(); - vcnClient.close(); - identityClient.close(); - } - } - - /** - * Invoke a function. - * - * @param provider the OCI credentials provider. - * @param region the OCI region in which to create the required - * resources. - * @param compartmentId the compartment in which to created the required - * resources. - * @param name a name prefix to easily identify the resources. - * @param payload the payload to be sent to the function on invocation. - * @throws Exception - */ - public static void invokeFunction( - final AuthenticationDetailsProvider provider, - final Region region, - final String compartmentId, - final String name, - final String payload) - throws Exception { - - final FunctionsManagementClient fnManagementClient = - new FunctionsManagementClient(provider); - fnManagementClient.setRegion(region); - - final FunctionsInvokeClient fnInvokeClient = new FunctionsInvokeClient(provider); - - try { - // Invoke the function! - final String appName = applicationName(name); - final String fnName = functionName(name); - final FunctionSummary fn = - getUniqueFunctionByName(fnManagementClient, compartmentId, appName, fnName); - - final String response = invokeFunction(fnInvokeClient, fn, payload); - if (response != null) { - System.out.println("Response from function: " + response); - } - } finally { - fnInvokeClient.close(); - fnManagementClient.close(); - } - } - - /** - * Remove all resources created by the 'setup' operation. - * - * NB: Resources can only be removed 30 minutes after the last Function - * invocation. - * - * @param provider the OCI credentials provider. - * @param region the OCI region in which to create the required - * resources. - * @param compartmentId the compartment in which to created the required - * resources. - * @param name a name prefix to easily identify the resources. - * @throws Exception - */ - public static void teardownResources( - final AuthenticationDetailsProvider provider, - final Region region, - final String compartmentId, - final String name) - throws Exception { - - final Identity identityClient = new IdentityClient(provider); - identityClient.setRegion(region); - - final VirtualNetworkClient vcnClient = new VirtualNetworkClient(provider); - vcnClient.setRegion(region); - - final FunctionsManagementClient fnManagementClient = - new FunctionsManagementClient(provider); - fnManagementClient.setRegion(region); - - try { - System.out.println("Cleaning up"); - - final String vcnName = vcnName(name); - final String igName = igName(name); - final String drtName = drtName(name); - final String subnetName = subnetName(name); - final String appName = applicationName(name); - final String fnName = functionName(name); - - final Vcn vcn = getUniqueVcnByName(vcnClient, compartmentId, vcnName); - - final InternetGateway ig = - getUniqueInternetGatewayByName(vcnClient, compartmentId, vcn.getId(), igName); - - final RouteTable rt = - getUniqueRouteTableByName(vcnClient, compartmentId, vcn.getId(), drtName); - - final Subnet subnet = - getUniqueSubnetByName(vcnClient, compartmentId, vcn.getId(), subnetName); - - final ApplicationSummary application = - getUniqueApplicationByName(fnManagementClient, compartmentId, appName); - - final FunctionSummary fn = - getUniqueFunctionByName(fnManagementClient, application.getId(), fnName); - - if (fn != null) { - deleteFunction(fnManagementClient, fn.getId()); - System.out.println("Deleted function: " + fn.getDisplayName()); - } - - if (application != null) { - deleteApplication(fnManagementClient, application.getId()); - System.out.println("Deleted application: " + application.getDisplayName()); - } - - if (subnet != null) { - deleteSubnet(vcnClient, subnet.getId()); - System.out.println("Deleted subnet: " + subnet.getDisplayName()); - } - - if (rt != null) { - prepareDefaultRouteTableForDelete(vcnClient, rt.getId()); - System.out.println("Cleaned route table: " + subnet.getDisplayName()); - } - - if (ig != null) { - deleteInternetGateway(vcnClient, ig.getId()); - System.out.println("Deleted internet gateway: " + subnet.getDisplayName()); - } - - if (vcn != null) { - deleteVcn(vcnClient, vcn); - System.out.println("Deleted VCN: " + vcn.getDisplayName()); - } - - } finally { - fnManagementClient.close(); - vcnClient.close(); - identityClient.close(); - } - } - - // === OCI Identity Helpers === - - /** - * List the AvailabilityDomains. - * - * @param identityClient the service client to use to fetch the - * AvailabilityDomains. - * @param compartmentId the OCID of the compartment to check. - * @return the list of AvailabilityDomains. - * @throws Exception - */ - public static List getAvailabilityDomains( - final Identity identityClient, final String compartmentId) throws Exception { - - final ListAvailabilityDomainsResponse listAvailabilityDomainsResponse = - identityClient.listAvailabilityDomains( - ListAvailabilityDomainsRequest.builder() - .compartmentId(compartmentId) - .build()); - - return listAvailabilityDomainsResponse.getItems(); - } - - // === OCI VCN Helpers === - - /** - * Creates a VCN and waits for it to become available to use. - * - * @param vcnClient the service client to use to create the VCN. - * @param compartmentId the OCID of the compartment where the VCN will be - * created. - * @param displayName the displayName of the VCN. - * @param cidrBlock the CidrBlock allocated for the VCN. - * @return the created VCN. - * @throws Exception - */ - private static Vcn createVcn( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String displayName, - final String cidrBlock) - throws Exception { - - final CreateVcnResponse createVcnResponse = - vcnClient.createVcn( - CreateVcnRequest.builder() - .createVcnDetails( - CreateVcnDetails.builder() - .compartmentId(compartmentId) - .displayName(displayName) - .cidrBlock(cidrBlock) - .build()) - .build()); - - final GetVcnResponse getVcnResponse = - vcnClient - .getWaiters() - .forVcn( - GetVcnRequest.builder() - .vcnId(createVcnResponse.getVcn().getId()) - .build(), - Vcn.LifecycleState.Available) - .execute(); - - return getVcnResponse.getVcn(); - } - - /** - * Gets VCN info of a single uniquely named VCN in the specified compartment. - * - * @param vcnClient the service client to use to query the VCN. - * @param compartmentId of the VCN. - * @param vcnDisplayName of the VCN. - * @return the VCN. - * @throws Exception - */ - public static Vcn getUniqueVcnByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListVcnsRequest listVcnsRequest = - ListVcnsRequest.builder() - .compartmentId(compartmentId) - .displayName(vcnDisplayName) - .build(); - - final ListVcnsResponse listVcnsResponse = vcnClient.listVcns(listVcnsRequest); - - if (listVcnsResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique VCN with name " - + vcnDisplayName - + " in compartment " - + compartmentId); - } - - return listVcnsResponse.getItems().get(0); - } - - /** - * Deletes a VCN and waits for it to be deleted. - * - * @param vcnClient the service client to use to delete the VCN. - * @param vcn the VCN to delete. - * @throws Exception - */ - private static void deleteVcn(final VirtualNetworkClient vcnClient, final Vcn vcn) - throws Exception { - - vcnClient.deleteVcn(DeleteVcnRequest.builder().vcnId(vcn.getId()).build()); - - vcnClient - .getWaiters() - .forVcn( - GetVcnRequest.builder().vcnId(vcn.getId()).build(), - Vcn.LifecycleState.Terminated) - .execute(); - } - - // === OCI Internet Gateway Helpers === - - private static InternetGateway createInternetGateway( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String displayName, - final String vcnId) - throws Exception { - - final CreateInternetGatewayResponse createInternetGatewayResponse = - vcnClient.createInternetGateway( - CreateInternetGatewayRequest.builder() - .createInternetGatewayDetails( - CreateInternetGatewayDetails.builder() - .compartmentId(compartmentId) - .displayName(displayName) - .vcnId(vcnId) - .isEnabled(true) - .build()) - .build()); - - vcnClient - .getWaiters() - .forInternetGateway( - GetInternetGatewayRequest.builder() - .igId(createInternetGatewayResponse.getInternetGateway().getId()) - .build(), - InternetGateway.LifecycleState.Available) - .execute(); - - return createInternetGatewayResponse.getInternetGateway(); - } - - /** - * Gets InternetGateway info of a single uniquely named InternetGateway in the - * specified compartment. - * - * @param vcnClient the service client to use to query the InternetGateway. - * @param compartmentId of the InternetGateway. - * @param vcnId of the InternetGateway's associated VCN. - * @param igDisplayName of the InternetGateway. - * @return the InternetGateway. - * @throws Exception - */ - public static InternetGateway getUniqueInternetGatewayByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String igDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListInternetGatewaysRequest listInternetGatewaysRequest = - ListInternetGatewaysRequest.builder() - .compartmentId(compartmentId) - .vcnId(vcnId) - .displayName(igDisplayName) - .build(); - - final ListInternetGatewaysResponse listInternetGatewaysResponse = - vcnClient.listInternetGateways(listInternetGatewaysRequest); - - if (listInternetGatewaysResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique InternetGateway with name " - + igDisplayName - + " in compartment " - + compartmentId); - } - - return listInternetGatewaysResponse.getItems().get(0); - } - - /** - * Deletes a InternetGateway and waits for it to be deleted. - * - * @param vcnClient the service client to use to delete the InternetGateway. - * @param igId the InternetGateway to delete. - * @throws Exception - */ - private static void deleteInternetGateway( - final VirtualNetworkClient vcnClient, final String igId) throws Exception { - - vcnClient.deleteInternetGateway(DeleteInternetGatewayRequest.builder().igId(igId).build()); - - vcnClient - .getWaiters() - .forInternetGateway( - GetInternetGatewayRequest.builder().igId(igId).build(), - InternetGateway.LifecycleState.Terminated) - .execute(); - } - - // === OCI Route Table Helpers === - - /** - * Configure the default RouteTable of the specified InternetGateway to ensure it - * contains a single outbound route for all traffic. - * - * NB: You should restrict these routes further if you keep this piece of - * OCI infrastructure. - * - * @param vcnClient the service client to use to query a RouteTable. - * @param compartmentId of the RouteTable. - * @param vcnId of the RouteTable's associated VCN. - * @param igId of the RouteTable's associated InternetGateway. - * @param drtDisplayName of the RouteTable. - * @return the InternetGateway. - * @throws Exception - */ - private static RouteTable configureInternetGateway( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String igId, - final String rtDisplayName) - throws Exception { - - final RouteTable defaultRouteTable = - getUniqueRouteTableByName(vcnClient, compartmentId, vcnId, rtDisplayName); - - final String destinationCidr = "0.0.0.0/0"; - final List routeRules = defaultRouteTable.getRouteRules(); - routeRules.add( - RouteRule.builder() - .cidrBlock(destinationCidr) - .destination(destinationCidr) - .destinationType(DestinationType.valueOf("CidrBlock")) - .networkEntityId(igId) - .build()); - - final UpdateRouteTableResponse updateRouteTableResponse = - vcnClient.updateRouteTable( - UpdateRouteTableRequest.builder() - .rtId(defaultRouteTable.getId()) - .updateRouteTableDetails( - UpdateRouteTableDetails.builder() - .routeRules(routeRules) - .build()) - .build()); - - return updateRouteTableResponse.getRouteTable(); - } - - /** - * Gets RouteTable info of a single uniquely named RouteTable in the - * specified compartment. - * - * @param vcnClient the service client to use to query a RouteTable. - * @param compartmentId of the RouteTable. - * @param vcnId of the RouteTable's associated VCN. - * @param rtDisplayName of the RouteTable. - * @return the InternetGateway. - * @throws Exception - */ - public static RouteTable getUniqueRouteTableByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String rtDisplayName) - throws Exception { - - // Find the route table in a specific compartment - final ListRouteTablesRequest listRouteTablesRequest = - ListRouteTablesRequest.builder() - .compartmentId(compartmentId) - .vcnId(vcnId) - .displayName(rtDisplayName) - .build(); - - final ListRouteTablesResponse listRouteTablesResponse = - vcnClient.listRouteTables(listRouteTablesRequest); - - if (listRouteTablesResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique RouteTable with name " - + rtDisplayName - + " in compartment " - + compartmentId); - } - - return listRouteTablesResponse.getItems().get(0); - } - - /** - * Prepares a DefaultRouteTable for deletion by deleting all RouteRules. - * - * @param vcnClient the service client to use to delete the RouteTable. - * @param rtId the RouteTable to delete. - * @throws Exception - */ - private static void prepareDefaultRouteTableForDelete( - final VirtualNetworkClient vcnClient, final String rtId) throws Exception { - - vcnClient.updateRouteTable( - UpdateRouteTableRequest.builder() - .rtId(rtId) - .updateRouteTableDetails( - UpdateRouteTableDetails.builder() - .routeRules(new ArrayList()) - .build()) - .build()); - } - - // === OCI Subnet Helpers === - - /** - * Creates a subnet in a VCN and waits for the subnet to become available to use. - * - * @param vcnClient the service client to use to create the subnet. - * @param compartmentId the OCID of the compartment which owns the VCN. - * @param vcnId the ID of the VCN which will own the subnet. - * @param displayName the display name of the subnet. - * @param availabilityDomainName the availability domain where the subnet will be created. - * @param subnetCidrBlock the subnet CidrBlock allocated from the parent VCN range. - * @return the created subnet. - * @throws Exception - */ - private static Subnet createSubnet( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String displayName, - final String availabilityDomain, - final String subnetCidrBlock) - throws Exception { - - // Create the subnet - final CreateSubnetResponse createSubnetResponse = - vcnClient.createSubnet( - CreateSubnetRequest.builder() - .createSubnetDetails( - CreateSubnetDetails.builder() - .availabilityDomain(availabilityDomain) - .compartmentId(compartmentId) - .displayName(displayName) - .cidrBlock(subnetCidrBlock) - .vcnId(vcnId) - .build()) - .build()); - - // Wait for the subnet to be active - final GetSubnetResponse getSubnetResponse = - vcnClient - .getWaiters() - .forSubnet( - GetSubnetRequest.builder() - .subnetId(createSubnetResponse.getSubnet().getId()) - .build(), - Subnet.LifecycleState.Available) - .execute(); - - return getSubnetResponse.getSubnet(); - } - - /** - * Gets Subnet info of a single uniquely named VCN in the specified compartment. - * - * @param vcnClient the service client to use to query the Subnet. - * @param compartmentId of the Subnet. - * @param vcnId of the Subnet. - * @param subnetDisplayName of the Subnet. - * @return the Subnet. - * @throws Exception - */ - public static Subnet getUniqueSubnetByName( - final VirtualNetworkClient vcnClient, - final String compartmentId, - final String vcnId, - final String subnetDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListSubnetsRequest listSubnetsRequest = - ListSubnetsRequest.builder() - .compartmentId(compartmentId) - .vcnId(vcnId) - .displayName(subnetDisplayName) - .build(); - - final ListSubnetsResponse listSubnetsResponse = vcnClient.listSubnets(listSubnetsRequest); - - if (listSubnetsResponse.getItems().size() != 1) { - throw new Exception( - "Could not find unique subnet with name " - + subnetDisplayName - + " in compartment " - + compartmentId); - } - - return listSubnetsResponse.getItems().get(0); - } - - /** - * Deletes a subnet and waits for it to be deleted. - * - * @param vcnClient the service client to use to delete the subnet. - * @param subnetId the subnet to delete. - * @throws Exception - */ - private static void deleteSubnet(final VirtualNetworkClient vcnClient, final String subnetId) - throws Exception { - - final int DELETE_SUBNET_ATTEMPTS = 5; - /* - * Sometimes we can't delete the subnet straight after a mount target has been deleted - * as network resources still need to clear. If we get a conflict, try a few times before - * bailing out. - */ - int numAttempts = 0; - while (true) { - try { - vcnClient.deleteSubnet(DeleteSubnetRequest.builder().subnetId(subnetId).build()); - break; - } catch (BmcException e) { - numAttempts++; - if (e.getStatusCode() == 409 && numAttempts < DELETE_SUBNET_ATTEMPTS) { - Thread.sleep(10000L); - } else { - throw e; - } - } - } - // Wait for 'Terminated' state. - vcnClient - .getWaiters() - .forSubnet( - GetSubnetRequest.builder().subnetId(subnetId).build(), - Subnet.LifecycleState.Terminated) - .execute(); - } - - // === OCI Application Helpers === - - /** - * Creates an Application and waits for the it to become available to use. - * - * @param fnManagementClient the service client to use to create the application. - * @param compartmentId the OCID of the compartment which owns the Application. - * @param displayName the display name ofr the created Application. - * @param subnetIds a List of subnets (in different ADs) that will expose the function. - * @return the created application. - * @throws Exception if there is an error waiting on the application to become available to use. - */ - private static Application createApplication( - final FunctionsManagementClient fnManagementClient, - final String compartmentId, - final String displayName, - final List subnetIds) - throws Exception { - - // Create a new Application. - final CreateApplicationResponse createApplicationResponse = - fnManagementClient.createApplication( - CreateApplicationRequest.builder() - .createApplicationDetails( - CreateApplicationDetails.builder() - .compartmentId(compartmentId) - .displayName(displayName) - .subnetIds(subnetIds) - .build()) - .build()); - - // Wait for Application to be in 'Active' state. - final GetApplicationResponse getApplicationResponse = - fnManagementClient - .getWaiters() - .forApplication( - GetApplicationRequest.builder() - .applicationId( - createApplicationResponse.getApplication().getId()) - .build(), - Application.LifecycleState.Active) - .execute(); - - return getApplicationResponse.getApplication(); - } - - /** - * Gets the Application info of a single uniquely named Application in the specified compartment. - * - * @param fnManagementClient the service client to use to get the Application information. - * @param compartmentId of the application. - * @param applicationDisplayName of the application. - * @return the ApplicationSummary. - * @throws Exception - */ - public static ApplicationSummary getUniqueApplicationByName( - final FunctionsManagementClient fnManagementClient, - final String compartmentId, - final String applicationDisplayName) - throws Exception { - - // Find the application in a specific compartment - final ListApplicationsRequest listApplicationsRequest = - ListApplicationsRequest.builder() - .displayName(applicationDisplayName) - .compartmentId(compartmentId) - .build(); - - final ListApplicationsResponse resp = - fnManagementClient.listApplications(listApplicationsRequest); - - if (resp.getItems().size() != 1) { - throw new Exception( - "Could not find unique application with name " - + applicationDisplayName - + " in compartment " - + compartmentId); - } - - final ApplicationSummary application = resp.getItems().get(0); - return application; - } - - /** - * Deletes an Application and waits for it to be deleted. - * - * @param fnManagementClient the service client to use to delete the Application. - * @param applicationId the Application to delete. - * @throws Exception if there is an error waiting on the Application to be deleted. - */ - private static void deleteApplication( - final FunctionsManagementClient fnManagementClient, final String applicationId) - throws Exception { - - // Delete the specified Application - fnManagementClient.deleteApplication( - DeleteApplicationRequest.builder().applicationId(applicationId).build()); - - // Wait for the 'Deleted' status. - fnManagementClient - .getWaiters() - .forApplication( - GetApplicationRequest.builder().applicationId(applicationId).build(), - Application.LifecycleState.Deleted) - .execute(); - } - - // === OCI Function Helpers === - - /** - * Creates a Function and waits for the it to become available to use. - * - * @param fnManagementClient the service client to use to create the Application. - * @param applicationId the OCID of the Application which owns the Function. - * @param displayName the display name of created Function. - * @param image an accessible OCI Registry image implementing the function to be executed. - * @param memoryInMBs the maximum amount of memory available (128, 256, 512, 1024) to the function in MB. - * @param timeoutInSeconds the maximum amount of time a function can execute (30 - 120) in seconds. - * @return the created Function. - * @throws Exception - */ - private static Function createFunction( - final FunctionsManagementClient fnManagementClient, - final String applicationId, - final String displayName, - final String image, - final long memoryInMBs, - final int timeoutInSeconds) - throws Exception { - - // Create a new Function. - final CreateFunctionResponse createFunctionResponse = - fnManagementClient.createFunction( - CreateFunctionRequest.builder() - .createFunctionDetails( - CreateFunctionDetails.builder() - .applicationId(applicationId) - .displayName(displayName) - .image(image) - .memoryInMBs(memoryInMBs) - .timeoutInSeconds(timeoutInSeconds) - .build()) - .build()); - - // Wait for Function to be in 'Active' state. - final GetFunctionResponse getFunctionResponse = - fnManagementClient - .getWaiters() - .forFunction( - GetFunctionRequest.builder() - .functionId(createFunctionResponse.getFunction().getId()) - .build(), - Function.LifecycleState.Active) - .execute(); - - return getFunctionResponse.getFunction(); - } - - /** - * Gets Function information. This is an expensive operation and the results should be cached. - * - * @param fnManagementClient the service client to use to get the Function information. - * @param compartmentId of the application and function. - * @param applicationDisplayName of the application. - * @param functionDisplayName of the function. - * @return the FunctionSummary. - * @throws Exception - */ - public static FunctionSummary getUniqueFunctionByName( - final FunctionsManagementClient fnManagementClient, - final String compartmentId, - final String applicationDisplayName, - final String functionDisplayName) - throws Exception { - final ApplicationSummary application = - getUniqueApplicationByName( - fnManagementClient, compartmentId, applicationDisplayName); - return getUniqueFunctionByName( - fnManagementClient, application.getId(), functionDisplayName); - } - - /** - * Gets Function information. This is an expensive operation and the results should be cached. - * - * @param fnManagementClient the service client to use to get the Function information. - * @param applicationId of the function to find. - * @param functionDisplayName of the function to find. - * @return the FunctionSummary. - * @throws Exception - */ - public static FunctionSummary getUniqueFunctionByName( - final FunctionsManagementClient fnManagementClient, - final String applicationId, - final String functionDisplayName) - throws Exception { - - final ListFunctionsRequest listFunctionsRequest = - ListFunctionsRequest.builder() - .applicationId(applicationId) - .displayName(functionDisplayName) - .build(); - - final ListFunctionsResponse listFunctionsResponse = - fnManagementClient.listFunctions(listFunctionsRequest); - - if (listFunctionsResponse.getItems().size() != 1) { - throw new Exception( - "Could not find function with name " - + functionDisplayName - + " in application " - + applicationId); - } - - return listFunctionsResponse.getItems().get(0); - } - - /** - * Deletes a Function and waits for it to be deleted. - * - * @param fnManagementClient the service client to use to delete the Function. - * @param functionId the Function to delete. - * @throws Exception - */ - private static void deleteFunction( - final FunctionsManagementClient fnManagementClient, final String functionId) - throws Exception { - - // Delete the specified Function. - fnManagementClient.deleteFunction( - DeleteFunctionRequest.builder().functionId(functionId).build()); - - // Wait for the 'Deleted' status. - fnManagementClient - .getWaiters() - .forFunction( - GetFunctionRequest.builder().functionId(functionId).build(), - Function.LifecycleState.Deleted) - .execute(); - } - - /** - * Invokes a function. - * - * @param fnInvokeClient the service client to use to delete the Function. - * @param function the Function to invoke. - * @param payload the payload to pass to the function. - */ - private static String invokeFunction( - final FunctionsInvokeClient fnInvokeClient, - final FunctionSummary function, - final String payload) - throws Exception { - String response; - try { - System.err.println("Invoking function endpoint - " + function.getInvokeEndpoint()); - - // Configure the client to use the assigned function endpoint. - fnInvokeClient.setEndpoint(function.getInvokeEndpoint()); - final InvokeFunctionRequest invokeFunctionRequest = - InvokeFunctionRequest.builder() - .functionId(function.getId()) - .invokeFunctionBody( - StreamUtils.createByteArrayInputStream(payload.getBytes())) - .build(); - - // Invoke the function! - final InvokeFunctionResponse invokeFunctionResponse = - fnInvokeClient.invokeFunction(invokeFunctionRequest); - - // Handle the response. - response = - StreamUtils.toString( - invokeFunctionResponse.getInputStream(), StandardCharsets.UTF_8); - - } catch (final Exception e) { - e.printStackTrace(); - System.err.println("Failed to invoke function: " + e); - throw e; - } - - return response; - } - - // === Utility Helpers === - - private static String vcnName(final String name) { - return name + "-vcn"; - } - - private static String igName(final String name) { - return name + "-ig"; - } - - private static String drtName(final String name) { - return "Default Route Table for " + name + "-vcn"; - } - - private static String subnetName(final String name) { - return name + "-subnet"; - } - - private static String applicationName(final String name) { - return name + "-app"; - } - - private static String functionName(final String name) { - return name + "-fn"; - } -} +//Temporarily comment out the function lifecycle example - DEXREQ-8520 +//import com.oracle.bmc.ConfigFileReader; +//import com.oracle.bmc.Region; +//import com.oracle.bmc.auth.AuthenticationDetailsProvider; +//import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider; +//import com.oracle.bmc.core.VirtualNetworkClient; +//import com.oracle.bmc.core.model.CreateInternetGatewayDetails; +//import com.oracle.bmc.core.model.CreateSubnetDetails; +//import com.oracle.bmc.core.model.CreateVcnDetails; +//import com.oracle.bmc.core.model.InternetGateway; +//import com.oracle.bmc.core.model.RouteRule; +//import com.oracle.bmc.core.model.RouteRule.DestinationType; +//import com.oracle.bmc.core.model.RouteTable; +//import com.oracle.bmc.core.model.Subnet; +//import com.oracle.bmc.core.model.UpdateRouteTableDetails; +//import com.oracle.bmc.core.model.Vcn; +//import com.oracle.bmc.core.requests.CreateInternetGatewayRequest; +//import com.oracle.bmc.core.requests.CreateSubnetRequest; +//import com.oracle.bmc.core.requests.CreateVcnRequest; +//import com.oracle.bmc.core.requests.DeleteInternetGatewayRequest; +//import com.oracle.bmc.core.requests.DeleteSubnetRequest; +//import com.oracle.bmc.core.requests.DeleteVcnRequest; +//import com.oracle.bmc.core.requests.GetInternetGatewayRequest; +//import com.oracle.bmc.core.requests.GetSubnetRequest; +//import com.oracle.bmc.core.requests.GetVcnRequest; +//import com.oracle.bmc.core.requests.ListInternetGatewaysRequest; +//import com.oracle.bmc.core.requests.ListRouteTablesRequest; +//import com.oracle.bmc.core.requests.ListSubnetsRequest; +//import com.oracle.bmc.core.requests.ListVcnsRequest; +//import com.oracle.bmc.core.requests.UpdateRouteTableRequest; +//import com.oracle.bmc.core.responses.CreateInternetGatewayResponse; +//import com.oracle.bmc.core.responses.CreateSubnetResponse; +//import com.oracle.bmc.core.responses.CreateVcnResponse; +//import com.oracle.bmc.core.responses.GetSubnetResponse; +//import com.oracle.bmc.core.responses.GetVcnResponse; +//import com.oracle.bmc.core.responses.ListInternetGatewaysResponse; +//import com.oracle.bmc.core.responses.ListRouteTablesResponse; +//import com.oracle.bmc.core.responses.ListSubnetsResponse; +//import com.oracle.bmc.core.responses.ListVcnsResponse; +//import com.oracle.bmc.core.responses.UpdateRouteTableResponse; +//import com.oracle.bmc.functions.FunctionsInvokeClient; +//import com.oracle.bmc.functions.FunctionsManagementClient; +//import com.oracle.bmc.functions.model.Application; +//import com.oracle.bmc.functions.model.ApplicationSummary; +//import com.oracle.bmc.functions.model.CreateApplicationDetails; +//import com.oracle.bmc.functions.model.CreateFunctionDetails; +//import com.oracle.bmc.functions.model.Function; +//import com.oracle.bmc.functions.model.FunctionSummary; +//import com.oracle.bmc.functions.requests.CreateApplicationRequest; +//import com.oracle.bmc.functions.requests.CreateFunctionRequest; +//import com.oracle.bmc.functions.requests.DeleteApplicationRequest; +//import com.oracle.bmc.functions.requests.DeleteFunctionRequest; +//import com.oracle.bmc.functions.requests.GetApplicationRequest; +//import com.oracle.bmc.functions.requests.GetFunctionRequest; +//import com.oracle.bmc.functions.requests.InvokeFunctionRequest; +//import com.oracle.bmc.functions.requests.ListApplicationsRequest; +//import com.oracle.bmc.functions.requests.ListFunctionsRequest; +//import com.oracle.bmc.functions.responses.CreateApplicationResponse; +//import com.oracle.bmc.functions.responses.CreateFunctionResponse; +//import com.oracle.bmc.functions.responses.GetApplicationResponse; +//import com.oracle.bmc.functions.responses.GetFunctionResponse; +//import com.oracle.bmc.functions.responses.InvokeFunctionResponse; +//import com.oracle.bmc.functions.responses.ListApplicationsResponse; +//import com.oracle.bmc.functions.responses.ListFunctionsResponse; +//import com.oracle.bmc.identity.Identity; +//import com.oracle.bmc.identity.IdentityClient; +//import com.oracle.bmc.identity.model.AvailabilityDomain; +//import com.oracle.bmc.identity.requests.ListAvailabilityDomainsRequest; +//import com.oracle.bmc.identity.responses.ListAvailabilityDomainsResponse; +//import com.oracle.bmc.model.BmcException; +//import com.oracle.bmc.util.StreamUtils; +// +//import java.nio.charset.StandardCharsets; +//import java.util.ArrayList; +//import java.util.List; +// +//public class InvokeFunctionExample { +// +// final static Region DEFAULT_REGION = Region.US_PHOENIX_1; +// +// final static String SETUP = "setup"; +// final static String INVOKE = "invoke"; +// final static String TEARDOWN = "teardown"; +// +// /** +// * This is a basic example of how to register and invoke a serverless Function +// * on OCI using the Java SDK. +// * +// * The example has some pre-requisites. In particular you will need to create a +// * Function image and publish it to OCI Registry. The best way to do this is with the 'Fn +// * CLI': +// * +// * 1. Install Fn CLI : https://github.com/fnproject/cli +// * +// * 2. Create Function - Quick Guide : +// * https://github.com/fnproject/fn/blob/master/README.md +// * +// * This sample will do following things: +// * +// * 1. Create VCN and subnets - Provide an endpoint on which your function can be +// * invoked. +// * +// * 2. Create Application and Function - Register and configure your function. +// * +// * 3. Invoke Function - How your function can be invoked. +// * +// * 4. Clean-up - Tidy up the resources created above. +// * +// * NB: To simplify things, this example is hardcoded to use the 'us-phoenix-1' OCI +// * region. +// * +// * NB: Currently, after invoking a function we must wait up to 30 minutes before +// * clearing down any supporting Subnets and VCN. +// * +// * @param args Arguments to provide to the example. The following arguments are expected: +// *
    +// *
  • The operation to perform - 'setup', 'invoke' or 'teardown'.
  • +// *
  • The OCID of the compartment where the function and associated resources will be created.
  • +// *
  • A valid OCI Registry function image.
  • +// *
  • The payload to be sent to the function on invocation (optional).
  • +// *
+// * @throws Exception +// */ +// public static void main(String[] args) throws Exception { +// if (args.length < 3) { +// throw new IllegalArgumentException( +// "Invalid number of arguments provided to the script."); +// } +// +// // Handle commands: {setup, invoke, teardown} +// final String command = args[0]; +// if (!command.equalsIgnoreCase(SETUP) +// && !command.equalsIgnoreCase(INVOKE) +// && !command.equalsIgnoreCase(TEARDOWN)) { +// throw new Exception( +// "Please provide 'setup', 'invoke' or 'teardown' as the first argument."); +// } +// +// // We need a target compartment. +// final String compartmentId = args[1]; +// +// // We need an accessible image in the Phoenix region to invoke. +// // e.g. phx.ocir.io/tenancy-name/registry/imagename:version +// final String image = args[2]; +// +// // All resources will be prefixed with this name. +// final String name = "oci-java-sdk-function-example"; +// +// // The default region to use. +// final Region region = DEFAULT_REGION; +// +// // Depending on the image chosen a payload can be specified. +// final String payload = (args.length >= 4) ? args[3] : ""; +// +// // Configure Auth +// final String configurationFilePath = "~/.oci/config"; +// final String profile = "DEFAULT"; +// // Configuring the AuthenticationDetailsProvider. It's assuming there is a default OCI config file +// // "~/.oci/config", and a profile in that config with the name "DEFAULT". Make changes to the following +// // line if needed and use ConfigFileReader.parse(configurationFilePath, profile); +// +// final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault(); +// +// final AuthenticationDetailsProvider provider = +// new ConfigFileAuthenticationDetailsProvider(configFile); +// +// try { +// if (command.equalsIgnoreCase(SETUP)) { +// setupResources(provider, region, compartmentId, name, image); +// } +// +// if (command.equalsIgnoreCase(INVOKE)) { +// invokeFunction(provider, region, compartmentId, name, payload); +// } +// +// if (command.equalsIgnoreCase(TEARDOWN)) { +// teardownResources(provider, region, compartmentId, name); +// } +// } catch (Exception e) { +// e.printStackTrace(); +// System.err.println("Error: " + e); +// } +// } +// +// /** +// * Create all the OCI and Fn resources required to invoke a function. +// * +// * @param provider the OCI credentials provider. +// * @param region the OCI region in which to create the required +// * resources. +// * @param compartmentId the compartment in which to create the required +// * resources. +// * @param name a name prefix to easily identify the resources. +// * @param image a valid OCI Registry image for the function. +// * @throws Exception +// */ +// public static void setupResources( +// final AuthenticationDetailsProvider provider, +// final Region region, +// final String compartmentId, +// final String name, +// final String image) +// throws Exception { +// +// final Identity identityClient = new IdentityClient(provider); +// identityClient.setRegion(region); +// +// final VirtualNetworkClient vcnClient = new VirtualNetworkClient(provider); +// vcnClient.setRegion(region); +// +// final FunctionsManagementClient fnManagementClient = +// new FunctionsManagementClient(provider); +// fnManagementClient.setRegion(region); +// +// try { +// // 1. A list of AvailabilityDomains are required to determine where to host each +// // subnet. +// final List availabilityDomains = +// getAvailabilityDomains(identityClient, compartmentId); +// final AvailabilityDomain ad = availabilityDomains.get(0); +// System.out.println("Using availability domain: " + ad.getName()); +// +// // 2. A VCN is required to host subnets. +// final String vcnDisplayName = vcnName(name); +// final String vcnCidrBlock = "10.0.0.0/16"; +// final Vcn vcn = createVcn(vcnClient, compartmentId, vcnDisplayName, vcnCidrBlock); +// System.out.println("Created VCN: " + vcn.getDisplayName()); +// +// // 3. An Internet Gateway is required to enable the VCN to talk to the wider world. +// final String igDisplayName = igName(name); +// final InternetGateway ig = +// createInternetGateway(vcnClient, compartmentId, igDisplayName, vcn.getId()); +// +// // 4. We must configure the VCN's traffic to be routed through the IG. +// final String drtDisplayName = drtName(name); +// configureInternetGateway( +// vcnClient, compartmentId, vcn.getId(), ig.getId(), drtDisplayName); +// +// // 5. A subnet is required to expose and be able invoke the function. +// // In multiple AD regions, subnets can be created in multiple ADs to provide +// // redundancy. +// final String subnetDisplayName = subnetName(name); +// final String subnetCidrBlock = "10.0.0.0/24"; +// final Subnet subnet = +// createSubnet( +// vcnClient, +// compartmentId, +// vcn.getId(), +// subnetDisplayName, +// ad.getName(), +// subnetCidrBlock); +// System.out.println("Created VCN subnet: " + subnet.getDisplayName()); +// +// // 6. Create an Application to host and manage the function(s). +// final String appDisplayName = applicationName(name); +// final List subnetIds = new ArrayList<>(); +// subnetIds.add(subnet.getId()); +// final Application app = +// createApplication(fnManagementClient, compartmentId, appDisplayName, subnetIds); +// System.out.println("Created Application: " + app.getDisplayName()); +// +// // 7. Create a single Function, set its execution image and limits. +// final String fnDisplayName = functionName(name); +// final long memoryInMBs = 128L; +// final int timeoutInSeconds = 30; +// final Function fn = +// createFunction( +// fnManagementClient, +// app.getId(), +// fnDisplayName, +// image, +// memoryInMBs, +// timeoutInSeconds); +// System.out.println("Created Function: " + fn.getDisplayName()); +// +// } finally { +// fnManagementClient.close(); +// vcnClient.close(); +// identityClient.close(); +// } +// } +// +// /** +// * Invoke a function. +// * +// * @param provider the OCI credentials provider. +// * @param region the OCI region in which to create the required +// * resources. +// * @param compartmentId the compartment in which to created the required +// * resources. +// * @param name a name prefix to easily identify the resources. +// * @param payload the payload to be sent to the function on invocation. +// * @throws Exception +// */ +// public static void invokeFunction( +// final AuthenticationDetailsProvider provider, +// final Region region, +// final String compartmentId, +// final String name, +// final String payload) +// throws Exception { +// +// final FunctionsManagementClient fnManagementClient = +// new FunctionsManagementClient(provider); +// fnManagementClient.setRegion(region); +// +// final FunctionsInvokeClient fnInvokeClient = new FunctionsInvokeClient(provider); +// +// try { +// // Invoke the function! +// final String appName = applicationName(name); +// final String fnName = functionName(name); +// final FunctionSummary fn = +// getUniqueFunctionByName(fnManagementClient, compartmentId, appName, fnName); +// +// final String response = invokeFunction(fnInvokeClient, fn, payload); +// if (response != null) { +// System.out.println("Response from function: " + response); +// } +// } finally { +// fnInvokeClient.close(); +// fnManagementClient.close(); +// } +// } +// +// /** +// * Remove all resources created by the 'setup' operation. +// * +// * NB: Resources can only be removed 30 minutes after the last Function +// * invocation. +// * +// * @param provider the OCI credentials provider. +// * @param region the OCI region in which to create the required +// * resources. +// * @param compartmentId the compartment in which to created the required +// * resources. +// * @param name a name prefix to easily identify the resources. +// * @throws Exception +// */ +// public static void teardownResources( +// final AuthenticationDetailsProvider provider, +// final Region region, +// final String compartmentId, +// final String name) +// throws Exception { +// +// final Identity identityClient = new IdentityClient(provider); +// identityClient.setRegion(region); +// +// final VirtualNetworkClient vcnClient = new VirtualNetworkClient(provider); +// vcnClient.setRegion(region); +// +// final FunctionsManagementClient fnManagementClient = +// new FunctionsManagementClient(provider); +// fnManagementClient.setRegion(region); +// +// try { +// System.out.println("Cleaning up"); +// +// final String vcnName = vcnName(name); +// final String igName = igName(name); +// final String drtName = drtName(name); +// final String subnetName = subnetName(name); +// final String appName = applicationName(name); +// final String fnName = functionName(name); +// +// final Vcn vcn = getUniqueVcnByName(vcnClient, compartmentId, vcnName); +// +// final InternetGateway ig = +// getUniqueInternetGatewayByName(vcnClient, compartmentId, vcn.getId(), igName); +// +// final RouteTable rt = +// getUniqueRouteTableByName(vcnClient, compartmentId, vcn.getId(), drtName); +// +// final Subnet subnet = +// getUniqueSubnetByName(vcnClient, compartmentId, vcn.getId(), subnetName); +// +// final ApplicationSummary application = +// getUniqueApplicationByName(fnManagementClient, compartmentId, appName); +// +// final FunctionSummary fn = +// getUniqueFunctionByName(fnManagementClient, application.getId(), fnName); +// +// if (fn != null) { +// deleteFunction(fnManagementClient, fn.getId()); +// System.out.println("Deleted function: " + fn.getDisplayName()); +// } +// +// if (application != null) { +// deleteApplication(fnManagementClient, application.getId()); +// System.out.println("Deleted application: " + application.getDisplayName()); +// } +// +// if (subnet != null) { +// deleteSubnet(vcnClient, subnet.getId()); +// System.out.println("Deleted subnet: " + subnet.getDisplayName()); +// } +// +// if (rt != null) { +// prepareDefaultRouteTableForDelete(vcnClient, rt.getId()); +// System.out.println("Cleaned route table: " + subnet.getDisplayName()); +// } +// +// if (ig != null) { +// deleteInternetGateway(vcnClient, ig.getId()); +// System.out.println("Deleted internet gateway: " + subnet.getDisplayName()); +// } +// +// if (vcn != null) { +// deleteVcn(vcnClient, vcn); +// System.out.println("Deleted VCN: " + vcn.getDisplayName()); +// } +// +// } finally { +// fnManagementClient.close(); +// vcnClient.close(); +// identityClient.close(); +// } +// } +// +// // === OCI Identity Helpers === +// +// /** +// * List the AvailabilityDomains. +// * +// * @param identityClient the service client to use to fetch the +// * AvailabilityDomains. +// * @param compartmentId the OCID of the compartment to check. +// * @return the list of AvailabilityDomains. +// * @throws Exception +// */ +// public static List getAvailabilityDomains( +// final Identity identityClient, final String compartmentId) throws Exception { +// +// final ListAvailabilityDomainsResponse listAvailabilityDomainsResponse = +// identityClient.listAvailabilityDomains( +// ListAvailabilityDomainsRequest.builder() +// .compartmentId(compartmentId) +// .build()); +// +// return listAvailabilityDomainsResponse.getItems(); +// } +// +// // === OCI VCN Helpers === +// +// /** +// * Creates a VCN and waits for it to become available to use. +// * +// * @param vcnClient the service client to use to create the VCN. +// * @param compartmentId the OCID of the compartment where the VCN will be +// * created. +// * @param displayName the displayName of the VCN. +// * @param cidrBlock the CidrBlock allocated for the VCN. +// * @return the created VCN. +// * @throws Exception +// */ +// private static Vcn createVcn( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String displayName, +// final String cidrBlock) +// throws Exception { +// +// final CreateVcnResponse createVcnResponse = +// vcnClient.createVcn( +// CreateVcnRequest.builder() +// .createVcnDetails( +// CreateVcnDetails.builder() +// .compartmentId(compartmentId) +// .displayName(displayName) +// .cidrBlock(cidrBlock) +// .build()) +// .build()); +// +// final GetVcnResponse getVcnResponse = +// vcnClient +// .getWaiters() +// .forVcn( +// GetVcnRequest.builder() +// .vcnId(createVcnResponse.getVcn().getId()) +// .build(), +// Vcn.LifecycleState.Available) +// .execute(); +// +// return getVcnResponse.getVcn(); +// } +// +// /** +// * Gets VCN info of a single uniquely named VCN in the specified compartment. +// * +// * @param vcnClient the service client to use to query the VCN. +// * @param compartmentId of the VCN. +// * @param vcnDisplayName of the VCN. +// * @return the VCN. +// * @throws Exception +// */ +// public static Vcn getUniqueVcnByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListVcnsRequest listVcnsRequest = +// ListVcnsRequest.builder() +// .compartmentId(compartmentId) +// .displayName(vcnDisplayName) +// .build(); +// +// final ListVcnsResponse listVcnsResponse = vcnClient.listVcns(listVcnsRequest); +// +// if (listVcnsResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique VCN with name " +// + vcnDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listVcnsResponse.getItems().get(0); +// } +// +// /** +// * Deletes a VCN and waits for it to be deleted. +// * +// * @param vcnClient the service client to use to delete the VCN. +// * @param vcn the VCN to delete. +// * @throws Exception +// */ +// private static void deleteVcn(final VirtualNetworkClient vcnClient, final Vcn vcn) +// throws Exception { +// +// vcnClient.deleteVcn(DeleteVcnRequest.builder().vcnId(vcn.getId()).build()); +// +// vcnClient +// .getWaiters() +// .forVcn( +// GetVcnRequest.builder().vcnId(vcn.getId()).build(), +// Vcn.LifecycleState.Terminated) +// .execute(); +// } +// +// // === OCI Internet Gateway Helpers === +// +// private static InternetGateway createInternetGateway( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String displayName, +// final String vcnId) +// throws Exception { +// +// final CreateInternetGatewayResponse createInternetGatewayResponse = +// vcnClient.createInternetGateway( +// CreateInternetGatewayRequest.builder() +// .createInternetGatewayDetails( +// CreateInternetGatewayDetails.builder() +// .compartmentId(compartmentId) +// .displayName(displayName) +// .vcnId(vcnId) +// .isEnabled(true) +// .build()) +// .build()); +// +// vcnClient +// .getWaiters() +// .forInternetGateway( +// GetInternetGatewayRequest.builder() +// .igId(createInternetGatewayResponse.getInternetGateway().getId()) +// .build(), +// InternetGateway.LifecycleState.Available) +// .execute(); +// +// return createInternetGatewayResponse.getInternetGateway(); +// } +// +// /** +// * Gets InternetGateway info of a single uniquely named InternetGateway in the +// * specified compartment. +// * +// * @param vcnClient the service client to use to query the InternetGateway. +// * @param compartmentId of the InternetGateway. +// * @param vcnId of the InternetGateway's associated VCN. +// * @param igDisplayName of the InternetGateway. +// * @return the InternetGateway. +// * @throws Exception +// */ +// public static InternetGateway getUniqueInternetGatewayByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String igDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListInternetGatewaysRequest listInternetGatewaysRequest = +// ListInternetGatewaysRequest.builder() +// .compartmentId(compartmentId) +// .vcnId(vcnId) +// .displayName(igDisplayName) +// .build(); +// +// final ListInternetGatewaysResponse listInternetGatewaysResponse = +// vcnClient.listInternetGateways(listInternetGatewaysRequest); +// +// if (listInternetGatewaysResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique InternetGateway with name " +// + igDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listInternetGatewaysResponse.getItems().get(0); +// } +// +// /** +// * Deletes a InternetGateway and waits for it to be deleted. +// * +// * @param vcnClient the service client to use to delete the InternetGateway. +// * @param igId the InternetGateway to delete. +// * @throws Exception +// */ +// private static void deleteInternetGateway( +// final VirtualNetworkClient vcnClient, final String igId) throws Exception { +// +// vcnClient.deleteInternetGateway(DeleteInternetGatewayRequest.builder().igId(igId).build()); +// +// vcnClient +// .getWaiters() +// .forInternetGateway( +// GetInternetGatewayRequest.builder().igId(igId).build(), +// InternetGateway.LifecycleState.Terminated) +// .execute(); +// } +// +// // === OCI Route Table Helpers === +// +// /** +// * Configure the default RouteTable of the specified InternetGateway to ensure it +// * contains a single outbound route for all traffic. +// * +// * NB: You should restrict these routes further if you keep this piece of +// * OCI infrastructure. +// * +// * @param vcnClient the service client to use to query a RouteTable. +// * @param compartmentId of the RouteTable. +// * @param vcnId of the RouteTable's associated VCN. +// * @param igId of the RouteTable's associated InternetGateway. +// * @param drtDisplayName of the RouteTable. +// * @return the InternetGateway. +// * @throws Exception +// */ +// private static RouteTable configureInternetGateway( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String igId, +// final String rtDisplayName) +// throws Exception { +// +// final RouteTable defaultRouteTable = +// getUniqueRouteTableByName(vcnClient, compartmentId, vcnId, rtDisplayName); +// +// final String destinationCidr = "0.0.0.0/0"; +// final List routeRules = defaultRouteTable.getRouteRules(); +// routeRules.add( +// RouteRule.builder() +// .cidrBlock(destinationCidr) +// .destination(destinationCidr) +// .destinationType(DestinationType.valueOf("CidrBlock")) +// .networkEntityId(igId) +// .build()); +// +// final UpdateRouteTableResponse updateRouteTableResponse = +// vcnClient.updateRouteTable( +// UpdateRouteTableRequest.builder() +// .rtId(defaultRouteTable.getId()) +// .updateRouteTableDetails( +// UpdateRouteTableDetails.builder() +// .routeRules(routeRules) +// .build()) +// .build()); +// +// return updateRouteTableResponse.getRouteTable(); +// } +// +// /** +// * Gets RouteTable info of a single uniquely named RouteTable in the +// * specified compartment. +// * +// * @param vcnClient the service client to use to query a RouteTable. +// * @param compartmentId of the RouteTable. +// * @param vcnId of the RouteTable's associated VCN. +// * @param rtDisplayName of the RouteTable. +// * @return the InternetGateway. +// * @throws Exception +// */ +// public static RouteTable getUniqueRouteTableByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String rtDisplayName) +// throws Exception { +// +// // Find the route table in a specific compartment +// final ListRouteTablesRequest listRouteTablesRequest = +// ListRouteTablesRequest.builder() +// .compartmentId(compartmentId) +// .vcnId(vcnId) +// .displayName(rtDisplayName) +// .build(); +// +// final ListRouteTablesResponse listRouteTablesResponse = +// vcnClient.listRouteTables(listRouteTablesRequest); +// +// if (listRouteTablesResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique RouteTable with name " +// + rtDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listRouteTablesResponse.getItems().get(0); +// } +// +// /** +// * Prepares a DefaultRouteTable for deletion by deleting all RouteRules. +// * +// * @param vcnClient the service client to use to delete the RouteTable. +// * @param rtId the RouteTable to delete. +// * @throws Exception +// */ +// private static void prepareDefaultRouteTableForDelete( +// final VirtualNetworkClient vcnClient, final String rtId) throws Exception { +// +// vcnClient.updateRouteTable( +// UpdateRouteTableRequest.builder() +// .rtId(rtId) +// .updateRouteTableDetails( +// UpdateRouteTableDetails.builder() +// .routeRules(new ArrayList()) +// .build()) +// .build()); +// } +// +// // === OCI Subnet Helpers === +// +// /** +// * Creates a subnet in a VCN and waits for the subnet to become available to use. +// * +// * @param vcnClient the service client to use to create the subnet. +// * @param compartmentId the OCID of the compartment which owns the VCN. +// * @param vcnId the ID of the VCN which will own the subnet. +// * @param displayName the display name of the subnet. +// * @param availabilityDomainName the availability domain where the subnet will be created. +// * @param subnetCidrBlock the subnet CidrBlock allocated from the parent VCN range. +// * @return the created subnet. +// * @throws Exception +// */ +// private static Subnet createSubnet( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String displayName, +// final String availabilityDomain, +// final String subnetCidrBlock) +// throws Exception { +// +// // Create the subnet +// final CreateSubnetResponse createSubnetResponse = +// vcnClient.createSubnet( +// CreateSubnetRequest.builder() +// .createSubnetDetails( +// CreateSubnetDetails.builder() +// .availabilityDomain(availabilityDomain) +// .compartmentId(compartmentId) +// .displayName(displayName) +// .cidrBlock(subnetCidrBlock) +// .vcnId(vcnId) +// .build()) +// .build()); +// +// // Wait for the subnet to be active +// final GetSubnetResponse getSubnetResponse = +// vcnClient +// .getWaiters() +// .forSubnet( +// GetSubnetRequest.builder() +// .subnetId(createSubnetResponse.getSubnet().getId()) +// .build(), +// Subnet.LifecycleState.Available) +// .execute(); +// +// return getSubnetResponse.getSubnet(); +// } +// +// /** +// * Gets Subnet info of a single uniquely named VCN in the specified compartment. +// * +// * @param vcnClient the service client to use to query the Subnet. +// * @param compartmentId of the Subnet. +// * @param vcnId of the Subnet. +// * @param subnetDisplayName of the Subnet. +// * @return the Subnet. +// * @throws Exception +// */ +// public static Subnet getUniqueSubnetByName( +// final VirtualNetworkClient vcnClient, +// final String compartmentId, +// final String vcnId, +// final String subnetDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListSubnetsRequest listSubnetsRequest = +// ListSubnetsRequest.builder() +// .compartmentId(compartmentId) +// .vcnId(vcnId) +// .displayName(subnetDisplayName) +// .build(); +// +// final ListSubnetsResponse listSubnetsResponse = vcnClient.listSubnets(listSubnetsRequest); +// +// if (listSubnetsResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique subnet with name " +// + subnetDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// return listSubnetsResponse.getItems().get(0); +// } +// +// /** +// * Deletes a subnet and waits for it to be deleted. +// * +// * @param vcnClient the service client to use to delete the subnet. +// * @param subnetId the subnet to delete. +// * @throws Exception +// */ +// private static void deleteSubnet(final VirtualNetworkClient vcnClient, final String subnetId) +// throws Exception { +// +// final int DELETE_SUBNET_ATTEMPTS = 5; +// /* +// * Sometimes we can't delete the subnet straight after a mount target has been deleted +// * as network resources still need to clear. If we get a conflict, try a few times before +// * bailing out. +// */ +// int numAttempts = 0; +// while (true) { +// try { +// vcnClient.deleteSubnet(DeleteSubnetRequest.builder().subnetId(subnetId).build()); +// break; +// } catch (BmcException e) { +// numAttempts++; +// if (e.getStatusCode() == 409 && numAttempts < DELETE_SUBNET_ATTEMPTS) { +// Thread.sleep(10000L); +// } else { +// throw e; +// } +// } +// } +// // Wait for 'Terminated' state. +// vcnClient +// .getWaiters() +// .forSubnet( +// GetSubnetRequest.builder().subnetId(subnetId).build(), +// Subnet.LifecycleState.Terminated) +// .execute(); +// } +// +// // === OCI Application Helpers === +// +// /** +// * Creates an Application and waits for the it to become available to use. +// * +// * @param fnManagementClient the service client to use to create the application. +// * @param compartmentId the OCID of the compartment which owns the Application. +// * @param displayName the display name ofr the created Application. +// * @param subnetIds a List of subnets (in different ADs) that will expose the function. +// * @return the created application. +// * @throws Exception if there is an error waiting on the application to become available to use. +// */ +// private static Application createApplication( +// final FunctionsManagementClient fnManagementClient, +// final String compartmentId, +// final String displayName, +// final List subnetIds) +// throws Exception { +// +// // Create a new Application. +// final CreateApplicationResponse createApplicationResponse = +// fnManagementClient.createApplication( +// CreateApplicationRequest.builder() +// .createApplicationDetails( +// CreateApplicationDetails.builder() +// .compartmentId(compartmentId) +// .displayName(displayName) +// .subnetIds(subnetIds) +// .build()) +// .build()); +// +// // Wait for Application to be in 'Active' state. +// final GetApplicationResponse getApplicationResponse = +// fnManagementClient +// .getWaiters() +// .forApplication( +// GetApplicationRequest.builder() +// .applicationId( +// createApplicationResponse.getApplication().getId()) +// .build(), +// Application.LifecycleState.Active) +// .execute(); +// +// return getApplicationResponse.getApplication(); +// } +// +// /** +// * Gets the Application info of a single uniquely named Application in the specified compartment. +// * +// * @param fnManagementClient the service client to use to get the Application information. +// * @param compartmentId of the application. +// * @param applicationDisplayName of the application. +// * @return the ApplicationSummary. +// * @throws Exception +// */ +// public static ApplicationSummary getUniqueApplicationByName( +// final FunctionsManagementClient fnManagementClient, +// final String compartmentId, +// final String applicationDisplayName) +// throws Exception { +// +// // Find the application in a specific compartment +// final ListApplicationsRequest listApplicationsRequest = +// ListApplicationsRequest.builder() +// .displayName(applicationDisplayName) +// .compartmentId(compartmentId) +// .build(); +// +// final ListApplicationsResponse resp = +// fnManagementClient.listApplications(listApplicationsRequest); +// +// if (resp.getItems().size() != 1) { +// throw new Exception( +// "Could not find unique application with name " +// + applicationDisplayName +// + " in compartment " +// + compartmentId); +// } +// +// final ApplicationSummary application = resp.getItems().get(0); +// return application; +// } +// +// /** +// * Deletes an Application and waits for it to be deleted. +// * +// * @param fnManagementClient the service client to use to delete the Application. +// * @param applicationId the Application to delete. +// * @throws Exception if there is an error waiting on the Application to be deleted. +// */ +// private static void deleteApplication( +// final FunctionsManagementClient fnManagementClient, final String applicationId) +// throws Exception { +// +// // Delete the specified Application +// fnManagementClient.deleteApplication( +// DeleteApplicationRequest.builder().applicationId(applicationId).build()); +// +// // Wait for the 'Deleted' status. +// fnManagementClient +// .getWaiters() +// .forApplication( +// GetApplicationRequest.builder().applicationId(applicationId).build(), +// Application.LifecycleState.Deleted) +// .execute(); +// } +// +// // === OCI Function Helpers === +// +// /** +// * Creates a Function and waits for the it to become available to use. +// * +// * @param fnManagementClient the service client to use to create the Application. +// * @param applicationId the OCID of the Application which owns the Function. +// * @param displayName the display name of created Function. +// * @param image an accessible OCI Registry image implementing the function to be executed. +// * @param memoryInMBs the maximum amount of memory available (128, 256, 512, 1024) to the function in MB. +// * @param timeoutInSeconds the maximum amount of time a function can execute (30 - 120) in seconds. +// * @return the created Function. +// * @throws Exception +// */ +// private static Function createFunction( +// final FunctionsManagementClient fnManagementClient, +// final String applicationId, +// final String displayName, +// final String image, +// final long memoryInMBs, +// final int timeoutInSeconds) +// throws Exception { +// +// // Create a new Function. +// final CreateFunctionResponse createFunctionResponse = +// fnManagementClient.createFunction( +// CreateFunctionRequest.builder() +// .createFunctionDetails( +// CreateFunctionDetails.builder() +// .applicationId(applicationId) +// .displayName(displayName) +// .image(image) +// .memoryInMBs(memoryInMBs) +// .timeoutInSeconds(timeoutInSeconds) +// .build()) +// .build()); +// +// // Wait for Function to be in 'Active' state. +// final GetFunctionResponse getFunctionResponse = +// fnManagementClient +// .getWaiters() +// .forFunction( +// GetFunctionRequest.builder() +// .functionId(createFunctionResponse.getFunction().getId()) +// .build(), +// Function.LifecycleState.Active) +// .execute(); +// +// return getFunctionResponse.getFunction(); +// } +// +// /** +// * Gets Function information. This is an expensive operation and the results should be cached. +// * +// * @param fnManagementClient the service client to use to get the Function information. +// * @param compartmentId of the application and function. +// * @param applicationDisplayName of the application. +// * @param functionDisplayName of the function. +// * @return the FunctionSummary. +// * @throws Exception +// */ +// public static FunctionSummary getUniqueFunctionByName( +// final FunctionsManagementClient fnManagementClient, +// final String compartmentId, +// final String applicationDisplayName, +// final String functionDisplayName) +// throws Exception { +// final ApplicationSummary application = +// getUniqueApplicationByName( +// fnManagementClient, compartmentId, applicationDisplayName); +// return getUniqueFunctionByName( +// fnManagementClient, application.getId(), functionDisplayName); +// } +// +// /** +// * Gets Function information. This is an expensive operation and the results should be cached. +// * +// * @param fnManagementClient the service client to use to get the Function information. +// * @param applicationId of the function to find. +// * @param functionDisplayName of the function to find. +// * @return the FunctionSummary. +// * @throws Exception +// */ +// public static FunctionSummary getUniqueFunctionByName( +// final FunctionsManagementClient fnManagementClient, +// final String applicationId, +// final String functionDisplayName) +// throws Exception { +// +// final ListFunctionsRequest listFunctionsRequest = +// ListFunctionsRequest.builder() +// .applicationId(applicationId) +// .displayName(functionDisplayName) +// .build(); +// +// final ListFunctionsResponse listFunctionsResponse = +// fnManagementClient.listFunctions(listFunctionsRequest); +// +// if (listFunctionsResponse.getItems().size() != 1) { +// throw new Exception( +// "Could not find function with name " +// + functionDisplayName +// + " in application " +// + applicationId); +// } +// +// return listFunctionsResponse.getItems().get(0); +// } +// +// /** +// * Deletes a Function and waits for it to be deleted. +// * +// * @param fnManagementClient the service client to use to delete the Function. +// * @param functionId the Function to delete. +// * @throws Exception +// */ +// private static void deleteFunction( +// final FunctionsManagementClient fnManagementClient, final String functionId) +// throws Exception { +// +// // Delete the specified Function. +// fnManagementClient.deleteFunction( +// DeleteFunctionRequest.builder().functionId(functionId).build()); +// +// // Wait for the 'Deleted' status. +// fnManagementClient +// .getWaiters() +// .forFunction( +// GetFunctionRequest.builder().functionId(functionId).build(), +// Function.LifecycleState.Deleted) +// .execute(); +// } +// +// /** +// * Invokes a function. +// * +// * @param fnInvokeClient the service client to use to delete the Function. +// * @param function the Function to invoke. +// * @param payload the payload to pass to the function. +// */ +// private static String invokeFunction( +// final FunctionsInvokeClient fnInvokeClient, +// final FunctionSummary function, +// final String payload) +// throws Exception { +// String response; +// try { +// System.err.println("Invoking function endpoint - " + function.getInvokeEndpoint()); +// +// // Configure the client to use the assigned function endpoint. +// fnInvokeClient.setEndpoint(function.getInvokeEndpoint()); +// final InvokeFunctionRequest invokeFunctionRequest = +// InvokeFunctionRequest.builder() +// .functionId(function.getId()) +// .invokeFunctionBody( +// StreamUtils.createByteArrayInputStream(payload.getBytes())) +// .build(); +// +// // Invoke the function! +// final InvokeFunctionResponse invokeFunctionResponse = +// fnInvokeClient.invokeFunction(invokeFunctionRequest); +// +// // Handle the response. +// response = +// StreamUtils.toString( +// invokeFunctionResponse.getInputStream(), StandardCharsets.UTF_8); +// +// } catch (final Exception e) { +// e.printStackTrace(); +// System.err.println("Failed to invoke function: " + e); +// throw e; +// } +// +// return response; +// } +// +// // === Utility Helpers === +// +// private static String vcnName(final String name) { +// return name + "-vcn"; +// } +// +// private static String igName(final String name) { +// return name + "-ig"; +// } +// +// private static String drtName(final String name) { +// return "Default Route Table for " + name + "-vcn"; +// } +// +// private static String subnetName(final String name) { +// return name + "-subnet"; +// } +// +// private static String applicationName(final String name) { +// return name + "-app"; +// } +// +// private static String functionName(final String name) { +// return name + "-fn"; +// } +//} diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index fcba020b48e..8f6bcf852c4 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index ee93a0885b3..ac029844339 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index edb5c861e79..7085175304b 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index a285348969d..94291b7663d 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 2.97.0 + 2.98.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,7 +705,11 @@ com.oracle.oci.sdk - oci-java-sdk-distributeddatabasev26 + oci-java-sdk-clusterhealth + + + com.oracle.oci.sdk + oci-java-sdk-distributeddatabase \ No newline at end of file diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 7fb95ec3da7..362da4a1bfb 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-functions @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 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 b0dcd6df176..fe20189b28e 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 @@ -12,7 +12,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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsInvoke extends AutoCloseable { /** 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 c820ab7b0ed..b3506ba6943 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 @@ -11,7 +11,7 @@ * API for the Functions service. * */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsInvokeAsync extends AutoCloseable { /** 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 f10f5f559dd..ae355aa9278 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 @@ -23,7 +23,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsInvokeAsyncClient implements FunctionsInvokeAsync { /** * Service instance for FunctionsInvoke. @@ -498,7 +498,7 @@ public java.util.concurrent.Future invokeFunction( "FunctionsInvoke", "InvokeFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/InvokeFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/InvokeFunction"); final java.util.function.Function transformer = InvokeFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); 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 596e015abbb..7815852fdb0 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 @@ -11,7 +11,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsInvokeClient implements FunctionsInvoke { /** * Service instance for FunctionsInvoke. @@ -512,7 +512,7 @@ public InvokeFunctionResponse invokeFunction(InvokeFunctionRequest request) { "FunctionsInvoke", "InvokeFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/InvokeFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/InvokeFunction"); java.util.function.Function transformer = InvokeFunctionConverter.fromResponse( 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 bb071f2792e..b7c206ee49e 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 @@ -12,7 +12,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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsManagement extends AutoCloseable { /** @@ -147,6 +147,33 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( */ GetFunctionResponse getFunction(GetFunctionRequest request); + /** + * 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. * @@ -196,6 +223,35 @@ ChangeApplicationCompartmentResponse changeApplicationCompartment( */ ListFunctionsResponse listFunctions(ListFunctionsRequest request); + /** + * 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. 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 3929bb27053..871d57704f4 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 @@ -11,7 +11,7 @@ * API for the Functions service. * */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public interface FunctionsManagementAsync extends AutoCloseable { /** @@ -169,6 +169,40 @@ java.util.concurrent.Future getFunction( GetFunctionRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * 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. * @@ -231,6 +265,43 @@ java.util.concurrent.Future listFunctions( com.oracle.bmc.responses.AsyncHandler handler); + /** + * 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. 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 5248cae2a6d..9276837472a 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 @@ -23,7 +23,7 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementAsyncClient implements FunctionsManagementAsync { /** * Service instance for FunctionsManagement. @@ -488,7 +488,7 @@ public void close() { "FunctionsManagement", "ChangeApplicationCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/ChangeApplicationCompartment"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/ChangeApplicationCompartment"); final java.util.function.Function< javax.ws.rs.core.Response, ChangeApplicationCompartmentResponse> transformer = @@ -542,7 +542,7 @@ public java.util.concurrent.Future createApplication( "FunctionsManagement", "CreateApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/CreateApplication"); + ""); final java.util.function.Function transformer = CreateApplicationConverter.fromResponse( @@ -590,10 +590,7 @@ public java.util.concurrent.Future createFunction( CreateFunctionConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "FunctionsManagement", - "CreateFunction", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/CreateFunction"); + "FunctionsManagement", "CreateFunction", ib.getRequestUri().toString(), ""); final java.util.function.Function transformer = CreateFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -643,7 +640,7 @@ public java.util.concurrent.Future deleteApplication( "FunctionsManagement", "DeleteApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/DeleteApplication"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/DeleteApplication"); final java.util.function.Function transformer = DeleteApplicationConverter.fromResponse( @@ -689,7 +686,7 @@ public java.util.concurrent.Future deleteFunction( "FunctionsManagement", "DeleteFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/DeleteFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/DeleteFunction"); final java.util.function.Function transformer = DeleteFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -734,7 +731,7 @@ public java.util.concurrent.Future getApplication( "FunctionsManagement", "GetApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/GetApplication"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/GetApplication"); final java.util.function.Function transformer = GetApplicationConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -778,7 +775,7 @@ public java.util.concurrent.Future getFunction( "FunctionsManagement", "GetFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/GetFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/GetFunction"); final java.util.function.Function transformer = GetFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -807,6 +804,104 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getFunctionsRuntime( + GetFunctionsRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse> + handler) { + LOG.trace("Called async getFunctionsRuntime"); + final GetFunctionsRuntimeRequest interceptedRequest = + GetFunctionsRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFunctionsRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "GetFunctionsRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/GetFunctionsRuntime"); + final java.util.function.Function + transformer = + GetFunctionsRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetFunctionsRuntimeRequest, GetFunctionsRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeVersionRequest, + GetFunctionsRuntimeVersionResponse> + handler) { + LOG.trace("Called async getFunctionsRuntimeVersion"); + final GetFunctionsRuntimeVersionRequest interceptedRequest = + GetFunctionsRuntimeVersionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFunctionsRuntimeVersionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "GetFunctionsRuntimeVersion", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/GetFunctionsRuntimeVersion"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetFunctionsRuntimeVersionResponse> + transformer = + GetFunctionsRuntimeVersionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetFunctionsRuntimeVersionRequest, + GetFunctionsRuntimeVersionResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetFunctionsRuntimeVersionRequest, GetFunctionsRuntimeVersionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getPbfListing( GetPbfListingRequest request, @@ -822,7 +917,7 @@ public java.util.concurrent.Future getPbfListing( "FunctionsManagement", "GetPbfListing", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/GetPbfListing"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/GetPbfListing"); final java.util.function.Function transformer = GetPbfListingConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -867,7 +962,7 @@ public java.util.concurrent.Future getPbfListingVe "FunctionsManagement", "GetPbfListingVersion", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/GetPbfListingVersion"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/GetPbfListingVersion"); final java.util.function.Function transformer = GetPbfListingVersionConverter.fromResponse( @@ -914,7 +1009,7 @@ public java.util.concurrent.Future listApplications( "FunctionsManagement", "ListApplications", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/ApplicationSummary/ListApplications"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/ApplicationSummary/ListApplications"); final java.util.function.Function transformer = ListApplicationsConverter.fromResponse( @@ -959,7 +1054,7 @@ public java.util.concurrent.Future listFunctions( "FunctionsManagement", "ListFunctions", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/FunctionSummary/ListFunctions"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionSummary/ListFunctions"); final java.util.function.Function transformer = ListFunctionsConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -988,6 +1083,104 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listFunctionsRuntimeVersions( + ListFunctionsRuntimeVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse> + handler) { + LOG.trace("Called async listFunctionsRuntimeVersions"); + final ListFunctionsRuntimeVersionsRequest interceptedRequest = + ListFunctionsRuntimeVersionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFunctionsRuntimeVersionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "ListFunctionsRuntimeVersions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/ListFunctionsRuntimeVersions"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListFunctionsRuntimeVersionsResponse> + transformer = + ListFunctionsRuntimeVersionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimeVersionsRequest, ListFunctionsRuntimeVersionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimeVersionsRequest, + ListFunctionsRuntimeVersionsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListFunctionsRuntimeVersionsRequest, ListFunctionsRuntimeVersionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listFunctionsRuntimes( + ListFunctionsRuntimesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse> + handler) { + LOG.trace("Called async listFunctionsRuntimes"); + final ListFunctionsRuntimesRequest interceptedRequest = + ListFunctionsRuntimesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFunctionsRuntimesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "ListFunctionsRuntimes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/ListFunctionsRuntimes"); + final java.util.function.Function + transformer = + ListFunctionsRuntimesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListFunctionsRuntimesRequest, ListFunctionsRuntimesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listPbfListingVersions( ListPbfListingVersionsRequest request, @@ -1004,7 +1197,7 @@ public java.util.concurrent.Future listPbfListin "FunctionsManagement", "ListPbfListingVersions", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/ListPbfListingVersions"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/ListPbfListingVersions"); final java.util.function.Function transformer = ListPbfListingVersionsConverter.fromResponse( @@ -1051,7 +1244,7 @@ public java.util.concurrent.Future listPbfListings( "FunctionsManagement", "ListPbfListings", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/ListPbfListings"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/ListPbfListings"); final java.util.function.Function transformer = ListPbfListingsConverter.fromResponse( @@ -1096,7 +1289,7 @@ public java.util.concurrent.Future listTriggers( "FunctionsManagement", "ListTriggers", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/TriggersCollection/ListTriggers"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/TriggersCollection/ListTriggers"); final java.util.function.Function transformer = ListTriggersConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -1141,7 +1334,7 @@ public java.util.concurrent.Future updateApplication( "FunctionsManagement", "UpdateApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/UpdateApplication"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/UpdateApplication"); final java.util.function.Function transformer = UpdateApplicationConverter.fromResponse( @@ -1192,7 +1385,7 @@ public java.util.concurrent.Future updateFunction( "FunctionsManagement", "UpdateFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/UpdateFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/UpdateFunction"); final java.util.function.Function transformer = UpdateFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); 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 0a28a838ae3..083b1a83722 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 @@ -11,7 +11,7 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementClient implements FunctionsManagement { /** * Service instance for FunctionsManagement. @@ -577,7 +577,7 @@ public ChangeApplicationCompartmentResponse changeApplicationCompartment( "FunctionsManagement", "ChangeApplicationCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/ChangeApplicationCompartment"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/ChangeApplicationCompartment"); java.util.function.Function transformer = ChangeApplicationCompartmentConverter.fromResponse( @@ -619,7 +619,7 @@ public CreateApplicationResponse createApplication(CreateApplicationRequest requ "FunctionsManagement", "CreateApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/CreateApplication"); + ""); java.util.function.Function transformer = CreateApplicationConverter.fromResponse( @@ -657,10 +657,7 @@ public CreateFunctionResponse createFunction(CreateFunctionRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "FunctionsManagement", - "CreateFunction", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/CreateFunction"); + "FunctionsManagement", "CreateFunction", ib.getRequestUri().toString(), ""); java.util.function.Function transformer = CreateFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -699,7 +696,7 @@ public DeleteApplicationResponse deleteApplication(DeleteApplicationRequest requ "FunctionsManagement", "DeleteApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/DeleteApplication"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/DeleteApplication"); java.util.function.Function transformer = DeleteApplicationConverter.fromResponse( @@ -737,7 +734,7 @@ public DeleteFunctionResponse deleteFunction(DeleteFunctionRequest request) { "FunctionsManagement", "DeleteFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/DeleteFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/DeleteFunction"); java.util.function.Function transformer = DeleteFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -773,7 +770,7 @@ public GetApplicationResponse getApplication(GetApplicationRequest request) { "FunctionsManagement", "GetApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/GetApplication"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/GetApplication"); java.util.function.Function transformer = GetApplicationConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -808,7 +805,7 @@ public GetFunctionResponse getFunction(GetFunctionRequest request) { "FunctionsManagement", "GetFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/GetFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/GetFunction"); java.util.function.Function transformer = GetFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -826,6 +823,81 @@ public GetFunctionResponse getFunction(GetFunctionRequest request) { }); } + @Override + public GetFunctionsRuntimeResponse getFunctionsRuntime(GetFunctionsRuntimeRequest request) { + LOG.trace("Called getFunctionsRuntime"); + final GetFunctionsRuntimeRequest interceptedRequest = + GetFunctionsRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFunctionsRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "GetFunctionsRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/GetFunctionsRuntime"); + java.util.function.Function + transformer = + GetFunctionsRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetFunctionsRuntimeVersionResponse getFunctionsRuntimeVersion( + GetFunctionsRuntimeVersionRequest request) { + LOG.trace("Called getFunctionsRuntimeVersion"); + final GetFunctionsRuntimeVersionRequest interceptedRequest = + GetFunctionsRuntimeVersionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetFunctionsRuntimeVersionConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "GetFunctionsRuntimeVersion", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/GetFunctionsRuntimeVersion"); + java.util.function.Function + transformer = + GetFunctionsRuntimeVersionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetPbfListingResponse getPbfListing(GetPbfListingRequest request) { LOG.trace("Called getPbfListing"); @@ -843,7 +915,7 @@ public GetPbfListingResponse getPbfListing(GetPbfListingRequest request) { "FunctionsManagement", "GetPbfListing", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/GetPbfListing"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/GetPbfListing"); java.util.function.Function transformer = GetPbfListingConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -878,7 +950,7 @@ public GetPbfListingVersionResponse getPbfListingVersion(GetPbfListingVersionReq "FunctionsManagement", "GetPbfListingVersion", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/GetPbfListingVersion"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/GetPbfListingVersion"); java.util.function.Function transformer = GetPbfListingVersionConverter.fromResponse( @@ -915,7 +987,7 @@ public ListApplicationsResponse listApplications(ListApplicationsRequest request "FunctionsManagement", "ListApplications", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/ApplicationSummary/ListApplications"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/ApplicationSummary/ListApplications"); java.util.function.Function transformer = ListApplicationsConverter.fromResponse( @@ -952,7 +1024,7 @@ public ListFunctionsResponse listFunctions(ListFunctionsRequest request) { "FunctionsManagement", "ListFunctions", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/FunctionSummary/ListFunctions"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionSummary/ListFunctions"); java.util.function.Function transformer = ListFunctionsConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -970,6 +1042,82 @@ public ListFunctionsResponse listFunctions(ListFunctionsRequest request) { }); } + @Override + public ListFunctionsRuntimeVersionsResponse listFunctionsRuntimeVersions( + ListFunctionsRuntimeVersionsRequest request) { + LOG.trace("Called listFunctionsRuntimeVersions"); + final ListFunctionsRuntimeVersionsRequest interceptedRequest = + ListFunctionsRuntimeVersionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFunctionsRuntimeVersionsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "ListFunctionsRuntimeVersions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntimeVersion/ListFunctionsRuntimeVersions"); + java.util.function.Function + transformer = + ListFunctionsRuntimeVersionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListFunctionsRuntimesResponse listFunctionsRuntimes( + ListFunctionsRuntimesRequest request) { + LOG.trace("Called listFunctionsRuntimes"); + final ListFunctionsRuntimesRequest interceptedRequest = + ListFunctionsRuntimesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListFunctionsRuntimesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "FunctionsManagement", + "ListFunctionsRuntimes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/FunctionsRuntime/ListFunctionsRuntimes"); + java.util.function.Function + transformer = + ListFunctionsRuntimesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListPbfListingVersionsResponse listPbfListingVersions( ListPbfListingVersionsRequest request) { @@ -988,7 +1136,7 @@ public ListPbfListingVersionsResponse listPbfListingVersions( "FunctionsManagement", "ListPbfListingVersions", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListingVersion/ListPbfListingVersions"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListingVersion/ListPbfListingVersions"); java.util.function.Function transformer = ListPbfListingVersionsConverter.fromResponse( @@ -1025,7 +1173,7 @@ public ListPbfListingsResponse listPbfListings(ListPbfListingsRequest request) { "FunctionsManagement", "ListPbfListings", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/PbfListing/ListPbfListings"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/PbfListing/ListPbfListings"); java.util.function.Function transformer = ListPbfListingsConverter.fromResponse( @@ -1062,7 +1210,7 @@ public ListTriggersResponse listTriggers(ListTriggersRequest request) { "FunctionsManagement", "ListTriggers", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/TriggersCollection/ListTriggers"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/TriggersCollection/ListTriggers"); java.util.function.Function transformer = ListTriggersConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -1097,7 +1245,7 @@ public UpdateApplicationResponse updateApplication(UpdateApplicationRequest requ "FunctionsManagement", "UpdateApplication", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Application/UpdateApplication"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Application/UpdateApplication"); java.util.function.Function transformer = UpdateApplicationConverter.fromResponse( @@ -1138,7 +1286,7 @@ public UpdateFunctionResponse updateFunction(UpdateFunctionRequest request) { "FunctionsManagement", "UpdateFunction", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/functions/20181201/Function/UpdateFunction"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/Function/UpdateFunction"); java.util.function.Function transformer = UpdateFunctionConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( 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 aa277fda909..9a5f81d5cb2 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 @@ -25,7 +25,7 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementPaginators { private final FunctionsManagement client; @@ -255,6 +255,244 @@ 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 needed. 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 1b6ab10f826..be3aa72c887 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 @@ -13,7 +13,7 @@ *

* The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class FunctionsManagementWaiters { private final java.util.concurrent.ExecutorService executorService; private final FunctionsManagement client; @@ -224,6 +224,222 @@ 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-functions/src/main/java/com/oracle/bmc/functions/SdkClientsMetadata.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/SdkClientsMetadata.java index c310998c8db..363dc29c4b1 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/SdkClientsMetadata.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/SdkClientsMetadata.java @@ -6,11 +6,13 @@ import com.oracle.bmc.SdkClients; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @SdkClients({ FunctionsInvokeAsyncClient.class, FunctionsInvokeClient.class, FunctionsManagementAsyncClient.class, - FunctionsManagementClient.class + FunctionsManagementClient.class, + WorkRequestManagementAsyncClient.class, + WorkRequestManagementClient.class }) public final class SdkClientsMetadata {} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.java new file mode 100644 index 00000000000..9e46a1cef3c --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/WorkRequestManagement.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; + +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; + +/** + * 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. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public interface WorkRequestManagement extends AutoCloseable { + + /** + * Rebuilds the client from scratch. + * Useful to refresh certificates. + */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** + * Gets the set endpoint for REST call (ex, https://www.example.com) + */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + *

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

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

+ * If no known Region could be determined, it will create an endpoint based on the + * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. + * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Cancels a work request. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation 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 + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetWorkRequest API. + */ + GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + + /** + * Lists the errors for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestErrors API. + */ + ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + + /** + * Lists the logs for a work request. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequestLogs API. + */ + ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListWorkRequests API. + */ + ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + + /** + * Gets the pre-configured waiters available for resources for this service. + * + * @return The service waiters. + */ + WorkRequestManagementWaiters 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. + */ + 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 03c3e8aa9d4..81617c4df13 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,16 +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; +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. + * API for the Functions service. + * */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbWorkRequestServiceAsync extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public interface WorkRequestManagementAsync extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -59,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. @@ -74,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 @@ -91,7 +108,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 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 88% 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 aa29fa7b6c7..db852a51f85 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.distributeddatabasev26.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.internal.http.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** - * 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, @@ -23,21 +23,20 @@ * Future.isDone/isCancelled.
* Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServiceAsyncClient - implements DistributedDbWorkRequestServiceAsync { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class WorkRequestManagementAsyncClient implements WorkRequestManagementAsync { /** - * Service instance for DistributedDbWorkRequestService. + * 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); private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; @@ -80,7 +79,7 @@ public class DistributedDbWorkRequestServiceAsyncClient * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -90,7 +89,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -103,7 +102,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -125,7 +124,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -149,7 +148,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -176,7 +175,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -207,7 +206,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -243,7 +242,7 @@ public DistributedDbWorkRequestServiceAsyncClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - public DistributedDbWorkRequestServiceAsyncClient( + public WorkRequestManagementAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -324,7 +323,7 @@ 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); requestSignerFactory = @@ -337,7 +336,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbWorkRequestServiceAsyncClient build( + public WorkRequestManagementAsyncClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -345,7 +344,7 @@ public DistributedDbWorkRequestServiceAsyncClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new DistributedDbWorkRequestServiceAsyncClient( + return new WorkRequestManagementAsyncClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -471,6 +470,52 @@ public void close() { client.close(); } + @Override + public java.util.concurrent.Future cancelWorkRequest( + CancelWorkRequestRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse> + handler) { + LOG.trace("Called async cancelWorkRequest"); + final CancelWorkRequestRequest interceptedRequest = + CancelWorkRequestConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelWorkRequestConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "WorkRequestManagement", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/CancelWorkRequest"); + final java.util.function.Function + transformer = + CancelWorkRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CancelWorkRequestRequest, CancelWorkRequestResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CancelWorkRequestRequest, CancelWorkRequestResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -484,10 +529,10 @@ public java.util.concurrent.Future getWorkRequest( GetWorkRequestConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "GetWorkRequest", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/GetWorkRequest"); final java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); @@ -529,10 +574,10 @@ public java.util.concurrent.Future listWorkReques ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestError/ListWorkRequestErrors"); final java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -576,10 +621,10 @@ public java.util.concurrent.Future listWorkRequestL ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestLogs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestLogEntry/ListWorkRequestLogs"); final java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -623,10 +668,10 @@ public java.util.concurrent.Future listWorkRequests( ListWorkRequestsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequests", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/ListWorkRequests"); final java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( 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 89% 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 6f1b2ec5b54..19af2ba8a06 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,39 +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; +package com.oracle.bmc.functions; -import com.oracle.bmc.distributeddatabasev26.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.internal.http.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.CircuitBreakerUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServiceClient implements DistributedDbWorkRequestService { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class WorkRequestManagementClient implements WorkRequestManagement { /** - * Service instance for DistributedDbWorkRequestService. + * 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(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceClient.class); + org.slf4j.LoggerFactory.getLogger(WorkRequestManagementClient.class); com.oracle.bmc.http.internal.RestClient getClient() { return client; } - private final DistributedDbWorkRequestServiceWaiters waiters; + private final WorkRequestManagementWaiters waiters; - private final DistributedDbWorkRequestServicePaginators paginators; + private final WorkRequestManagementPaginators paginators; private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; @@ -78,7 +78,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -88,7 +88,7 @@ public DistributedDbWorkRequestServiceClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -101,7 +101,7 @@ public DistributedDbWorkRequestServiceClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -123,7 +123,7 @@ public DistributedDbWorkRequestServiceClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -147,7 +147,7 @@ public DistributedDbWorkRequestServiceClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -174,7 +174,7 @@ public DistributedDbWorkRequestServiceClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -205,7 +205,7 @@ public DistributedDbWorkRequestServiceClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -241,7 +241,7 @@ public DistributedDbWorkRequestServiceClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor */ - public DistributedDbWorkRequestServiceClient( + public WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -282,7 +282,7 @@ public DistributedDbWorkRequestServiceClient( * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - protected DistributedDbWorkRequestServiceClient( + protected WorkRequestManagementClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -356,15 +356,15 @@ protected 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); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { com.oracle.bmc.auth.RegionProvider provider = @@ -400,7 +400,7 @@ 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) { @@ -425,7 +425,7 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbWorkRequestServiceClient build( + public WorkRequestManagementClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -433,7 +433,7 @@ public DistributedDbWorkRequestServiceClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new DistributedDbWorkRequestServiceClient( + return new WorkRequestManagementClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -559,6 +559,44 @@ public void close() { client.close(); } + @Override + public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) { + LOG.trace("Called cancelWorkRequest"); + final CancelWorkRequestRequest interceptedRequest = + CancelWorkRequestConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelWorkRequestConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, false); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "WorkRequestManagement", + "CancelWorkRequest", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/CancelWorkRequest"); + java.util.function.Function + transformer = + CancelWorkRequestConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { LOG.trace("Called getWorkRequest"); @@ -573,10 +611,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "GetWorkRequest", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/GetWorkRequest"); java.util.function.Function transformer = GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); return retrier.execute( @@ -609,10 +647,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestErrors", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestError/ListWorkRequestErrors"); java.util.function.Function transformer = ListWorkRequestErrorsConverter.fromResponse( @@ -646,10 +684,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequestLogs", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequestLogEntry/ListWorkRequestLogs"); java.util.function.Function transformer = ListWorkRequestLogsConverter.fromResponse( @@ -683,10 +721,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", + "WorkRequestManagement", "ListWorkRequests", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests"); + "https://docs.oracle.com/iaas/api/#/en/functions/20260325/WorkRequest/ListWorkRequests"); java.util.function.Function transformer = ListWorkRequestsConverter.fromResponse( @@ -707,12 +745,12 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request } @Override - public DistributedDbWorkRequestServiceWaiters getWaiters() { + public WorkRequestManagementWaiters getWaiters() { return waiters; } @Override - public DistributedDbWorkRequestServicePaginators getPaginators() { + public WorkRequestManagementPaginators getPaginators() { return paginators; } } 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 87% 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 974a55128da..7166cb28084 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,14 +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.*; /** * 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. + * to any list operations of WorkRequestManagement where multiple pages of data may be fetched. * Two styles of iteration are supported: * *

    @@ -25,11 +25,11 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServicePaginators { - private final DistributedDbWorkRequestService client; +@javax.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; } @@ -86,20 +86,19 @@ public ListWorkRequestErrorsResponse apply( } /** - * Creates a new iterable which will iterate over the {@link com.oracle.bmc.distributeddatabasev26.model.WorkRequestError} objects + * Creates a new iterable which will iterate over the {@link 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 + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link 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>( + ListWorkRequestErrorsResponse, com.oracle.bmc.functions.model.WorkRequestError>( new java.util.function.Supplier() { @Override public ListWorkRequestErrorsRequest.Builder get() { @@ -140,12 +139,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(); } }); @@ -203,20 +200,19 @@ public ListWorkRequestLogsResponse apply(ListWorkRequestLogsRequest request) { } /** - * Creates a new iterable which will iterate over the {@link com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntry} objects + * Creates a new iterable which will iterate over the {@link 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 + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link 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>( + ListWorkRequestLogsResponse, com.oracle.bmc.functions.model.WorkRequestLogEntry>( new java.util.function.Supplier() { @Override public ListWorkRequestLogsRequest.Builder get() { @@ -256,13 +252,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(); } }); @@ -319,19 +312,19 @@ public ListWorkRequestsResponse apply(ListWorkRequestsRequest request) { } /** - * Creates a new iterable which will iterate over the {@link com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummary} objects + * Creates a new iterable which will iterate over the {@link 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 + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link 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() { @@ -371,12 +364,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 e875f04fa26..3e9005f723a 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,25 +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; +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}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServiceWaiters { +@javax.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-functions/src/main/java/com/oracle/bmc/functions/internal/http/CancelWorkRequestConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CancelWorkRequestConverter.java new file mode 100644 index 00000000000..ecb1b26b7ae --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CancelWorkRequestConverter.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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class CancelWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CancelWorkRequestConverter.class); + + public static com.oracle.bmc.functions.requests.CancelWorkRequestRequest interceptRequest( + com.oracle.bmc.functions.requests.CancelWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.CancelWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.CancelWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.CancelWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.CancelWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.CancelWorkRequestResponse>() { + @Override + public com.oracle.bmc.functions.responses.CancelWorkRequestResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.CancelWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses.CancelWorkRequestResponse.Builder + builder = + com.oracle.bmc.functions.responses + .CancelWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.functions.responses.CancelWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ChangeApplicationCompartmentConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ChangeApplicationCompartmentConverter.java index 37ab08b7429..f36cd3f5de5 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ChangeApplicationCompartmentConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ChangeApplicationCompartmentConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ChangeApplicationCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -37,7 +37,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("applications") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -125,6 +125,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses .ChangeApplicationCompartmentResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateApplicationConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateApplicationConverter.java index b93bb0ebf4a..dc32f6f060b 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateApplicationConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateApplicationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CreateApplicationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getCreateApplicationDetails(), "createApplicationDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("applications"); + client.getBaseTarget().path("/20260325").path("applications"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -125,6 +125,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses.CreateApplicationResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateFunctionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateFunctionConverter.java index ac90c36cc15..7968545d899 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateFunctionConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/CreateFunctionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CreateFunctionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCreateFunctionDetails(), "createFunctionDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("functions"); + client.getBaseTarget().path("/20260325").path("functions"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -122,6 +122,17 @@ public com.oracle.bmc.functions.responses.CreateFunctionResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses.CreateFunctionResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteApplicationConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteApplicationConverter.java index 0bcee27edaf..f37f692ce4d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteApplicationConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteApplicationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class DeleteApplicationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("applications") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -115,6 +115,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses.DeleteApplicationResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteFunctionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteFunctionConverter.java index b3be2b5f871..e8489e2a8b4 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteFunctionConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/DeleteFunctionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class DeleteFunctionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("functions") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -115,6 +115,17 @@ public com.oracle.bmc.functions.responses.DeleteFunctionResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses.DeleteFunctionResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetApplicationConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetApplicationConverter.java index 03481914d57..55b8bfa677c 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetApplicationConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetApplicationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetApplicationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("applications") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionConverter.java index 3061caff8d2..ce4b2c73d0d 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetFunctionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("functions") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeConverter.java new file mode 100644 index 00000000000..b217b68cbcf --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeConverter.java @@ -0,0 +1,143 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetFunctionsRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetFunctionsRuntimeConverter.class); + + public static com.oracle.bmc.functions.requests.GetFunctionsRuntimeRequest interceptRequest( + com.oracle.bmc.functions.requests.GetFunctionsRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.GetFunctionsRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getFunctionsRuntimeId(), "functionsRuntimeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("functionsRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFunctionsRuntimeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse>() { + @Override + public com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .FunctionsRuntime>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model.FunctionsRuntime + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model.FunctionsRuntime + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model.FunctionsRuntime> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse + .Builder + builder = + com.oracle.bmc.functions.responses + .GetFunctionsRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.functionsRuntime(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.functions.responses.GetFunctionsRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeVersionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeVersionConverter.java new file mode 100644 index 00000000000..40d888acb78 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetFunctionsRuntimeVersionConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetFunctionsRuntimeVersionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetFunctionsRuntimeVersionConverter.class); + + public static com.oracle.bmc.functions.requests.GetFunctionsRuntimeVersionRequest + interceptRequest( + com.oracle.bmc.functions.requests.GetFunctionsRuntimeVersionRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.GetFunctionsRuntimeVersionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getFunctionsRuntimeVersionId(), + "functionsRuntimeVersionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("functionsRuntimeVersions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getFunctionsRuntimeVersionId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeVersionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeVersionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetFunctionsRuntimeVersionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses + .GetFunctionsRuntimeVersionResponse>() { + @Override + public com.oracle.bmc.functions.responses + .GetFunctionsRuntimeVersionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.GetFunctionsRuntimeVersionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .FunctionsRuntimeVersion>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .FunctionsRuntimeVersion + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .FunctionsRuntimeVersion + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .FunctionsRuntimeVersion> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses + .GetFunctionsRuntimeVersionResponse.Builder + builder = + com.oracle.bmc.functions.responses + .GetFunctionsRuntimeVersionResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.functionsRuntimeVersion(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.functions.responses + .GetFunctionsRuntimeVersionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingConverter.java index 609bb80b065..af10376b080 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -33,7 +33,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("pbfListings") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingVersionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingVersionConverter.java index b4897f0f95d..417489eae72 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingVersionConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetPbfListingVersionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingVersionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("pbfListingVersions") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetWorkRequestConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetWorkRequestConverter.java new file mode 100644 index 00000000000..3900c8204e0 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/GetWorkRequestConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetWorkRequestConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetWorkRequestConverter.class); + + public static com.oracle.bmc.functions.requests.GetWorkRequestRequest interceptRequest( + com.oracle.bmc.functions.requests.GetWorkRequestRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.GetWorkRequestRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetWorkRequestResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetWorkRequestResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetWorkRequestResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.GetWorkRequestResponse>() { + @Override + public com.oracle.bmc.functions.responses.GetWorkRequestResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.GetWorkRequestResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model.WorkRequest>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model.WorkRequest + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model.WorkRequest + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model.WorkRequest> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses.GetWorkRequestResponse.Builder + builder = + com.oracle.bmc.functions.responses + .GetWorkRequestResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequest(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> retryAfterHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "retry-after"); + if (retryAfterHeader.isPresent()) { + builder.retryAfter( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "retry-after", + retryAfterHeader.get().get(0), + Integer.class)); + } + + com.oracle.bmc.functions.responses.GetWorkRequestResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/InvokeFunctionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/InvokeFunctionConverter.java index a86aa5d7682..7cf853d890f 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/InvokeFunctionConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/InvokeFunctionConverter.java @@ -9,7 +9,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class InvokeFunctionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("functions") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListApplicationsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListApplicationsConverter.java index f1bbc510992..97dfa6822a7 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListApplicationsConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListApplicationsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListApplicationsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("applications"); + client.getBaseTarget().path("/20260325").path("applications"); target = target.queryParam( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsConverter.java index e1bb9fba0f7..9ed6e511818 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListFunctionsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getApplicationId(), "applicationId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("functions"); + client.getBaseTarget().path("/20260325").path("functions"); target = target.queryParam( diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimeVersionsConverter.java similarity index 69% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimeVersionsConverter.java index 13580dca07c..32c0aee20a5 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimeVersionsConverter.java @@ -2,133 +2,132 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.functions.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListFunctionsRuntimeVersionsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListDistributedDatabasesConverter.class); + org.slf4j.LoggerFactory.getLogger(ListFunctionsRuntimeVersionsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.ListDistributedDatabasesRequest + public static com.oracle.bmc.functions.requests.ListFunctionsRuntimeVersionsRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListDistributedDatabasesRequest - request) { + com.oracle.bmc.functions.requests.ListFunctionsRuntimeVersionsRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListDistributedDatabasesRequest - request) { + com.oracle.bmc.functions.requests.ListFunctionsRuntimeVersionsRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedDatabases"); + client.getBaseTarget().path("/20260325").path("functionsRuntimeVersions"); - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); + if (request.getFunctionsRuntimeId() != null) { + target = + target.queryParam( + "functionsRuntimeId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFunctionsRuntimeId())); + } - if (request.getCompartmentIdInSubtree() != null) { + if (request.getFunctionsRuntimeName() != null) { target = target.queryParam( - "compartmentIdInSubtree", + "functionsRuntimeName", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentIdInSubtree())); + request.getFunctionsRuntimeName())); } - if (request.getPrivateEndpointId() != null) { + if (request.getFunctionsRuntimeVersionId() != null) { target = target.queryParam( - "privateEndpointId", + "functionsRuntimeVersionId", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPrivateEndpointId())); + request.getFunctionsRuntimeVersionId())); } - if (request.getLifecycleState() != null) { + if (request.getDisplayName() != null) { target = target.queryParam( - "lifecycleState", + "displayName", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); + request.getDisplayName())); } - if (request.getLimit() != null) { + if (request.getOsVersion() != null) { target = target.queryParam( - "limit", + "osVersion", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); + request.getOsVersion())); } - if (request.getPage() != null) { + if (request.getLanguageVersion() != null) { target = target.queryParam( - "page", + "languageVersion", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); + request.getLanguageVersion())); } - if (request.getSortOrder() != null) { + if (request.getIsCurrentVersion() != null) { target = target.queryParam( - "sortOrder", + "isCurrentVersion", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); + request.getIsCurrentVersion())); } - if (request.getSortBy() != null) { + if (request.getLifecycleState() != null) { target = target.queryParam( - "sortBy", + "lifecycleState", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); + request.getLifecycleState().getValue())); } - if (request.getIsAutoResourceManagementEnabled() != null) { + if (request.getSortBy() != null) { target = target.queryParam( - "isAutoResourceManagementEnabled", + "sortBy", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsAutoResourceManagementEnabled())); + request.getSortBy().getValue())); } - if (request.getDisplayName() != null) { + if (request.getLimit() != null) { target = target.queryParam( - "displayName", + "limit", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDisplayName())); + request.getLimit())); } - if (request.getDbDeploymentType() != null) { + if (request.getPage() != null) { target = target.queryParam( - "dbDeploymentType", + "page", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDbDeploymentType())); + request.getPage())); } - if (request.getMetadata() != null) { + if (request.getSortOrder() != null) { target = target.queryParam( - "metadata", + "sortOrder", com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); + request.getSortOrder().getValue())); } com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -147,69 +146,67 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse> + com.oracle.bmc.functions.responses.ListFunctionsRuntimeVersionsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse> + com.oracle.bmc.functions.responses.ListFunctionsRuntimeVersionsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse> + com.oracle.bmc.functions.responses.ListFunctionsRuntimeVersionsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse>() { + com.oracle.bmc.functions.responses + .ListFunctionsRuntimeVersionsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse + public com.oracle.bmc.functions.responses + .ListFunctionsRuntimeVersionsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListDistributedDatabasesResponse"); + "Transform function invoked for com.oracle.bmc.functions.responses.ListFunctionsRuntimeVersionsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection>> + com.oracle.bmc.functions.model + .FunctionsRuntimeVersionCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection + com.oracle.bmc.functions.model + .FunctionsRuntimeVersionCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection + com.oracle.bmc.functions.model + .FunctionsRuntimeVersionCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection> + com.oracle.bmc.functions.model + .FunctionsRuntimeVersionCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse.Builder + com.oracle.bmc.functions.responses + .ListFunctionsRuntimeVersionsResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse.builder() + com.oracle.bmc.functions.responses + .ListFunctionsRuntimeVersionsResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabaseCollection(response.getItem()); + builder.functionsRuntimeVersionCollection(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -233,8 +230,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse + com.oracle.bmc.functions.responses + .ListFunctionsRuntimeVersionsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimesConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimesConverter.java new file mode 100644 index 00000000000..ab1d477be53 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListFunctionsRuntimesConverter.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListFunctionsRuntimesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListFunctionsRuntimesConverter.class); + + public static com.oracle.bmc.functions.requests.ListFunctionsRuntimesRequest interceptRequest( + com.oracle.bmc.functions.requests.ListFunctionsRuntimesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.ListFunctionsRuntimesRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20260325").path("functionsRuntimes"); + + if (request.getFunctionsRuntimeId() != null) { + target = + target.queryParam( + "functionsRuntimeId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getFunctionsRuntimeId())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getNameContains() != null) { + target = + target.queryParam( + "nameContains", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getNameContains())); + } + + if (request.getNameStartsWith() != null) { + target = + target.queryParam( + "nameStartsWith", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getNameStartsWith())); + } + + if (request.getOs() != null) { + target = + target.queryParam( + "os", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getOs())); + } + + if (request.getLanguage() != null) { + target = + target.queryParam( + "language", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLanguage())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses + .ListFunctionsRuntimesResponse>() { + @Override + public com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .FunctionsRuntimeCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .FunctionsRuntimeCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .FunctionsRuntimeCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .FunctionsRuntimeCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse + .Builder + builder = + com.oracle.bmc.functions.responses + .ListFunctionsRuntimesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.functionsRuntimeCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.functions.responses.ListFunctionsRuntimesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingVersionsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingVersionsConverter.java index 31ef0555d8f..d009dbf0f4a 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingVersionsConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingVersionsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingVersionsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -32,7 +32,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request.getPbfListingId(), "pbfListingId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("pbfListingVersions"); + client.getBaseTarget().path("/20260325").path("pbfListingVersions"); target = target.queryParam( diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingsConverter.java index 9355077ef65..7373e839281 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingsConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListPbfListingsConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -31,7 +31,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("pbfListings"); + client.getBaseTarget().path("/20260325").path("pbfListings"); if (request.getPbfListingId() != null) { target = diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListTriggersConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListTriggersConverter.java index 709f811f03c..71d024d8721 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListTriggersConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListTriggersConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListTriggersConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -31,7 +31,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( Validate.notNull(request, "request instance is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20181201").path("pbfListings").path("triggers"); + client.getBaseTarget().path("/20260325").path("pbfListings").path("triggers"); if (request.getName() != null) { target = diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestErrorsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestErrorsConverter.java new file mode 100644 index 00000000000..326fd448c62 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestErrorsConverter.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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListWorkRequestErrorsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestErrorsConverter.class); + + public static com.oracle.bmc.functions.requests.ListWorkRequestErrorsRequest interceptRequest( + com.oracle.bmc.functions.requests.ListWorkRequestErrorsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.ListWorkRequestErrorsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("errors"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses + .ListWorkRequestErrorsResponse>() { + @Override + public com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .WorkRequestErrorCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .WorkRequestErrorCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .WorkRequestErrorCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .WorkRequestErrorCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse + .Builder + builder = + com.oracle.bmc.functions.responses + .ListWorkRequestErrorsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestErrorCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.functions.responses.ListWorkRequestErrorsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestLogsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestLogsConverter.java new file mode 100644 index 00000000000..1ebdfc3c876 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestLogsConverter.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class ListWorkRequestLogsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListWorkRequestLogsConverter.class); + + public static com.oracle.bmc.functions.requests.ListWorkRequestLogsRequest interceptRequest( + com.oracle.bmc.functions.requests.ListWorkRequestLogsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.functions.requests.ListWorkRequestLogsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("workRequests") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getWorkRequestId())) + .path("logs"); + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse>() { + @Override + public com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .WorkRequestLogEntryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .WorkRequestLogEntryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.functions.model + .WorkRequestLogEntryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.functions.model + .WorkRequestLogEntryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse + .Builder + builder = + com.oracle.bmc.functions.responses + .ListWorkRequestLogsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.workRequestLogEntryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.functions.responses.ListWorkRequestLogsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestsConverter.java similarity index 82% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestsConverter.java index 94d7249670f..72c9823e3cf 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/ListWorkRequestsConverter.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.internal.http; +package com.oracle.bmc.functions.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.functions.model.*; +import com.oracle.bmc.functions.requests.*; +import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListWorkRequestsConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -19,22 +19,20 @@ public class ListWorkRequestsConverter { private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ListWorkRequestsConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestsRequest - request) { + public static com.oracle.bmc.functions.requests.ListWorkRequestsRequest interceptRequest( + com.oracle.bmc.functions.requests.ListWorkRequestsRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestsRequest request) { + com.oracle.bmc.functions.requests.ListWorkRequestsRequest request) { Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("workRequests"); + client.getBaseTarget().path("/20260325").path("workRequests"); target = target.queryParam( @@ -114,61 +112,58 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse> + com.oracle.bmc.functions.responses.ListWorkRequestsResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse> + com.oracle.bmc.functions.responses.ListWorkRequestsResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse> + com.oracle.bmc.functions.responses.ListWorkRequestsResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse>() { + com.oracle.bmc.functions.responses.ListWorkRequestsResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse + public com.oracle.bmc.functions.responses.ListWorkRequestsResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse"); + "Transform function invoked for com.oracle.bmc.functions.responses.ListWorkRequestsResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.functions.model .WorkRequestSummaryCollection>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.functions.model .WorkRequestSummaryCollection .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.functions.model .WorkRequestSummaryCollection .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model + com.oracle.bmc.functions.model .WorkRequestSummaryCollection> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse.Builder + com.oracle.bmc.functions.responses.ListWorkRequestsResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses + com.oracle.bmc.functions.responses .ListWorkRequestsResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); @@ -197,8 +192,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse + com.oracle.bmc.functions.responses.ListWorkRequestsResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateApplicationConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateApplicationConverter.java index c8e036c9b97..b34da3ffc6c 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateApplicationConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateApplicationConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class UpdateApplicationConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -35,7 +35,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("applications") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -84,25 +84,18 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "Transform function invoked for com.oracle.bmc.functions.responses.UpdateApplicationResponse"); final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.functions.model.Application>> + com.oracle.bmc.http.internal.WithHeaders> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.functions.model.Application - .class, serviceDetails.get()); } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.functions.model.Application - .class); + responseFn = RESPONSE_CONVERSION_FACTORY.create(); } - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.functions.model.Application> - response = responseFn.apply(rawResponse); + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); @@ -113,17 +106,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.application(response.getItem()); - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); @@ -135,6 +117,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses.UpdateApplicationResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateFunctionConverter.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateFunctionConverter.java index 11712889660..0631bf00fea 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateFunctionConverter.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/internal/http/UpdateFunctionConverter.java @@ -10,7 +10,7 @@ import com.oracle.bmc.functions.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class UpdateFunctionConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = @@ -34,7 +34,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20181201") + .path("/20260325") .path("functions") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( @@ -83,23 +83,18 @@ public com.oracle.bmc.functions.responses.UpdateFunctionResponse apply( "Transform function invoked for com.oracle.bmc.functions.responses.UpdateFunctionResponse"); final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.functions.model.Function>> + com.oracle.bmc.http.internal.WithHeaders> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.functions.model.Function.class, serviceDetails.get()); } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.functions.model.Function.class); + responseFn = RESPONSE_CONVERSION_FACTORY.create(); } - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.functions.model.Function> - response = responseFn.apply(rawResponse); + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); @@ -110,17 +105,6 @@ public com.oracle.bmc.functions.responses.UpdateFunctionResponse apply( .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.function(response.getItem()); - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); @@ -132,6 +116,17 @@ public com.oracle.bmc.functions.responses.UpdateFunctionResponse apply( String.class)); } + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + com.oracle.bmc.functions.responses.UpdateFunctionResponse responseWrapper = builder.build(); diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.java new file mode 100644 index 00000000000..978ed7b4aaa --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ActionType.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.functions.model; + +/** + * Possible types of actions. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum ActionType { + Created("CREATED"), + Updated("UPDATED"), + Deleted("DELETED"), + InProgress("IN_PROGRESS"), + Related("RELATED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ActionType v : ActionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ActionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ActionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-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 d6299c54eb9..1a13a595dd9 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class Application extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 e3e4030e8ab..84a39941e44 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ApplicationLoggingConfig.Builder.class ) 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 5e29266b450..862da483e29 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ApplicationSummary.Builder.class ) 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 2d10d2f684c..bb950966b0f 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ApplicationTraceConfig.Builder.class ) 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..c8c1be98c1f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveFunctionSourceDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..0c174f15173 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ArchiveSourceDetails.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; + +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class ArchiveSourceDetails extends com.oracle.bmc.http.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 { + 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 545e3e03850..b3c309fb7ed 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeApplicationCompartmentDetails.Builder.class ) 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 34a4967b670..76ce753d4f5 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class ConfigDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 17b648e90be..518849c5d73 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConstantProvisionedConcurrencyConfig.Builder.class ) 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..bd52d863b38 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ContainerImageFunctionSourceDetails.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 bcdbd4a84eb..bf31555b4a9 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateApplicationDetails.Builder.class ) 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..cb5019bad01 --- /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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java new file mode 100644 index 00000000000..8bae8ad5807 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateArchiveSourceDetails.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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 = CreateArchiveSourceDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateDirectArchiveSourceDetails.class, + name = "DIRECT_ARCHIVE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateObjectStorageArchiveSourceDetails.class, + name = "OBJECT_STORAGE_ARCHIVE" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateArchiveSourceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateArchiveSourceDetails() { + 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("CreateArchiveSourceDetails("); + 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 CreateArchiveSourceDetails)) { + return false; + } + + CreateArchiveSourceDetails other = (CreateArchiveSourceDetails) 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 { + ObjectStorageArchive("OBJECT_STORAGE_ARCHIVE"), + DirectArchive("DIRECT_ARCHIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ArchiveSourceType v : ArchiveSourceType.values()) { + 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); + } + 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..ad5eb8af916 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateContainerImageFunctionSourceDetails.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..3cd55b9af78 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateDirectArchiveSourceDetails.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 e3b2a5d04dd..d264925fdf5 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateFunctionDetails.Builder.class ) @@ -26,8 +26,6 @@ public final class CreateFunctionDetails @java.beans.ConstructorProperties({ "displayName", "applicationId", - "image", - "imageDigest", "sourceDetails", "memoryInMBs", "config", @@ -43,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, @@ -59,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; @@ -110,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; @@ -332,8 +282,6 @@ public CreateFunctionDetails build() { new CreateFunctionDetails( this.displayName, this.applicationId, - this.image, - this.imageDigest, this.sourceDetails, this.memoryInMBs, this.config, @@ -359,12 +307,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()); } @@ -443,50 +385,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; } @@ -644,8 +546,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)); @@ -675,8 +575,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) @@ -701,8 +599,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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionSourceDetails.java similarity index 66% 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/CreateFunctionSourceDetails.java index 2a9b84a0288..127661495fa 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/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.distributeddatabase.model; +package com.oracle.bmc.functions.model; /** - * Globally 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 @@ -14,29 +15,33 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 = "sourceType", + defaultImpl = CreateFunctionSourceDetails.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.class, - name = "NEW_VAULT_AND_CLUSTER" + value = CreatePreBuiltFunctionSourceDetails.class, + name = "PRE_BUILT_FUNCTIONS" ), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsDetails.class, - name = "EXADB_XS" + value = CreateArchiveFunctionSourceDetails.class, + name = "ARCHIVE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateContainerImageFunctionSourceDetails.class, + name = "CONTAINER_IMAGE" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedDatabaseShardDetails +public class CreateFunctionSourceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseShardDetails() { + protected CreateFunctionSourceDetails() { super(); } @@ -52,7 +57,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDetails("); + sb.append("CreateFunctionSourceDetails("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -63,11 +68,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabaseShardDetails)) { + if (!(o instanceof CreateFunctionSourceDetails)) { return false; } - CreateDistributedDatabaseShardDetails other = (CreateDistributedDatabaseShardDetails) o; + CreateFunctionSourceDetails other = (CreateFunctionSourceDetails) o; return super.equals(other); } @@ -80,29 +85,26 @@ public int hashCode() { } /** - * 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. + * Type of the Function Source. Possible values: CONTAINER_IMAGE, PBF and ARCHIVE. * **/ - public enum Source { - ExadbXs("EXADB_XS"), - NewVaultAndCluster("NEW_VAULT_AND_CLUSTER"), - ExistingCluster("EXISTING_CLUSTER"), + public enum SourceType { + 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; } @@ -112,11 +114,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/PatchMergeInstruction.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateFunctionUpdateRuntimeConfig.java similarity index 53% 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/CreateFunctionUpdateRuntimeConfig.java index d26b566d8a7..e198fb0406c 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/CreateFunctionUpdateRuntimeConfig.java @@ -2,16 +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. + * 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 @@ -21,49 +15,44 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchMergeInstruction.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.internal.ExplicitlySetFilter.NAME) -public final class PatchMergeInstruction 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 merged into the target. + * The name of the FunctionsRuntime this function is to be associated with. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private Object value; + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private String functionsRuntimeName; /** - * A value to be merged into the target. - * @param value the value to set + * The name of the FunctionsRuntime this function is to be associated with. + * + * @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 PatchMergeInstruction build() { - PatchMergeInstruction model = new PatchMergeInstruction(this.selection, this.value); + public CreateFunctionUpdateRuntimeConfig build() { + CreateFunctionUpdateRuntimeConfig model = + new CreateFunctionUpdateRuntimeConfig(this.functionsRuntimeName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -71,12 +60,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(CreateFunctionUpdateRuntimeConfig model) { + if (model.wasPropertyExplicitlySet("functionsRuntimeName")) { + this.functionsRuntimeName(model.getFunctionsRuntimeName()); } return this; } @@ -94,23 +80,25 @@ public Builder toBuilder() { } @Deprecated - public PatchMergeInstruction(String selection, Object value) { - super(selection); - this.value = value; + public CreateFunctionUpdateRuntimeConfig(String functionsRuntimeName) { + super(); + this.functionsRuntimeName = functionsRuntimeName; } /** - * A value to be merged into the target. + * The name of the FunctionsRuntime this function is to be associated with. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private final Object value; + @com.fasterxml.jackson.annotation.JsonProperty("functionsRuntimeName") + private final String functionsRuntimeName; /** - * A value to be merged 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 @@ -125,9 +113,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchMergeInstruction("); + 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(); } @@ -137,19 +125,24 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchMergeInstruction)) { + if (!(o instanceof CreateFunctionUpdateRuntimeConfig)) { return false; } - PatchMergeInstruction other = (PatchMergeInstruction) 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..2c53e423567 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateManualRuntimeConfig.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..92b4d9eb016 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreateObjectStorageArchiveSourceDetails.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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/PatchInsertInstruction.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/CreatePreBuiltFunctionSourceDetails.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/CreatePreBuiltFunctionSourceDetails.java index 7f51c989ddc..43abd0f3831 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/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; /** - * 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. + * 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 @@ -15,49 +15,46 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchInsertInstruction.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 = "operation" + property = "sourceType" ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchInsertInstruction extends PatchInstruction { +public final class CreatePreBuiltFunctionSourceDetails extends CreateFunctionSourceDetails { @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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this + * function is sourced from. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private Object value; + @com.fasterxml.jackson.annotation.JsonProperty("pbfListingId") + private String pbfListingId; /** - * A value to be inserted into the target. - * @param value the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this + * function is sourced from. + * + * @param pbfListingId the value to set * @return this builder **/ - public Builder value(Object value) { - this.value = value; - this.__explicitlySet__.add("value"); + 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 PatchInsertInstruction build() { - PatchInsertInstruction model = new PatchInsertInstruction(this.selection, this.value); + public CreatePreBuiltFunctionSourceDetails build() { + CreatePreBuiltFunctionSourceDetails model = + new CreatePreBuiltFunctionSourceDetails(this.pbfListingId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -65,12 +62,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(CreatePreBuiltFunctionSourceDetails model) { + if (model.wasPropertyExplicitlySet("pbfListingId")) { + this.pbfListingId(model.getPbfListingId()); } return this; } @@ -88,23 +82,27 @@ public Builder toBuilder() { } @Deprecated - public PatchInsertInstruction(String selection, Object value) { - super(selection); - this.value = value; + public CreatePreBuiltFunctionSourceDetails(String pbfListingId) { + super(); + this.pbfListingId = pbfListingId; } /** - * A value to be inserted into the target. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this + * function is sourced from. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private final Object value; + @com.fasterxml.jackson.annotation.JsonProperty("pbfListingId") + private final String pbfListingId; /** - * A value to be inserted into the target. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PbfListing this + * function is sourced from. + * * @return the value **/ - public Object getValue() { - return value; + public String getPbfListingId() { + return pbfListingId; } @Override @@ -119,9 +117,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchInsertInstruction("); + sb.append("CreatePreBuiltFunctionSourceDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", value=").append(String.valueOf(this.value)); + sb.append(", pbfListingId=").append(String.valueOf(this.pbfListingId)); sb.append(")"); return sb.toString(); } @@ -131,19 +129,20 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchInsertInstruction)) { + if (!(o instanceof CreatePreBuiltFunctionSourceDetails)) { return false; } - PatchInsertInstruction other = (PatchInsertInstruction) o; - return java.util.Objects.equals(this.value, other.value) && super.equals(other); + 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 = super.hashCode(); - result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); + result = (result * PRIME) + (this.pbfListingId == null ? 43 : this.pbfListingId.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/CreateRuntimeConfig.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/CreateRuntimeConfig.java index 3444a41d5c6..945538d7d6e 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/CreateRuntimeConfig.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.distributeddatabase.model; +package com.oracle.bmc.functions.model; /** - * Details of the Globally distributed autonomous database catalog. + * 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 @@ -14,25 +15,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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 = "runtimeConfigType", + defaultImpl = CreateRuntimeConfig.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.class, - name = "ADB_D" + 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.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedAutonomousDatabaseCatalogDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public class CreateRuntimeConfig extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseCatalogDetails() { + protected CreateRuntimeConfig() { super(); } @@ -48,7 +52,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedAutonomousDatabaseCatalogDetails("); + sb.append("CreateRuntimeConfig("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -59,12 +63,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedAutonomousDatabaseCatalogDetails)) { + if (!(o instanceof CreateRuntimeConfig)) { return false; } - CreateDistributedAutonomousDatabaseCatalogDetails other = - (CreateDistributedAutonomousDatabaseCatalogDetails) o; + CreateRuntimeConfig other = (CreateRuntimeConfig) o; return super.equals(other); } @@ -77,25 +80,25 @@ public int hashCode() { } /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally distributed autonomous database with - * autonomous dedicated cloudautonomousvmclusters. + * Type of the FunctionsRuntime Config. Possible values: FUNCTION_UPDATE and MANUAL. * **/ - public enum Source { - AdbD("ADB_D"), + public enum RuntimeConfigType { + FunctionUpdate("FUNCTION_UPDATE"), + Manual("MANUAL"), ; 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 (RuntimeConfigType v : RuntimeConfigType.values()) { map.put(v.getValue(), v); } } - Source(String value) { + RuntimeConfigType(String value) { this.value = value; } @@ -105,11 +108,11 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { + public static RuntimeConfigType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Source: " + key); + throw new IllegalArgumentException("Invalid RuntimeConfigType: " + key); } }; } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java new file mode 100644 index 00000000000..7fc99ed48a8 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/DirectArchiveSourceDetails.java @@ -0,0 +1,103 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + 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 = "archiveSourceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DirectArchiveSourceDetails extends ArchiveSourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DirectArchiveSourceDetails build() { + DirectArchiveSourceDetails model = new DirectArchiveSourceDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DirectArchiveSourceDetails model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DirectArchiveSourceDetails() { + 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("DirectArchiveSourceDetails("); + 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 DirectArchiveSourceDetails)) { + return false; + } + + DirectArchiveSourceDetails other = (DirectArchiveSourceDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} 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 f0e0d6b3638..dcc900b82bd 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 @@ -18,7 +18,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 b43dda30369..c5543294bc2 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class Function extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -26,8 +26,6 @@ public final class Function extends com.oracle.bmc.http.internal.ExplicitlySetBm "lifecycleState", "applicationId", "compartmentId", - "image", - "imageDigest", "sourceDetails", "shape", "memoryInMBs", @@ -50,8 +48,6 @@ public Function( LifecycleState lifecycleState, String applicationId, String compartmentId, - String image, - String imageDigest, FunctionSourceDetails sourceDetails, Shape shape, Long memoryInMBs, @@ -73,8 +69,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; @@ -182,50 +176,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; @@ -497,8 +447,6 @@ public Function build() { this.lifecycleState, this.applicationId, this.compartmentId, - this.image, - this.imageDigest, this.sourceDetails, this.shape, this.memoryInMBs, @@ -537,12 +485,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()); } @@ -735,46 +677,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; @@ -1070,8 +972,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)); @@ -1108,8 +1008,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) @@ -1145,8 +1043,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 8d88f9a9777..e5e37c3c1af 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 915003cd34d..1f5e9b8bc70 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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, @@ -23,6 +23,14 @@ 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" @@ -76,11 +84,13 @@ public int hashCode() { } /** - * Type of the Function Source. Possible values: PBF. + * Type of the Function Source. Possible values: CONTAINER_IMAGE, PBF and ARCHIVE. * **/ public enum SourceType { 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 this 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 4fab145f79a..333c4c71887 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class FunctionSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -26,8 +26,6 @@ public final class FunctionSummary extends com.oracle.bmc.http.internal.Explicit "applicationId", "compartmentId", "lifecycleState", - "image", - "imageDigest", "sourceDetails", "shape", "memoryInMBs", @@ -49,8 +47,6 @@ public FunctionSummary( String applicationId, String compartmentId, Function.LifecycleState lifecycleState, - String image, - String imageDigest, FunctionSourceDetails sourceDetails, Shape shape, Long memoryInMBs, @@ -71,8 +67,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; @@ -179,50 +173,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; @@ -460,8 +410,6 @@ public FunctionSummary build() { this.applicationId, this.compartmentId, this.lifecycleState, - this.image, - this.imageDigest, this.sourceDetails, this.shape, this.memoryInMBs, @@ -499,12 +447,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()); } @@ -640,46 +582,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; @@ -943,8 +845,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)); @@ -980,8 +880,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) @@ -1016,8 +914,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 6f4750c6317..6d14cb1819c 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = FunctionTraceConfig.Builder.class ) 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..8999462a5ff --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionUpdateRuntimeConfig.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..034bafd071f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntime.java @@ -0,0 +1,787 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class FunctionsRuntime extends com.oracle.bmc.http.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 { + 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..a27a5175f7d --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeCollection.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class FunctionsRuntimeCollection + extends com.oracle.bmc.http.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..65e8d5e8771 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeSummary.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class FunctionsRuntimeSummary + extends com.oracle.bmc.http.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..b4a5194b6e8 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersion.java @@ -0,0 +1,788 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class FunctionsRuntimeVersion + extends com.oracle.bmc.http.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 { + 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 { + 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..e464f2fd366 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionCollection.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class FunctionsRuntimeVersionCollection + extends com.oracle.bmc.http.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..12fb02f2bfa --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/FunctionsRuntimeVersionSummary.java @@ -0,0 +1,723 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class FunctionsRuntimeVersionSummary + extends com.oracle.bmc.http.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 { + 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 aca099c3847..ba26b037e3a 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ImagePolicyConfig.Builder.class ) 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 751f3f8d00b..ea247dd744f 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class KeyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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..8ac9feb482c --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ManualRuntimeConfig.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 b12aef45ffb..cf78eb5ec7a 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NoneFailureDestinationDetails.Builder.class ) 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 a4f587cda23..39a567cb061 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 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NoneProvisionedConcurrencyConfig.Builder.class ) 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 b8c3850387e..5df0d0fc92c 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NoneSuccessDestinationDetails.Builder.class ) 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 60e78dade85..1fa6b5372ff 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NotificationFailureDestinationDetails.Builder.class ) 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 1613c5b76b0..2e583be5cbd 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NotificationSuccessDestinationDetails.Builder.class ) 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..cd4347a909a --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/ObjectStorageArchiveSourceDetails.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java new file mode 100644 index 00000000000..0935b20252f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationStatus.java @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 status of the work request. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum OperationStatus { + Accepted("ACCEPTED"), + InProgress("IN_PROGRESS"), + Waiting("WAITING"), + NeedsAttention("NEEDS_ATTENTION"), + Failed("FAILED"), + Succeeded("SUCCEEDED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(OperationStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (OperationStatus v : OperationStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + OperationStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static OperationStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java similarity index 50% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java rename to bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java index d8109576459..130bed45bc6 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/OperationType.java @@ -2,18 +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.model; +package com.oracle.bmc.functions.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. - * + * The asynchronous operation tracked by the work request. **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum DistributedAutonomousDbProtectionMode { - MaximumAvailability("MAXIMUM_AVAILABILITY"), - MaximumPerformance("MAXIMUM_PERFORMANCE"), +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum OperationType { + 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 @@ -22,22 +29,21 @@ public enum DistributedAutonomousDbProtectionMode { UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbProtectionMode.class); + org.slf4j.LoggerFactory.getLogger(OperationType.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 (OperationType v : OperationType.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DistributedAutonomousDbProtectionMode(String value) { + OperationType(String value) { this.value = value; } @@ -47,12 +53,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedAutonomousDbProtectionMode create(String key) { + public static OperationType 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 '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 196e848a882..ea1b9f9c33f 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class PbfListing extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 33fd808b36a..b4a0e97edf1 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingSummary.Builder.class ) 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 44c104fd61a..47b7899a582 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingVersion.Builder.class ) 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 03399c97d8a..639aea1f241 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingVersionSummary.Builder.class ) 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 2a6b8c4f335..b0062e16e2d 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingVersionsCollection.Builder.class ) 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 84e436caf13..7bafbbdf48c 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PbfListingsCollection.Builder.class ) 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 186991f9f88..d9a1b03d452 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class PolicyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 d7d121724c1..604480d6b9e 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PreBuiltFunctionSourceDetails.Builder.class ) 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 4c5fa16b2ce..631c3dc0b40 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class PublisherDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 46b47c67bc9..af84baa1925 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = QueueFailureDestinationDetails.Builder.class ) 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 07f02d3d42e..2f19d07215b 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = QueueSuccessDestinationDetails.Builder.class ) 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 ef4dd6f91e6..86ccb5d6e5a 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 @@ -16,7 +16,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = RequirementDetails.Builder.class ) 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..3acadd3c6a2 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/RuntimeConfig.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class RuntimeConfig extends com.oracle.bmc.http.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 { + 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 4171e422b44..ce83e96927e 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = StreamFailureDestinationDetails.Builder.class ) 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 a912a0e83ec..accee8f801f 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 @@ -17,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = StreamSuccessDestinationDetails.Builder.class ) 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 3897ce4cc92..57e62460eb2 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 @@ -18,7 +18,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 89e0a462607..e4e24b6e711 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class Trigger extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 2f90171022d..56527e59c5f 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class TriggerSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { 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 009da3e4c1b..efb2d4ccc35 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = TriggersCollection.Builder.class ) 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 bb5bd22e8ad..560c3bdd6ab 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateApplicationDetails.Builder.class ) 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..bdc99c53c9f --- /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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java new file mode 100644 index 00000000000..cf4322744be --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateArchiveSourceDetails.java @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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 = UpdateArchiveSourceDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + 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.internal.ExplicitlySetFilter.NAME) +public class UpdateArchiveSourceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateArchiveSourceDetails() { + 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("UpdateArchiveSourceDetails("); + 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 UpdateArchiveSourceDetails)) { + return false; + } + + UpdateArchiveSourceDetails other = (UpdateArchiveSourceDetails) 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 { + ObjectStorageArchive("OBJECT_STORAGE_ARCHIVE"), + DirectArchive("DIRECT_ARCHIVE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ArchiveSourceType v : ArchiveSourceType.values()) { + 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); + } + 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..09d561e5ef6 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateContainerImageFunctionSourceDetails.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java new file mode 100644 index 00000000000..cfcdbb7f480 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateDirectArchiveSourceDetails.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + 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 = "archiveSourceType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateDirectArchiveSourceDetails extends UpdateArchiveSourceDetails { + @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 UpdateDirectArchiveSourceDetails build() { + UpdateDirectArchiveSourceDetails model = + new UpdateDirectArchiveSourceDetails(this.archiveFile); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDirectArchiveSourceDetails 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 UpdateDirectArchiveSourceDetails(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("UpdateDirectArchiveSourceDetails("); + 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 UpdateDirectArchiveSourceDetails)) { + return false; + } + + 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) + 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 c1c4b761320..fddfc525b38 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 @@ -15,7 +15,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateFunctionDetails.Builder.class ) @@ -24,8 +24,6 @@ public final class UpdateFunctionDetails extends com.oracle.bmc.http.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,56 +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). **/ @@ -224,6 +177,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 Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -276,8 +238,6 @@ public Builder definedTags( public UpdateFunctionDetails build() { UpdateFunctionDetails model = new UpdateFunctionDetails( - this.image, - this.imageDigest, this.memoryInMBs, this.config, this.timeoutInSeconds, @@ -286,6 +246,7 @@ public UpdateFunctionDetails build() { this.failureDestination, this.successDestination, this.traceConfig, + this.sourceDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -296,12 +257,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()); } @@ -326,6 +281,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()); } @@ -347,46 +305,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). **/ @@ -483,6 +401,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 Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -537,9 +462,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=") @@ -549,6 +472,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(")"); @@ -565,9 +489,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( @@ -577,6 +499,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); @@ -586,8 +509,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 = @@ -614,6 +535,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 71% 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 2c7317af037..26c52812334 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,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.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 @@ -14,25 +15,29 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") +@javax.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.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedAutonomousDatabaseShardDetails +public class UpdateFunctionSourceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseShardDetails() { + protected UpdateFunctionSourceDetails() { super(); } @@ -48,7 +53,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(); @@ -59,12 +64,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 +81,25 @@ public int hashCode() { } /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally distributed autonomous database with - * autonomous dedicated cloudautonomousvmclusters. + * Type of the Function Source. Possible values: CONTAINER_IMAGE and ARCHIVE. * **/ - public enum Source { - AdbD("ADB_D"), + public enum SourceType { + 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 +109,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..1bc00f50d8b --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateFunctionUpdateRuntimeConfig.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..6035b597bda --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateManualRuntimeConfig.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..d2e77763196 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateObjectStorageArchiveSourceDetails.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..4175de51626 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/UpdateRuntimeConfig.java @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class UpdateRuntimeConfig extends com.oracle.bmc.http.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 { + 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 1bb8587faf6..28f142f1e3c 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 @@ -14,7 +17,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -28,7 +31,8 @@ public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySe "percentComplete", "timeAccepted", "timeStarted", - "timeFinished" + "timeFinished", + "timeUpdated" }) public WorkRequest( OperationType operationType, @@ -39,7 +43,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; @@ -50,18 +55,19 @@ 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,13 +77,13 @@ public Builder operationType(OperationType 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 **/ @@ -87,13 +93,13 @@ public Builder status(OperationStatus 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 **/ @@ -103,20 +109,14 @@ 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 @@ -127,13 +127,13 @@ public Builder compartmentId(String 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 **/ @@ -143,13 +143,17 @@ public Builder resources(java.util.List 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 **/ @@ -159,16 +163,16 @@ 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 @@ -179,16 +183,16 @@ 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 @@ -199,14 +203,16 @@ public Builder timeStarted(java.util.Date timeStarted) { return this; } /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * 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 3339](https://tools.ietf.org/rfc/rfc3339). + * 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 @@ -216,6 +222,26 @@ 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(); @@ -231,7 +257,8 @@ public WorkRequest build() { this.percentComplete, this.timeAccepted, this.timeStarted, - this.timeFinished); + this.timeFinished, + this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -267,6 +294,9 @@ public Builder copy(WorkRequest model) { if (model.wasPropertyExplicitlySet("timeFinished")) { this.timeFinished(model.getTimeFinished()); } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } return this; } } @@ -283,13 +313,13 @@ public Builder toBuilder() { } /** - * 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 **/ public OperationType getOperationType() { @@ -297,13 +327,13 @@ public OperationType getOperationType() { } /** - * 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 **/ public OperationStatus getStatus() { @@ -311,13 +341,13 @@ public OperationStatus getStatus() { } /** - * 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 **/ public String getId() { @@ -325,20 +355,14 @@ 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 **/ @@ -347,13 +371,13 @@ public String getCompartmentId() { } /** - * 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 **/ public java.util.List getResources() { @@ -361,13 +385,17 @@ public java.util.List getResources() { } /** - * 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 **/ public Float getPercentComplete() { @@ -375,16 +403,16 @@ 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 **/ @@ -393,16 +421,16 @@ 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 **/ @@ -411,14 +439,16 @@ public java.util.Date getTimeStarted() { } /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + * 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 3339](https://tools.ietf.org/rfc/rfc3339). + * 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 **/ @@ -426,6 +456,24 @@ 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); @@ -449,6 +497,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(); } @@ -472,6 +521,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); } @@ -494,6 +544,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 1182d7630b3..5d8a970aff9 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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.internal.ExplicitlySetFilter.NAME) public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @@ -30,16 +30,16 @@ 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 @@ -50,13 +50,13 @@ public Builder code(String 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,13 +66,17 @@ public Builder message(String 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 **/ @@ -120,16 +124,16 @@ 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 **/ @@ -138,13 +142,13 @@ public String getCode() { } /** - * 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 **/ public String getMessage() { @@ -152,13 +156,17 @@ public String getMessage() { } /** - * 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 **/ public java.util.Date getTimestamp() { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.java new file mode 100644 index 00000000000..b61a973cdaf --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestErrorCollection.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.functions.model; + +/** + * A list of work request errors. Can contain both errors and other information, such as metadata. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestErrorCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestErrorCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestErrorCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work request errors. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request errors. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestErrorCollection build() { + WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestErrorCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work request errors. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request errors. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestErrorCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestErrorCollection)) { + return false; + } + + WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-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 910a395eedb..f974bfe08dd 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 @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntry.Builder.class ) @@ -31,13 +31,13 @@ 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,13 +47,17 @@ public Builder message(String 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 **/ @@ -98,13 +102,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getMessage() { @@ -112,13 +116,17 @@ public String getMessage() { } /** - * 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 **/ public java.util.Date getTimestamp() { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.java new file mode 100644 index 00000000000..79391dc2dcd --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestLogEntryCollection.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.functions.model; + +/** + * A list of work request logs. Can contain both logs and other information, such as metadata. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestLogEntryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestLogEntryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestLogEntryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work request log entries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work request log entries. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestLogEntryCollection build() { + WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestLogEntryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work request log entries. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work request log entries. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestLogEntryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestLogEntryCollection)) { + return false; + } + + WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-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 81% 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 22a4dfad83e..9777a68b698 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. @@ -14,7 +14,7 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestResource.Builder.class ) @@ -45,13 +45,13 @@ 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 **/ @@ -61,9 +61,9 @@ 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, + * 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. * **/ @@ -71,9 +71,9 @@ public Builder entityType(String entityType) { 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, + * 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 @@ -85,13 +85,13 @@ public Builder actionType(ActionType 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 **/ @@ -101,13 +101,13 @@ public Builder identifier(String 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 **/ @@ -183,13 +183,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getEntityType() { @@ -197,9 +197,9 @@ 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, + * 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. * **/ @@ -207,9 +207,9 @@ public String getEntityType() { 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, + * 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 @@ -219,13 +219,13 @@ public ActionType getActionType() { } /** - * 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 **/ public String getIdentifier() { @@ -233,13 +233,13 @@ public String getIdentifier() { } /** - * 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 **/ public String getEntityUri() { diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.java new file mode 100644 index 00000000000..557a5f1ee22 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestResourceMetadataKey.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.functions.model; + +/** + * Possible metadata keys for work request resource metadata. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum WorkRequestResourceMetadataKey { + IsDryRun("IS_DRY_RUN"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + WorkRequestResourceMetadataKey(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static WorkRequestResourceMetadataKey create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-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..9cdc4c6980b --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummary.java @@ -0,0 +1,550 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestSummary extends com.oracle.bmc.http.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-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.java new file mode 100644 index 00000000000..87ac6c2f3d4 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/model/WorkRequestSummaryCollection.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.functions.model; + +/** + * A list of work requests. Can contain both work requests and other information, such as metadata. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = WorkRequestSummaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class WorkRequestSummaryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public WorkRequestSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of work requests. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of work requests. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public WorkRequestSummaryCollection build() { + WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(WorkRequestSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of work requests. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of work requests. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("WorkRequestSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof WorkRequestSummaryCollection)) { + return false; + } + + WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-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..980d21e9ae7 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/CancelWorkRequestRequest.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use CancelWorkRequestRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 36d01579ebe..605cff0331b 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ChangeApplicationCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 89dec908482..741b5d4455b 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CreateApplicationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 5bffdf1c63a..3b8de2cf89d 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use CreateFunctionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 d24ba2e0df5..11a3b1207db 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use DeleteApplicationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 90f99a38ba9..317bd884ab3 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use DeleteFunctionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 cedcb9eb22f..23028a7711a 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetApplicationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 5f58368218e..42c6d094030 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetFunctionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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..45ba0a0654c --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/GetFunctionsRuntimeRequest.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.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use GetFunctionsRuntimeRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..a24dfdb7eda --- /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. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 44b62643ea2..04ead025105 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetPbfListingRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class GetPbfListingRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 34e2a14dd70..0d5de121011 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use GetPbfListingVersionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 97a5bfcaea2..0e3440d0082 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,33 +2,37 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + * Example: Click here to see how to use GetWorkRequestRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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; @@ -42,12 +46,12 @@ public static class Builder 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 */ @@ -57,12 +61,16 @@ public Builder workRequestId(String 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 = 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 c7c27c4a7f5..ce9dd8fbbc5 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use InvokeFunctionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 c79e3138caa..d86041ebf92 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListApplicationsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 1e9af12e277..6f466f84e14 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListFunctionsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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..0a1bec4722c --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimeVersionsRequest.java @@ -0,0 +1,697 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..97d71a83010 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListFunctionsRuntimesRequest.java @@ -0,0 +1,649 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use ListFunctionsRuntimesRequest. + */ +@javax.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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 651d8e42cc4..e35c196cfc6 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListPbfListingVersionsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 a76873d1382..345b9c2b6bd 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListPbfListingsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListPbfListingsRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 86ac562c464..5c65b3c6407 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use ListTriggersRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class ListTriggersRequest extends com.oracle.bmc.requests.BmcRequest { /** 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 9896e6589b6..9c3b81bde35 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,68 +2,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.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. + * Example: Click here to see how to use ListWorkRequestErrorsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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 { @@ -99,21 +111,69 @@ 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'. + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + private SortOrder sortOrder; + + /** + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * + **/ + public enum SortOrder { + 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 'ASC' or 'DESC'. + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + public SortOrder getSortOrder() { return sortOrder; } @@ -125,12 +185,12 @@ public static class Builder 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 */ @@ -140,12 +200,16 @@ public Builder workRequestId(String 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 = 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 */ @@ -155,12 +219,14 @@ public Builder opcRequestId(String 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 = 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 */ @@ -170,12 +236,18 @@ public Builder page(String 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 = 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 */ @@ -185,13 +257,13 @@ 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 @@ -202,16 +274,24 @@ public Builder sortBy(SortBy sortBy) { } /** - * The sort order to use, either 'ASC' or 'DESC'. + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + 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 8d35f09119b..7f8ad48d850 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,67 +2,79 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + * Example: Click here to see how to use ListWorkRequestLogsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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 { @@ -98,21 +110,69 @@ 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'. + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; + private SortOrder sortOrder; + + /** + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * + **/ + public enum SortOrder { + 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 'ASC' or 'DESC'. + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { + public SortOrder getSortOrder() { return sortOrder; } @@ -124,12 +184,12 @@ public static class Builder 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 */ @@ -139,12 +199,16 @@ public Builder workRequestId(String 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 = 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 */ @@ -154,12 +218,14 @@ public Builder opcRequestId(String 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 = 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 */ @@ -169,12 +235,18 @@ public Builder page(String 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 = 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 */ @@ -184,13 +256,13 @@ 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 @@ -201,16 +273,24 @@ public Builder sortBy(SortBy sortBy) { } /** - * The sort order to use, either 'ASC' or 'DESC'. + * Specifies sort order. + *

    + * **ASC:** Ascending sort order. + * * **DESC:** Descending sort order. + * */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; + 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..8ceaf86e52f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/requests/ListWorkRequestsRequest.java @@ -0,0 +1,547 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.requests; + +import com.oracle.bmc.functions.model.*; +/** + * Example: Click here to see how to use ListWorkRequestsRequest. + */ +@javax.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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 636e763a6d5..d8ca71eb0d9 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use UpdateApplicationRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 43936c8767c..99c3dca7ce0 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 @@ -8,7 +8,7 @@ /** * Example: Click here to see how to use UpdateFunctionRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.java new file mode 100644 index 00000000000..29993bb9ed5 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/CancelWorkRequestResponse.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.responses; + +import com.oracle.bmc.functions.model.*; + +@javax.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. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private CancelWorkRequestResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 + */ + public Builder copy(CancelWorkRequestResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public CancelWorkRequestResponse build() { + return new CancelWorkRequestResponse(__httpStatusCode__, headers, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CancelWorkRequestResponse)) { + return false; + } + + CancelWorkRequestResponse other = (CancelWorkRequestResponse) o; + return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-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 7ae23abf495..87c96531320 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,18 +6,18 @@ import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * 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 */ @@ -25,13 +25,37 @@ 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__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -50,15 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * 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 @@ -68,6 +92,25 @@ 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. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(ChangeApplicationCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -86,7 +130,7 @@ public Builder copy(ChangeApplicationCompartmentResponse o) { */ public ChangeApplicationCompartmentResponse build() { return new ChangeApplicationCompartmentResponse( - __httpStatusCode__, headers, opcRequestId); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -104,6 +148,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(); } @@ -118,7 +163,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 @@ -126,6 +173,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 c752d4fde6a..163ff82621f 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 @@ -44,6 +44,23 @@ 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 Application instance. */ @@ -62,6 +79,7 @@ public com.oracle.bmc.functions.model.Application getApplication() { "headers", "etag", "opcRequestId", + "opcWorkRequestId", "application" }) private CreateApplicationResponse( @@ -69,10 +87,12 @@ private CreateApplicationResponse( javax.ws.rs.core.MultivaluedMap 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; } @@ -131,6 +151,25 @@ 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 Application instance. */ @@ -155,6 +194,7 @@ public Builder copy(CreateApplicationResponse o) { headers(o.getHeaders()); etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); application(o.getApplication()); return this; @@ -166,7 +206,7 @@ public Builder copy(CreateApplicationResponse o) { */ public CreateApplicationResponse build() { return new CreateApplicationResponse( - __httpStatusCode__, headers, etag, opcRequestId, application); + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, application); } } @@ -185,6 +225,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(); @@ -203,6 +244,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); } @@ -212,6 +254,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 8ee2a531731..781ea21f7e8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 @@ -44,6 +44,23 @@ 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 Function instance. */ @@ -62,6 +79,7 @@ public com.oracle.bmc.functions.model.Function getFunction() { "headers", "etag", "opcRequestId", + "opcWorkRequestId", "function" }) private CreateFunctionResponse( @@ -69,10 +87,12 @@ private CreateFunctionResponse( javax.ws.rs.core.MultivaluedMap 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; } @@ -131,6 +151,25 @@ 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 Function instance. */ @@ -155,6 +194,7 @@ public Builder copy(CreateFunctionResponse o) { headers(o.getHeaders()); etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); function(o.getFunction()); return this; @@ -166,7 +206,7 @@ public Builder copy(CreateFunctionResponse o) { */ public CreateFunctionResponse build() { return new CreateFunctionResponse( - __httpStatusCode__, headers, etag, opcRequestId, function); + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, function); } } @@ -185,6 +225,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(); @@ -203,6 +244,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); } @@ -212,6 +254,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 e426d7a4f94..692b2467c44 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,18 +6,18 @@ import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * 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 */ @@ -25,13 +25,37 @@ 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__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -50,15 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * 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 @@ -68,6 +92,25 @@ 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. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(DeleteApplicationResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +129,8 @@ public Builder copy(DeleteApplicationResponse o) { * @return the response object */ public DeleteApplicationResponse build() { - return new DeleteApplicationResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteApplicationResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +148,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(); } @@ -117,7 +163,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 @@ -125,6 +173,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 c087fccb125..51b32d9e998 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,18 +6,18 @@ import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * 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 */ @@ -25,13 +25,37 @@ 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__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -50,15 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. * */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle - * about a particular request, please provide the request ID. + * 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 @@ -68,6 +92,25 @@ 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. * @return this builder instance @@ -76,6 +119,7 @@ public Builder copy(DeleteFunctionResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -85,7 +129,8 @@ public Builder copy(DeleteFunctionResponse o) { * @return the response object */ public DeleteFunctionResponse build() { - return new DeleteFunctionResponse(__httpStatusCode__, headers, opcRequestId); + return new DeleteFunctionResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -103,6 +148,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(); } @@ -117,7 +163,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 @@ -125,6 +173,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 6cf4bc31417..0fb5f76424b 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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 9c59bdea4b5..51c3ea419fa 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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..2e5acb7fc1f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@javax.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 FunctionsRuntime instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntime functionsRuntime; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 FunctionsRuntime instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntime functionsRuntime; + + /** + * The returned 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 + */ + 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 + */ + 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..10df8a1727f --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/GetFunctionsRuntimeVersionResponse.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.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@javax.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 FunctionsRuntimeVersion instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersion functionsRuntimeVersion; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 FunctionsRuntimeVersion instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersion functionsRuntimeVersion; + + /** + * The returned 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 + */ + 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 + */ + 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 ea5e524c5a2..179008a14db 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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}. 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 41e881bc93d..82cd5edf2a8 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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}. 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 79% 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 de8e9ce55d2..1941a6c3ced 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,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.responses; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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,19 +56,20 @@ public Integer getRetryAfter() { /** * The returned WorkRequest instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; + private com.oracle.bmc.functions.model.WorkRequest workRequest; /** * The returned 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" @@ -61,10 +77,12 @@ public com.oracle.bmc.distributeddatabasev26.model.WorkRequest getWorkRequest() private GetWorkRequestResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap 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; @@ -85,6 +103,23 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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. @@ -122,15 +157,14 @@ public Builder retryAfter(Integer retryAfter) { /** * The returned WorkRequest instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; + private com.oracle.bmc.functions.model.WorkRequest workRequest; /** * The returned WorkRequest instance. * @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; } @@ -142,6 +176,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()); @@ -155,7 +190,7 @@ public Builder copy(GetWorkRequestResponse o) { */ public GetWorkRequestResponse build() { return new GetWorkRequestResponse( - __httpStatusCode__, headers, opcRequestId, retryAfter, workRequest); + __httpStatusCode__, headers, etag, opcRequestId, retryAfter, workRequest); } } @@ -172,6 +207,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)); @@ -190,6 +226,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); @@ -199,6 +236,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 6a0f85e9bda..8efef15226a 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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 4cf092c2ab2..d40b0d82635 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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 768f3faab4a..8c829fed1e6 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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..da409db6a81 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimeVersionsResponse.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.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@javax.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 FunctionsRuntimeVersionCollection instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + functionsRuntimeVersionCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 FunctionsRuntimeVersionCollection instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeVersionCollection + functionsRuntimeVersionCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..bf1625b9519 --- /dev/null +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/responses/ListFunctionsRuntimesResponse.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.functions.responses; + +import com.oracle.bmc.functions.model.*; + +@javax.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 FunctionsRuntimeCollection instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeCollection functionsRuntimeCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 FunctionsRuntimeCollection instance. + */ + private com.oracle.bmc.functions.model.FunctionsRuntimeCollection + functionsRuntimeCollection; + + /** + * The returned 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 + */ + 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 + */ + 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 919eb4bf408..91d13f3b55d 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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 91970c805e1..918e8ff4c96 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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 e648ee39fb4..146cb7635d5 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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 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 76a0b585379..9fb8b53ed63 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,59 +2,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.distributeddatabasev26.responses; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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 WorkRequestErrorCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection; + private com.oracle.bmc.functions.model.WorkRequestErrorCollection workRequestErrorCollection; /** * The returned WorkRequestErrorCollection instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + public com.oracle.bmc.functions.model.WorkRequestErrorCollection getWorkRequestErrorCollection() { return workRequestErrorCollection; } @@ -62,20 +61,19 @@ public String getOpcRequestId() { @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcNextPage", "opcRequestId", + "opcNextPage", "workRequestErrorCollection" }) private ListWorkRequestErrorsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap 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,49 +93,49 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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 WorkRequestErrorCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection + private com.oracle.bmc.functions.model.WorkRequestErrorCollection workRequestErrorCollection; /** @@ -146,7 +144,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; @@ -159,8 +157,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; @@ -174,8 +172,8 @@ public ListWorkRequestErrorsResponse build() { return new ListWorkRequestErrorsResponse( __httpStatusCode__, headers, - opcNextPage, opcRequestId, + opcNextPage, workRequestErrorCollection); } } @@ -193,8 +191,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(")"); @@ -212,8 +210,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); } @@ -222,8 +220,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 ef3357d2fea..2c1d60b0a95 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,59 +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.responses; +package com.oracle.bmc.functions.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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 WorkRequestLogEntryCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + private com.oracle.bmc.functions.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; /** * The returned WorkRequestLogEntryCollection instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + public com.oracle.bmc.functions.model.WorkRequestLogEntryCollection getWorkRequestLogEntryCollection() { return workRequestLogEntryCollection; } @@ -62,20 +62,20 @@ public String getOpcRequestId() { @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcNextPage", "opcRequestId", + "opcNextPage", "workRequestLogEntryCollection" }) private ListWorkRequestLogsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap 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,49 +95,49 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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 WorkRequestLogEntryCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection + private com.oracle.bmc.functions.model.WorkRequestLogEntryCollection workRequestLogEntryCollection; /** @@ -146,7 +146,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; @@ -159,8 +159,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; @@ -174,8 +174,8 @@ public ListWorkRequestLogsResponse build() { return new ListWorkRequestLogsResponse( __httpStatusCode__, headers, - opcNextPage, opcRequestId, + opcNextPage, workRequestLogEntryCollection); } } @@ -193,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(",workRequestLogEntryCollection=") .append(String.valueOf(workRequestLogEntryCollection)); sb.append(")"); @@ -212,8 +212,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); } @@ -222,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.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 d658a7f41d1..1c83ef81211 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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 @@ -47,14 +47,14 @@ public String getOpcNextPage() { /** * The returned WorkRequestSummaryCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + private com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection; /** * The returned WorkRequestSummaryCollection instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + public com.oracle.bmc.functions.model.WorkRequestSummaryCollection getWorkRequestSummaryCollection() { return workRequestSummaryCollection; } @@ -71,7 +71,7 @@ private ListWorkRequestsResponse( javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; @@ -137,7 +137,7 @@ public Builder opcNextPage(String opcNextPage) { /** * The returned WorkRequestSummaryCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection + private com.oracle.bmc.functions.model.WorkRequestSummaryCollection workRequestSummaryCollection; /** @@ -146,7 +146,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 b0a26bf4aad..747b9ad9742 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,27 +6,8 @@ import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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. @@ -45,35 +26,36 @@ public String getOpcRequestId() { } /** - * The returned 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. + * */ - private com.oracle.bmc.functions.model.Application application; + private String opcWorkRequestId; /** - * The returned 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__, javax.ws.rs.core.MultivaluedMap 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,27 +73,6 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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. @@ -132,17 +93,21 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The returned 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. + * */ - private com.oracle.bmc.functions.model.Application application; + private String opcWorkRequestId; /** - * The returned Application instance. - * @param application the value to set + * 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 application(com.oracle.bmc.functions.model.Application application) { - this.application = application; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } @@ -153,9 +118,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; } @@ -166,7 +130,7 @@ public Builder copy(UpdateApplicationResponse o) { */ public UpdateApplicationResponse build() { return new UpdateApplicationResponse( - __httpStatusCode__, headers, etag, opcRequestId, application); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -183,9 +147,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(); } @@ -201,18 +164,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 e6357bf5054..263724f5cd3 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,27 +6,8 @@ import com.oracle.bmc.functions.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@javax.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. @@ -45,35 +26,36 @@ public String getOpcRequestId() { } /** - * The returned 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. + * */ - private com.oracle.bmc.functions.model.Function function; + private String opcWorkRequestId; /** - * The returned 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__, javax.ws.rs.core.MultivaluedMap 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,27 +73,6 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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. @@ -132,17 +93,21 @@ public Builder opcRequestId(String opcRequestId) { } /** - * The returned 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. + * */ - private com.oracle.bmc.functions.model.Function function; + private String opcWorkRequestId; /** - * The returned Function instance. - * @param function the value to set + * 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 function(com.oracle.bmc.functions.model.Function function) { - this.function = function; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } @@ -153,9 +118,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; } @@ -166,7 +130,7 @@ public Builder copy(UpdateFunctionResponse o) { */ public UpdateFunctionResponse build() { return new UpdateFunctionResponse( - __httpStatusCode__, headers, etag, opcRequestId, function); + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -183,9 +147,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(); } @@ -201,18 +164,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-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 3462d54ee78..2b5e9eb48a5 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-fusionapps @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 97b2a2e1ea2..e9ea9b43863 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 949953fcab0..4eda6c374b3 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.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 3070da1c6fa..fcd7fbfb199 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 @@ -228,6 +228,19 @@ 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 Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * @param request The request object containing the details to send @@ -390,6 +403,18 @@ 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. * @@ -595,6 +620,18 @@ 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. * @param request The request object containing the details to send @@ -755,6 +792,18 @@ 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. * @param request The request object containing the details to send @@ -942,6 +991,20 @@ 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. * @param request The request object containing the details to send @@ -954,6 +1017,18 @@ 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. * @param request The request object containing the details to send @@ -1204,6 +1279,18 @@ 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. * @param request The request object containing the details to send 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 4cbeb7bc8e7..71dca7e2051 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 @@ -279,6 +279,24 @@ 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 Compartment](https://docs.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). * @@ -485,6 +503,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. * @@ -746,6 +780,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. * @@ -950,6 +1000,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. * @@ -1193,6 +1259,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. * @@ -1207,6 +1291,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. * @@ -1528,6 +1628,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 8b556994e29..d39e1ba9746 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 @@ -1171,6 +1171,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeRoutingProfileCompartment( + ChangeRoutingProfileCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRoutingProfileCompartmentRequest, + ChangeRoutingProfileCompartmentResponse> + handler) { + LOG.trace("Called async changeRoutingProfileCompartment"); + final ChangeRoutingProfileCompartmentRequest interceptedRequest = + ChangeRoutingProfileCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeRoutingProfileCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ChangeRoutingProfileCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/ChangeRoutingProfileCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeRoutingProfileCompartmentResponse> + transformer = + ChangeRoutingProfileCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeRoutingProfileCompartmentRequest, + ChangeRoutingProfileCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeRoutingProfileCompartmentRequest, + ChangeRoutingProfileCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeRoutingProfileCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeRoutingProfileCompartmentRequest, + ChangeRoutingProfileCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeSemanticStoreCompartment( @@ -1823,6 +1882,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createRoutingProfile( + CreateRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateRoutingProfileRequest, CreateRoutingProfileResponse> + handler) { + LOG.trace("Called async createRoutingProfile"); + final CreateRoutingProfileRequest interceptedRequest = + CreateRoutingProfileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateRoutingProfileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "CreateRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/CreateRoutingProfile"); + final java.util.function.Function + transformer = + CreateRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateRoutingProfileRequest, CreateRoutingProfileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateRoutingProfileRequest, CreateRoutingProfileResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateRoutingProfileDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateRoutingProfileRequest, CreateRoutingProfileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createSemanticStore( CreateSemanticStoreRequest request, @@ -2572,6 +2684,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteRoutingProfile( + DeleteRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteRoutingProfileRequest, DeleteRoutingProfileResponse> + handler) { + LOG.trace("Called async deleteRoutingProfile"); + final DeleteRoutingProfileRequest interceptedRequest = + DeleteRoutingProfileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteRoutingProfileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "DeleteRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/DeleteRoutingProfile"); + final java.util.function.Function + transformer = + DeleteRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteRoutingProfileRequest, DeleteRoutingProfileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteRoutingProfileRequest, DeleteRoutingProfileResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteRoutingProfileRequest, DeleteRoutingProfileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteSemanticStore( DeleteSemanticStoreRequest request, @@ -3182,6 +3341,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getRoutingProfile( + GetRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetRoutingProfileRequest, GetRoutingProfileResponse> + handler) { + LOG.trace("Called async getRoutingProfile"); + final GetRoutingProfileRequest interceptedRequest = + GetRoutingProfileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRoutingProfileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "GetRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/GetRoutingProfile"); + final java.util.function.Function + transformer = + GetRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetRoutingProfileRequest, GetRoutingProfileResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetRoutingProfileRequest, GetRoutingProfileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getSemanticStore( GetSemanticStoreRequest request, @@ -3902,6 +4107,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listModelDiscovery( + ListModelDiscoveryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListModelDiscoveryRequest, ListModelDiscoveryResponse> + handler) { + LOG.trace("Called async listModelDiscovery"); + final ListModelDiscoveryRequest interceptedRequest = + ListModelDiscoveryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListModelDiscoveryConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ListModelDiscovery", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/ModelDiscoveryCollection/ListModelDiscovery"); + final java.util.function.Function + transformer = + ListModelDiscoveryConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListModelDiscoveryRequest, ListModelDiscoveryResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListModelDiscoveryRequest, ListModelDiscoveryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listModels( ListModelsRequest request, @@ -3945,6 +4196,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listRoutingProfiles( + ListRoutingProfilesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListRoutingProfilesRequest, ListRoutingProfilesResponse> + handler) { + LOG.trace("Called async listRoutingProfiles"); + final ListRoutingProfilesRequest interceptedRequest = + ListRoutingProfilesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRoutingProfilesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ListRoutingProfiles", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfileCollection/ListRoutingProfiles"); + final java.util.function.Function + transformer = + ListRoutingProfilesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListRoutingProfilesRequest, ListRoutingProfilesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListRoutingProfilesRequest, ListRoutingProfilesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListRoutingProfilesRequest, ListRoutingProfilesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listSemanticStores( ListSemanticStoresRequest request, @@ -4971,6 +5269,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateRoutingProfile( + UpdateRoutingProfileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateRoutingProfileRequest, UpdateRoutingProfileResponse> + handler) { + LOG.trace("Called async updateRoutingProfile"); + final UpdateRoutingProfileRequest interceptedRequest = + UpdateRoutingProfileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRoutingProfileConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "UpdateRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/UpdateRoutingProfile"); + final java.util.function.Function + transformer = + UpdateRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateRoutingProfileRequest, UpdateRoutingProfileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateRoutingProfileRequest, UpdateRoutingProfileResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateRoutingProfileDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateRoutingProfileRequest, UpdateRoutingProfileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @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 8591550f766..70a192a0b08 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 @@ -1106,6 +1106,51 @@ public ChangeModelCompartmentResponse changeModelCompartment( }); } + @Override + public ChangeRoutingProfileCompartmentResponse changeRoutingProfileCompartment( + ChangeRoutingProfileCompartmentRequest request) { + LOG.trace("Called changeRoutingProfileCompartment"); + final ChangeRoutingProfileCompartmentRequest interceptedRequest = + ChangeRoutingProfileCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeRoutingProfileCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ChangeRoutingProfileCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/ChangeRoutingProfileCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeRoutingProfileCompartmentResponse> + transformer = + ChangeRoutingProfileCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeRoutingProfileCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeSemanticStoreCompartmentResponse changeSemanticStoreCompartment( ChangeSemanticStoreCompartmentRequest request) { @@ -1620,6 +1665,48 @@ public CreateModelResponse createModel(CreateModelRequest request) { }); } + @Override + public CreateRoutingProfileResponse createRoutingProfile(CreateRoutingProfileRequest request) { + LOG.trace("Called createRoutingProfile"); + final CreateRoutingProfileRequest interceptedRequest = + CreateRoutingProfileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateRoutingProfileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "CreateRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/CreateRoutingProfile"); + java.util.function.Function + transformer = + CreateRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateRoutingProfileDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateSemanticStoreResponse createSemanticStore(CreateSemanticStoreRequest request) { LOG.trace("Called createSemanticStore"); @@ -2212,6 +2299,44 @@ public DeleteModelResponse deleteModel(DeleteModelRequest request) { }); } + @Override + public DeleteRoutingProfileResponse deleteRoutingProfile(DeleteRoutingProfileRequest request) { + LOG.trace("Called deleteRoutingProfile"); + final DeleteRoutingProfileRequest interceptedRequest = + DeleteRoutingProfileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteRoutingProfileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "DeleteRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/DeleteRoutingProfile"); + java.util.function.Function + transformer = + DeleteRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteSemanticStoreResponse deleteSemanticStore(DeleteSemanticStoreRequest request) { LOG.trace("Called deleteSemanticStore"); @@ -2694,6 +2819,43 @@ public GetModelResponse getModel(GetModelRequest request) { }); } + @Override + public GetRoutingProfileResponse getRoutingProfile(GetRoutingProfileRequest request) { + LOG.trace("Called getRoutingProfile"); + final GetRoutingProfileRequest interceptedRequest = + GetRoutingProfileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetRoutingProfileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "GetRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/GetRoutingProfile"); + java.util.function.Function + transformer = + GetRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetSemanticStoreResponse getSemanticStore(GetSemanticStoreRequest request) { LOG.trace("Called getSemanticStore"); @@ -3256,6 +3418,43 @@ public ListImportedModelsResponse listImportedModels(ListImportedModelsRequest r }); } + @Override + public ListModelDiscoveryResponse listModelDiscovery(ListModelDiscoveryRequest request) { + LOG.trace("Called listModelDiscovery"); + final ListModelDiscoveryRequest interceptedRequest = + ListModelDiscoveryConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListModelDiscoveryConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ListModelDiscovery", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/ModelDiscoveryCollection/ListModelDiscovery"); + java.util.function.Function + transformer = + ListModelDiscoveryConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListModelsResponse listModels(ListModelsRequest request) { LOG.trace("Called listModels"); @@ -3290,6 +3489,43 @@ public ListModelsResponse listModels(ListModelsRequest request) { }); } + @Override + public ListRoutingProfilesResponse listRoutingProfiles(ListRoutingProfilesRequest request) { + LOG.trace("Called listRoutingProfiles"); + final ListRoutingProfilesRequest interceptedRequest = + ListRoutingProfilesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListRoutingProfilesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "ListRoutingProfiles", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfileCollection/ListRoutingProfiles"); + java.util.function.Function + transformer = + ListRoutingProfilesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListSemanticStoresResponse listSemanticStores(ListSemanticStoresRequest request) { LOG.trace("Called listSemanticStores"); @@ -4093,6 +4329,47 @@ public UpdateModelResponse updateModel(UpdateModelRequest request) { }); } + @Override + public UpdateRoutingProfileResponse updateRoutingProfile(UpdateRoutingProfileRequest request) { + LOG.trace("Called updateRoutingProfile"); + final UpdateRoutingProfileRequest interceptedRequest = + UpdateRoutingProfileConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateRoutingProfileConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerativeAi", + "UpdateRoutingProfile", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai/20231130/RoutingProfile/UpdateRoutingProfile"); + java.util.function.Function + transformer = + UpdateRoutingProfileConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateRoutingProfileDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateSemanticStoreResponse updateSemanticStore(UpdateSemanticStoreRequest request) { LOG.trace("Called updateSemanticStore"); 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 ae817471af8..05d6a4e0dbb 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 @@ -1206,6 +1206,119 @@ 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. @@ -1316,6 +1429,120 @@ 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 0b6e8b3293f..47e8aca6fa3 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 @@ -1199,6 +1199,113 @@ 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/internal/http/ChangeRoutingProfileCompartmentConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeRoutingProfileCompartmentConverter.java new file mode 100644 index 00000000000..a0014f006a2 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ChangeRoutingProfileCompartmentConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ChangeRoutingProfileCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeRoutingProfileCompartmentConverter.class); + + public static com.oracle.bmc.generativeai.requests.ChangeRoutingProfileCompartmentRequest + interceptRequest( + com.oracle.bmc.generativeai.requests.ChangeRoutingProfileCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.ChangeRoutingProfileCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + Validate.notNull( + request.getChangeRoutingProfileCompartmentDetails(), + "changeRoutingProfileCompartmentDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("routingProfiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRoutingProfileId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ChangeRoutingProfileCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ChangeRoutingProfileCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ChangeRoutingProfileCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ChangeRoutingProfileCompartmentResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .ChangeRoutingProfileCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.ChangeRoutingProfileCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses + .ChangeRoutingProfileCompartmentResponse.Builder + builder = + com.oracle.bmc.generativeai.responses + .ChangeRoutingProfileCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses + .ChangeRoutingProfileCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateRoutingProfileConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateRoutingProfileConverter.java new file mode 100644 index 00000000000..728bf71cee5 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/CreateRoutingProfileConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateRoutingProfileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateRoutingProfileConverter.class); + + public static com.oracle.bmc.generativeai.requests.CreateRoutingProfileRequest interceptRequest( + com.oracle.bmc.generativeai.requests.CreateRoutingProfileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.CreateRoutingProfileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateRoutingProfileDetails(), + "createRoutingProfileDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget.path("/20231130").path("routingProfiles"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.CreateRoutingProfileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.CreateRoutingProfileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.CreateRoutingProfileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .CreateRoutingProfileResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .CreateRoutingProfileResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.CreateRoutingProfileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .RoutingProfile>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model.RoutingProfile + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model.RoutingProfile + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model.RoutingProfile> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses.CreateRoutingProfileResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .CreateRoutingProfileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.routingProfile(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses.CreateRoutingProfileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteRoutingProfileConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteRoutingProfileConverter.java new file mode 100644 index 00000000000..63d6c52208c --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/DeleteRoutingProfileConverter.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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteRoutingProfileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteRoutingProfileConverter.class); + + public static com.oracle.bmc.generativeai.requests.DeleteRoutingProfileRequest interceptRequest( + com.oracle.bmc.generativeai.requests.DeleteRoutingProfileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.DeleteRoutingProfileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("routingProfiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRoutingProfileId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.DeleteRoutingProfileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.DeleteRoutingProfileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.DeleteRoutingProfileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .DeleteRoutingProfileResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .DeleteRoutingProfileResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.DeleteRoutingProfileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses.DeleteRoutingProfileResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .DeleteRoutingProfileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses.DeleteRoutingProfileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetRoutingProfileConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetRoutingProfileConverter.java new file mode 100644 index 00000000000..93ae231aa08 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/GetRoutingProfileConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class GetRoutingProfileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetRoutingProfileConverter.class); + + public static com.oracle.bmc.generativeai.requests.GetRoutingProfileRequest interceptRequest( + com.oracle.bmc.generativeai.requests.GetRoutingProfileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.GetRoutingProfileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("routingProfiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRoutingProfileId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse>() { + @Override + public com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .RoutingProfile>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model.RoutingProfile + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model.RoutingProfile + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model.RoutingProfile> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .GetRoutingProfileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.routingProfile(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses.GetRoutingProfileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelDiscoveryConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelDiscoveryConverter.java new file mode 100644 index 00000000000..f5454a22ffe --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListModelDiscoveryConverter.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListModelDiscoveryConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListModelDiscoveryConverter.class); + + public static com.oracle.bmc.generativeai.requests.ListModelDiscoveryRequest interceptRequest( + com.oracle.bmc.generativeai.requests.ListModelDiscoveryRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.ListModelDiscoveryRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget.path("/20231130").path("modelDiscovery"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getRealm() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "realm", + request.getRealm(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getRegion() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "region", + request.getRegion(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getModelId() != null) { + target = + target.queryParam( + "modelId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getModelId())); + } + + if (request.getServingMode() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "servingMode", + request.getServingMode(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getApiCapability() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "apiCapability", + request.getApiCapability(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getCapability() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "capability", + request.getCapability(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getModelAccess() != null) { + target = + com.oracle.bmc.util.internal.HttpUtils.encodeCollectionFormatQueryParam( + target, + "modelAccess", + request.getModelAccess(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi); + } + + if (request.getIsDeprecated() != null) { + target = + target.queryParam( + "isDeprecated", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsDeprecated())); + } + + if (request.getIsOnDemandRetired() != null) { + target = + target.queryParam( + "isOnDemandRetired", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsOnDemandRetired())); + } + + if (request.getIsDedicatedRetired() != null) { + target = + target.queryParam( + "isDedicatedRetired", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsDedicatedRetired())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ListModelDiscoveryResponse>() { + @Override + public com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .ModelDiscoveryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .ModelDiscoveryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .ModelDiscoveryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .ModelDiscoveryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .ListModelDiscoveryResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.modelDiscoveryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses.ListModelDiscoveryResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListRoutingProfilesConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListRoutingProfilesConverter.java new file mode 100644 index 00000000000..e6e6ea9c2ef --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/ListRoutingProfilesConverter.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class ListRoutingProfilesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListRoutingProfilesConverter.class); + + public static com.oracle.bmc.generativeai.requests.ListRoutingProfilesRequest interceptRequest( + com.oracle.bmc.generativeai.requests.ListRoutingProfilesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.ListRoutingProfilesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("compartmentId", request.getCompartmentId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget.path("/20231130").path("routingProfiles"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getId() != null) { + target = + target.queryParam( + "id", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getId())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .ListRoutingProfilesResponse>() { + @Override + public com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .RoutingProfileCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .RoutingProfileCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model + .RoutingProfileCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .RoutingProfileCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .ListRoutingProfilesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.routingProfileCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeai.responses.ListRoutingProfilesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateRoutingProfileConverter.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateRoutingProfileConverter.java new file mode 100644 index 00000000000..fb0a29354ec --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/internal/http/UpdateRoutingProfileConverter.java @@ -0,0 +1,158 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeai.model.*; +import com.oracle.bmc.generativeai.requests.*; +import com.oracle.bmc.generativeai.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateRoutingProfileConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateRoutingProfileConverter.class); + + public static com.oracle.bmc.generativeai.requests.UpdateRoutingProfileRequest interceptRequest( + com.oracle.bmc.generativeai.requests.UpdateRoutingProfileRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeai.requests.UpdateRoutingProfileRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRoutingProfileId(), "routingProfileId must not be blank"); + Validate.notNull( + request.getUpdateRoutingProfileDetails(), + "updateRoutingProfileDetails is required"); + + java.util.Map requiredParametersMap = new java.util.HashMap<>(); + requiredParametersMap.put("routingProfileId", request.getRoutingProfileId()); + com.oracle.bmc.http.internal.WrappedWebTarget newBaseTarget = + com.oracle.bmc.internal.EndpointBuilder.populateServiceParametersInEndpoint( + client, requiredParametersMap); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + newBaseTarget + .path("/20231130") + .path("routingProfiles") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRoutingProfileId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.UpdateRoutingProfileResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.UpdateRoutingProfileResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses.UpdateRoutingProfileResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeai.responses + .UpdateRoutingProfileResponse>() { + @Override + public com.oracle.bmc.generativeai.responses + .UpdateRoutingProfileResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeai.responses.UpdateRoutingProfileResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model + .RoutingProfile>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model.RoutingProfile + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeai.model.RoutingProfile + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeai.model.RoutingProfile> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeai.responses.UpdateRoutingProfileResponse + .Builder + builder = + com.oracle.bmc.generativeai.responses + .UpdateRoutingProfileResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.routingProfile(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.generativeai.responses.UpdateRoutingProfileResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} 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..fbb7c274d7e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Availability.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class Availability extends com.oracle.bmc.http.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java new file mode 100644 index 00000000000..3e050819e34 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ChangeRoutingProfileCompartmentDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeRoutingProfileCompartmentDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ChangeRoutingProfileCompartmentDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeRoutingProfileCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment to move the routing profile to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment to move the routing profile to. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeRoutingProfileCompartmentDetails build() { + ChangeRoutingProfileCompartmentDetails model = + new ChangeRoutingProfileCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeRoutingProfileCompartmentDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the compartment to move the routing profile to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment to move the routing profile to. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeRoutingProfileCompartmentDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoutingProfileCompartmentDetails)) { + return false; + } + + ChangeRoutingProfileCompartmentDetails other = (ChangeRoutingProfileCompartmentDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java index 64612819747..5a9982990dc 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateDedicatedAiClusterDetails.java @@ -145,7 +145,7 @@ public Builder unitCount(Integer unitCount) { return this; } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. *

    * Allowed values are: * - LARGE_COHERE @@ -195,6 +195,10 @@ public Builder unitCount(Integer unitCount) { * - H100_X1, H100_X2, H100_X4, H100_X8 * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 + * - B200_X16, B200_X32 + * - B300_X1, B300_X2, B300_X4, B300_X8, B300_X16, B300_X32 + * - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 + * - MI300X_X1, MI300X_X2, MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 * - OAI_A10_X2 * - OAI_H100_X1 * - OAI_H100_X2 @@ -212,6 +216,26 @@ public Builder unitCount(Integer unitCount) { * - OAI_B200_X4 * - OAI_B200_X8 * - SB_B200_X1 + * - B200_X16 + * - B200_X32 + * - B300_X1 + * - B300_X2 + * - B300_X4 + * - B300_X8 + * - B300_X16 + * - B300_X32 + * - L40S_X1 + * - L40S_X2 + * - L40S_X4 + * - L40S_X8 + * - L40S_X16 + * - L40S_X32 + * - MI300X_X1 + * - MI300X_X2 + * - MI300X_X4 + * - MI300X_X8 + * - MI300X_X16 + * - MI300X_X32 * - COHERE_B300_X1 * - META_B300_X1 * - OAI_B300_X1 @@ -221,7 +245,7 @@ public Builder unitCount(Integer unitCount) { private DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. *

    * Allowed values are: * - LARGE_COHERE @@ -271,6 +295,10 @@ public Builder unitCount(Integer unitCount) { * - H100_X1, H100_X2, H100_X4, H100_X8 * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 + * - B200_X16, B200_X32 + * - B300_X1, B300_X2, B300_X4, B300_X8, B300_X16, B300_X32 + * - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 + * - MI300X_X1, MI300X_X2, MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 * - OAI_A10_X2 * - OAI_H100_X1 * - OAI_H100_X2 @@ -288,6 +316,26 @@ public Builder unitCount(Integer unitCount) { * - OAI_B200_X4 * - OAI_B200_X8 * - SB_B200_X1 + * - B200_X16 + * - B200_X32 + * - B300_X1 + * - B300_X2 + * - B300_X4 + * - B300_X8 + * - B300_X16 + * - B300_X32 + * - L40S_X1 + * - L40S_X2 + * - L40S_X4 + * - L40S_X8 + * - L40S_X16 + * - L40S_X32 + * - MI300X_X1 + * - MI300X_X2 + * - MI300X_X4 + * - MI300X_X8 + * - MI300X_X16 + * - MI300X_X32 * - COHERE_B300_X1 * - META_B300_X1 * - OAI_B300_X1 @@ -492,7 +540,7 @@ public Integer getUnitCount() { } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. *

    * Allowed values are: * - LARGE_COHERE @@ -542,6 +590,10 @@ public Integer getUnitCount() { * - H100_X1, H100_X2, H100_X4, H100_X8 * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 + * - B200_X16, B200_X32 + * - B300_X1, B300_X2, B300_X4, B300_X8, B300_X16, B300_X32 + * - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 + * - MI300X_X1, MI300X_X2, MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 * - OAI_A10_X2 * - OAI_H100_X1 * - OAI_H100_X2 @@ -559,6 +611,26 @@ public Integer getUnitCount() { * - OAI_B200_X4 * - OAI_B200_X8 * - SB_B200_X1 + * - B200_X16 + * - B200_X32 + * - B300_X1 + * - B300_X2 + * - B300_X4 + * - B300_X8 + * - B300_X16 + * - B300_X32 + * - L40S_X1 + * - L40S_X2 + * - L40S_X4 + * - L40S_X8 + * - L40S_X16 + * - L40S_X32 + * - MI300X_X1 + * - MI300X_X2 + * - MI300X_X4 + * - MI300X_X8 + * - MI300X_X16 + * - MI300X_X32 * - COHERE_B300_X1 * - META_B300_X1 * - OAI_B300_X1 @@ -568,7 +640,7 @@ public Integer getUnitCount() { private final DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. *

    * Allowed values are: * - LARGE_COHERE @@ -618,6 +690,10 @@ public Integer getUnitCount() { * - H100_X1, H100_X2, H100_X4, H100_X8 * - H100_X16, H100_X32 * - H200_X1, H200_X2, H200_X4, H200_X8 + * - B200_X16, B200_X32 + * - B300_X1, B300_X2, B300_X4, B300_X8, B300_X16, B300_X32 + * - L40S_X1, L40S_X2, L40S_X4, L40S_X8, L40S_X16, L40S_X32 + * - MI300X_X1, MI300X_X2, MI300X_X4, MI300X_X8, MI300X_X16, MI300X_X32 * - OAI_A10_X2 * - OAI_H100_X1 * - OAI_H100_X2 @@ -635,6 +711,26 @@ public Integer getUnitCount() { * - OAI_B200_X4 * - OAI_B200_X8 * - SB_B200_X1 + * - B200_X16 + * - B200_X32 + * - B300_X1 + * - B300_X2 + * - B300_X4 + * - B300_X8 + * - B300_X16 + * - B300_X32 + * - L40S_X1 + * - L40S_X2 + * - L40S_X4 + * - L40S_X8 + * - L40S_X16 + * - L40S_X32 + * - MI300X_X1 + * - MI300X_X2 + * - MI300X_X4 + * - MI300X_X8 + * - MI300X_X16 + * - MI300X_X32 * - COHERE_B300_X1 * - META_B300_X1 * - OAI_B300_X1 diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java index 92445d56b5b..9a3aaa3cb1d 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationBaseDetails.java @@ -128,17 +128,13 @@ public Builder networkingConfig(NetworkingConfig networkingConfig) { return this; } /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. * @param storageConfigs the value to set * @return this builder **/ @@ -344,17 +340,13 @@ public NetworkingConfig getNetworkingConfig() { } /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. * @return the value **/ public java.util.List getStorageConfigs() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java index 1883f2f77a9..cacd083cc38 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationDetails.java @@ -140,17 +140,13 @@ public Builder networkingConfig(NetworkingConfig networkingConfig) { return this; } /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. * @param storageConfigs the value to set * @return this builder **/ @@ -367,17 +363,13 @@ public NetworkingConfig getNetworkingConfig() { } /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. * @return the value **/ public java.util.List getStorageConfigs() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java index e886befc485..68147228f87 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationIamDetails.java @@ -128,17 +128,13 @@ public Builder networkingConfig(NetworkingConfig networkingConfig) { return this; } /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. * @param storageConfigs the value to set * @return this builder **/ @@ -344,17 +340,13 @@ public NetworkingConfig getNetworkingConfig() { } /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * The list of storage configuration for the Hosted Application. - * Defines a list of service-managed storage back-ends. - * + * A list of managed storage configurations for the application. * @return the value **/ public java.util.List getStorageConfigs() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java index 68557819496..2a06b049ead 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateHostedApplicationStorageDetails.java @@ -97,13 +97,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private HostedApplicationStorage.StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * @param storageType the value to set * @return this builder **/ @@ -258,13 +258,13 @@ public String getCompartmentId() { } /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private final HostedApplicationStorage.StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * @return the value **/ public HostedApplicationStorage.StorageType getStorageType() { 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..4d60950006f --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateRoutingProfileDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CreateRoutingProfileDetails + extends com.oracle.bmc.http.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/CreateSemanticStoreDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java index 4e98738ecc7..89763fbedba 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CreateSemanticStoreDetails.java @@ -26,6 +26,8 @@ public final class CreateSemanticStoreDetails "description", "compartmentId", "displayName", + "isUserDefinedSemanticsEnabled", + "modelSelection", "dataSource", "refreshSchedule", "schemas", @@ -36,6 +38,8 @@ public CreateSemanticStoreDetails( String description, String compartmentId, String displayName, + Boolean isUserDefinedSemanticsEnabled, + SemanticStoreModelSelection modelSelection, CreateDataSourceDetails dataSource, RefreshScheduleDetails refreshSchedule, CreateSchemasDetails schemas, @@ -45,6 +49,8 @@ public CreateSemanticStoreDetails( this.description = description; this.compartmentId = compartmentId; this.displayName = displayName; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.modelSelection = modelSelection; this.dataSource = dataSource; this.refreshSchedule = refreshSchedule; this.schemas = schemas; @@ -102,6 +108,39 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * When omitted, this value defaults to true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * When omitted, this value defaults to true. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + **/ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private CreateDataSourceDetails dataSource; @@ -188,6 +227,8 @@ public CreateSemanticStoreDetails build() { this.description, this.compartmentId, this.displayName, + this.isUserDefinedSemanticsEnabled, + this.modelSelection, this.dataSource, this.refreshSchedule, this.schemas, @@ -210,6 +251,12 @@ public Builder copy(CreateSemanticStoreDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } if (model.wasPropertyExplicitlySet("dataSource")) { this.dataSource(model.getDataSource()); } @@ -282,6 +329,35 @@ public String getDisplayName() { return displayName; } + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * When omitted, this value defaults to true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * When omitted, this value defaults to true. + * + * @return the value + **/ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private final CreateDataSourceDetails dataSource; @@ -364,6 +440,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); @@ -386,6 +465,9 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) && java.util.Objects.equals(this.dataSource, other.dataSource) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) @@ -403,6 +485,14 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); result = (result * PRIME) diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java new file mode 100644 index 00000000000..c6fd3e4be3f --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/CustomSemanticStoreModelSelection.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Uses a customer-selected generative AI model for SemanticStore enrichment. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CustomSemanticStoreModelSelection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelSelectionType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CustomSemanticStoreModelSelection extends SemanticStoreModelSelection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CustomSemanticStoreModelSelection build() { + CustomSemanticStoreModelSelection model = + new CustomSemanticStoreModelSelection(this.modelId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CustomSemanticStoreModelSelection model) { + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CustomSemanticStoreModelSelection(String modelId) { + super(); + this.modelId = modelId; + } + + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The generative AI modelId to use for SemanticStore enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @return the value + **/ + public String getModelId() { + return modelId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CustomSemanticStoreModelSelection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CustomSemanticStoreModelSelection)) { + return false; + } + + CustomSemanticStoreModelSelection other = (CustomSemanticStoreModelSelection) o; + return java.util.Objects.equals(this.modelId, other.modelId) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java index 5c96786e2f7..a90cd0e8125 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiCluster.java @@ -242,13 +242,13 @@ public Builder unitCount(Integer unitCount) { return this; } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. * @param unitShape the value to set * @return this builder **/ @@ -680,7 +680,7 @@ public Integer getUnitCount() { } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. **/ public enum UnitShape { LargeCohere("LARGE_COHERE"), @@ -786,6 +786,26 @@ public enum UnitShape { OaiB200X4("OAI_B200_X4"), OaiB200X8("OAI_B200_X8"), SbB200X1("SB_B200_X1"), + B200X16("B200_X16"), + B200X32("B200_X32"), + B300X1("B300_X1"), + B300X2("B300_X2"), + B300X4("B300_X4"), + B300X8("B300_X8"), + B300X16("B300_X16"), + B300X32("B300_X32"), + L40SX1("L40S_X1"), + L40SX2("L40S_X2"), + L40SX4("L40S_X4"), + L40SX8("L40S_X8"), + L40SX16("L40S_X16"), + L40SX32("L40S_X32"), + Mi300XX1("MI300X_X1"), + Mi300XX2("MI300X_X2"), + Mi300XX4("MI300X_X4"), + Mi300XX8("MI300X_X8"), + Mi300XX16("MI300X_X16"), + Mi300XX32("MI300X_X32"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -829,13 +849,13 @@ public static UnitShape create(String key) { } }; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private final UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. * @return the value **/ public UnitShape getUnitShape() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java index e947ffcffdb..851f8e928ae 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DedicatedAiClusterSummary.java @@ -266,13 +266,13 @@ public Builder unitCount(Integer unitCount) { return this; } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. * @param unitShape the value to set * @return this builder **/ @@ -622,13 +622,13 @@ public Integer getUnitCount() { } /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. **/ @com.fasterxml.jackson.annotation.JsonProperty("unitShape") private final DedicatedAiCluster.UnitShape unitShape; /** - * The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers. + * The shape of dedicated unit in this AI cluster. * @return the value **/ public DedicatedAiCluster.UnitShape getUnitShape() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java new file mode 100644 index 00000000000..dda7eac57b8 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/DefaultSemanticStoreModelSelection.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.model; + +/** + * Uses the service default generative AI model for SemanticStore enrichment. + *
    + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DefaultSemanticStoreModelSelection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "modelSelectionType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class DefaultSemanticStoreModelSelection extends SemanticStoreModelSelection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DefaultSemanticStoreModelSelection build() { + DefaultSemanticStoreModelSelection model = new DefaultSemanticStoreModelSelection(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DefaultSemanticStoreModelSelection model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DefaultSemanticStoreModelSelection() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DefaultSemanticStoreModelSelection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DefaultSemanticStoreModelSelection)) { + return false; + } + + DefaultSemanticStoreModelSelection other = (DefaultSemanticStoreModelSelection) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java index 0a1e501b9ac..a51b658917a 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplication.java @@ -228,13 +228,13 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { return this; } /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * @param storageConfigs the value to set * @return this builder **/ @@ -617,13 +617,13 @@ public ScalingConfig getScalingConfig() { } /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * @return the value **/ public java.util.List getStorageConfigs() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java index 69b4caeb013..be98d6596f2 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationBase.java @@ -213,13 +213,13 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { return this; } /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * @param storageConfigs the value to set * @return this builder **/ @@ -578,13 +578,13 @@ public ScalingConfig getScalingConfig() { } /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * @return the value **/ public java.util.List getStorageConfigs() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java index 46fc396cd97..00710f0154c 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationIam.java @@ -216,13 +216,13 @@ public Builder scalingConfig(ScalingConfig scalingConfig) { return this; } /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * @param storageConfigs the value to set * @return this builder **/ @@ -594,13 +594,13 @@ public ScalingConfig getScalingConfig() { } /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageConfigs") private final java.util.List storageConfigs; /** - * A list of storageConfigs managed by the OCI GenAI Platform and attached to the application. + * A list of managed storage configurations for the application. * @return the value **/ public java.util.List getStorageConfigs() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java index d7851fd611f..a682ca5c2fe 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorage.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeai.model; /** - * defines a physical storage (database or cache) managed by service. Each application can choose one or two storages for certain purpose such as agent memory. + * Represents managed storage for an application. An application can use at most one managed storage resource of each type. *

    * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator who gives OCI resource access to users. See * [Getting Started 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). @@ -138,13 +138,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * @param storageType the value to set * @return this builder **/ @@ -443,7 +443,7 @@ public String getCompartmentId() { } /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ public enum StorageType { Cache("CACHE"), @@ -492,13 +492,13 @@ public static StorageType create(String key) { } }; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private final StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * @return the value **/ public StorageType getStorageType() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java index e1a2567a6e7..4914b0e03f5 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/HostedApplicationStorageSummary.java @@ -128,13 +128,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * @param storageType the value to set * @return this builder **/ @@ -393,7 +393,7 @@ public String getCompartmentId() { } /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ public enum StorageType { Cache("CACHE"), @@ -442,13 +442,13 @@ public static StorageType create(String key) { } }; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. **/ @com.fasterxml.jackson.annotation.JsonProperty("storageType") private final StorageType storageType; /** - * type like Cache, Postgresql and ADB. + * The managed storage type for the application. * @return the value **/ public StorageType getStorageType() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java index d9cbc691007..7184c7abd59 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/InboundAuthConfig.java @@ -5,8 +5,7 @@ package com.oracle.bmc.generativeai.model; /** - * The client-side inbound authentication configuration for the Hosted Application. - * Defines the network access rules. + * The inbound authentication configuration for the Hosted Application. * When unspecified, the service applies the default inbound authentication configuration type. * *
    @@ -35,16 +34,14 @@ public InboundAuthConfig( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Inbound authentication configuration type of network access - * (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * **/ @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfigType") private InboundAuthConfigType inboundAuthConfigType; /** - * Inbound authentication configuration type of network access - * (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * * @param inboundAuthConfigType the value to set * @return this builder @@ -100,8 +97,7 @@ public Builder toBuilder() { } /** - * Inbound authentication configuration type of network access - * (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * **/ public enum InboundAuthConfigType { @@ -149,16 +145,14 @@ public static InboundAuthConfigType create(String key) { } }; /** - * Inbound authentication configuration type of network access - * (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * **/ @com.fasterxml.jackson.annotation.JsonProperty("inboundAuthConfigType") private final InboundAuthConfigType inboundAuthConfigType; /** - * Inbound authentication configuration type of network access - * (IDCS_AUTH_CONFIG). + * The inbound authentication configuration type for the Hosted Application. * * @return the value **/ diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.java new file mode 100644 index 00000000000..b8045214c47 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscovery.java @@ -0,0 +1,478 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class ModelDiscovery extends com.oracle.bmc.http.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 { + 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..038363b6d19 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelDiscoveryCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class ModelDiscoveryCollection + extends com.oracle.bmc.http.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..88f7aa24dad --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModality.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; + +/** + * A content modality supported by a model. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public enum ModelModality { + 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..fb7c8d5dada --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelModalitySupport.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class ModelModalitySupport extends com.oracle.bmc.http.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java new file mode 100644 index 00000000000..91d5f30fbf0 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ModelRoutingPolicy.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ModelRoutingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ModelRoutingPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"allowedModels"}) + public ModelRoutingPolicy(java.util.List allowedModels) { + super(); + this.allowedModels = allowedModels; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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; + + /** + * 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 allowedModels the value to set + * @return this builder + **/ + 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 ModelRoutingPolicy build() { + ModelRoutingPolicy model = new ModelRoutingPolicy(this.allowedModels); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModelRoutingPolicy model) { + if (model.wasPropertyExplicitlySet("allowedModels")) { + this.allowedModels(model.getAllowedModels()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * 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; + + /** + * 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.List getAllowedModels() { + return allowedModels; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ModelRoutingPolicy("); + sb.append("super=").append(super.toString()); + sb.append("allowedModels=").append(String.valueOf(this.allowedModels)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModelRoutingPolicy)) { + return false; + } + + ModelRoutingPolicy other = (ModelRoutingPolicy) o; + return java.util.Objects.equals(this.allowedModels, other.allowedModels) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (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..eff2a6543f9 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/Parameter.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class Parameter extends com.oracle.bmc.http.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..beab7b35588 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/PreviousRoutingProfileState.java @@ -0,0 +1,654 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class PreviousRoutingProfileState + extends com.oracle.bmc.http.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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java new file mode 100644 index 00000000000..72d8732a609 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RegionRoutingPolicy.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RegionRoutingPolicy.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RegionRoutingPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"allowedRegions"}) + public RegionRoutingPolicy(java.util.List allowedRegions) { + super(); + this.allowedRegions = allowedRegions; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * 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 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 allowedRegions the value to set + * @return this builder + **/ + 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 RegionRoutingPolicy build() { + RegionRoutingPolicy model = new RegionRoutingPolicy(this.allowedRegions); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RegionRoutingPolicy model) { + if (model.wasPropertyExplicitlySet("allowedRegions")) { + this.allowedRegions(model.getAllowedRegions()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * 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 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 java.util.List getAllowedRegions() { + return allowedRegions; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RegionRoutingPolicy("); + sb.append("super=").append(super.toString()); + sb.append("allowedRegions=").append(String.valueOf(this.allowedRegions)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RegionRoutingPolicy)) { + return false; + } + + RegionRoutingPolicy other = (RegionRoutingPolicy) o; + return java.util.Objects.equals(this.allowedRegions, other.allowedRegions) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.allowedRegions == null ? 43 : this.allowedRegions.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java new file mode 100644 index 00000000000..574438806df --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfile.java @@ -0,0 +1,734 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class RoutingProfile extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "description", + "compartmentId", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleDetails", + "regionRoutingPolicy", + "modelRoutingPolicy", + "previousState", + "freeformTags", + "definedTags", + "systemTags" + }) + public RoutingProfile( + String id, + String displayName, + String description, + String compartmentId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String lifecycleDetails, + RegionRoutingPolicy regionRoutingPolicy, + ModelRoutingPolicy modelRoutingPolicy, + PreviousRoutingProfileState previousState, + 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.previousState = previousState; + 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 LifecycleState lifecycleState; + + /** + * The current state of the routing profile. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * A message 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousState") + private PreviousRoutingProfileState previousState; + + public Builder previousState(PreviousRoutingProfileState previousState) { + this.previousState = previousState; + this.__explicitlySet__.add("previousState"); + 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 RoutingProfile build() { + RoutingProfile model = + new RoutingProfile( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleDetails, + this.regionRoutingPolicy, + this.modelRoutingPolicy, + this.previousState, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RoutingProfile 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("previousState")) { + this.previousState(model.getPreviousState()); + } + 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. + **/ + public enum LifecycleState { + Active("ACTIVE"), + Creating("CREATING"), + 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 state of the routing profile. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the routing profile. + * @return the value + **/ + public 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; + } + + @com.fasterxml.jackson.annotation.JsonProperty("previousState") + private final PreviousRoutingProfileState previousState; + + public PreviousRoutingProfileState getPreviousState() { + return previousState; + } + + /** + * 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("RoutingProfile("); + 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(", 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)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RoutingProfile)) { + return false; + } + + RoutingProfile other = (RoutingProfile) 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.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) + && 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.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()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} 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..c107d6a18cb --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/RoutingProfileCollection.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class RoutingProfileCollection + extends com.oracle.bmc.http.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 66% 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 87f6c1b20db..61be7b81ea4 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 @@ -14,57 +14,54 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabasePrivateEndpointSummary +public final class RoutingProfileSummary extends com.oracle.bmc.http.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,13 +70,13 @@ 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 **/ @@ -89,13 +86,29 @@ public Builder id(String 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 **/ @@ -105,13 +118,13 @@ public Builder description(String 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 **/ @@ -121,77 +134,13 @@ public Builder compartmentId(String compartmentId) { return this; } /** - * Identifier of the customer subnet against which private endpoint is created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * Identifier of the customer subnet against which private endpoint is created. - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * Identifier of the VCN in which subnet exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * Identifier of the VCN in which subnet exists. - * @param vcnId the value to set - * @return this builder - **/ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * Private endpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Private endpoint display name. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * The list of network security group (NSG) details associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the private endpoint. - * @param vcnNsgIds the value to set - * @return this builder - **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); - return this; - } - /** - * The time the the private endpoint was created. An RFC3339 formatted datetime string + * 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 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 **/ @@ -201,13 +150,13 @@ public Builder timeCreated(java.util.Date 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 **/ @@ -217,30 +166,29 @@ public Builder timeUpdated(java.util.Date 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 **/ @@ -249,17 +197,39 @@ 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 @@ -271,7 +241,9 @@ public Builder freeformTags(java.util.Map freeformTags) { } /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

    + * Example: {@code {"Operations": {"CostCenter": "42"}}} * * @param definedTags the value to set * @return this builder @@ -291,7 +265,8 @@ public Builder definedTags( return this; } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

    * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * **/ @@ -299,7 +274,8 @@ public Builder definedTags( private java.util.Map> systemTags; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * 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 @@ -314,20 +290,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); @@ -338,28 +313,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()); } @@ -372,6 +338,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()); } @@ -397,13 +369,13 @@ public Builder toBuilder() { } /** - * 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 **/ public String getId() { @@ -411,97 +383,55 @@ public String getId() { } /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - - /** - * Identifier of the compartment where private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * Identifier of the compartment where private endpoint exists. - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * Identifier of the customer subnet against which private endpoint is created. + * A user-friendly name. Does not have to be unique, and it's changeable. **/ - @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; + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; /** - * Identifier of the VCN in which subnet exists. + * A user-friendly name. Does not have to be unique, and it's changeable. * @return the value **/ - public String getVcnId() { - return vcnId; + public String getDisplayName() { + return displayName; } /** - * Private endpoint display name. + * An optional description of the routing profile. **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * Private endpoint display name. + * An optional description of the routing profile. * @return the value **/ - public String getDisplayName() { - return displayName; + public String getDescription() { + return description; } /** - * The list of network security group (NSG) details associated with the private endpoint. + * The OCID of the compartment in which the routing profile lives. **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; + @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 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. **/ @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 **/ public java.util.Date getTimeCreated() { @@ -509,13 +439,13 @@ public java.util.Date getTimeCreated() { } /** - * 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 **/ public java.util.Date getTimeUpdated() { @@ -523,44 +453,62 @@ public java.util.Date getTimeUpdated() { } /** - * 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 **/ 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 **/ @@ -570,7 +518,9 @@ 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"}}} + * 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") @@ -578,7 +528,9 @@ 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"}}} + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

    + * Example: {@code {"Operations": {"CostCenter": "42"}}} * * @return the value **/ @@ -587,7 +539,8 @@ public java.util.Map> getDefinedTags() { } /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * System tags for this resource. Each key is predefined and scoped to a namespace. + *

    * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} * **/ @@ -595,7 +548,8 @@ public java.util.Map> getDefinedTags() { private final java.util.Map> systemTags; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. + * 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 @@ -616,19 +570,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)); @@ -641,23 +594,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) @@ -669,14 +620,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 = @@ -685,6 +633,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/SemanticStore.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java index b9224a986a0..975bc48980c 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStore.java @@ -32,7 +32,9 @@ public final class SemanticStore extends com.oracle.bmc.http.internal.Explicitly "timeUpdated", "lifecycleState", "lifecycleDetails", + "isUserDefinedSemanticsEnabled", "dataSource", + "modelSelection", "refreshSchedule", "schemas", "freeformTags", @@ -48,7 +50,9 @@ public SemanticStore( java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleDetails, + Boolean isUserDefinedSemanticsEnabled, DataSourceDetails dataSource, + SemanticStoreModelSelection modelSelection, RefreshScheduleDetails refreshSchedule, SchemasDetails schemas, java.util.Map freeformTags, @@ -63,7 +67,9 @@ public SemanticStore( this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; this.dataSource = dataSource; + this.modelSelection = modelSelection; this.refreshSchedule = refreshSchedule; this.schemas = schemas; this.freeformTags = freeformTags; @@ -201,6 +207,30 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + **/ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private DataSourceDetails dataSource; @@ -211,6 +241,15 @@ public Builder dataSource(DataSourceDetails dataSource) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private RefreshScheduleDetails refreshSchedule; @@ -314,7 +353,9 @@ public SemanticStore build() { this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.isUserDefinedSemanticsEnabled, this.dataSource, + this.modelSelection, this.refreshSchedule, this.schemas, this.freeformTags, @@ -352,9 +393,15 @@ public Builder copy(SemanticStore model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } if (model.wasPropertyExplicitlySet("dataSource")) { this.dataSource(model.getDataSource()); } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } if (model.wasPropertyExplicitlySet("refreshSchedule")) { this.refreshSchedule(model.getRefreshSchedule()); } @@ -549,6 +596,28 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + * @return the value + **/ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + @com.fasterxml.jackson.annotation.JsonProperty("dataSource") private final DataSourceDetails dataSource; @@ -556,6 +625,13 @@ public DataSourceDetails getDataSource() { return dataSource; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private final RefreshScheduleDetails refreshSchedule; @@ -656,7 +732,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -684,7 +763,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) && java.util.Objects.equals(this.dataSource, other.dataSource) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -711,7 +793,15 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); result = (result * PRIME) + (this.refreshSchedule == null ? 43 : this.refreshSchedule.hashCode()); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java similarity index 54% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java rename to bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.java index 1e426cb2713..9b739fff037 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreModelSelection.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; /** - * Details for creating a distributed database shard. + * Model selection configuration for SemanticStore enrichment. *
    * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,41 +14,29 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedDatabaseShardDatabaseDetails.class + property = "modelSelectionType", + defaultImpl = SemanticStoreModelSelection.class ) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.class, - name = "XS_NEW_CLUSTER" + value = DefaultSemanticStoreModelSelection.class, + name = "DEFAULT" ), @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" + value = CustomSemanticStoreModelSelection.class, + name = "CUSTOM" ) }) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedDatabaseShardDatabaseDetails +public class SemanticStoreModelSelection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseShardDatabaseDetails() { + protected SemanticStoreModelSelection() { super(); } @@ -64,7 +52,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDatabaseDetails("); + sb.append("SemanticStoreModelSelection("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -75,12 +63,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabaseShardDatabaseDetails)) { + if (!(o instanceof SemanticStoreModelSelection)) { return false; } - CreateDistributedDatabaseShardDatabaseDetails other = - (CreateDistributedDatabaseShardDatabaseDetails) o; + SemanticStoreModelSelection other = (SemanticStoreModelSelection) o; return super.equals(other); } @@ -93,33 +80,34 @@ public int hashCode() { } /** - * 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. - * + * The type of model selection. **/ - public enum Source { - XsExistingCluster("XS_EXISTING_CLUSTER"), - XsNewCluster("XS_NEW_CLUSTER"), - XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), - XdExistingCluster("XD_EXISTING_CLUSTER"), - ExistingDbHome("EXISTING_DB_HOME"), - ; + public enum ModelSelectionType { + Default("DEFAULT"), + Custom("CUSTOM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ModelSelectionType.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - map.put(v.getValue(), v); + for (ModelSelectionType v : ModelSelectionType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } - Source(String value) { + ModelSelectionType(String value) { this.value = value; } @@ -129,11 +117,14 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { + public static ModelSelectionType create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid Source: " + key); + LOG.warn( + "Received unknown value '{}' for enum 'ModelSelectionType', returning UnknownEnumValue", + key); + return UnknownEnumValue; } }; } diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java index 195994f1bb2..233576ca50b 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/SemanticStoreSummary.java @@ -27,12 +27,14 @@ public final class SemanticStoreSummary extends com.oracle.bmc.http.internal.Exp "description", "compartmentId", "dataSource", + "modelSelection", "refreshSchedule", "schemas", "timeCreated", "timeUpdated", "lifecycleState", "lifecycleDetails", + "isUserDefinedSemanticsEnabled", "freeformTags", "definedTags", "systemTags" @@ -43,12 +45,14 @@ public SemanticStoreSummary( String description, String compartmentId, DataSourceDetails dataSource, + SemanticStoreModelSelection modelSelection, RefreshScheduleDetails refreshSchedule, SchemasDetails schemas, java.util.Date timeCreated, java.util.Date timeUpdated, SemanticStore.LifecycleState lifecycleState, String lifecycleDetails, + Boolean isUserDefinedSemanticsEnabled, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -58,12 +62,14 @@ public SemanticStoreSummary( this.description = description; this.compartmentId = compartmentId; this.dataSource = dataSource; + this.modelSelection = modelSelection; this.refreshSchedule = refreshSchedule; this.schemas = schemas; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -145,6 +151,15 @@ public Builder dataSource(DataSourceDetails dataSource) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private RefreshScheduleDetails refreshSchedule; @@ -244,6 +259,30 @@ public Builder lifecycleDetails(String lifecycleDetails) { this.__explicitlySet__.add("lifecycleDetails"); return this; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + **/ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -327,12 +366,14 @@ public SemanticStoreSummary build() { this.description, this.compartmentId, this.dataSource, + this.modelSelection, this.refreshSchedule, this.schemas, this.timeCreated, this.timeUpdated, this.lifecycleState, this.lifecycleDetails, + this.isUserDefinedSemanticsEnabled, this.freeformTags, this.definedTags, this.systemTags); @@ -359,6 +400,9 @@ public Builder copy(SemanticStoreSummary model) { if (model.wasPropertyExplicitlySet("dataSource")) { this.dataSource(model.getDataSource()); } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } if (model.wasPropertyExplicitlySet("refreshSchedule")) { this.refreshSchedule(model.getRefreshSchedule()); } @@ -377,6 +421,9 @@ public Builder copy(SemanticStoreSummary model) { if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -464,6 +511,13 @@ public DataSourceDetails getDataSource() { return dataSource; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private final RefreshScheduleDetails refreshSchedule; @@ -552,6 +606,28 @@ public String getLifecycleDetails() { return lifecycleDetails; } + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether user-defined semantic inputs, such as annotations, comments, and synonyms, are enabled for semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If not specified when the semantic store is created, this value defaults to true. + * + * @return the value + **/ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). @@ -635,12 +711,15 @@ public String toString(boolean includeByteArrayContents) { sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", dataSource=").append(String.valueOf(this.dataSource)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -663,12 +742,15 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.dataSource, other.dataSource) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -686,6 +768,9 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.dataSource == null ? 43 : this.dataSource.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); result = (result * PRIME) + (this.refreshSchedule == null ? 43 : this.refreshSchedule.hashCode()); @@ -698,6 +783,11 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.java new file mode 100644 index 00000000000..16dda19a7fb --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/ServingMode.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; + +/** + * 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). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public enum ServingMode { + 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-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java index f23bc747b3c..b2b2acc5891 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/StorageConfig.java @@ -29,13 +29,13 @@ public StorageConfig(String environmentVariableKey, String storageId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The key of environment variable to store the database connection. + * The environment variable key for accessing the managed storage. **/ @com.fasterxml.jackson.annotation.JsonProperty("environmentVariableKey") private String environmentVariableKey; /** - * The key of environment variable to store the database connection. + * The environment variable key for accessing the managed storage. * @param environmentVariableKey the value to set * @return this builder **/ @@ -96,13 +96,13 @@ public Builder toBuilder() { } /** - * The key of environment variable to store the database connection. + * The environment variable key for accessing the managed storage. **/ @com.fasterxml.jackson.annotation.JsonProperty("environmentVariableKey") private final String environmentVariableKey; /** - * The key of environment variable to store the database connection. + * The environment variable key for accessing the managed storage. * @return the value **/ public String getEnvironmentVariableKey() { diff --git a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java new file mode 100644 index 00000000000..1effb98cae4 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateRoutingProfileDetails.java @@ -0,0 +1,354 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateRoutingProfileDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateRoutingProfileDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @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 { + /** + * 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; + } + + @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 UpdateRoutingProfileDetails build() { + UpdateRoutingProfileDetails model = + new UpdateRoutingProfileDetails( + this.displayName, + this.description, + 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(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()); + } + 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; + } + + @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("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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateRoutingProfileDetails)) { + return false; + } + + 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); + } + + @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.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/UpdateSemanticStoreDetails.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java index 6af63865296..2ea6738906e 100644 --- a/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/model/UpdateSemanticStoreDetails.java @@ -25,6 +25,8 @@ public final class UpdateSemanticStoreDetails @java.beans.ConstructorProperties({ "description", "displayName", + "modelSelection", + "isUserDefinedSemanticsEnabled", "refreshSchedule", "schemas", "freeformTags", @@ -33,6 +35,8 @@ public final class UpdateSemanticStoreDetails public UpdateSemanticStoreDetails( String description, String displayName, + SemanticStoreModelSelection modelSelection, + Boolean isUserDefinedSemanticsEnabled, RefreshScheduleDetails refreshSchedule, CreateSchemasDetails schemas, java.util.Map freeformTags, @@ -40,6 +44,8 @@ public UpdateSemanticStoreDetails( super(); this.description = description; this.displayName = displayName; + this.modelSelection = modelSelection; + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; this.refreshSchedule = refreshSchedule; this.schemas = schemas; this.freeformTags = freeformTags; @@ -81,6 +87,39 @@ public Builder displayName(String displayName) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private SemanticStoreModelSelection modelSelection; + + public Builder modelSelection(SemanticStoreModelSelection modelSelection) { + this.modelSelection = modelSelection; + this.__explicitlySet__.add("modelSelection"); + return this; + } + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If omitted, the existing setting is unchanged. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If omitted, the existing setting is unchanged. + * + * @param isUserDefinedSemanticsEnabled the value to set + * @return this builder + **/ + public Builder isUserDefinedSemanticsEnabled(Boolean isUserDefinedSemanticsEnabled) { + this.isUserDefinedSemanticsEnabled = isUserDefinedSemanticsEnabled; + this.__explicitlySet__.add("isUserDefinedSemanticsEnabled"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private RefreshScheduleDetails refreshSchedule; @@ -156,6 +195,8 @@ public UpdateSemanticStoreDetails build() { new UpdateSemanticStoreDetails( this.description, this.displayName, + this.modelSelection, + this.isUserDefinedSemanticsEnabled, this.refreshSchedule, this.schemas, this.freeformTags, @@ -174,6 +215,12 @@ public Builder copy(UpdateSemanticStoreDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("modelSelection")) { + this.modelSelection(model.getModelSelection()); + } + if (model.wasPropertyExplicitlySet("isUserDefinedSemanticsEnabled")) { + this.isUserDefinedSemanticsEnabled(model.getIsUserDefinedSemanticsEnabled()); + } if (model.wasPropertyExplicitlySet("refreshSchedule")) { this.refreshSchedule(model.getRefreshSchedule()); } @@ -229,6 +276,35 @@ public String getDisplayName() { return displayName; } + @com.fasterxml.jackson.annotation.JsonProperty("modelSelection") + private final SemanticStoreModelSelection modelSelection; + + public SemanticStoreModelSelection getModelSelection() { + return modelSelection; + } + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If omitted, the existing setting is unchanged. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isUserDefinedSemanticsEnabled") + private final Boolean isUserDefinedSemanticsEnabled; + + /** + * Whether to include user-defined semantic inputs, such as annotations, comments, and synonyms, during semantic-store enrichment. + * When true, enrichment uses both metadata and user-defined semantics. + * When false, enrichment uses metadata only. + * If omitted, the existing setting is unchanged. + * + * @return the value + **/ + public Boolean getIsUserDefinedSemanticsEnabled() { + return isUserDefinedSemanticsEnabled; + } + @com.fasterxml.jackson.annotation.JsonProperty("refreshSchedule") private final RefreshScheduleDetails refreshSchedule; @@ -303,6 +379,9 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("description=").append(String.valueOf(this.description)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", modelSelection=").append(String.valueOf(this.modelSelection)); + sb.append(", isUserDefinedSemanticsEnabled=") + .append(String.valueOf(this.isUserDefinedSemanticsEnabled)); sb.append(", refreshSchedule=").append(String.valueOf(this.refreshSchedule)); sb.append(", schemas=").append(String.valueOf(this.schemas)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -323,6 +402,9 @@ public boolean equals(Object o) { UpdateSemanticStoreDetails other = (UpdateSemanticStoreDetails) o; return java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.modelSelection, other.modelSelection) + && java.util.Objects.equals( + this.isUserDefinedSemanticsEnabled, other.isUserDefinedSemanticsEnabled) && java.util.Objects.equals(this.refreshSchedule, other.refreshSchedule) && java.util.Objects.equals(this.schemas, other.schemas) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -336,6 +418,14 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.modelSelection == null ? 43 : this.modelSelection.hashCode()); + result = + (result * PRIME) + + (this.isUserDefinedSemanticsEnabled == null + ? 43 + : this.isUserDefinedSemanticsEnabled.hashCode()); result = (result * PRIME) + (this.refreshSchedule == null ? 43 : this.refreshSchedule.hashCode()); diff --git a/bmc-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 51% 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 bc4dec54c38..82ab579327d 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,81 +2,84 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.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. + * Example: Click here to see how to use ChangeRoutingProfileCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeRequest +@javax.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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the routing profile. */ - private String distributedDatabaseId; + private String routingProfileId; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the routing profile. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getRoutingProfileId() { + return routingProfileId; } /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * + * The routing profile information to be updated. */ - private com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails; + private com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + changeRoutingProfileCompartmentDetails; /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * + * The routing profile information to be updated. */ - public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - getAddDistributedDatabaseGdsControlNodeDetails() { - return addDistributedDatabaseGdsControlNodeDetails; + public com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + getChangeRoutingProfileCompartmentDetails() { + return changeRoutingProfileCompartmentDetails; } /** - * The client request ID for tracing. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 opcRequestId; + private String ifMatch; /** - * The client request ID for tracing. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 getOpcRequestId() { - return opcRequestId; + public String getIfMatch() { + return 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. + * 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 ifMatch; + private 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. + * 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 getIfMatch() { - return ifMatch; + 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 request + * has been deleted and removed from the system, then a retry of the original creation request * might be rejected. * */ @@ -84,9 +87,9 @@ public String getIfMatch() { /** * A token that uniquely identifies a request so it 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 request + * has been deleted and removed from the system, then a retry of the original creation request * might be rejected. * */ @@ -100,103 +103,102 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the routing profile. */ - private String distributedDatabaseId = null; + private String routingProfileId = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * 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 distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder routingProfileId(String routingProfileId) { + this.routingProfileId = routingProfileId; return this; } /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * + * The routing profile information to be updated. */ - private com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails = null; + private com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + changeRoutingProfileCompartmentDetails = null; /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * - * @param addDistributedDatabaseGdsControlNodeDetails the value to set + * The routing profile information to be updated. + * @param changeRoutingProfileCompartmentDetails the value to set * @return this builder instance */ - public Builder addDistributedDatabaseGdsControlNodeDetails( - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails) { - this.addDistributedDatabaseGdsControlNodeDetails = - addDistributedDatabaseGdsControlNodeDetails; + public Builder changeRoutingProfileCompartmentDetails( + com.oracle.bmc.generativeai.model.ChangeRoutingProfileCompartmentDetails + changeRoutingProfileCompartmentDetails) { + this.changeRoutingProfileCompartmentDetails = changeRoutingProfileCompartmentDetails; return this; } /** - * The client request ID for tracing. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 opcRequestId = null; + private String ifMatch = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST 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 opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; 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. + * 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 ifMatch = null; + private String opcRequestId = 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. + * 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 ifMatch the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; + 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 + * 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 request + * has been deleted and removed from the system, then a retry of the original creation request * might be rejected. * */ @@ -204,9 +206,9 @@ 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 + * 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 request + * 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 @@ -244,12 +246,11 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - addDistributedDatabaseGdsControlNodeDetails( - o.getAddDistributedDatabaseGdsControlNodeDetails()); - opcRequestId(o.getOpcRequestId()); + 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()); @@ -257,17 +258,17 @@ public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { } /** - * Build the instance of AddDistributedDatabaseGdsControlNodeRequest as configured by this builder + * Build the instance of ChangeRoutingProfileCompartmentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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; @@ -280,32 +281,29 @@ 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 builder + * 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.util.internal.Consumer)} 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); } } @@ -315,11 +313,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); } @@ -336,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(); @@ -351,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); } @@ -373,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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java new file mode 100644 index 00000000000..fedf6b0b90f --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/CreateRoutingProfileRequest.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 CreateRoutingProfileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class CreateRoutingProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails> { + + /** + * Details for the new routing profile. + */ + private com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails + createRoutingProfileDetails; + + /** + * 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 running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails getBody$() { + return createRoutingProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateRoutingProfileRequest, + com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new routing profile. + */ + private com.oracle.bmc.generativeai.model.CreateRoutingProfileDetails + createRoutingProfileDetails = null; + + /** + * Details for the new routing profile. + * @param createRoutingProfileDetails the value to set + * @return this builder instance + */ + 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 running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(CreateRoutingProfileRequest o) { + createRoutingProfileDetails(o.getCreateRoutingProfileDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateRoutingProfileRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateRoutingProfileRequest + */ + public CreateRoutingProfileRequest build() { + CreateRoutingProfileRequest 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.generativeai.model.CreateRoutingProfileDetails body) { + createRoutingProfileDetails(body); + return this; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateRoutingProfileRequest + */ + public CreateRoutingProfileRequest buildWithoutInvocationCallback() { + CreateRoutingProfileRequest request = new CreateRoutingProfileRequest(); + request.createRoutingProfileDetails = createRoutingProfileDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateRoutingProfileRequest(createRoutingProfileDetails, 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() + .createRoutingProfileDetails(createRoutingProfileDetails) + .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(",createRoutingProfileDetails=") + .append(String.valueOf(this.createRoutingProfileDetails)); + 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 CreateRoutingProfileRequest)) { + return false; + } + + CreateRoutingProfileRequest other = (CreateRoutingProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createRoutingProfileDetails, other.createRoutingProfileDetails) + && 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.createRoutingProfileDetails == null + ? 43 + : this.createRoutingProfileDetails.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/DeleteRoutingProfileRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java new file mode 100644 index 00000000000..4e7a6c8e7aa --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/DeleteRoutingProfileRequest.java @@ -0,0 +1,262 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use DeleteRoutingProfileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class DeleteRoutingProfileRequest + 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; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteRoutingProfileRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(DeleteRoutingProfileRequest o) { + routingProfileId(o.getRoutingProfileId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteRoutingProfileRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteRoutingProfileRequest + */ + public DeleteRoutingProfileRequest build() { + DeleteRoutingProfileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteRoutingProfileRequest + */ + public DeleteRoutingProfileRequest buildWithoutInvocationCallback() { + DeleteRoutingProfileRequest request = new DeleteRoutingProfileRequest(); + request.routingProfileId = routingProfileId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteRoutingProfileRequest(routingProfileId, 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() + .routingProfileId(routingProfileId) + .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(",routingProfileId=").append(String.valueOf(this.routingProfileId)); + 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 DeleteRoutingProfileRequest)) { + return false; + } + + DeleteRoutingProfileRequest other = (DeleteRoutingProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.routingProfileId, other.routingProfileId) + && 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.routingProfileId == null ? 43 : this.routingProfileId.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-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..6ec3a27e6b9 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/GetRoutingProfileRequest.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.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use GetRoutingProfileRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..6397475156e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListModelDiscoveryRequest.java @@ -0,0 +1,756 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..b97188e808e --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/ListRoutingProfilesRequest.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.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use ListRoutingProfilesRequest. + */ +@javax.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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java new file mode 100644 index 00000000000..87d756d39fc --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/requests/UpdateRoutingProfileRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.requests; + +import com.oracle.bmc.generativeai.model.*; +/** + * Example: Click here to see how to use UpdateRoutingProfileRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20231130") +public class UpdateRoutingProfileRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails> { + + /** + * 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; + + /** + * 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 if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails getBody$() { + return updateRoutingProfileDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateRoutingProfileRequest, + com.oracle.bmc.generativeai.model.UpdateRoutingProfileDetails> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(UpdateRoutingProfileRequest o) { + routingProfileId(o.getRoutingProfileId()); + updateRoutingProfileDetails(o.getUpdateRoutingProfileDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateRoutingProfileRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateRoutingProfileRequest + */ + public UpdateRoutingProfileRequest build() { + UpdateRoutingProfileRequest 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.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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateRoutingProfileRequest + */ + public UpdateRoutingProfileRequest buildWithoutInvocationCallback() { + UpdateRoutingProfileRequest request = new UpdateRoutingProfileRequest(); + request.routingProfileId = routingProfileId; + request.updateRoutingProfileDetails = updateRoutingProfileDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateRoutingProfileRequest(routingProfileId, updateRoutingProfileDetails, 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() + .routingProfileId(routingProfileId) + .updateRoutingProfileDetails(updateRoutingProfileDetails) + .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(",routingProfileId=").append(String.valueOf(this.routingProfileId)); + sb.append(",updateRoutingProfileDetails=") + .append(String.valueOf(this.updateRoutingProfileDetails)); + 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 UpdateRoutingProfileRequest)) { + return false; + } + + UpdateRoutingProfileRequest other = (UpdateRoutingProfileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.routingProfileId, other.routingProfileId) + && java.util.Objects.equals( + this.updateRoutingProfileDetails, other.updateRoutingProfileDetails) + && 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.routingProfileId == null ? 43 : this.routingProfileId.hashCode()); + result = + (result * PRIME) + + (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-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java new file mode 100644 index 00000000000..c642d1da0d8 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ChangeRoutingProfileCompartmentResponse.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.*; + +@javax.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. + * + */ + private 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 ChangeRoutingProfileCompartmentResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 + */ + public Builder copy(ChangeRoutingProfileCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ChangeRoutingProfileCompartmentResponse build() { + return new ChangeRoutingProfileCompartmentResponse( + __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 ChangeRoutingProfileCompartmentResponse)) { + return false; + } + + 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.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..b4d56f41f62 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/CreateRoutingProfileResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.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 RoutingProfile instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 RoutingProfile instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned 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 + */ + 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 + */ + 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..8c02f315b04 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/DeleteRoutingProfileResponse.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.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.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__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 + */ + 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 + */ + 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..3060e72418d --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/GetRoutingProfileResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.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 RoutingProfile instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 RoutingProfile instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned 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 + */ + 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 + */ + 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..7420c400bd8 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListModelDiscoveryResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.*; + +@javax.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 ModelDiscoveryCollection instance. + */ + private com.oracle.bmc.generativeai.model.ModelDiscoveryCollection modelDiscoveryCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 ModelDiscoveryCollection instance. + */ + private com.oracle.bmc.generativeai.model.ModelDiscoveryCollection modelDiscoveryCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..fa3412bed8b --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/ListRoutingProfilesResponse.java @@ -0,0 +1,226 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.*; + +@javax.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 RoutingProfileCollection instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfileCollection routingProfileCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 RoutingProfileCollection instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfileCollection routingProfileCollection; + + /** + * The returned 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 + */ + 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 + */ + 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-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java new file mode 100644 index 00000000000..63e35fb3d53 --- /dev/null +++ b/bmc-generativeai/src/main/java/com/oracle/bmc/generativeai/responses/UpdateRoutingProfileResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeai.responses; + +import com.oracle.bmc.generativeai.model.*; + +@javax.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. + * + */ + private 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 RoutingProfile instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned RoutingProfile instance. + * @return the value + */ + public com.oracle.bmc.generativeai.model.RoutingProfile getRoutingProfile() { + return routingProfile; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "routingProfile" + }) + private UpdateRoutingProfileResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.generativeai.model.RoutingProfile routingProfile) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.routingProfile = routingProfile; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 RoutingProfile instance. + */ + private com.oracle.bmc.generativeai.model.RoutingProfile routingProfile; + + /** + * The returned 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 + */ + public Builder copy(UpdateRoutingProfileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + routingProfile(o.getRoutingProfile()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateRoutingProfileResponse build() { + return new UpdateRoutingProfileResponse( + __httpStatusCode__, headers, opcRequestId, etag, 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + 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 UpdateRoutingProfileResponse)) { + return false; + } + + 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.routingProfile, other.routingProfile); + } + + @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.routingProfile == null ? 43 : this.routingProfile.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index e8779e05f6f..f0044e5c1b5 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 36844cb167b..c6c8ba120f6 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index f4f081619af..6324c86093c 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java similarity index 73% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java index c4a8717a8c8..409e9792d81 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJob.java @@ -2,17 +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; +package com.oracle.bmc.generativeaidata; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.generativeaidata.requests.*; +import com.oracle.bmc.generativeaidata.responses.*; /** - * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. + * A description of the ReferenceService API. in progress * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbWorkRequestService extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public interface EnrichmentJob extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,19 +60,22 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets details of the work request with the given ID. + * Cancels an EnrichmentJob resource by identifier. + * The returned job includes the modelId used for enrichment. + * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use GetWorkRequest API. + * Example: Click here to see how to use CancelEnrichmentJob API. */ - GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request); /** - * Returns a (paginated) list of errors for the work request with the given ID. + * Creates a new asynchronous EnrichmentJob. + * The returned job includes the modelId used for enrichment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -80,12 +83,13 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use ListWorkRequestErrors API. + * Example: Click here to see how to use GenerateEnrichmentJob API. */ - ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); + GenerateEnrichmentJobResponse generateEnrichmentJob(GenerateEnrichmentJobRequest request); /** - * Returns a (paginated) list of logs for the work request with the given ID. + * Gets an EnrichmentJob by identifier. + * The returned job includes the modelId used for enrichment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -93,12 +97,13 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use ListWorkRequestLogs API. + * Example: Click here to see how to use GetEnrichmentJob API. */ - ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); + GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request); /** - * Lists the work requests in a compartment. + * Lists EnrichmentJobs in a semantic store. + * Each returned job summary includes the modelId used for enrichment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -106,16 +111,16 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use ListWorkRequests API. + * Example: Click here to see how to use ListEnrichmentJobs API. */ - ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request); /** * Gets the pre-configured waiters available for resources for this service. * * @return The service waiters. */ - DistributedDbWorkRequestServiceWaiters getWaiters(); + EnrichmentJobWaiters getWaiters(); /** * Gets the pre-configured paginators available for list operations in this service which may return multiple @@ -124,5 +129,5 @@ public interface DistributedDbWorkRequestService extends AutoCloseable { * * @return The service paginators. */ - DistributedDbWorkRequestServicePaginators getPaginators(); + EnrichmentJobPaginators getPaginators(); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsync.java similarity index 53% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsync.java index 8630f2cf382..e42796625b4 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsync.java @@ -11,7 +11,7 @@ * A description of the ReferenceService API. in progress */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface CancelEnrichmentJobAsync extends AutoCloseable { +public interface EnrichmentJobAsync extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,6 +60,7 @@ public interface CancelEnrichmentJobAsync extends AutoCloseable { /** * Cancels an EnrichmentJob resource by identifier. + * The returned job includes the modelId used for enrichment. * * * @param request The request object containing the details to send @@ -74,4 +75,57 @@ java.util.concurrent.Future cancelEnrichmentJob( com.oracle.bmc.responses.AsyncHandler< CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> handler); + + /** + * Creates a new asynchronous EnrichmentJob. + * The returned job includes the modelId used for enrichment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @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 generateEnrichmentJob( + GenerateEnrichmentJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + handler); + + /** + * Gets an EnrichmentJob by identifier. + * The returned job includes the modelId used for enrichment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getEnrichmentJob( + GetEnrichmentJobRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Lists EnrichmentJobs in a semantic store. + * Each returned job summary includes the modelId used for enrichment. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listEnrichmentJobs( + ListEnrichmentJobsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> + handler); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsyncClient.java similarity index 75% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsyncClient.java index 41a4fca8385..0f166077e02 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobAsyncClient.java @@ -11,7 +11,7 @@ import java.util.regex.Pattern; /** - * Async client implementation for CancelEnrichmentJob service.
    + * Async client implementation for EnrichmentJob service.
    * There are two ways to use async client: * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, @@ -24,20 +24,20 @@ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class CancelEnrichmentJobAsyncClient implements CancelEnrichmentJobAsync { +public class EnrichmentJobAsyncClient implements EnrichmentJobAsync { /** - * Service instance for CancelEnrichmentJob. + * Service instance for EnrichmentJob. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(CancelEnrichmentJobClient.class.getName()) + .serviceName(EnrichmentJobClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CancelEnrichmentJobAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(EnrichmentJobAsyncClient.class); private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; @@ -80,7 +80,7 @@ public class CancelEnrichmentJobAsyncClient implements CancelEnrichmentJobAsync * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -90,7 +90,7 @@ public CancelEnrichmentJobAsyncClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -103,7 +103,7 @@ public CancelEnrichmentJobAsyncClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -125,7 +125,7 @@ public CancelEnrichmentJobAsyncClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -149,7 +149,7 @@ public CancelEnrichmentJobAsyncClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -176,7 +176,7 @@ public CancelEnrichmentJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -207,7 +207,7 @@ public CancelEnrichmentJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -243,7 +243,7 @@ public CancelEnrichmentJobAsyncClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - public CancelEnrichmentJobAsyncClient( + public EnrichmentJobAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -323,8 +323,7 @@ public static Builder builder() { * {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, CancelEnrichmentJobAsyncClient> { + extends com.oracle.bmc.common.RegionalClientBuilder { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -337,7 +336,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public CancelEnrichmentJobAsyncClient build( + public EnrichmentJobAsyncClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -345,7 +344,7 @@ public CancelEnrichmentJobAsyncClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new CancelEnrichmentJobAsyncClient( + return new EnrichmentJobAsyncClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -485,7 +484,7 @@ public java.util.concurrent.Future cancelEnrichment com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CancelEnrichmentJob", + "EnrichmentJob", "CancelEnrichmentJob", ib.getRequestUri().toString(), "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); @@ -518,4 +517,149 @@ protected void beforeRetryAction() {} return futureSupplier.apply(handlerToUse); } } + + @Override + public java.util.concurrent.Future generateEnrichmentJob( + GenerateEnrichmentJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + handler) { + LOG.trace("Called async generateEnrichmentJob"); + final GenerateEnrichmentJobRequest interceptedRequest = + GenerateEnrichmentJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateEnrichmentJobConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "GenerateEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); + final java.util.function.Function + transformer = + GenerateEnrichmentJobConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getGenerateEnrichmentJobDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getEnrichmentJob( + GetEnrichmentJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetEnrichmentJobRequest, GetEnrichmentJobResponse> + handler) { + LOG.trace("Called async getEnrichmentJob"); + final GetEnrichmentJobRequest interceptedRequest = + GetEnrichmentJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "GetEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); + final java.util.function.Function + transformer = + GetEnrichmentJobConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetEnrichmentJobRequest, GetEnrichmentJobResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetEnrichmentJobRequest, GetEnrichmentJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listEnrichmentJobs( + ListEnrichmentJobsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> + handler) { + LOG.trace("Called async listEnrichmentJobs"); + final ListEnrichmentJobsRequest interceptedRequest = + ListEnrichmentJobsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEnrichmentJobsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "ListEnrichmentJobs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); + final java.util.function.Function + transformer = + ListEnrichmentJobsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java new file mode 100644 index 00000000000..95e706f92b9 --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobClient.java @@ -0,0 +1,727 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaidata; + +import com.oracle.bmc.generativeaidata.internal.http.*; +import com.oracle.bmc.generativeaidata.requests.*; +import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class EnrichmentJobClient implements EnrichmentJob { + /** + * Service instance for EnrichmentJob. + */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(EnrichmentJobClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + .build(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(EnrichmentJobClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final EnrichmentJobWaiters waiters; + + private final EnrichmentJobPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

    + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

    + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

    + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

    + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

    + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + */ + public EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

    + * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected EnrichmentJobClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + java.util.concurrent.ExecutorService executorService, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + if (executorService == null) { + // up to 50 (core) threads, time out after 60s idle, all daemon + java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = + new java.util.concurrent.ThreadPoolExecutor( + 50, + 50, + 60L, + java.util.concurrent.TimeUnit.SECONDS, + new java.util.concurrent.LinkedBlockingQueue(), + com.oracle.bmc.internal.ClientThreadFactory.builder() + .isDaemon(true) + .nameFormat("EnrichmentJob-waiters-%d") + .build()); + threadPoolExecutor.allowCoreThreadTimeOut(true); + + executorService = threadPoolExecutor; + } + this.waiters = new EnrichmentJobWaiters(executorService, this); + + this.paginators = new EnrichmentJobPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * Create a builder for this client. + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the + * {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private java.util.concurrent.ExecutorService executorService; + + private Builder(com.oracle.bmc.Service service) { + super(service); + 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 EnrichmentJobClient build( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new EnrichmentJobClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + executorService, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request) { + LOG.trace("Called cancelEnrichmentJob"); + final CancelEnrichmentJobRequest interceptedRequest = + CancelEnrichmentJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelEnrichmentJobConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "CancelEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); + java.util.function.Function + transformer = + CancelEnrichmentJobConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GenerateEnrichmentJobResponse generateEnrichmentJob( + GenerateEnrichmentJobRequest request) { + LOG.trace("Called generateEnrichmentJob"); + final GenerateEnrichmentJobRequest interceptedRequest = + GenerateEnrichmentJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateEnrichmentJobConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "GenerateEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); + java.util.function.Function + transformer = + GenerateEnrichmentJobConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getGenerateEnrichmentJobDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request) { + LOG.trace("Called getEnrichmentJob"); + final GetEnrichmentJobRequest interceptedRequest = + GetEnrichmentJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "GetEnrichmentJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); + java.util.function.Function + transformer = + GetEnrichmentJobConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request) { + LOG.trace("Called listEnrichmentJobs"); + final ListEnrichmentJobsRequest interceptedRequest = + ListEnrichmentJobsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListEnrichmentJobsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "EnrichmentJob", + "ListEnrichmentJobs", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); + java.util.function.Function + transformer = + ListEnrichmentJobsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public EnrichmentJobWaiters getWaiters() { + return waiters; + } + + @Override + public EnrichmentJobPaginators getPaginators() { + return paginators; + } +} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobPaginators.java similarity index 97% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobPaginators.java index 6b1eca1e370..da7e0a6fe66 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobPaginators.java @@ -9,7 +9,7 @@ /** * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface - * to any list operations of ListEnrichmentJobs where multiple pages of data may be fetched. + * to any list operations of EnrichmentJob where multiple pages of data may be fetched. * Two styles of iteration are supported: * *

      @@ -26,10 +26,10 @@ * In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsPaginators { - private final ListEnrichmentJobs client; +public class EnrichmentJobPaginators { + private final EnrichmentJob client; - public ListEnrichmentJobsPaginators(ListEnrichmentJobs client) { + public EnrichmentJobPaginators(EnrichmentJob client) { this.client = client; } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobWaiters.java similarity index 97% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobWaiters.java index 80817ac5c9b..11874f0055d 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/EnrichmentJobWaiters.java @@ -9,17 +9,17 @@ /** * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different - * resources of GetEnrichmentJob. + * resources of EnrichmentJob. *

      * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobWaiters { +public class EnrichmentJobWaiters { private final java.util.concurrent.ExecutorService executorService; - private final GetEnrichmentJob client; + private final EnrichmentJob client; - public GetEnrichmentJobWaiters( - java.util.concurrent.ExecutorService executorService, GetEnrichmentJob client) { + public EnrichmentJobWaiters( + java.util.concurrent.ExecutorService executorService, EnrichmentJob client) { this.executorService = executorService; this.client = client; } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java deleted file mode 100644 index 68926e66211..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateEnrichmentJob extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

      - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Creates a new asynchronous EnrichmentJob. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GenerateEnrichmentJob API. - */ - GenerateEnrichmentJobResponse generateEnrichmentJob(GenerateEnrichmentJobRequest request); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSql.java similarity index 55% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSql.java index 312c38b589b..3a86f459e27 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSql.java @@ -12,7 +12,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. */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GetEnrichmentJob extends AutoCloseable { +public interface GenerateSql extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,7 +60,37 @@ public interface GetEnrichmentJob extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Gets an EnrichmentJob by identifier. + * Generates a SQL query from a natural language input for the specified SemanticStore. + *

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

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

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

      + * The GetGenerateSqlFromNlJob endpoint is the source of truth for final job state and result availability. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses 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 GenerateSqlFromNl API. + */ + GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request); + + /** + * Retrieves the current state of a GenerateSqlFromNlJob. + * Clients should poll this endpoint until lifecycleState is SUCCEEDED or FAILED. + * When lifecycleState is SUCCEEDED, the result is available in jobOutput. + * The returned job includes the modelId used for generation. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -68,14 +98,14 @@ public interface GetEnrichmentJob extends AutoCloseable { * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use GetEnrichmentJob API. + * Example: Click here to see how to use GetGenerateSqlFromNlJob API. */ - GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request); + GetGenerateSqlFromNlJobResponse getGenerateSqlFromNlJob(GetGenerateSqlFromNlJobRequest request); /** * Gets the pre-configured waiters available for resources for this service. * * @return The service waiters. */ - GetEnrichmentJobWaiters getWaiters(); + GenerateSqlWaiters getWaiters(); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsync.java similarity index 60% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsync.java index 2024f98c63b..0d0eec7261f 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsync.java @@ -11,7 +11,7 @@ * A description of the ReferenceService API. in progress */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateSqlFromNlJobAsync extends AutoCloseable { +public interface GenerateSqlAsync extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,6 +60,20 @@ public interface GenerateSqlFromNlJobAsync extends AutoCloseable { /** * Generates a SQL query from a natural language input for the specified SemanticStore. + *

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

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

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

      + * The GetGenerateSqlFromNlJob endpoint is the source of truth for final job state and result availability. * * * @param request The request object containing the details to send @@ -74,4 +88,24 @@ java.util.concurrent.Future generateSqlFromNl( com.oracle.bmc.responses.AsyncHandler< GenerateSqlFromNlRequest, GenerateSqlFromNlResponse> handler); + + /** + * Retrieves the current state of a GenerateSqlFromNlJob. + * Clients should poll this endpoint until lifecycleState is SUCCEEDED or FAILED. + * When lifecycleState is SUCCEEDED, the result is available in jobOutput. + * The returned job includes the modelId used for generation. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + handler); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsyncClient.java similarity index 88% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsyncClient.java index a28b2aa1957..accbaf387ad 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlAsyncClient.java @@ -11,7 +11,7 @@ import java.util.regex.Pattern; /** - * Async client implementation for GenerateSqlFromNlJob service.
      + * Async client implementation for GenerateSql service.
      * There are two ways to use async client: * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, @@ -24,20 +24,20 @@ * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateSqlFromNlJobAsyncClient implements GenerateSqlFromNlJobAsync { +public class GenerateSqlAsyncClient implements GenerateSqlAsync { /** - * Service instance for GenerateSqlFromNlJob. + * Service instance for GenerateSql. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateSqlFromNlJobClient.class.getName()) + .serviceName(GenerateSqlClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateSqlFromNlJobAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(GenerateSqlAsyncClient.class); private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; @@ -80,7 +80,7 @@ public class GenerateSqlFromNlJobAsyncClient implements GenerateSqlFromNlJobAsyn * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -90,7 +90,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -103,7 +103,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -125,7 +125,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -149,7 +149,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -176,7 +176,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -207,7 +207,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -243,7 +243,7 @@ public GenerateSqlFromNlJobAsyncClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - public GenerateSqlFromNlJobAsyncClient( + public GenerateSqlAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -323,8 +323,7 @@ public static Builder builder() { * {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateSqlFromNlJobAsyncClient> { + extends com.oracle.bmc.common.RegionalClientBuilder { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -337,7 +336,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public GenerateSqlFromNlJobAsyncClient build( + public GenerateSqlAsyncClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -345,7 +344,7 @@ public GenerateSqlFromNlJobAsyncClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new GenerateSqlFromNlJobAsyncClient( + return new GenerateSqlAsyncClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -485,7 +484,7 @@ public java.util.concurrent.Future generateSqlFromNl( com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GenerateSqlFromNlJob", + "GenerateSql", "GenerateSqlFromNl", ib.getRequestUri().toString(), "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); @@ -522,4 +521,52 @@ protected void beforeRetryAction() {} return futureSupplier.apply(handlerToUse); } } + + @Override + public java.util.concurrent.Future getGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + handler) { + LOG.trace("Called async getGenerateSqlFromNlJob"); + final GetGenerateSqlFromNlJobRequest interceptedRequest = + GetGenerateSqlFromNlJobConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetGenerateSqlFromNlJobConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerateSql", + "GetGenerateSqlFromNlJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GetGenerateSqlFromNlJob"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetGenerateSqlFromNlJobResponse> + transformer = + GetGenerateSqlFromNlJobConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlClient.java similarity index 88% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlClient.java index 0b6e7584af4..5266cd84001 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlClient.java @@ -12,13 +12,13 @@ import java.util.regex.Pattern; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobClient implements GetEnrichmentJob { +public class GenerateSqlClient implements GenerateSql { /** - * Service instance for GetEnrichmentJob. + * Service instance for GenerateSql. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GetEnrichmentJobClient.class.getName()) + .serviceName(GenerateSqlClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( "https://inference.generativeai.{region}.oci.{secondLevelDomain}") @@ -27,13 +27,13 @@ public class GetEnrichmentJobClient implements GetEnrichmentJob { private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetEnrichmentJobClient.class); + org.slf4j.LoggerFactory.getLogger(GenerateSqlClient.class); com.oracle.bmc.http.internal.RestClient getClient() { return client; } - private final GetEnrichmentJobWaiters waiters; + private final GenerateSqlWaiters waiters; private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; @@ -77,7 +77,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -87,7 +87,7 @@ public GetEnrichmentJobClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -100,7 +100,7 @@ public GetEnrichmentJobClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -122,7 +122,7 @@ public GetEnrichmentJobClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -146,7 +146,7 @@ public GetEnrichmentJobClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -173,7 +173,7 @@ public GetEnrichmentJobClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -204,7 +204,7 @@ public GetEnrichmentJobClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -240,7 +240,7 @@ public GetEnrichmentJobClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor */ - public GetEnrichmentJobClient( + public GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -281,7 +281,7 @@ public GetEnrichmentJobClient( * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - protected GetEnrichmentJobClient( + protected GenerateSqlClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -355,13 +355,13 @@ protected GetEnrichmentJobClient( new java.util.concurrent.LinkedBlockingQueue(), com.oracle.bmc.internal.ClientThreadFactory.builder() .isDaemon(true) - .nameFormat("GetEnrichmentJob-waiters-%d") + .nameFormat("GenerateSql-waiters-%d") .build()); threadPoolExecutor.allowCoreThreadTimeOut(true); executorService = threadPoolExecutor; } - this.waiters = new GetEnrichmentJobWaiters(executorService, this); + this.waiters = new GenerateSqlWaiters(executorService, this); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { com.oracle.bmc.auth.RegionProvider provider = @@ -396,7 +396,7 @@ public static Builder builder() { * {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { + extends com.oracle.bmc.common.RegionalClientBuilder { private java.util.concurrent.ExecutorService executorService; private Builder(com.oracle.bmc.Service service) { @@ -421,7 +421,7 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ * @param authenticationDetailsProvider authentication details provider * @return the client */ - public GetEnrichmentJobClient build( + public GenerateSqlClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -429,7 +429,7 @@ public GetEnrichmentJobClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new GetEnrichmentJobClient( + return new GenerateSqlClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -556,26 +556,69 @@ public void close() { } @Override - public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request) { - LOG.trace("Called getEnrichmentJob"); - final GetEnrichmentJobRequest interceptedRequest = - GetEnrichmentJobConverter.interceptRequest(request); + public GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request) { + LOG.trace("Called generateSqlFromNl"); + final GenerateSqlFromNlRequest interceptedRequest = + GenerateSqlFromNlConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); + GenerateSqlFromNlConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GetEnrichmentJob", - "GetEnrichmentJob", + "GenerateSql", + "GenerateSqlFromNl", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); + java.util.function.Function transformer = - GetEnrichmentJobConverter.fromResponse( + GenerateSqlFromNlConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getGenerateSqlFromNlDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetGenerateSqlFromNlJobResponse getGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request) { + LOG.trace("Called getGenerateSqlFromNlJob"); + final GetGenerateSqlFromNlJobRequest interceptedRequest = + GetGenerateSqlFromNlJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetGenerateSqlFromNlJobConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "GenerateSql", + "GetGenerateSqlFromNlJob", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GetGenerateSqlFromNlJob"); + java.util.function.Function + transformer = + GetGenerateSqlFromNlJobConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -593,7 +636,7 @@ public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request } @Override - public GetEnrichmentJobWaiters getWaiters() { + public GenerateSqlWaiters getWaiters() { return waiters; } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java deleted file mode 100644 index dfa2aec687d..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.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.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateSqlFromNlJobClient implements GenerateSqlFromNlJob { - /** - * Service instance for GenerateSqlFromNlJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateSqlFromNlJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateSqlFromNlJobClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateSqlFromNlJobClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public GenerateSqlFromNlJobClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GenerateSqlFromNlJobClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request) { - LOG.trace("Called generateSqlFromNl"); - final GenerateSqlFromNlRequest interceptedRequest = - GenerateSqlFromNlConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateSqlFromNlConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GenerateSqlFromNlJob", - "GenerateSqlFromNl", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); - java.util.function.Function - transformer = - GenerateSqlFromNlConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest.getGenerateSqlFromNlDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java similarity index 50% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java index a9e1b8f6481..af6f78d4335 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlWaiters.java @@ -2,25 +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; +package com.oracle.bmc.generativeaidata; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.generativeaidata.requests.*; +import com.oracle.bmc.generativeaidata.responses.*; /** * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different - * resources of DistributedAutonomousDbService. + * resources of GenerateSql. *

      * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedAutonomousDbServiceWaiters { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GenerateSqlWaiters { private final java.util.concurrent.ExecutorService executorService; - private final DistributedAutonomousDbService client; + private final GenerateSql client; - public DistributedAutonomousDbServiceWaiters( - java.util.concurrent.ExecutorService executorService, - DistributedAutonomousDbService client) { + public GenerateSqlWaiters( + java.util.concurrent.ExecutorService executorService, GenerateSql client) { this.executorService = executorService; this.client = client; } @@ -29,23 +28,20 @@ public DistributedAutonomousDbServiceWaiters( * 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 + * @param targetState the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - forDistributedAutonomousDatabase( - GetDistributedAutonomousDatabaseRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - .LifecycleState... - targetStates) { + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.generativeaidata.model.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDistributedAutonomousDatabase( + return forGenerateSqlFromNlJob( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -59,19 +55,16 @@ public DistributedAutonomousDbServiceWaiters( * @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, + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, + com.oracle.bmc.generativeaidata.model.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); - return forDistributedAutonomousDatabase( + return forGenerateSqlFromNlJob( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -84,69 +77,56 @@ public DistributedAutonomousDbServiceWaiters( * @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 + * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - forDistributedAutonomousDatabase( - GetDistributedAutonomousDatabaseRequest request, + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( + GetGenerateSqlFromNlJobRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - .LifecycleState... - targetStates) { + com.oracle.bmc.generativeaidata.model.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one target state must be provided"); + targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null target states are not permitted"); + targetStates, "Null targetState values are not permitted"); - return forDistributedAutonomousDatabase( + return forGenerateSqlFromNlJob( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DistributedAutonomousDatabase. + // Helper method to create a new Waiter for GenerateSqlFromNlJob. private com.oracle.bmc.waiter.Waiter< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - forDistributedAutonomousDatabase( + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse> + forGenerateSqlFromNlJob( 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)); + final GetGenerateSqlFromNlJobRequest request, + final com.oracle.bmc.generativeaidata.model.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse>() { + GetGenerateSqlFromNlJobRequest, GetGenerateSqlFromNlJobResponse>() { @Override - public GetDistributedAutonomousDatabaseResponse apply( - GetDistributedAutonomousDatabaseRequest request) { - return client.getDistributedAutonomousDatabase(request); + public GetGenerateSqlFromNlJobResponse apply( + GetGenerateSqlFromNlJobRequest request) { + return client.getGenerateSqlFromNlJob(request); } }, - new java.util.function.Predicate< - GetDistributedAutonomousDatabaseResponse>() { + new java.util.function.Predicate() { @Override - public boolean test(GetDistributedAutonomousDatabaseResponse response) { + public boolean test(GetGenerateSqlFromNlJobResponse response) { return targetStatesSet.contains( - response.getDistributedAutonomousDatabase() - .getLifecycleState()); + response.getGenerateSqlFromNlJob().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase.LifecycleState.Deleted)), + false), request); } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java deleted file mode 100644 index d04f3dce0dd..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GetEnrichmentJobAsync extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

      - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets an EnrichmentJob by identifier. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future getEnrichmentJob( - GetEnrichmentJobRequest request, - com.oracle.bmc.responses.AsyncHandler - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java deleted file mode 100644 index 899197890ab..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface ListEnrichmentJobs 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); - - /** - * Lists EnrichmentJobs in a semantic store. - * - * @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 ListEnrichmentJobs API. - */ - ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request); - - /** - * 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. - */ - ListEnrichmentJobsPaginators getPaginators(); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java deleted file mode 100644 index 7aff9b859f3..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java +++ /dev/null @@ -1,519 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for ListEnrichmentJobs 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsAsyncClient implements ListEnrichmentJobsAsync { - /** - * Service instance for ListEnrichmentJobs. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(ListEnrichmentJobsClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListEnrichmentJobsAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public ListEnrichmentJobsAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public ListEnrichmentJobsAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public ListEnrichmentJobsAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public ListEnrichmentJobsAsyncClient( - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * 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, ListEnrichmentJobsAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 ListEnrichmentJobsAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new ListEnrichmentJobsAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future listEnrichmentJobs( - ListEnrichmentJobsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> - handler) { - LOG.trace("Called async listEnrichmentJobs"); - final ListEnrichmentJobsRequest interceptedRequest = - ListEnrichmentJobsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListEnrichmentJobsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "ListEnrichmentJobs", - "ListEnrichmentJobs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); - final java.util.function.Function - transformer = - ListEnrichmentJobsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java deleted file mode 100644 index b5333498fa3..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java +++ /dev/null @@ -1,529 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsClient implements ListEnrichmentJobs { - /** - * Service instance for ListEnrichmentJobs. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(ListEnrichmentJobsClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListEnrichmentJobsClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final ListEnrichmentJobsPaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public ListEnrichmentJobsClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public ListEnrichmentJobsClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public ListEnrichmentJobsClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

      - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected ListEnrichmentJobsClient( - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - this.paginators = new ListEnrichmentJobsPaginators(this); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 ListEnrichmentJobsClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new ListEnrichmentJobsClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request) { - LOG.trace("Called listEnrichmentJobs"); - final ListEnrichmentJobsRequest interceptedRequest = - ListEnrichmentJobsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListEnrichmentJobsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "ListEnrichmentJobs", - "ListEnrichmentJobs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); - java.util.function.Function - transformer = - ListEnrichmentJobsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListEnrichmentJobsPaginators getPaginators() { - return paginators; - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/SdkClientsMetadata.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/SdkClientsMetadata.java index 68e5e072b06..c6af11672db 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/SdkClientsMetadata.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/SdkClientsMetadata.java @@ -8,15 +8,9 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") @SdkClients({ - CancelEnrichmentJobAsyncClient.class, - CancelEnrichmentJobClient.class, - GenerateEnrichmentJobAsyncClient.class, - GenerateEnrichmentJobClient.class, - GenerateSqlFromNlJobAsyncClient.class, - GenerateSqlFromNlJobClient.class, - GetEnrichmentJobAsyncClient.class, - GetEnrichmentJobClient.class, - ListEnrichmentJobsAsyncClient.class, - ListEnrichmentJobsClient.class + EnrichmentJobAsyncClient.class, + EnrichmentJobClient.class, + GenerateSqlAsyncClient.class, + GenerateSqlClient.class }) public final class SdkClientsMetadata {} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/CancelEnrichmentJobConverter.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/CancelEnrichmentJobConverter.java index 262d6398f8c..dd96e2749ed 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/CancelEnrichmentJobConverter.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/CancelEnrichmentJobConverter.java @@ -96,18 +96,28 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "Transform function invoked for com.oracle.bmc.generativeaidata.responses.CancelEnrichmentJobResponse"); final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeaidata.model + .EnrichmentJob>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeaidata.model + .EnrichmentJob + .class, serviceDetails.get()); } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeaidata.model + .EnrichmentJob + .class); } - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeaidata.model.EnrichmentJob> + response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); @@ -119,6 +129,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); + builder.enrichmentJob(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/GetGenerateSqlFromNlJobConverter.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/GetGenerateSqlFromNlJobConverter.java new file mode 100644 index 00000000000..27d06237191 --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/internal/http/GetGenerateSqlFromNlJobConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaidata.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.generativeaidata.model.*; +import com.oracle.bmc.generativeaidata.requests.*; +import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetGenerateSqlFromNlJobConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetGenerateSqlFromNlJobConverter.class); + + public static com.oracle.bmc.generativeaidata.requests.GetGenerateSqlFromNlJobRequest + interceptRequest( + com.oracle.bmc.generativeaidata.requests.GetGenerateSqlFromNlJobRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.generativeaidata.requests.GetGenerateSqlFromNlJobRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getSemanticStoreId(), "semanticStoreId must not be blank"); + Validate.notBlank( + request.getGenerateSqlFromNlJobId(), "generateSqlFromNlJobId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260325") + .path("semanticStores") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getSemanticStoreId())) + .path("generateSqlFromNlJobs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getGenerateSqlFromNlJobId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaidata.responses.GetGenerateSqlFromNlJobResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaidata.responses.GetGenerateSqlFromNlJobResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaidata.responses.GetGenerateSqlFromNlJobResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.generativeaidata.responses + .GetGenerateSqlFromNlJobResponse>() { + @Override + public com.oracle.bmc.generativeaidata.responses + .GetGenerateSqlFromNlJobResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.generativeaidata.responses.GetGenerateSqlFromNlJobResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeaidata.model + .GenerateSqlFromNlJob>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeaidata.model + .GenerateSqlFromNlJob + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.generativeaidata.model + .GenerateSqlFromNlJob + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.generativeaidata.model + .GenerateSqlFromNlJob> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.generativeaidata.responses + .GetGenerateSqlFromNlJobResponse.Builder + builder = + com.oracle.bmc.generativeaidata.responses + .GetGenerateSqlFromNlJobResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.generateSqlFromNlJob(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.generativeaidata.responses + .GetGenerateSqlFromNlJobResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java new file mode 100644 index 00000000000..0e0eeca9e39 --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/CompletionMode.java @@ -0,0 +1,42 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.generativeaidata.model; + +/** + * Controls whether GenerateSqlFromNl, ExecuteSql, or Query waits for execution to finish or submits background execution. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public enum CompletionMode { + WaitForCompletion("WAIT_FOR_COMPLETION"), + BackgroundJob("BACKGROUND_JOB"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CompletionMode v : CompletionMode.values()) { + map.put(v.getValue(), v); + } + } + + CompletionMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CompletionMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CompletionMode: " + key); + } +} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java index 57230879ee8..b3338394425 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/DeltaRefreshEnrichmentJobConfiguration.java @@ -6,7 +6,8 @@ /** * A DeltaRefreshEnrichmentJobConfiguration is an EnrichmentJobConfiguration [indicated by the first item under {@code allOf}, which is a reference to EnrichmentJobConfiguration] - * that describes the database schema that will be the scope of the enrichment job and the schedule on which the job will run. As distinguished by enrichmentJobType [with specific characteristics defined by the second item under {@code allOf}]. + * that describes the database schema that will be the scope of the delta refresh enrichment job. As distinguished by enrichmentJobType [with specific characteristics defined by the second item under {@code allOf}]. + * deltaRefreshSchedule is optional, is not used by the service, and is retained only for backward compatibility. It should be treated as deprecated. * *
      * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -46,13 +47,13 @@ public Builder schemaName(String schemaName) { return this; } /** - * Schedule for occurrences of Delta Refresh jobs + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the service. **/ @com.fasterxml.jackson.annotation.JsonProperty("deltaRefreshSchedule") private Object deltaRefreshSchedule; /** - * Schedule for occurrences of Delta Refresh jobs + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the service. * @param deltaRefreshSchedule the value to set * @return this builder **/ @@ -120,13 +121,13 @@ public String getSchemaName() { } /** - * Schedule for occurrences of Delta Refresh jobs + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the service. **/ @com.fasterxml.jackson.annotation.JsonProperty("deltaRefreshSchedule") private final Object deltaRefreshSchedule; /** - * Schedule for occurrences of Delta Refresh jobs + * Deprecated schedule for occurrences of Delta Refresh jobs. This value is not used by the service. * @return the value **/ public Object getDeltaRefreshSchedule() { diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java index 4e0cdc76a9d..efafb92c6c8 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJob.java @@ -6,7 +6,7 @@ /** * Object representing to EnrichmentJob. - * ocidEntityType: generativeaiEnrichmentJob + * ocidEntityType: generativeaisemanticstorejob * adLocality: regional * *
      @@ -29,6 +29,7 @@ public final class EnrichmentJob extends com.oracle.bmc.http.internal.Explicitly "displayName", "enrichmentJobType", "enrichmentJobConfiguration", + "modelId", "timeAccepted", "timeStarted", "timeFinished", @@ -46,6 +47,7 @@ public EnrichmentJob( String displayName, EnrichmentJobType enrichmentJobType, EnrichmentJobConfiguration enrichmentJobConfiguration, + String modelId, java.util.Date timeAccepted, java.util.Date timeStarted, java.util.Date timeFinished, @@ -62,6 +64,7 @@ public EnrichmentJob( this.displayName = displayName; this.enrichmentJobType = enrichmentJobType; this.enrichmentJobConfiguration = enrichmentJobConfiguration; + this.modelId = modelId; this.timeAccepted = timeAccepted; this.timeStarted = timeStarted; this.timeFinished = timeFinished; @@ -76,13 +79,13 @@ public EnrichmentJob( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * @param id the value to set * @return this builder **/ @@ -140,13 +143,13 @@ public Builder displayName(String displayName) { return this; } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). **/ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). * @param enrichmentJobType the value to set * @return this builder **/ @@ -165,6 +168,22 @@ public Builder enrichmentJobConfiguration( this.__explicitlySet__.add("enrichmentJobConfiguration"); return this; } + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } /** * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. **/ @@ -246,13 +265,13 @@ public Builder percentComplete(Float percentComplete) { return this; } /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * @param lifecycleState the value to set * @return this builder **/ @@ -335,6 +354,7 @@ public EnrichmentJob build() { this.displayName, this.enrichmentJobType, this.enrichmentJobConfiguration, + this.modelId, this.timeAccepted, this.timeStarted, this.timeFinished, @@ -370,6 +390,9 @@ public Builder copy(EnrichmentJob model) { if (model.wasPropertyExplicitlySet("enrichmentJobConfiguration")) { this.enrichmentJobConfiguration(model.getEnrichmentJobConfiguration()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } if (model.wasPropertyExplicitlySet("timeAccepted")) { this.timeAccepted(model.getTimeAccepted()); } @@ -413,13 +436,13 @@ public Builder toBuilder() { } /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * @return the value **/ public String getId() { @@ -469,13 +492,13 @@ public String getDisplayName() { } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). **/ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private final EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). * @return the value **/ public EnrichmentJobType getEnrichmentJobType() { @@ -489,6 +512,20 @@ public EnrichmentJobConfiguration getEnrichmentJobConfiguration() { return enrichmentJobConfiguration; } + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @return the value + **/ + public String getModelId() { + return modelId; + } + /** * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. **/ @@ -560,13 +597,13 @@ public Float getPercentComplete() { } /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * @return the value **/ public LifecycleState getLifecycleState() { @@ -648,6 +685,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", enrichmentJobType=").append(String.valueOf(this.enrichmentJobType)); sb.append(", enrichmentJobConfiguration=") .append(String.valueOf(this.enrichmentJobConfiguration)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); @@ -678,6 +716,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.enrichmentJobType, other.enrichmentJobType) && java.util.Objects.equals( this.enrichmentJobConfiguration, other.enrichmentJobConfiguration) + && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) && java.util.Objects.equals(this.timeStarted, other.timeStarted) && java.util.Objects.equals(this.timeFinished, other.timeFinished) @@ -708,6 +747,7 @@ public int hashCode() { + (this.enrichmentJobConfiguration == null ? 43 : this.enrichmentJobConfiguration.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java index c0540671d68..bc9a844a0e0 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobSummary.java @@ -26,6 +26,7 @@ public final class EnrichmentJobSummary extends com.oracle.bmc.http.internal.Exp "semanticStoreId", "displayName", "enrichmentJobType", + "modelId", "timeAccepted", "lifecycleState", "freeformTags", @@ -37,6 +38,7 @@ public EnrichmentJobSummary( String semanticStoreId, String displayName, EnrichmentJobType enrichmentJobType, + String modelId, java.util.Date timeAccepted, LifecycleState lifecycleState, java.util.Map freeformTags, @@ -47,6 +49,7 @@ public EnrichmentJobSummary( this.semanticStoreId = semanticStoreId; this.displayName = displayName; this.enrichmentJobType = enrichmentJobType; + this.modelId = modelId; this.timeAccepted = timeAccepted; this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; @@ -57,13 +60,13 @@ public EnrichmentJobSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * @param id the value to set * @return this builder **/ @@ -73,13 +76,13 @@ public Builder id(String id) { return this; } /** - * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a GenerateSqlJob. + * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the EnrichmentJob. **/ @com.fasterxml.jackson.annotation.JsonProperty("semanticStoreId") private String semanticStoreId; /** - * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a GenerateSqlJob. + * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the EnrichmentJob. * @param semanticStoreId the value to set * @return this builder **/ @@ -105,13 +108,13 @@ public Builder displayName(String displayName) { return this; } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). **/ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). * @param enrichmentJobType the value to set * @return this builder **/ @@ -120,6 +123,22 @@ public Builder enrichmentJobType(EnrichmentJobType enrichmentJobType) { this.__explicitlySet__.add("enrichmentJobType"); return this; } + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } /** * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. **/ @@ -137,13 +156,13 @@ public Builder timeAccepted(java.util.Date timeAccepted) { return this; } /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * @param lifecycleState the value to set * @return this builder **/ @@ -224,6 +243,7 @@ public EnrichmentJobSummary build() { this.semanticStoreId, this.displayName, this.enrichmentJobType, + this.modelId, this.timeAccepted, this.lifecycleState, this.freeformTags, @@ -249,6 +269,9 @@ public Builder copy(EnrichmentJobSummary model) { if (model.wasPropertyExplicitlySet("enrichmentJobType")) { this.enrichmentJobType(model.getEnrichmentJobType()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } if (model.wasPropertyExplicitlySet("timeAccepted")) { this.timeAccepted(model.getTimeAccepted()); } @@ -280,13 +303,13 @@ public Builder toBuilder() { } /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * @return the value **/ public String getId() { @@ -294,13 +317,13 @@ public String getId() { } /** - * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a GenerateSqlJob. + * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the EnrichmentJob. **/ @com.fasterxml.jackson.annotation.JsonProperty("semanticStoreId") private final String semanticStoreId; /** - * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for a GenerateSqlJob. + * Owning SemanticStore [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the EnrichmentJob. * @return the value **/ public String getSemanticStoreId() { @@ -322,19 +345,33 @@ public String getDisplayName() { } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). **/ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private final EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). * @return the value **/ public EnrichmentJobType getEnrichmentJobType() { return enrichmentJobType; } + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The generative AI modelId used for Enrichment. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @return the value + **/ + public String getModelId() { + return modelId; + } + /** * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. **/ @@ -350,13 +387,13 @@ public java.util.Date getTimeAccepted() { } /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The lifecycleState of GenerateSqlJob. + * The lifecycle state of the EnrichmentJob. * @return the value **/ public LifecycleState getLifecycleState() { @@ -435,6 +472,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", semanticStoreId=").append(String.valueOf(this.semanticStoreId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", enrichmentJobType=").append(String.valueOf(this.enrichmentJobType)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -458,6 +496,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.semanticStoreId, other.semanticStoreId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.enrichmentJobType, other.enrichmentJobType) + && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -478,6 +517,7 @@ public int hashCode() { result = (result * PRIME) + (this.enrichmentJobType == null ? 43 : this.enrichmentJobType.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); result = (result * PRIME) diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java index 1029d5ec333..4ad9632187c 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/EnrichmentJobType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.generativeaidata.model; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Enrichment job type. Supported values are Full Build (all supported objects in a given schema), Partial Build (selected tables and/or supported objects in a given schema), and Delta Refresh (objects in a given schema that have changed since the previous enrichment job). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public enum EnrichmentJobType { diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java index 54e7c833058..b04bb4ccc9e 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateEnrichmentJobDetails.java @@ -81,13 +81,13 @@ public Builder displayName(String displayName) { return this; } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. **/ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. * @param enrichmentJobType the value to set * @return this builder **/ @@ -230,13 +230,13 @@ public String getDisplayName() { } /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. **/ @com.fasterxml.jackson.annotation.JsonProperty("enrichmentJobType") private final EnrichmentJobType enrichmentJobType; /** - * Enrichment job type. Currently supported Full Build (All supported objects in a given schema) and Partial Build (Selected tables and/or supported objects in a given schema). + * Deprecated. Use EnrichmentJobConfiguration.enrichmentJobType instead. * @return the value **/ public EnrichmentJobType getEnrichmentJobType() { diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java index 5004de1bb8e..c5846252c12 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlDetails.java @@ -26,6 +26,8 @@ public final class GenerateSqlFromNlDetails "description", "displayName", "inputNaturalLanguageQuery", + "modelId", + "completionMode", "freeformTags", "definedTags" }) @@ -33,12 +35,16 @@ public GenerateSqlFromNlDetails( String description, String displayName, String inputNaturalLanguageQuery, + String modelId, + CompletionMode completionMode, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.description = description; this.displayName = displayName; this.inputNaturalLanguageQuery = inputNaturalLanguageQuery; + this.modelId = modelId; + this.completionMode = completionMode; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -99,6 +105,44 @@ public Builder inputNaturalLanguageQuery(String inputNaturalLanguageQuery) { this.__explicitlySet__.add("inputNaturalLanguageQuery"); return this; } + /** + * The generative AI modelId to use for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The generative AI modelId to use for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for completion. + * BACKGROUND_JOB accepts the request for background processing and returns a pollable job. + * WAIT_FOR_COMPLETION waits for completion within the service-defined timeout. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("completionMode") + private CompletionMode completionMode; + + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for completion. + * BACKGROUND_JOB accepts the request for background processing and returns a pollable job. + * WAIT_FOR_COMPLETION waits for completion within the service-defined timeout. + * + * @param completionMode the value to set + * @return this builder + **/ + public Builder completionMode(CompletionMode completionMode) { + this.completionMode = completionMode; + this.__explicitlySet__.add("completionMode"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -150,6 +194,8 @@ public GenerateSqlFromNlDetails build() { this.description, this.displayName, this.inputNaturalLanguageQuery, + this.modelId, + this.completionMode, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -169,6 +215,12 @@ public Builder copy(GenerateSqlFromNlDetails model) { if (model.wasPropertyExplicitlySet("inputNaturalLanguageQuery")) { this.inputNaturalLanguageQuery(model.getInputNaturalLanguageQuery()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } + if (model.wasPropertyExplicitlySet("completionMode")) { + this.completionMode(model.getCompletionMode()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -238,6 +290,40 @@ public String getInputNaturalLanguageQuery() { return inputNaturalLanguageQuery; } + /** + * The generative AI modelId to use for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The generative AI modelId to use for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @return the value + **/ + public String getModelId() { + return modelId; + } + + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for completion. + * BACKGROUND_JOB accepts the request for background processing and returns a pollable job. + * WAIT_FOR_COMPLETION waits for completion within the service-defined timeout. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("completionMode") + private final CompletionMode completionMode; + + /** + * Controls whether GenerateSqlFromNl should be accepted as a background job or wait for completion. + * BACKGROUND_JOB accepts the request for background processing and returns a pollable job. + * WAIT_FOR_COMPLETION waits for completion within the service-defined timeout. + * + * @return the value + **/ + public CompletionMode getCompletionMode() { + return completionMode; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -292,6 +378,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", inputNaturalLanguageQuery=") .append(String.valueOf(this.inputNaturalLanguageQuery)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); + sb.append(", completionMode=").append(String.valueOf(this.completionMode)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -312,6 +400,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.inputNaturalLanguageQuery, other.inputNaturalLanguageQuery) + && java.util.Objects.equals(this.modelId, other.modelId) + && java.util.Objects.equals(this.completionMode, other.completionMode) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -328,6 +418,10 @@ public int hashCode() { + (this.inputNaturalLanguageQuery == null ? 43 : this.inputNaturalLanguageQuery.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); + result = + (result * PRIME) + + (this.completionMode == null ? 43 : this.completionMode.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java index 7bec4ef54be..cf3b13d21c2 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/GenerateSqlFromNlJob.java @@ -6,7 +6,7 @@ /** * Object representing to GenerateSqlFromNlJob. - * ocidEntityType: generativeaiGenerateSqlFromNlJob + * ocidEntityType: generativeaisemanticstorejob * adLocality: regional * *
      @@ -35,6 +35,7 @@ public final class GenerateSqlFromNlJob extends com.oracle.bmc.http.internal.Exp "lifecycleState", "lifecycleDetails", "inputNaturalLanguageQuery", + "modelId", "jobOutput", "freeformTags", "definedTags", @@ -51,6 +52,7 @@ public GenerateSqlFromNlJob( LifecycleState lifecycleState, String lifecycleDetails, String inputNaturalLanguageQuery, + String modelId, JobOutput jobOutput, java.util.Map freeformTags, java.util.Map> definedTags, @@ -66,6 +68,7 @@ public GenerateSqlFromNlJob( this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.inputNaturalLanguageQuery = inputNaturalLanguageQuery; + this.modelId = modelId; this.jobOutput = jobOutput; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -75,13 +78,13 @@ public GenerateSqlFromNlJob( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * @param id the value to set * @return this builder **/ @@ -139,13 +142,13 @@ public Builder displayName(String displayName) { return this; } /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private java.util.Date timeAccepted; /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 datetime string. * @param timeAccepted the value to set * @return this builder **/ @@ -155,13 +158,13 @@ public Builder timeAccepted(java.util.Date timeAccepted) { return this; } /** - * The date and time that the enrichment job was started in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") private java.util.Date timeStarted; /** - * The date and time that the enrichment job was started in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 datetime string. * @param timeStarted the value to set * @return this builder **/ @@ -171,13 +174,13 @@ public Builder timeStarted(java.util.Date timeStarted) { return this; } /** - * The date and time that the enrichment job was finished in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") private java.util.Date timeFinished; /** - * The date and time that the enrichment job was finished in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 datetime string. * @param timeFinished the value to set * @return this builder **/ @@ -187,13 +190,25 @@ public Builder timeFinished(java.util.Date timeFinished) { return this; } /** - * The lifecycleState of GenerateSqlFromNlJob. + * The current state of GenerateSqlFromNlJob. + *

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

      + * - ACCEPTED: Job has been created but not yet started. + * - IN_PROGRESS: Job is currently running. + * - SUCCEEDED: Job completed successfully. The result is available in jobOutput. + * - FAILED: Job failed. See lifecycleDetails for error information. + * * @param lifecycleState the value to set * @return this builder **/ @@ -240,6 +255,22 @@ public Builder inputNaturalLanguageQuery(String inputNaturalLanguageQuery) { this.__explicitlySet__.add("inputNaturalLanguageQuery"); return this; } + /** + * The generative AI modelId used for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private String modelId; + + /** + * The generative AI modelId used for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @param modelId the value to set + * @return this builder + **/ + public Builder modelId(String modelId) { + this.modelId = modelId; + this.__explicitlySet__.add("modelId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("jobOutput") private JobOutput jobOutput; @@ -327,6 +358,7 @@ public GenerateSqlFromNlJob build() { this.lifecycleState, this.lifecycleDetails, this.inputNaturalLanguageQuery, + this.modelId, this.jobOutput, this.freeformTags, this.definedTags, @@ -369,6 +401,9 @@ public Builder copy(GenerateSqlFromNlJob model) { if (model.wasPropertyExplicitlySet("inputNaturalLanguageQuery")) { this.inputNaturalLanguageQuery(model.getInputNaturalLanguageQuery()); } + if (model.wasPropertyExplicitlySet("modelId")) { + this.modelId(model.getModelId()); + } if (model.wasPropertyExplicitlySet("jobOutput")) { this.jobOutput(model.getJobOutput()); } @@ -397,13 +432,13 @@ public Builder toBuilder() { } /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * Unique identifier that is immutable on creation. + * The OCID of the Semantic Store job. * @return the value **/ public String getId() { @@ -453,13 +488,13 @@ public String getDisplayName() { } /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") private final java.util.Date timeAccepted; /** - * The date and time that the enrichment job was accepted in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was accepted in the format of an RFC3339 datetime string. * @return the value **/ public java.util.Date getTimeAccepted() { @@ -467,13 +502,13 @@ public java.util.Date getTimeAccepted() { } /** - * The date and time that the enrichment job was started in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") private final java.util.Date timeStarted; /** - * The date and time that the enrichment job was started in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was started in the format of an RFC3339 datetime string. * @return the value **/ public java.util.Date getTimeStarted() { @@ -481,13 +516,13 @@ public java.util.Date getTimeStarted() { } /** - * The date and time that the enrichment job was finished in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 datetime string. **/ @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") private final java.util.Date timeFinished; /** - * The date and time that the enrichment job was finished in the format of an RFC3339 datetime string. + * The date and time that the GenerateSqlFromNlJob was finished in the format of an RFC3339 datetime string. * @return the value **/ public java.util.Date getTimeFinished() { @@ -495,13 +530,25 @@ public java.util.Date getTimeFinished() { } /** - * The lifecycleState of GenerateSqlFromNlJob. + * The current state of GenerateSqlFromNlJob. + *

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

      + * - ACCEPTED: Job has been created but not yet started. + * - IN_PROGRESS: Job is currently running. + * - SUCCEEDED: Job completed successfully. The result is available in jobOutput. + * - FAILED: Job failed. See lifecycleDetails for error information. + * * @return the value **/ public LifecycleState getLifecycleState() { @@ -542,6 +589,20 @@ public String getInputNaturalLanguageQuery() { return inputNaturalLanguageQuery; } + /** + * The generative AI modelId used for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + **/ + @com.fasterxml.jackson.annotation.JsonProperty("modelId") + private final String modelId; + + /** + * The generative AI modelId used for Generate SQL. You can use the ListModels API to list the available models. https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/ModelCollection/ListModels + * @return the value + **/ + public String getModelId() { + return modelId; + } + @com.fasterxml.jackson.annotation.JsonProperty("jobOutput") private final JobOutput jobOutput; @@ -628,6 +689,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", inputNaturalLanguageQuery=") .append(String.valueOf(this.inputNaturalLanguageQuery)); + sb.append(", modelId=").append(String.valueOf(this.modelId)); sb.append(", jobOutput=").append(String.valueOf(this.jobOutput)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -657,6 +719,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals( this.inputNaturalLanguageQuery, other.inputNaturalLanguageQuery) + && java.util.Objects.equals(this.modelId, other.modelId) && java.util.Objects.equals(this.jobOutput, other.jobOutput) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -688,6 +751,7 @@ public int hashCode() { + (this.inputNaturalLanguageQuery == null ? 43 : this.inputNaturalLanguageQuery.hashCode()); + result = (result * PRIME) + (this.modelId == null ? 43 : this.modelId.hashCode()); result = (result * PRIME) + (this.jobOutput == null ? 43 : this.jobOutput.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java index 53e1b89cf59..441725f4597 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/model/JobOutput.java @@ -6,6 +6,8 @@ /** * A JobOutput delivers content generated by the GenerateSQLJob to a given location, which corresponds with type-specific characteristics. + * This field is present on GenerateSqlFromNlJob only when lifecycleState is SUCCEEDED. + * It is omitted for all other lifecycle states. * *
      * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java similarity index 50% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java rename to bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java index ce29a9d5e2a..9fc1315834e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/requests/GetGenerateSqlFromNlJobRequest.java @@ -2,47 +2,37 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.generativeaidata.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.generativeaidata.model.*; /** - * Example: Click here to see how to use GetDistributedDatabasePrivateEndpointRequest. + * Example: Click here to see how to use GetGenerateSqlFromNlJobRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabasePrivateEndpointRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetGenerateSqlFromNlJobRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Distributed Database PrivateEndpoint identifier + * The OCID of the semantic store */ - private String distributedDatabasePrivateEndpointId; + private String semanticStoreId; /** - * Distributed Database PrivateEndpoint identifier + * The OCID of the semantic store */ - public String getDistributedDatabasePrivateEndpointId() { - return distributedDatabasePrivateEndpointId; + public String getSemanticStoreId() { + return semanticStoreId; } /** - * 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. - * + * The OCID of the Semantic Store job for a GenerateSqlFromNl job. */ - private String ifNoneMatch; + private String generateSqlFromNlJobId; /** - * 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. - * + * The OCID of the Semantic Store job for a GenerateSqlFromNl job. */ - public String getIfNoneMatch() { - return ifNoneMatch; + public String getGenerateSqlFromNlJobId() { + return generateSqlFromNlJobId; } /** * The client request ID for tracing. @@ -58,49 +48,38 @@ public String getOpcRequestId() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedDatabasePrivateEndpointRequest, java.lang.Void> { + GetGenerateSqlFromNlJobRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Distributed Database PrivateEndpoint identifier + * The OCID of the semantic store */ - private String distributedDatabasePrivateEndpointId = null; + private String semanticStoreId = null; /** - * Distributed Database PrivateEndpoint identifier - * @param distributedDatabasePrivateEndpointId the value to set + * The OCID of the semantic store + * @param semanticStoreId the value to set * @return this builder instance */ - public Builder distributedDatabasePrivateEndpointId( - String distributedDatabasePrivateEndpointId) { - this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; + public Builder semanticStoreId(String semanticStoreId) { + this.semanticStoreId = semanticStoreId; 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. - * + * The OCID of the Semantic Store job for a GenerateSqlFromNl job. */ - private String ifNoneMatch = null; + private String generateSqlFromNlJobId = 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 + * The OCID of the Semantic Store job for a GenerateSqlFromNl job. + * @param generateSqlFromNlJobId the value to set * @return this builder instance */ - public Builder ifNoneMatch(String ifNoneMatch) { - this.ifNoneMatch = ifNoneMatch; + public Builder generateSqlFromNlJobId(String generateSqlFromNlJobId) { + this.generateSqlFromNlJobId = generateSqlFromNlJobId; return this; } @@ -146,9 +125,9 @@ public Builder retryConfiguration( * 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()); + public Builder copy(GetGenerateSqlFromNlJobRequest o) { + semanticStoreId(o.getSemanticStoreId()); + generateSqlFromNlJobId(o.getGenerateSqlFromNlJobId()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -156,38 +135,37 @@ public Builder copy(GetDistributedDatabasePrivateEndpointRequest o) { } /** - * Build the instance of GetDistributedDatabasePrivateEndpointRequest as configured by this builder + * Build the instance of GetGenerateSqlFromNlJobRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of GetDistributedDatabasePrivateEndpointRequest + * @return instance of GetGenerateSqlFromNlJobRequest */ - public GetDistributedDatabasePrivateEndpointRequest build() { - GetDistributedDatabasePrivateEndpointRequest request = buildWithoutInvocationCallback(); + public GetGenerateSqlFromNlJobRequest build() { + GetGenerateSqlFromNlJobRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GetDistributedDatabasePrivateEndpointRequest as configured by this builder + * Build the instance of GetGenerateSqlFromNlJobRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of GetDistributedDatabasePrivateEndpointRequest + * @return instance of GetGenerateSqlFromNlJobRequest */ - public GetDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - GetDistributedDatabasePrivateEndpointRequest request = - new GetDistributedDatabasePrivateEndpointRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.ifNoneMatch = ifNoneMatch; + public GetGenerateSqlFromNlJobRequest buildWithoutInvocationCallback() { + GetGenerateSqlFromNlJobRequest request = new GetGenerateSqlFromNlJobRequest(); + request.semanticStoreId = semanticStoreId; + request.generateSqlFromNlJobId = generateSqlFromNlJobId; request.opcRequestId = opcRequestId; return request; - // new GetDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, ifNoneMatch, opcRequestId); + // new GetGenerateSqlFromNlJobRequest(semanticStoreId, generateSqlFromNlJobId, opcRequestId); } } @@ -197,8 +175,8 @@ public GetDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallba */ public Builder toBuilder() { return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .ifNoneMatch(ifNoneMatch) + .semanticStoreId(semanticStoreId) + .generateSqlFromNlJobId(generateSqlFromNlJobId) .opcRequestId(opcRequestId); } @@ -215,9 +193,8 @@ 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(",semanticStoreId=").append(String.valueOf(this.semanticStoreId)); + sb.append(",generateSqlFromNlJobId=").append(String.valueOf(this.generateSqlFromNlJobId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -228,17 +205,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabasePrivateEndpointRequest)) { + if (!(o instanceof GetGenerateSqlFromNlJobRequest)) { return false; } - GetDistributedDatabasePrivateEndpointRequest other = - (GetDistributedDatabasePrivateEndpointRequest) o; + GetGenerateSqlFromNlJobRequest other = (GetGenerateSqlFromNlJobRequest) o; return super.equals(o) + && java.util.Objects.equals(this.semanticStoreId, other.semanticStoreId) && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) + this.generateSqlFromNlJobId, other.generateSqlFromNlJobId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -248,10 +223,12 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null + + (this.semanticStoreId == null ? 43 : this.semanticStoreId.hashCode()); + result = + (result * PRIME) + + (this.generateSqlFromNlJobId == null ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); + : this.generateSqlFromNlJobId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java index 99fffbf30c6..1cfa5de2759 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/CancelEnrichmentJobResponse.java @@ -8,6 +8,21 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") public class CancelEnrichmentJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -40,20 +55,39 @@ public String getOpcWorkRequestId() { return opcWorkRequestId; } + /** + * The returned EnrichmentJob instance. + */ + private com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob; + + /** + * The returned EnrichmentJob instance. + * @return the value + */ + public com.oracle.bmc.generativeaidata.model.EnrichmentJob getEnrichmentJob() { + return enrichmentJob; + } + @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", + "etag", "opcRequestId", - "opcWorkRequestId" + "opcWorkRequestId", + "enrichmentJob" }) private CancelEnrichmentJobResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, + String etag, String opcRequestId, - String opcWorkRequestId) { + String opcWorkRequestId, + com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob) { super(__httpStatusCode__, headers); + this.etag = etag; this.opcRequestId = opcRequestId; this.opcWorkRequestId = opcWorkRequestId; + this.enrichmentJob = enrichmentJob; } public static class Builder { @@ -71,6 +105,23 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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. @@ -107,6 +158,22 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { return this; } + /** + * The returned EnrichmentJob instance. + */ + private com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob; + + /** + * The returned EnrichmentJob instance. + * @param enrichmentJob the value to set + * @return this builder + */ + public Builder enrichmentJob( + com.oracle.bmc.generativeaidata.model.EnrichmentJob enrichmentJob) { + this.enrichmentJob = enrichmentJob; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * @return this builder instance @@ -114,8 +181,10 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { public Builder copy(CancelEnrichmentJobResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); opcWorkRequestId(o.getOpcWorkRequestId()); + enrichmentJob(o.getEnrichmentJob()); return this; } @@ -126,7 +195,12 @@ public Builder copy(CancelEnrichmentJobResponse o) { */ public CancelEnrichmentJobResponse build() { return new CancelEnrichmentJobResponse( - __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcWorkRequestId, + enrichmentJob); } } @@ -143,8 +217,10 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",enrichmentJob=").append(String.valueOf(enrichmentJob)); sb.append(")"); return sb.toString(); } @@ -160,18 +236,24 @@ public boolean equals(Object o) { CancelEnrichmentJobResponse other = (CancelEnrichmentJobResponse) o; return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.enrichmentJob, other.enrichmentJob); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = + (result * PRIME) + + (this.enrichmentJob == null ? 43 : this.enrichmentJob.hashCode()); return result; } } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java index 0e3e04be501..322d2a49211 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GenerateSqlFromNlResponse.java @@ -41,14 +41,12 @@ public String getOpcRequestId() { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * + * Not used when {@code 200} status is returned */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * + * Not used when {@code 200} status is returned * @return the value */ public String getOpcWorkRequestId() { @@ -142,14 +140,12 @@ public Builder opcRequestId(String opcRequestId) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * + * Not used when {@code 200} status is returned */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * + * Not used when {@code 200} status is returned * @param opcWorkRequestId the value to set * @return this builder */ diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.java new file mode 100644 index 00000000000..938d1a9d773 --- /dev/null +++ b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/responses/GetGenerateSqlFromNlJobResponse.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.generativeaidata.responses; + +import com.oracle.bmc.generativeaidata.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") +public class GetGenerateSqlFromNlJobResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned GenerateSqlFromNlJob instance. + */ + private com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob; + + /** + * The returned GenerateSqlFromNlJob instance. + * @return the value + */ + public com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob getGenerateSqlFromNlJob() { + return generateSqlFromNlJob; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "generateSqlFromNlJob" + }) + private GetGenerateSqlFromNlJobResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.generateSqlFromNlJob = generateSqlFromNlJob; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 GenerateSqlFromNlJob instance. + */ + private com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob; + + /** + * The returned GenerateSqlFromNlJob instance. + * @param generateSqlFromNlJob the value to set + * @return this builder + */ + public Builder generateSqlFromNlJob( + com.oracle.bmc.generativeaidata.model.GenerateSqlFromNlJob generateSqlFromNlJob) { + this.generateSqlFromNlJob = generateSqlFromNlJob; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetGenerateSqlFromNlJobResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + generateSqlFromNlJob(o.getGenerateSqlFromNlJob()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetGenerateSqlFromNlJobResponse build() { + return new GetGenerateSqlFromNlJobResponse( + __httpStatusCode__, headers, opcRequestId, generateSqlFromNlJob); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",generateSqlFromNlJob=").append(String.valueOf(generateSqlFromNlJob)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetGenerateSqlFromNlJobResponse)) { + return false; + } + + GetGenerateSqlFromNlJobResponse other = (GetGenerateSqlFromNlJobResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.generateSqlFromNlJob, other.generateSqlFromNlJob); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.generateSqlFromNlJob == null + ? 43 + : this.generateSqlFromNlJob.hashCode()); + return result; + } +} diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index ffe62e48484..dbedd9445d3 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 9e1fda96733..ffd903b61d7 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 1d5715afdb7..2ffc959ef06 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-goldengate @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 5eede34882d..8e3bacbdb62 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index de31a9610bd..6c8bd4451ee 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index b38769292f7..784a809e8bd 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index ca7207ce199..d52027cbcb5 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-identitydataplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index f6577665512..05720c36608 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-identitydomains @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 2815d60669a..47fca7bd018 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-integration @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 6a59c81fd31..b3e7d3221ec 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java index c14f193e352..f12555cb5d2 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/Iot.java @@ -61,6 +61,19 @@ public interface Iot extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the IoT flow runtime identified by the specified OCID. + * + * @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 ActivateIotFlowRuntime API. + */ + ActivateIotFlowRuntimeResponse activateIotFlowRuntime(ActivateIotFlowRuntimeRequest request); + /** * Moves an IoT domain to 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). @@ -105,6 +118,21 @@ ChangeIotDomainDataRetentionPeriodResponse changeIotDomainDataRetentionPeriod( ChangeIotDomainGroupCompartmentResponse changeIotDomainGroupCompartment( ChangeIotDomainGroupCompartmentRequest request); + /** + * Moves an IoT flow runtime to 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 ChangeIotFlowRuntimeCompartment API. + */ + ChangeIotFlowRuntimeCompartmentResponse changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request); + /** * Updates an IoT domain Data Access. * @@ -213,6 +241,33 @@ CreateDigitalTwinRelationshipResponse createDigitalTwinRelationship( */ CreateIotDomainGroupResponse createIotDomainGroup(CreateIotDomainGroupRequest request); + /** + * Creates an IoT flow runtime. + * + * @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 CreateIotFlowRuntime API. + */ + CreateIotFlowRuntimeResponse createIotFlowRuntime(CreateIotFlowRuntimeRequest request); + + /** + * Deactivates the IoT flow runtime identified by the specified OCID. + * + * @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 DeactivateIotFlowRuntime API. + */ + DeactivateIotFlowRuntimeResponse deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request); + /** * Deletes the digital twin adapter identified by the specified OCID. * @param request The request object containing the details to send @@ -288,6 +343,18 @@ DeleteDigitalTwinRelationshipResponse deleteDigitalTwinRelationship( */ DeleteIotDomainGroupResponse deleteIotDomainGroup(DeleteIotDomainGroupRequest request); + /** + * Deletes the IoT flow runtime identified by the specified OCID. + * @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 DeleteIotFlowRuntime API. + */ + DeleteIotFlowRuntimeResponse deleteIotFlowRuntime(DeleteIotFlowRuntimeRequest request); + /** * Retrieves the digital twin adapter identified by the specified OCID. * @param request The request object containing the details to send @@ -388,6 +455,30 @@ GetDigitalTwinRelationshipResponse getDigitalTwinRelationship( */ GetIotDomainGroupResponse getIotDomainGroup(GetIotDomainGroupRequest request); + /** + * Gets the IoT flow runtime identified by the specified OCID. + * @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 GetIotFlowRuntime API. + */ + GetIotFlowRuntimeResponse getIotFlowRuntime(GetIotFlowRuntimeRequest request); + + /** + * Gets the opaque flows document for the IoT flow runtime identified by the specified OCID. + * @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 GetIotFlowRuntimeFlows API. + */ + GetIotFlowRuntimeFlowsResponse getIotFlowRuntimeFlows(GetIotFlowRuntimeFlowsRequest request); + /** * Retrieves the status of the work request with the given ID. * @param request The request object containing the details to send @@ -493,6 +584,19 @@ ListDigitalTwinRelationshipsResponse listDigitalTwinRelationships( */ ListIotDomainsResponse listIotDomains(ListIotDomainsRequest request); + /** + * Lists IoT flow runtimes in 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 ListIotFlowRuntimes API. + */ + ListIotFlowRuntimesResponse listIotFlowRuntimes(ListIotFlowRuntimesRequest request); + /** * Lists errors associated with the specified work request. * @@ -607,6 +711,32 @@ UpdateDigitalTwinRelationshipResponse updateDigitalTwinRelationship( */ UpdateIotDomainGroupResponse updateIotDomainGroup(UpdateIotDomainGroupRequest request); + /** + * Updates the IoT flow runtime identified by the specified OCID. + * @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 UpdateIotFlowRuntime API. + */ + UpdateIotFlowRuntimeResponse updateIotFlowRuntime(UpdateIotFlowRuntimeRequest request); + + /** + * Replaces the complete flows document for the IoT flow runtime identified by the specified OCID. + * + * @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 UpdateIotFlowRuntimeFlows API. + */ + UpdateIotFlowRuntimeFlowsResponse updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java index a8f6446c032..54ebb82a070 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsync.java @@ -60,6 +60,23 @@ public interface IotAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Activates the IoT flow runtime identified by the specified OCID. + * + * + * @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 activateIotFlowRuntime( + ActivateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse> + handler); + /** * Moves an IoT domain to 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). @@ -117,6 +134,26 @@ java.util.concurrent.Future changeIotDomainC ChangeIotDomainGroupCompartmentResponse> handler); + /** + * Moves an IoT flow runtime to 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 + changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse> + handler); + /** * Updates an IoT domain Data Access. * @@ -256,6 +293,40 @@ java.util.concurrent.Future createIotDomainGroup( CreateIotDomainGroupRequest, CreateIotDomainGroupResponse> handler); + /** + * Creates an IoT flow runtime. + * + * + * @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 createIotFlowRuntime( + CreateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse> + handler); + + /** + * Deactivates the IoT flow runtime identified by the specified OCID. + * + * + * @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 deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse> + handler); + /** * Deletes the digital twin adapter identified by the specified OCID. * @@ -353,6 +424,22 @@ java.util.concurrent.Future deleteIotDomainGroup( DeleteIotDomainGroupRequest, DeleteIotDomainGroupResponse> handler); + /** + * Deletes the IoT flow runtime identified by the specified OCID. + * + * @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 deleteIotFlowRuntime( + DeleteIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse> + handler); + /** * Retrieves the digital twin adapter identified by the specified OCID. * @@ -484,6 +571,38 @@ java.util.concurrent.Future getIotDomainGroup( GetIotDomainGroupRequest, GetIotDomainGroupResponse> handler); + /** + * Gets the IoT flow runtime identified by the specified OCID. + * + * @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 getIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse> + handler); + + /** + * Gets the opaque flows document for the IoT flow runtime identified by the specified OCID. + * + * @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 getIotFlowRuntimeFlows( + GetIotFlowRuntimeFlowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse> + handler); + /** * Retrieves the status of the work request with the given ID. * @@ -617,6 +736,23 @@ java.util.concurrent.Future listIotDomains( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists IoT flow runtimes in 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 listIotFlowRuntimes( + ListIotFlowRuntimesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse> + handler); + /** * Lists errors associated with the specified work request. * @@ -763,4 +899,37 @@ java.util.concurrent.Future updateIotDomainGroup( com.oracle.bmc.responses.AsyncHandler< UpdateIotDomainGroupRequest, UpdateIotDomainGroupResponse> handler); + + /** + * Updates the IoT flow runtime identified by the specified OCID. + * + * @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 updateIotFlowRuntime( + UpdateIotFlowRuntimeRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse> + handler); + + /** + * Replaces the complete flows document for the IoT flow runtime identified by the specified OCID. + * + * + * @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 updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeFlowsRequest, UpdateIotFlowRuntimeFlowsResponse> + handler); } diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java index 1e6827ce805..a3c2cb9b538 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotAsyncClient.java @@ -469,6 +469,54 @@ public void close() { client.close(); } + @Override + public java.util.concurrent.Future activateIotFlowRuntime( + ActivateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse> + handler) { + LOG.trace("Called async activateIotFlowRuntime"); + final ActivateIotFlowRuntimeRequest interceptedRequest = + ActivateIotFlowRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "ActivateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ActivateIotFlowRuntime"); + final java.util.function.Function + transformer = + ActivateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ActivateIotFlowRuntimeRequest, ActivateIotFlowRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeIotDomainCompartment( @@ -644,6 +692,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse> + handler) { + LOG.trace("Called async changeIotFlowRuntimeCompartment"); + final ChangeIotFlowRuntimeCompartmentRequest interceptedRequest = + ChangeIotFlowRuntimeCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeIotFlowRuntimeCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "ChangeIotFlowRuntimeCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ChangeIotFlowRuntimeCompartment"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeIotFlowRuntimeCompartmentResponse> + transformer = + ChangeIotFlowRuntimeCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getChangeIotFlowRuntimeCompartmentDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeIotFlowRuntimeCompartmentRequest, + ChangeIotFlowRuntimeCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future configureIotDomainDataAccess( @@ -1084,6 +1191,108 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createIotFlowRuntime( + CreateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse> + handler) { + LOG.trace("Called async createIotFlowRuntime"); + final CreateIotFlowRuntimeRequest interceptedRequest = + CreateIotFlowRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "CreateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/CreateIotFlowRuntime"); + final java.util.function.Function + transformer = + CreateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateIotFlowRuntimeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateIotFlowRuntimeRequest, CreateIotFlowRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse> + handler) { + LOG.trace("Called async deactivateIotFlowRuntime"); + final DeactivateIotFlowRuntimeRequest interceptedRequest = + DeactivateIotFlowRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeactivateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "DeactivateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeactivateIotFlowRuntime"); + final java.util.function.Function< + javax.ws.rs.core.Response, DeactivateIotFlowRuntimeResponse> + transformer = + DeactivateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeactivateIotFlowRuntimeRequest, DeactivateIotFlowRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteDigitalTwinAdapter( DeleteDigitalTwinAdapterRequest request, @@ -1372,6 +1581,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteIotFlowRuntime( + DeleteIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse> + handler) { + LOG.trace("Called async deleteIotFlowRuntime"); + final DeleteIotFlowRuntimeRequest interceptedRequest = + DeleteIotFlowRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "DeleteIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeleteIotFlowRuntime"); + final java.util.function.Function + transformer = + DeleteIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteIotFlowRuntimeRequest, DeleteIotFlowRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getDigitalTwinAdapter( GetDigitalTwinAdapterRequest request, @@ -1753,6 +2009,99 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getIotFlowRuntime( + GetIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse> + handler) { + LOG.trace("Called async getIotFlowRuntime"); + final GetIotFlowRuntimeRequest interceptedRequest = + GetIotFlowRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "GetIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntime"); + final java.util.function.Function + transformer = + GetIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getIotFlowRuntimeFlows( + GetIotFlowRuntimeFlowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse> + handler) { + LOG.trace("Called async getIotFlowRuntimeFlows"); + final GetIotFlowRuntimeFlowsRequest interceptedRequest = + GetIotFlowRuntimeFlowsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetIotFlowRuntimeFlowsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "GetIotFlowRuntimeFlows", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntimeFlows"); + final java.util.function.Function + transformer = + GetIotFlowRuntimeFlowsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetIotFlowRuntimeFlowsRequest, GetIotFlowRuntimeFlowsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -2136,6 +2485,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listIotFlowRuntimes( + ListIotFlowRuntimesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse> + handler) { + LOG.trace("Called async listIotFlowRuntimes"); + final ListIotFlowRuntimesRequest interceptedRequest = + ListIotFlowRuntimesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListIotFlowRuntimesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "ListIotFlowRuntimes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ListIotFlowRuntimes"); + final java.util.function.Function + transformer = + ListIotFlowRuntimesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, @@ -2593,4 +2989,110 @@ protected void beforeRetryAction() {} return futureSupplier.apply(handlerToUse); } } + + @Override + public java.util.concurrent.Future updateIotFlowRuntime( + UpdateIotFlowRuntimeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse> + handler) { + LOG.trace("Called async updateIotFlowRuntime"); + final UpdateIotFlowRuntimeRequest interceptedRequest = + UpdateIotFlowRuntimeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "UpdateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntime"); + final java.util.function.Function + transformer = + UpdateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateIotFlowRuntimeDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateIotFlowRuntimeRequest, UpdateIotFlowRuntimeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeFlowsRequest, UpdateIotFlowRuntimeFlowsResponse> + handler) { + LOG.trace("Called async updateIotFlowRuntimeFlows"); + final UpdateIotFlowRuntimeFlowsRequest interceptedRequest = + UpdateIotFlowRuntimeFlowsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateIotFlowRuntimeFlowsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "UpdateIotFlowRuntimeFlows", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntimeFlows"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateIotFlowRuntimeFlowsResponse> + transformer = + UpdateIotFlowRuntimeFlowsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeFlowsRequest, UpdateIotFlowRuntimeFlowsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateIotFlowRuntimeFlowsRequest, + UpdateIotFlowRuntimeFlowsResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getFlowsDocument(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateIotFlowRuntimeFlowsRequest, UpdateIotFlowRuntimeFlowsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } } diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java index 0238d9197da..8a202f19389 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotClient.java @@ -557,6 +557,46 @@ public void close() { client.close(); } + @Override + public ActivateIotFlowRuntimeResponse activateIotFlowRuntime( + ActivateIotFlowRuntimeRequest request) { + LOG.trace("Called activateIotFlowRuntime"); + final ActivateIotFlowRuntimeRequest interceptedRequest = + ActivateIotFlowRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "ActivateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ActivateIotFlowRuntime"); + java.util.function.Function + transformer = + ActivateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeIotDomainCompartmentResponse changeIotDomainCompartment( ChangeIotDomainCompartmentRequest request) { @@ -691,6 +731,51 @@ public ChangeIotDomainGroupCompartmentResponse changeIotDomainGroupCompartment( }); } + @Override + public ChangeIotFlowRuntimeCompartmentResponse changeIotFlowRuntimeCompartment( + ChangeIotFlowRuntimeCompartmentRequest request) { + LOG.trace("Called changeIotFlowRuntimeCompartment"); + final ChangeIotFlowRuntimeCompartmentRequest interceptedRequest = + ChangeIotFlowRuntimeCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeIotFlowRuntimeCompartmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "ChangeIotFlowRuntimeCompartment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ChangeIotFlowRuntimeCompartment"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeIotFlowRuntimeCompartmentResponse> + transformer = + ChangeIotFlowRuntimeCompartmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getChangeIotFlowRuntimeCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ConfigureIotDomainDataAccessResponse configureIotDomainDataAccess( ConfigureIotDomainDataAccessRequest request) { @@ -1039,6 +1124,88 @@ public CreateIotDomainGroupResponse createIotDomainGroup(CreateIotDomainGroupReq }); } + @Override + public CreateIotFlowRuntimeResponse createIotFlowRuntime(CreateIotFlowRuntimeRequest request) { + LOG.trace("Called createIotFlowRuntime"); + final CreateIotFlowRuntimeRequest interceptedRequest = + CreateIotFlowRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "CreateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/CreateIotFlowRuntime"); + java.util.function.Function + transformer = + CreateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateIotFlowRuntimeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeactivateIotFlowRuntimeResponse deactivateIotFlowRuntime( + DeactivateIotFlowRuntimeRequest request) { + LOG.trace("Called deactivateIotFlowRuntime"); + final DeactivateIotFlowRuntimeRequest interceptedRequest = + DeactivateIotFlowRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeactivateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "DeactivateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeactivateIotFlowRuntime"); + java.util.function.Function + transformer = + DeactivateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteDigitalTwinAdapterResponse deleteDigitalTwinAdapter( DeleteDigitalTwinAdapterRequest request) { @@ -1272,6 +1439,44 @@ public DeleteIotDomainGroupResponse deleteIotDomainGroup(DeleteIotDomainGroupReq }); } + @Override + public DeleteIotFlowRuntimeResponse deleteIotFlowRuntime(DeleteIotFlowRuntimeRequest request) { + LOG.trace("Called deleteIotFlowRuntime"); + final DeleteIotFlowRuntimeRequest interceptedRequest = + DeleteIotFlowRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "DeleteIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/DeleteIotFlowRuntime"); + java.util.function.Function + transformer = + DeleteIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetDigitalTwinAdapterResponse getDigitalTwinAdapter( GetDigitalTwinAdapterRequest request) { @@ -1572,6 +1777,81 @@ public GetIotDomainGroupResponse getIotDomainGroup(GetIotDomainGroupRequest requ }); } + @Override + public GetIotFlowRuntimeResponse getIotFlowRuntime(GetIotFlowRuntimeRequest request) { + LOG.trace("Called getIotFlowRuntime"); + final GetIotFlowRuntimeRequest interceptedRequest = + GetIotFlowRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "GetIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntime"); + java.util.function.Function + transformer = + GetIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetIotFlowRuntimeFlowsResponse getIotFlowRuntimeFlows( + GetIotFlowRuntimeFlowsRequest request) { + LOG.trace("Called getIotFlowRuntimeFlows"); + final GetIotFlowRuntimeFlowsRequest interceptedRequest = + GetIotFlowRuntimeFlowsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetIotFlowRuntimeFlowsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "GetIotFlowRuntimeFlows", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/GetIotFlowRuntimeFlows"); + java.util.function.Function + transformer = + GetIotFlowRuntimeFlowsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { LOG.trace("Called getWorkRequest"); @@ -1873,6 +2153,43 @@ public ListIotDomainsResponse listIotDomains(ListIotDomainsRequest request) { }); } + @Override + public ListIotFlowRuntimesResponse listIotFlowRuntimes(ListIotFlowRuntimesRequest request) { + LOG.trace("Called listIotFlowRuntimes"); + final ListIotFlowRuntimesRequest interceptedRequest = + ListIotFlowRuntimesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListIotFlowRuntimesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "ListIotFlowRuntimes", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/ListIotFlowRuntimes"); + java.util.function.Function + transformer = + ListIotFlowRuntimesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListWorkRequestErrorsResponse listWorkRequestErrors( ListWorkRequestErrorsRequest request) { @@ -2238,6 +2555,89 @@ public UpdateIotDomainGroupResponse updateIotDomainGroup(UpdateIotDomainGroupReq }); } + @Override + public UpdateIotFlowRuntimeResponse updateIotFlowRuntime(UpdateIotFlowRuntimeRequest request) { + LOG.trace("Called updateIotFlowRuntime"); + final UpdateIotFlowRuntimeRequest interceptedRequest = + UpdateIotFlowRuntimeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateIotFlowRuntimeConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "UpdateIotFlowRuntime", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntime"); + java.util.function.Function + transformer = + UpdateIotFlowRuntimeConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateIotFlowRuntimeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateIotFlowRuntimeFlowsResponse updateIotFlowRuntimeFlows( + UpdateIotFlowRuntimeFlowsRequest request) { + LOG.trace("Called updateIotFlowRuntimeFlows"); + final UpdateIotFlowRuntimeFlowsRequest interceptedRequest = + UpdateIotFlowRuntimeFlowsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateIotFlowRuntimeFlowsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Iot", + "UpdateIotFlowRuntimeFlows", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/iot/20250531/IotFlowRuntime/UpdateIotFlowRuntimeFlows"); + java.util.function.Function + transformer = + UpdateIotFlowRuntimeFlowsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getFlowsDocument(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public IotWaiters getWaiters() { return waiters; diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java index 52e89987ef3..a51ce3942c1 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotPaginators.java @@ -723,6 +723,119 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listIotFlowRuntimes 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 listIotFlowRuntimesResponseIterator( + final ListIotFlowRuntimesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListIotFlowRuntimesRequest.Builder, ListIotFlowRuntimesRequest, + ListIotFlowRuntimesResponse>( + new java.util.function.Supplier() { + @Override + public ListIotFlowRuntimesRequest.Builder get() { + return ListIotFlowRuntimesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListIotFlowRuntimesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.Builder>, + ListIotFlowRuntimesRequest>() { + @Override + public ListIotFlowRuntimesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.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< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse>() { + @Override + public ListIotFlowRuntimesResponse apply(ListIotFlowRuntimesRequest request) { + return client.listIotFlowRuntimes(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.iot.model.IotFlowRuntimeSummary} objects + * contained in responses from the listIotFlowRuntimes 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.iot.model.IotFlowRuntimeSummary} objects + * contained in responses received from the service. + */ + public Iterable + listIotFlowRuntimesRecordIterator(final ListIotFlowRuntimesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListIotFlowRuntimesRequest.Builder, ListIotFlowRuntimesRequest, + ListIotFlowRuntimesResponse, com.oracle.bmc.iot.model.IotFlowRuntimeSummary>( + new java.util.function.Supplier() { + @Override + public ListIotFlowRuntimesRequest.Builder get() { + return ListIotFlowRuntimesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListIotFlowRuntimesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.Builder>, + ListIotFlowRuntimesRequest>() { + @Override + public ListIotFlowRuntimesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListIotFlowRuntimesRequest.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< + ListIotFlowRuntimesRequest, ListIotFlowRuntimesResponse>() { + @Override + public ListIotFlowRuntimesResponse apply(ListIotFlowRuntimesRequest request) { + return client.listIotFlowRuntimes(request); + } + }, + new java.util.function.Function< + ListIotFlowRuntimesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListIotFlowRuntimesResponse response) { + return response.getIotFlowRuntimeCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java index 5dbd1cca722..0c9e2a776bd 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/IotWaiters.java @@ -642,6 +642,109 @@ public boolean test(GetIotDomainGroupResponse 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 + forIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.iot.model.IotFlowRuntime.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 forIotFlowRuntime( + 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 + forIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.iot.model.IotFlowRuntime.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 forIotFlowRuntime( + 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 + forIotFlowRuntime( + GetIotFlowRuntimeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.iot.model.IotFlowRuntime.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 forIotFlowRuntime( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for IotFlowRuntime. + private com.oracle.bmc.waiter.Waiter + forIotFlowRuntime( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetIotFlowRuntimeRequest request, + final com.oracle.bmc.iot.model.IotFlowRuntime.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< + GetIotFlowRuntimeRequest, GetIotFlowRuntimeResponse>() { + @Override + public GetIotFlowRuntimeResponse apply( + GetIotFlowRuntimeRequest request) { + return client.getIotFlowRuntime(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetIotFlowRuntimeResponse response) { + return targetStatesSet.contains( + response.getIotFlowRuntime().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState.Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ActivateIotFlowRuntimeConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ActivateIotFlowRuntimeConverter.java new file mode 100644 index 00000000000..4abec64bd34 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ActivateIotFlowRuntimeConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ActivateIotFlowRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActivateIotFlowRuntimeConverter.class); + + public static com.oracle.bmc.iot.requests.ActivateIotFlowRuntimeRequest interceptRequest( + com.oracle.bmc.iot.requests.ActivateIotFlowRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.ActivateIotFlowRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())) + .path("actions") + .path("activate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse>() { + @Override + public com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse.Builder + builder = + com.oracle.bmc.iot.responses + .ActivateIotFlowRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.ActivateIotFlowRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ChangeIotFlowRuntimeCompartmentConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ChangeIotFlowRuntimeCompartmentConverter.java new file mode 100644 index 00000000000..8170f7ed5a2 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ChangeIotFlowRuntimeCompartmentConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ChangeIotFlowRuntimeCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ChangeIotFlowRuntimeCompartmentConverter.class); + + public static com.oracle.bmc.iot.requests.ChangeIotFlowRuntimeCompartmentRequest + interceptRequest( + com.oracle.bmc.iot.requests.ChangeIotFlowRuntimeCompartmentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.ChangeIotFlowRuntimeCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Validate.notNull( + request.getChangeIotFlowRuntimeCompartmentDetails(), + "changeIotFlowRuntimeCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ChangeIotFlowRuntimeCompartmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ChangeIotFlowRuntimeCompartmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ChangeIotFlowRuntimeCompartmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses + .ChangeIotFlowRuntimeCompartmentResponse>() { + @Override + public com.oracle.bmc.iot.responses + .ChangeIotFlowRuntimeCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.ChangeIotFlowRuntimeCompartmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.ChangeIotFlowRuntimeCompartmentResponse + .Builder + builder = + com.oracle.bmc.iot.responses + .ChangeIotFlowRuntimeCompartmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.ChangeIotFlowRuntimeCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/CreateIotFlowRuntimeConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/CreateIotFlowRuntimeConverter.java new file mode 100644 index 00000000000..424d561c5c5 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/CreateIotFlowRuntimeConverter.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.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class CreateIotFlowRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateIotFlowRuntimeConverter.class); + + public static com.oracle.bmc.iot.requests.CreateIotFlowRuntimeRequest interceptRequest( + com.oracle.bmc.iot.requests.CreateIotFlowRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.CreateIotFlowRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateIotFlowRuntimeDetails(), + "createIotFlowRuntimeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20250531").path("iotFlowRuntimes"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse>() { + @Override + public com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.iot.model.IotFlowRuntime>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.iot.model.IotFlowRuntime.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.iot.model.IotFlowRuntime.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.iot.model.IotFlowRuntime> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse.Builder + builder = + com.oracle.bmc.iot.responses + .CreateIotFlowRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.iotFlowRuntime(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> contentLocationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "content-location"); + if (contentLocationHeader.isPresent()) { + builder.contentLocation( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "content-location", + contentLocationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.CreateIotFlowRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeactivateIotFlowRuntimeConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeactivateIotFlowRuntimeConverter.java new file mode 100644 index 00000000000..e27cbefd1f6 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeactivateIotFlowRuntimeConverter.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeactivateIotFlowRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeactivateIotFlowRuntimeConverter.class); + + public static com.oracle.bmc.iot.requests.DeactivateIotFlowRuntimeRequest interceptRequest( + com.oracle.bmc.iot.requests.DeactivateIotFlowRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.DeactivateIotFlowRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())) + .path("actions") + .path("deactivate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse>() { + @Override + public com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse + .Builder + builder = + com.oracle.bmc.iot.responses + .DeactivateIotFlowRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.DeactivateIotFlowRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeleteIotFlowRuntimeConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeleteIotFlowRuntimeConverter.java new file mode 100644 index 00000000000..d18a7f26c1b --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/DeleteIotFlowRuntimeConverter.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeleteIotFlowRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteIotFlowRuntimeConverter.class); + + public static com.oracle.bmc.iot.requests.DeleteIotFlowRuntimeRequest interceptRequest( + com.oracle.bmc.iot.requests.DeleteIotFlowRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.DeleteIotFlowRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse>() { + @Override + public com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse.Builder + builder = + com.oracle.bmc.iot.responses + .DeleteIotFlowRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.DeleteIotFlowRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeConverter.java new file mode 100644 index 00000000000..5dfecaa0d78 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetIotFlowRuntimeConverter.class); + + public static com.oracle.bmc.iot.requests.GetIotFlowRuntimeRequest interceptRequest( + com.oracle.bmc.iot.requests.GetIotFlowRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.GetIotFlowRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse>() { + @Override + public com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.iot.model.IotFlowRuntime>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.iot.model.IotFlowRuntime.class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.iot.model.IotFlowRuntime.class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.iot.model.IotFlowRuntime> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse.Builder + builder = + com.oracle.bmc.iot.responses + .GetIotFlowRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.iotFlowRuntime(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.GetIotFlowRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeFlowsConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeFlowsConverter.java new file mode 100644 index 00000000000..9da63210546 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/GetIotFlowRuntimeFlowsConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeFlowsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetIotFlowRuntimeFlowsConverter.class); + + public static com.oracle.bmc.iot.requests.GetIotFlowRuntimeFlowsRequest interceptRequest( + com.oracle.bmc.iot.requests.GetIotFlowRuntimeFlowsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.GetIotFlowRuntimeFlowsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())) + .path("flows"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse>() { + @Override + public com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.Map>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.Map>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.Map>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.Map> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse.Builder + builder = + com.oracle.bmc.iot.responses + .GetIotFlowRuntimeFlowsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.map(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.GetIotFlowRuntimeFlowsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListIotFlowRuntimesConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListIotFlowRuntimesConverter.java new file mode 100644 index 00000000000..99a27597161 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/ListIotFlowRuntimesConverter.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ListIotFlowRuntimesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListIotFlowRuntimesConverter.class); + + public static com.oracle.bmc.iot.requests.ListIotFlowRuntimesRequest interceptRequest( + com.oracle.bmc.iot.requests.ListIotFlowRuntimesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.ListIotFlowRuntimesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20250531").path("iotFlowRuntimes"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getId() != null) { + target = + target.queryParam( + "id", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getId())); + } + + if (request.getIotDomainId() != null) { + target = + target.queryParam( + "iotDomainId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIotDomainId())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse>() { + @Override + public com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.iot.model + .IotFlowRuntimeCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.iot.model + .IotFlowRuntimeCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.iot.model + .IotFlowRuntimeCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.iot.model.IotFlowRuntimeCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse.Builder + builder = + com.oracle.bmc.iot.responses + .ListIotFlowRuntimesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.iotFlowRuntimeCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcPrevPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-prev-page"); + if (opcPrevPageHeader.isPresent()) { + builder.opcPrevPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-prev-page", + opcPrevPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.ListIotFlowRuntimesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeConverter.java new file mode 100644 index 00000000000..36c1710b2e6 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeConverter.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.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateIotFlowRuntimeConverter.class); + + public static com.oracle.bmc.iot.requests.UpdateIotFlowRuntimeRequest interceptRequest( + com.oracle.bmc.iot.requests.UpdateIotFlowRuntimeRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.UpdateIotFlowRuntimeRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Validate.notNull( + request.getUpdateIotFlowRuntimeDetails(), + "updateIotFlowRuntimeDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse>() { + @Override + public com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse.Builder + builder = + com.oracle.bmc.iot.responses + .UpdateIotFlowRuntimeResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeFlowsConverter.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeFlowsConverter.java new file mode 100644 index 00000000000..672c991fccf --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/internal/http/UpdateIotFlowRuntimeFlowsConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.iot.model.*; +import com.oracle.bmc.iot.requests.*; +import com.oracle.bmc.iot.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeFlowsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateIotFlowRuntimeFlowsConverter.class); + + public static com.oracle.bmc.iot.requests.UpdateIotFlowRuntimeFlowsRequest interceptRequest( + com.oracle.bmc.iot.requests.UpdateIotFlowRuntimeFlowsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.iot.requests.UpdateIotFlowRuntimeFlowsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getIotFlowRuntimeId(), "iotFlowRuntimeId must not be blank"); + Validate.notNull(request.getFlowsDocument(), "flowsDocument is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20250531") + .path("iotFlowRuntimes") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getIotFlowRuntimeId())) + .path("flows"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse>() { + @Override + public com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.Map>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.Map>() {}, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.Map>() {}); + } + + com.oracle.bmc.http.internal.WithHeaders< + java.util.Map> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse + .Builder + builder = + com.oracle.bmc.iot.responses + .UpdateIotFlowRuntimeFlowsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.map(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.iot.responses.UpdateIotFlowRuntimeFlowsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.java similarity index 75% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.java index 121635d79e5..eaf00ccc791 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/ChangeIotFlowRuntimeCompartmentDetails.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.iot.model; /** - * The configuration details for moving the resource for private endpoint to other compartment. - * + * Details for moving an IoT flow runtime to a different compartment. *
      * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDatabasePrivateEndpointCompartmentDetails.Builder.class + builder = ChangeIotFlowRuntimeCompartmentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedDatabasePrivateEndpointCompartmentDetails +public final class ChangeIotFlowRuntimeCompartmentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedDatabasePrivateEndpointCompartmentDetails(String compartmentId) { + public ChangeIotFlowRuntimeCompartmentDetails(String compartmentId) { super(); this.compartmentId = compartmentId; } @@ -32,15 +31,13 @@ public ChangeDistributedDatabasePrivateEndpointCompartmentDetails(String compart @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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. **/ @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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. * @param compartmentId the value to set * @return this builder **/ @@ -53,10 +50,9 @@ public Builder compartmentId(String compartmentId) { @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 ChangeIotFlowRuntimeCompartmentDetails build() { + ChangeIotFlowRuntimeCompartmentDetails model = + new ChangeIotFlowRuntimeCompartmentDetails(this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -64,7 +60,7 @@ public ChangeDistributedDatabasePrivateEndpointCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDatabasePrivateEndpointCompartmentDetails model) { + public Builder copy(ChangeIotFlowRuntimeCompartmentDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -84,15 +80,13 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. **/ @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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. * @return the value **/ public String getCompartmentId() { @@ -111,7 +105,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDatabasePrivateEndpointCompartmentDetails("); + sb.append("ChangeIotFlowRuntimeCompartmentDetails("); sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); @@ -123,12 +117,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentDetails)) { + if (!(o instanceof ChangeIotFlowRuntimeCompartmentDetails)) { return false; } - ChangeDistributedDatabasePrivateEndpointCompartmentDetails other = - (ChangeDistributedDatabasePrivateEndpointCompartmentDetails) o; + ChangeIotFlowRuntimeCompartmentDetails other = (ChangeIotFlowRuntimeCompartmentDetails) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java index aa6f05dbb81..1c6f2b0ec77 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateDigitalTwinInstanceDetails.java @@ -83,13 +83,13 @@ public Builder iotDomainId(String iotDomainId) { return this; } /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * @param connectivityType the value to set * @return this builder **/ @@ -378,13 +378,13 @@ public String getIotDomainId() { } /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private final DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * @return the value **/ public DigitalTwinInstanceConnectivityType getConnectivityType() { diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java new file mode 100644 index 00000000000..95d8f059174 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/CreateIotFlowRuntimeDetails.java @@ -0,0 +1,517 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Details for creating an IoT flow runtime in an IoT domain. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateIotFlowRuntimeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateIotFlowRuntimeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "iotDomainId", + "compartmentId", + "scale", + "networkConfig", + "logConfig", + "displayName", + "description", + "freeformTags", + "definedTags" + }) + public CreateIotFlowRuntimeDetails( + String iotDomainId, + String compartmentId, + Scale scale, + NetworkConfigDetails networkConfig, + LogConfigDetails logConfig, + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.iotDomainId = iotDomainId; + this.compartmentId = compartmentId; + this.scale = scale; + this.networkConfig = networkConfig; + this.logConfig = logConfig; + this.displayName = displayName; + this.description = description; + 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 IoT domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + * @param iotDomainId the value to set + * @return this builder + **/ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + this.__explicitlySet__.add("iotDomainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + **/ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfigDetails networkConfig; + + public Builder networkConfig(NetworkConfigDetails networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private LogConfigDetails logConfig; + + public Builder logConfig(LogConfigDetails logConfig) { + this.logConfig = logConfig; + this.__explicitlySet__.add("logConfig"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + 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 CreateIotFlowRuntimeDetails build() { + CreateIotFlowRuntimeDetails model = + new CreateIotFlowRuntimeDetails( + this.iotDomainId, + this.compartmentId, + this.scale, + this.networkConfig, + this.logConfig, + this.displayName, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateIotFlowRuntimeDetails model) { + if (model.wasPropertyExplicitlySet("iotDomainId")) { + this.iotDomainId(model.getIotDomainId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } + if (model.wasPropertyExplicitlySet("logConfig")) { + this.logConfig(model.getLogConfig()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private final String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + * @return the value + **/ + public String getIotDomainId() { + return iotDomainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + **/ + @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 corresponding to the resource. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + public enum Scale { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + map.put(v.getValue(), v); + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Scale: " + key); + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + **/ + public Scale getScale() { + return scale; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfigDetails networkConfig; + + public NetworkConfigDetails getNetworkConfig() { + return networkConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private final LogConfigDetails logConfig; + + public LogConfigDetails getLogConfig() { + return logConfig; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * 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("CreateIotFlowRuntimeDetails("); + sb.append("super=").append(super.toString()); + sb.append("iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); + sb.append(", logConfig=").append(String.valueOf(this.logConfig)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateIotFlowRuntimeDetails)) { + return false; + } + + CreateIotFlowRuntimeDetails other = (CreateIotFlowRuntimeDetails) o; + return java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) + && java.util.Objects.equals(this.logConfig, other.logConfig) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); + result = (result * PRIME) + (this.logConfig == null ? 43 : this.logConfig.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.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-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java index e8d2815f194..b09bfe96606 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterEnvelopeMapping.java @@ -81,12 +81,14 @@ public Builder target(String target) { } /** * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("contentRoot") private String contentRoot; /** * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * * @param contentRoot the value to set * @return this builder **/ @@ -177,12 +179,14 @@ public String getTarget() { /** * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("contentRoot") private final String contentRoot; /** * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * * @return the value **/ public String getContentRoot() { diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java index 83d1ac3067f..1cbbfae71c3 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinAdapterInboundRoute.java @@ -29,17 +29,23 @@ public final class DigitalTwinAdapterInboundRoute @java.beans.ConstructorProperties({ "condition", "referencePayload", + "target", + "contentRoot", "payloadMapping", "description" }) public DigitalTwinAdapterInboundRoute( String condition, DigitalTwinAdapterPayload referencePayload, + String target, + String contentRoot, java.util.Map payloadMapping, String description) { super(); this.condition = condition; this.referencePayload = referencePayload; + this.target = target; + this.contentRoot = contentRoot; this.payloadMapping = payloadMapping; this.description = description; } @@ -77,6 +83,42 @@ public Builder referencePayload(DigitalTwinAdapterPayload referencePayload) { this.__explicitlySet__.add("referencePayload"); return this; } + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private String target; + + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + * @param target the value to set + * @return this builder + **/ + public Builder target(String target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentRoot") + private String contentRoot; + + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * + * @param contentRoot the value to set + * @return this builder + **/ + public Builder contentRoot(String contentRoot) { + this.contentRoot = contentRoot; + this.__explicitlySet__.add("contentRoot"); + return this; + } /** * A set of key-value JQ expressions used to transform the incoming payload into a shape * compatible with the digital twin model's context or schema. @@ -170,6 +212,8 @@ public DigitalTwinAdapterInboundRoute build() { new DigitalTwinAdapterInboundRoute( this.condition, this.referencePayload, + this.target, + this.contentRoot, this.payloadMapping, this.description); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -186,6 +230,12 @@ public Builder copy(DigitalTwinAdapterInboundRoute model) { if (model.wasPropertyExplicitlySet("referencePayload")) { this.referencePayload(model.getReferencePayload()); } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + if (model.wasPropertyExplicitlySet("contentRoot")) { + this.contentRoot(model.getContentRoot()); + } if (model.wasPropertyExplicitlySet("payloadMapping")) { this.payloadMapping(model.getPayloadMapping()); } @@ -234,6 +284,38 @@ public DigitalTwinAdapterPayload getReferencePayload() { return referencePayload; } + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final String target; + + /** + * Optional. JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to. + * + * @return the value + **/ + public String getTarget() { + return target; + } + + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("contentRoot") + private final String contentRoot; + + /** + * JSON Path string to override the context root before delegating to the adapter of the target digital twin instance. + * + * @return the value + **/ + public String getContentRoot() { + return contentRoot; + } + /** * A set of key-value JQ expressions used to transform the incoming payload into a shape * compatible with the digital twin model's context or schema. @@ -330,6 +412,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("condition=").append(String.valueOf(this.condition)); sb.append(", referencePayload=").append(String.valueOf(this.referencePayload)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(", contentRoot=").append(String.valueOf(this.contentRoot)); sb.append(", payloadMapping=").append(String.valueOf(this.payloadMapping)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(")"); @@ -348,6 +432,8 @@ public boolean equals(Object o) { DigitalTwinAdapterInboundRoute other = (DigitalTwinAdapterInboundRoute) o; return java.util.Objects.equals(this.condition, other.condition) && java.util.Objects.equals(this.referencePayload, other.referencePayload) + && java.util.Objects.equals(this.target, other.target) + && java.util.Objects.equals(this.contentRoot, other.contentRoot) && java.util.Objects.equals(this.payloadMapping, other.payloadMapping) && java.util.Objects.equals(this.description, other.description) && super.equals(other); @@ -361,6 +447,8 @@ public int hashCode() { result = (result * PRIME) + (this.referencePayload == null ? 43 : this.referencePayload.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + result = (result * PRIME) + (this.contentRoot == null ? 43 : this.contentRoot.hashCode()); result = (result * PRIME) + (this.payloadMapping == null ? 43 : this.payloadMapping.hashCode()); diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java index cbeedfe494d..114648cc34f 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstance.java @@ -118,13 +118,13 @@ public Builder iotDomainId(String iotDomainId) { return this; } /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * @param connectivityType the value to set * @return this builder **/ @@ -525,13 +525,13 @@ public String getIotDomainId() { } /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private final DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * @return the value **/ public DigitalTwinInstanceConnectivityType getConnectivityType() { diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java index 38c21059f45..eb7050fe45b 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/DigitalTwinInstanceSummary.java @@ -114,13 +114,13 @@ public Builder iotDomainId(String iotDomainId) { return this; } /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * @param connectivityType the value to set * @return this builder **/ @@ -521,13 +521,13 @@ public String getIotDomainId() { } /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. **/ @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") private final DigitalTwinInstanceConnectivityType connectivityType; /** - * Connectivity type of the digital twin instance + * Connectivity type of the digital twin instance. * @return the value **/ public DigitalTwinInstanceConnectivityType getConnectivityType() { diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java new file mode 100644 index 00000000000..820d6977bdf --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileFamily.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * File Storage resources used to validate networkConfig.fileStorageMounts for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = FileFamily.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class FileFamily extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public FileFamily() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FileFamily build() { + FileFamily model = new FileFamily(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FileFamily model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FileFamily("); + 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 FileFamily)) { + return false; + } + + FileFamily other = (FileFamily) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.java new file mode 100644 index 00000000000..0f128249519 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/FileStorageMountDetails.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Details about a File Storage mount for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = FileStorageMountDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class FileStorageMountDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"mountPath", "mountTargetId", "exportId"}) + public FileStorageMountDetails(String mountPath, String mountTargetId, String exportId) { + super(); + this.mountPath = mountPath; + this.mountTargetId = mountTargetId; + this.exportId = exportId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not include a leading slash or the {@code /mnt} prefix. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountPath") + private String mountPath; + + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not include a leading slash or the {@code /mnt} prefix. + * @param mountPath the value to set + * @return this builder + **/ + public Builder mountPath(String mountPath) { + this.mountPath = mountPath; + this.__explicitlySet__.add("mountPath"); + return this; + } + /** + * The OCID of the File Storage mount target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountTargetId") + private String mountTargetId; + + /** + * The OCID of the File Storage mount target. + * @param mountTargetId the value to set + * @return this builder + **/ + public Builder mountTargetId(String mountTargetId) { + this.mountTargetId = mountTargetId; + this.__explicitlySet__.add("mountTargetId"); + return this; + } + /** + * The OCID of the File Storage export. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("exportId") + private String exportId; + + /** + * The OCID of the File Storage export. + * @param exportId the value to set + * @return this builder + **/ + public Builder exportId(String exportId) { + this.exportId = exportId; + this.__explicitlySet__.add("exportId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public FileStorageMountDetails build() { + FileStorageMountDetails model = + new FileStorageMountDetails(this.mountPath, this.mountTargetId, this.exportId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(FileStorageMountDetails model) { + if (model.wasPropertyExplicitlySet("mountPath")) { + this.mountPath(model.getMountPath()); + } + if (model.wasPropertyExplicitlySet("mountTargetId")) { + this.mountTargetId(model.getMountTargetId()); + } + if (model.wasPropertyExplicitlySet("exportId")) { + this.exportId(model.getExportId()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not include a leading slash or the {@code /mnt} prefix. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountPath") + private final String mountPath; + + /** + * The path relative to {@code /mnt} where the File Storage export is mounted. Do not include a leading slash or the {@code /mnt} prefix. + * @return the value + **/ + public String getMountPath() { + return mountPath; + } + + /** + * The OCID of the File Storage mount target. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mountTargetId") + private final String mountTargetId; + + /** + * The OCID of the File Storage mount target. + * @return the value + **/ + public String getMountTargetId() { + return mountTargetId; + } + + /** + * The OCID of the File Storage export. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("exportId") + private final String exportId; + + /** + * The OCID of the File Storage export. + * @return the value + **/ + public String getExportId() { + return exportId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("FileStorageMountDetails("); + sb.append("super=").append(super.toString()); + sb.append("mountPath=").append(String.valueOf(this.mountPath)); + sb.append(", mountTargetId=").append(String.valueOf(this.mountTargetId)); + sb.append(", exportId=").append(String.valueOf(this.exportId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof FileStorageMountDetails)) { + return false; + } + + FileStorageMountDetails other = (FileStorageMountDetails) o; + return java.util.Objects.equals(this.mountPath, other.mountPath) + && java.util.Objects.equals(this.mountTargetId, other.mountTargetId) + && java.util.Objects.equals(this.exportId, other.exportId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mountPath == null ? 43 : this.mountPath.hashCode()); + result = + (result * PRIME) + + (this.mountTargetId == null ? 43 : this.mountTargetId.hashCode()); + result = (result * PRIME) + (this.exportId == null ? 43 : this.exportId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java new file mode 100644 index 00000000000..b63854f80b9 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntime.java @@ -0,0 +1,852 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * An IoT flow runtime is a managed Node-RED runtime in an IoT domain for building and running Node-RED flows. + * + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = IotFlowRuntime.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class IotFlowRuntime extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "iotDomainId", + "compartmentId", + "displayName", + "description", + "scale", + "logConfig", + "flowRuntimeHost", + "networkConfig", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public IotFlowRuntime( + String id, + String iotDomainId, + String compartmentId, + String displayName, + String description, + Scale scale, + LogConfigDetails logConfig, + String flowRuntimeHost, + NetworkConfigDetails networkConfig, + LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.iotDomainId = iotDomainId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.description = description; + this.scale = scale; + this.logConfig = logConfig; + this.flowRuntimeHost = flowRuntimeHost; + this.networkConfig = networkConfig; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + * @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 IoT domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + * @param iotDomainId the value to set + * @return this builder + **/ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + this.__explicitlySet__.add("iotDomainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + **/ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private LogConfigDetails logConfig; + + public Builder logConfig(LogConfigDetails logConfig) { + this.logConfig = logConfig; + this.__explicitlySet__.add("logConfig"); + return this; + } + /** + * Hostname of the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("flowRuntimeHost") + private String flowRuntimeHost; + + /** + * Hostname of the IoT flow runtime. + * @param flowRuntimeHost the value to set + * @return this builder + **/ + public Builder flowRuntimeHost(String flowRuntimeHost) { + this.flowRuntimeHost = flowRuntimeHost; + this.__explicitlySet__.add("flowRuntimeHost"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfigDetails networkConfig; + + public Builder networkConfig(NetworkConfigDetails networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + /** + * The current state of the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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; + } + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IotFlowRuntime build() { + IotFlowRuntime model = + new IotFlowRuntime( + this.id, + this.iotDomainId, + this.compartmentId, + this.displayName, + this.description, + this.scale, + this.logConfig, + this.flowRuntimeHost, + this.networkConfig, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IotFlowRuntime model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("iotDomainId")) { + this.iotDomainId(model.getIotDomainId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("logConfig")) { + this.logConfig(model.getLogConfig()); + } + if (model.wasPropertyExplicitlySet("flowRuntimeHost")) { + this.flowRuntimeHost(model.getFlowRuntimeHost()); + } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private final String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + * @return the value + **/ + public String getIotDomainId() { + return iotDomainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + **/ + @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 corresponding to the resource. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + public enum Scale { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + + /** + * 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(Scale.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Scale', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + **/ + public Scale getScale() { + return scale; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private final LogConfigDetails logConfig; + + public LogConfigDetails getLogConfig() { + return logConfig; + } + + /** + * Hostname of the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("flowRuntimeHost") + private final String flowRuntimeHost; + + /** + * Hostname of the IoT flow runtime. + * @return the value + **/ + public String getFlowRuntimeHost() { + return flowRuntimeHost; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfigDetails networkConfig; + + public NetworkConfigDetails getNetworkConfig() { + return networkConfig; + } + + /** + * The current state of the IoT flow runtime. + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * 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; + } + + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("IotFlowRuntime("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", logConfig=").append(String.valueOf(this.logConfig)); + sb.append(", flowRuntimeHost=").append(String.valueOf(this.flowRuntimeHost)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IotFlowRuntime)) { + return false; + } + + IotFlowRuntime other = (IotFlowRuntime) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.logConfig, other.logConfig) + && java.util.Objects.equals(this.flowRuntimeHost, other.flowRuntimeHost) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.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.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.hashCode()); + result = (result * PRIME) + (this.logConfig == null ? 43 : this.logConfig.hashCode()); + result = + (result * PRIME) + + (this.flowRuntimeHost == null ? 43 : this.flowRuntimeHost.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.java new file mode 100644 index 00000000000..45f95bc483a --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeCollection.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.iot.model; + +/** + * A collection of IoT flow runtime summary 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IotFlowRuntimeCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class IotFlowRuntimeCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public IotFlowRuntimeCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The list of IoT flow runtime summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * The list of IoT flow runtime 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 IotFlowRuntimeCollection build() { + IotFlowRuntimeCollection model = new IotFlowRuntimeCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IotFlowRuntimeCollection 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 IoT flow runtime summary items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * The list of IoT flow runtime 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("IotFlowRuntimeCollection("); + 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 IotFlowRuntimeCollection)) { + return false; + } + + IotFlowRuntimeCollection other = (IotFlowRuntimeCollection) 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-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.java new file mode 100644 index 00000000000..415592cb92d --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/IotFlowRuntimeSummary.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.iot.model; + +/** + * Summary information about an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = IotFlowRuntimeSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class IotFlowRuntimeSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "iotDomainId", + "compartmentId", + "scale", + "displayName", + "description", + "lifecycleState", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public IotFlowRuntimeSummary( + String id, + String iotDomainId, + String compartmentId, + Scale scale, + String displayName, + String description, + IotFlowRuntime.LifecycleState lifecycleState, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.id = id; + this.iotDomainId = iotDomainId; + this.compartmentId = compartmentId; + this.scale = scale; + this.displayName = displayName; + this.description = description; + this.lifecycleState = lifecycleState; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + * @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 IoT domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + * @param iotDomainId the value to set + * @return this builder + **/ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + this.__explicitlySet__.add("iotDomainId"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + **/ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The current state of the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private IotFlowRuntime.LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(IotFlowRuntime.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + 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; + } + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public IotFlowRuntimeSummary build() { + IotFlowRuntimeSummary model = + new IotFlowRuntimeSummary( + this.id, + this.iotDomainId, + this.compartmentId, + this.scale, + this.displayName, + this.description, + this.lifecycleState, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(IotFlowRuntimeSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("iotDomainId")) { + this.iotDomainId(model.getIotDomainId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("iotDomainId") + private final String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain. + * @return the value + **/ + public String getIotDomainId() { + return iotDomainId; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment corresponding to the resource. + **/ + @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 corresponding to the resource. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + public enum Scale { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + + /** + * 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(Scale.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Scale', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + **/ + public Scale getScale() { + return scale; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The current state of the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final IotFlowRuntime.LifecycleState lifecycleState; + + /** + * The current state of the IoT flow runtime. + * @return the value + **/ + public IotFlowRuntime.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * 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; + } + + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time when the resource was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time when the resource was last updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("IotFlowRuntimeSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", iotDomainId=").append(String.valueOf(this.iotDomainId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof IotFlowRuntimeSummary)) { + return false; + } + + IotFlowRuntimeSummary other = (IotFlowRuntimeSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.scale == null ? 43 : this.scale.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Log.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Log.java new file mode 100644 index 00000000000..8e7835d63d4 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Log.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Log resource used to validate logConfig.logId for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Log.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Log extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public Log() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Log build() { + Log model = new Log(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Log model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Log("); + 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 Log)) { + return false; + } + + Log other = (Log) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java new file mode 100644 index 00000000000..870fc4ff60e --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogConfigDetails.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Logging configuration for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LogConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LogConfigDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"logGroupId", "logId"}) + public LogConfigDetails(String logGroupId, String logId) { + super(); + this.logGroupId = logGroupId; + this.logId = logId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the log group associated with the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the log group associated with the IoT flow runtime. + * @param logGroupId the value to set + * @return this builder + **/ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } + /** + * The OCID of the log that receives IoT flow runtime container logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logId") + private String logId; + + /** + * The OCID of the log that receives IoT flow runtime container logs. + * @param logId the value to set + * @return this builder + **/ + public Builder logId(String logId) { + this.logId = logId; + this.__explicitlySet__.add("logId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LogConfigDetails build() { + LogConfigDetails model = new LogConfigDetails(this.logGroupId, this.logId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogConfigDetails model) { + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } + if (model.wasPropertyExplicitlySet("logId")) { + this.logId(model.getLogId()); + } + 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 log group associated with the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the log group associated with the IoT flow runtime. + * @return the value + **/ + public String getLogGroupId() { + return logGroupId; + } + + /** + * The OCID of the log that receives IoT flow runtime container logs. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("logId") + private final String logId; + + /** + * The OCID of the log that receives IoT flow runtime container logs. + * @return the value + **/ + public String getLogId() { + return logId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LogConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("logGroupId=").append(String.valueOf(this.logGroupId)); + sb.append(", logId=").append(String.valueOf(this.logId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LogConfigDetails)) { + return false; + } + + LogConfigDetails other = (LogConfigDetails) o; + return java.util.Objects.equals(this.logGroupId, other.logGroupId) + && java.util.Objects.equals(this.logId, other.logId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); + result = (result * PRIME) + (this.logId == null ? 43 : this.logId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java new file mode 100644 index 00000000000..d8ee5390a74 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/LogGroup.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Log group resource used to validate logConfig.logGroupId for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LogGroup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LogGroup extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public LogGroup() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LogGroup build() { + LogGroup model = new LogGroup(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LogGroup model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LogGroup("); + 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 LogGroup)) { + return false; + } + + LogGroup other = (LogGroup) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.java new file mode 100644 index 00000000000..c4c7305d87c --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkConfigDetails.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.iot.model; + +/** + * Network access configuration for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = NetworkConfigDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class NetworkConfigDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"subnetId", "networkSecurityGroupIds", "fileStorageMounts"}) + public NetworkConfigDetails( + String subnetId, + java.util.List networkSecurityGroupIds, + java.util.List fileStorageMounts) { + super(); + this.subnetId = subnetId; + this.networkSecurityGroupIds = networkSecurityGroupIds; + this.fileStorageMounts = fileStorageMounts; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the subnet used by the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + /** + * The OCID of the subnet used by the IoT flow runtime. + * @param subnetId the value to set + * @return this builder + **/ + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + /** + * The OCIDs of the network security groups associated with the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") + private java.util.List networkSecurityGroupIds; + + /** + * The OCIDs of the network security groups associated with the IoT flow runtime. + * @param networkSecurityGroupIds the value to set + * @return this builder + **/ + public Builder networkSecurityGroupIds(java.util.List networkSecurityGroupIds) { + this.networkSecurityGroupIds = networkSecurityGroupIds; + this.__explicitlySet__.add("networkSecurityGroupIds"); + return this; + } + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must contain from 1 to 5 items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileStorageMounts") + private java.util.List fileStorageMounts; + + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must contain from 1 to 5 items. + * @param fileStorageMounts the value to set + * @return this builder + **/ + public Builder fileStorageMounts( + java.util.List fileStorageMounts) { + this.fileStorageMounts = fileStorageMounts; + this.__explicitlySet__.add("fileStorageMounts"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public NetworkConfigDetails build() { + NetworkConfigDetails model = + new NetworkConfigDetails( + this.subnetId, this.networkSecurityGroupIds, this.fileStorageMounts); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(NetworkConfigDetails model) { + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("networkSecurityGroupIds")) { + this.networkSecurityGroupIds(model.getNetworkSecurityGroupIds()); + } + if (model.wasPropertyExplicitlySet("fileStorageMounts")) { + this.fileStorageMounts(model.getFileStorageMounts()); + } + 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 subnet used by the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + + /** + * The OCID of the subnet used by the IoT flow runtime. + * @return the value + **/ + public String getSubnetId() { + return subnetId; + } + + /** + * The OCIDs of the network security groups associated with the IoT flow runtime. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("networkSecurityGroupIds") + private final java.util.List networkSecurityGroupIds; + + /** + * The OCIDs of the network security groups associated with the IoT flow runtime. + * @return the value + **/ + public java.util.List getNetworkSecurityGroupIds() { + return networkSecurityGroupIds; + } + + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must contain from 1 to 5 items. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileStorageMounts") + private final java.util.List fileStorageMounts; + + /** + * The File Storage mounts to attach to the IoT flow runtime. If specified, this list must contain from 1 to 5 items. + * @return the value + **/ + public java.util.List getFileStorageMounts() { + return fileStorageMounts; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("NetworkConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", networkSecurityGroupIds=") + .append(String.valueOf(this.networkSecurityGroupIds)); + sb.append(", fileStorageMounts=").append(String.valueOf(this.fileStorageMounts)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof NetworkConfigDetails)) { + return false; + } + + NetworkConfigDetails other = (NetworkConfigDetails) o; + return java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals( + this.networkSecurityGroupIds, other.networkSecurityGroupIds) + && java.util.Objects.equals(this.fileStorageMounts, other.fileStorageMounts) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.networkSecurityGroupIds == null + ? 43 + : this.networkSecurityGroupIds.hashCode()); + result = + (result * PRIME) + + (this.fileStorageMounts == null ? 43 : this.fileStorageMounts.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-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.java similarity index 57% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.java index 3c914c82012..51752512bb0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/NetworkSecurityGroup.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.iot.model; /** - * Details of the DbBackupConfig to be updated for the Globally distreibuted database. + * Network security group resource used to validate networkConfig.networkSecurityGroupIds for an IoT flow runtime. *
      * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,38 +14,26 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDbBackupConfigDetails.Builder.class + builder = NetworkSecurityGroup.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedDbBackupConfigDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class NetworkSecurityGroup extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"dbBackupConfig"}) - public ChangeDistributedDbBackupConfigDetails(DistributedDbBackupConfig dbBackupConfig) { + @java.beans.ConstructorProperties({}) + public NetworkSecurityGroup() { 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); + public NetworkSecurityGroup build() { + NetworkSecurityGroup model = new NetworkSecurityGroup(); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -53,10 +41,7 @@ public ChangeDistributedDbBackupConfigDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDbBackupConfigDetails model) { - if (model.wasPropertyExplicitlySet("dbBackupConfig")) { - this.dbBackupConfig(model.getDbBackupConfig()); - } + public Builder copy(NetworkSecurityGroup model) { return this; } } @@ -72,13 +57,6 @@ 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); @@ -91,9 +69,8 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDbBackupConfigDetails("); + sb.append("NetworkSecurityGroup("); sb.append("super=").append(super.toString()); - sb.append("dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); sb.append(")"); return sb.toString(); } @@ -103,22 +80,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDbBackupConfigDetails)) { + if (!(o instanceof NetworkSecurityGroup)) { return false; } - ChangeDistributedDbBackupConfigDetails other = (ChangeDistributedDbBackupConfigDetails) o; - return java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && super.equals(other); + NetworkSecurityGroup other = (NetworkSecurityGroup) o; + return 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-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java index 66338401629..79cbe5a1a9a 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/OperationType.java @@ -20,6 +20,12 @@ public enum OperationType { ConfigureDomainDataAccess("CONFIGURE_DOMAIN_DATA_ACCESS"), ConfigureDomainGroupDataAccess("CONFIGURE_DOMAIN_GROUP_DATA_ACCESS"), ChangeIotDomainDataRetention("CHANGE_IOT_DOMAIN_DATA_RETENTION"), + CreateIotFlowRuntime("CREATE_IOT_FLOW_RUNTIME"), + UpdateIotFlowRuntime("UPDATE_IOT_FLOW_RUNTIME"), + DeleteIotFlowRuntime("DELETE_IOT_FLOW_RUNTIME"), + MoveIotFlowRuntime("MOVE_IOT_FLOW_RUNTIME"), + ActivateIotFlowRuntime("ACTIVATE_IOT_FLOW_RUNTIME"), + DeactivateIotFlowRuntime("DEACTIVATE_IOT_FLOW_RUNTIME"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java new file mode 100644 index 00000000000..9b88770e770 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/Subnet.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Subnet resource used to validate networkConfig.subnetId for an IoT flow runtime. + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Subnet.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class Subnet extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public Subnet() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public Subnet build() { + Subnet model = new Subnet(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(Subnet model) { + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("Subnet("); + 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 Subnet)) { + return false; + } + + Subnet other = (Subnet) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java index dd6502ee896..5a29d4e33d7 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateDigitalTwinInstanceDetails.java @@ -24,6 +24,7 @@ public final class UpdateDigitalTwinInstanceDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "connectivityType", "authId", "externalKey", "displayName", @@ -36,6 +37,7 @@ public final class UpdateDigitalTwinInstanceDetails "definedTags" }) public UpdateDigitalTwinInstanceDetails( + DigitalTwinInstanceConnectivityType connectivityType, String authId, String externalKey, String displayName, @@ -47,6 +49,7 @@ public UpdateDigitalTwinInstanceDetails( java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.connectivityType = connectivityType; this.authId = authId; this.externalKey = externalKey; this.displayName = displayName; @@ -61,6 +64,22 @@ public UpdateDigitalTwinInstanceDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Connectivity type of the digital twin instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance. + * @param connectivityType the value to set + * @return this builder + **/ + public Builder connectivityType(DigitalTwinInstanceConnectivityType connectivityType) { + this.connectivityType = connectivityType; + this.__explicitlySet__.add("connectivityType"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -255,6 +274,7 @@ public Builder definedTags( public UpdateDigitalTwinInstanceDetails build() { UpdateDigitalTwinInstanceDetails model = new UpdateDigitalTwinInstanceDetails( + this.connectivityType, this.authId, this.externalKey, this.displayName, @@ -273,6 +293,9 @@ public UpdateDigitalTwinInstanceDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(UpdateDigitalTwinInstanceDetails model) { + if (model.wasPropertyExplicitlySet("connectivityType")) { + this.connectivityType(model.getConnectivityType()); + } if (model.wasPropertyExplicitlySet("authId")) { this.authId(model.getAuthId()); } @@ -318,6 +341,20 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Connectivity type of the digital twin instance. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectivityType") + private final DigitalTwinInstanceConnectivityType connectivityType; + + /** + * Connectivity type of the digital twin instance. + * @return the value + **/ + public DigitalTwinInstanceConnectivityType getConnectivityType() { + return connectivityType; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance. **/ @@ -498,7 +535,8 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateDigitalTwinInstanceDetails("); sb.append("super=").append(super.toString()); - sb.append("authId=").append(String.valueOf(this.authId)); + sb.append("connectivityType=").append(String.valueOf(this.connectivityType)); + sb.append(", authId=").append(String.valueOf(this.authId)); sb.append(", externalKey=").append(String.valueOf(this.externalKey)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); @@ -523,7 +561,8 @@ public boolean equals(Object o) { } UpdateDigitalTwinInstanceDetails other = (UpdateDigitalTwinInstanceDetails) o; - return java.util.Objects.equals(this.authId, other.authId) + return java.util.Objects.equals(this.connectivityType, other.connectivityType) + && java.util.Objects.equals(this.authId, other.authId) && java.util.Objects.equals(this.externalKey, other.externalKey) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) @@ -541,6 +580,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.connectivityType == null ? 43 : this.connectivityType.hashCode()); result = (result * PRIME) + (this.authId == null ? 43 : this.authId.hashCode()); result = (result * PRIME) + (this.externalKey == null ? 43 : this.externalKey.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.java new file mode 100644 index 00000000000..db1d8241b5a --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/model/UpdateIotFlowRuntimeDetails.java @@ -0,0 +1,436 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.model; + +/** + * Details for updating an IoT flow runtime. This operation supports partial updates. When networkConfig is omitted, the existing network configuration is preserved. When networkConfig is provided, the complete network configuration is replaced. To remove the network configuration, pass networkConfig as null. + * + *
      + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateIotFlowRuntimeDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class UpdateIotFlowRuntimeDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "description", + "scale", + "networkConfig", + "logConfig", + "freeformTags", + "definedTags" + }) + public UpdateIotFlowRuntimeDetails( + String displayName, + String description, + Scale scale, + NetworkConfigDetails networkConfig, + LogConfigDetails logConfig, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.description = description; + this.scale = scale; + this.networkConfig = networkConfig; + this.logConfig = logConfig; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A short description of the resource. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @param scale the value to set + * @return this builder + **/ + public Builder scale(Scale scale) { + this.scale = scale; + this.__explicitlySet__.add("scale"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private NetworkConfigDetails networkConfig; + + public Builder networkConfig(NetworkConfigDetails networkConfig) { + this.networkConfig = networkConfig; + this.__explicitlySet__.add("networkConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private LogConfigDetails logConfig; + + public Builder logConfig(LogConfigDetails logConfig) { + this.logConfig = logConfig; + this.__explicitlySet__.add("logConfig"); + 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 UpdateIotFlowRuntimeDetails build() { + UpdateIotFlowRuntimeDetails model = + new UpdateIotFlowRuntimeDetails( + this.displayName, + this.description, + this.scale, + this.networkConfig, + this.logConfig, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateIotFlowRuntimeDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("scale")) { + this.scale(model.getScale()); + } + if (model.wasPropertyExplicitlySet("networkConfig")) { + this.networkConfig(model.getNetworkConfig()); + } + if (model.wasPropertyExplicitlySet("logConfig")) { + this.logConfig(model.getLogConfig()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * A short description of the resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A short description of the resource. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + public enum Scale { + Lowest("LOWEST"), + Low("LOW"), + Medium("MEDIUM"), + High("HIGH"), + Highest("HIGHEST"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Scale v : Scale.values()) { + map.put(v.getValue(), v); + } + } + + Scale(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Scale create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Scale: " + key); + } + }; + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("scale") + private final Scale scale; + + /** + * The scale of the IoT flow runtime. Larger values allocate more CPU and memory for higher throughput and operational headroom. MEDIUM is the default value. + * + * @return the value + **/ + public Scale getScale() { + return scale; + } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfig") + private final NetworkConfigDetails networkConfig; + + public NetworkConfigDetails getNetworkConfig() { + return networkConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("logConfig") + private final LogConfigDetails logConfig; + + public LogConfigDetails getLogConfig() { + return logConfig; + } + + /** + * 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("UpdateIotFlowRuntimeDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", scale=").append(String.valueOf(this.scale)); + sb.append(", networkConfig=").append(String.valueOf(this.networkConfig)); + sb.append(", logConfig=").append(String.valueOf(this.logConfig)); + 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 UpdateIotFlowRuntimeDetails)) { + return false; + } + + UpdateIotFlowRuntimeDetails other = (UpdateIotFlowRuntimeDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.scale, other.scale) + && java.util.Objects.equals(this.networkConfig, other.networkConfig) + && java.util.Objects.equals(this.logConfig, other.logConfig) + && 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.scale == null ? 43 : this.scale.hashCode()); + result = + (result * PRIME) + + (this.networkConfig == null ? 43 : this.networkConfig.hashCode()); + result = (result * PRIME) + (this.logConfig == null ? 43 : this.logConfig.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/requests/ReinstateProxyInstanceRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.java similarity index 76% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.java index 7de61fcd884..244d4ea1a1b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ActivateIotFlowRuntimeRequest.java @@ -2,37 +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.iot.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; /** - * Example: Click here to see how to use ReinstateProxyInstanceRequest. + * Example: Click here to see how to use ActivateIotFlowRuntimeRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ActivateIotFlowRuntimeRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Distributed Database PrivateEndpoint identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - private String distributedDatabasePrivateEndpointId; + private String iotFlowRuntimeId; /** - * Distributed Database PrivateEndpoint identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - 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; + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -55,6 +44,21 @@ 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, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -79,39 +83,23 @@ public String getOpcRetryToken() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ReinstateProxyInstanceRequest, java.lang.Void> { + ActivateIotFlowRuntimeRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Distributed Database PrivateEndpoint identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - 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; + private String iotFlowRuntimeId = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; return this; } @@ -140,6 +128,25 @@ public Builder ifMatch(String ifMatch) { return this; } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -192,10 +199,10 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ReinstateProxyInstanceRequest o) { - distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(ActivateIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -203,38 +210,38 @@ public Builder copy(ReinstateProxyInstanceRequest o) { } /** - * Build the instance of ReinstateProxyInstanceRequest as configured by this builder + * Build the instance of ActivateIotFlowRuntimeRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ReinstateProxyInstanceRequest + * @return instance of ActivateIotFlowRuntimeRequest */ - public ReinstateProxyInstanceRequest build() { - ReinstateProxyInstanceRequest request = buildWithoutInvocationCallback(); + public ActivateIotFlowRuntimeRequest build() { + ActivateIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ReinstateProxyInstanceRequest as configured by this builder + * Build the instance of ActivateIotFlowRuntimeRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ReinstateProxyInstanceRequest + * @return instance of ActivateIotFlowRuntimeRequest */ - public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { - ReinstateProxyInstanceRequest request = new ReinstateProxyInstanceRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.opcRequestId = opcRequestId; + public ActivateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + ActivateIotFlowRuntimeRequest request = new ActivateIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new ReinstateProxyInstanceRequest(distributedDatabasePrivateEndpointId, opcRequestId, ifMatch, opcRetryToken); + // new ActivateIotFlowRuntimeRequest(iotFlowRuntimeId, ifMatch, opcRequestId, opcRetryToken); } } @@ -244,9 +251,9 @@ public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .opcRequestId(opcRequestId) + .iotFlowRuntimeId(iotFlowRuntimeId) .ifMatch(ifMatch) + .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); } @@ -263,10 +270,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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); 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(); @@ -277,17 +283,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ReinstateProxyInstanceRequest)) { + if (!(o instanceof ActivateIotFlowRuntimeRequest)) { return false; } - ReinstateProxyInstanceRequest other = (ReinstateProxyInstanceRequest) o; + ActivateIotFlowRuntimeRequest other = (ActivateIotFlowRuntimeRequest) 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.iotFlowRuntimeId, other.iotFlowRuntimeId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -297,11 +301,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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.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/ChangeDistributedDbBackupConfigRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java index 6d72cc3e472..567e97355a8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ChangeIotFlowRuntimeCompartmentRequest.java @@ -2,52 +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.iot.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; /** - * Example: Click here to see how to use ChangeDistributedDbBackupConfigRequest. + * Example: Click here to see how to use ChangeIotFlowRuntimeCompartmentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ChangeIotFlowRuntimeCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDbBackupConfigDetails> { + com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails> { /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - private String distributedDatabaseId; + private String iotFlowRuntimeId; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; } /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. + * Details for changing the IoT flow runtime compartment. */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails; + private com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + changeIotFlowRuntimeCompartmentDetails; /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. + * Details for changing the IoT flow runtime compartment. */ - 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; + public com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + getChangeIotFlowRuntimeCompartmentDetails() { + return changeIotFlowRuntimeCompartmentDetails; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -70,6 +58,21 @@ 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, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -98,65 +101,48 @@ public String getOpcRetryToken() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - getBody$() { - return changeDistributedDbBackupConfigDetails; + public com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails getBody$() { + return changeIotFlowRuntimeCompartmentDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeDistributedDbBackupConfigRequest, - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDbBackupConfigDetails> { + ChangeIotFlowRuntimeCompartmentRequest, + com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - private String distributedDatabaseId = null; + private String iotFlowRuntimeId = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; return this; } /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. + * Details for changing the IoT flow runtime compartment. */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails = null; + private com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + changeIotFlowRuntimeCompartmentDetails = null; /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. - * @param changeDistributedDbBackupConfigDetails the value to set + * Details for changing the IoT flow runtime compartment. + * @param changeIotFlowRuntimeCompartmentDetails 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 changeIotFlowRuntimeCompartmentDetails( + com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails + changeIotFlowRuntimeCompartmentDetails) { + this.changeIotFlowRuntimeCompartmentDetails = changeIotFlowRuntimeCompartmentDetails; return this; } @@ -185,6 +171,25 @@ public Builder ifMatch(String ifMatch) { return this; } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -237,11 +242,11 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ChangeDistributedDbBackupConfigRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - changeDistributedDbBackupConfigDetails(o.getChangeDistributedDbBackupConfigDetails()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(ChangeIotFlowRuntimeCompartmentRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + changeIotFlowRuntimeCompartmentDetails(o.getChangeIotFlowRuntimeCompartmentDetails()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -249,17 +254,17 @@ public Builder copy(ChangeDistributedDbBackupConfigRequest o) { } /** - * Build the instance of ChangeDistributedDbBackupConfigRequest as configured by this builder + * Build the instance of ChangeIotFlowRuntimeCompartmentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ChangeDistributedDbBackupConfigRequest + * @return instance of ChangeIotFlowRuntimeCompartmentRequest */ - public ChangeDistributedDbBackupConfigRequest build() { - ChangeDistributedDbBackupConfigRequest request = buildWithoutInvocationCallback(); + public ChangeIotFlowRuntimeCompartmentRequest build() { + ChangeIotFlowRuntimeCompartmentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -271,31 +276,29 @@ public ChangeDistributedDbBackupConfigRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - body) { - changeDistributedDbBackupConfigDetails(body); + public Builder body$(com.oracle.bmc.iot.model.ChangeIotFlowRuntimeCompartmentDetails body) { + changeIotFlowRuntimeCompartmentDetails(body); return this; } /** - * Build the instance of ChangeDistributedDbBackupConfigRequest as configured by this builder + * Build the instance of ChangeIotFlowRuntimeCompartmentRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ChangeDistributedDbBackupConfigRequest + * @return instance of ChangeIotFlowRuntimeCompartmentRequest */ - public ChangeDistributedDbBackupConfigRequest buildWithoutInvocationCallback() { - ChangeDistributedDbBackupConfigRequest request = - new ChangeDistributedDbBackupConfigRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.changeDistributedDbBackupConfigDetails = changeDistributedDbBackupConfigDetails; - request.opcRequestId = opcRequestId; + public ChangeIotFlowRuntimeCompartmentRequest buildWithoutInvocationCallback() { + ChangeIotFlowRuntimeCompartmentRequest request = + new ChangeIotFlowRuntimeCompartmentRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.changeIotFlowRuntimeCompartmentDetails = changeIotFlowRuntimeCompartmentDetails; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new ChangeDistributedDbBackupConfigRequest(distributedDatabaseId, changeDistributedDbBackupConfigDetails, opcRequestId, ifMatch, opcRetryToken); + // new ChangeIotFlowRuntimeCompartmentRequest(iotFlowRuntimeId, changeIotFlowRuntimeCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -305,10 +308,10 @@ public ChangeDistributedDbBackupConfigRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .changeDistributedDbBackupConfigDetails(changeDistributedDbBackupConfigDetails) - .opcRequestId(opcRequestId) + .iotFlowRuntimeId(iotFlowRuntimeId) + .changeIotFlowRuntimeCompartmentDetails(changeIotFlowRuntimeCompartmentDetails) .ifMatch(ifMatch) + .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); } @@ -325,11 +328,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(",changeDistributedDbBackupConfigDetails=") - .append(String.valueOf(this.changeDistributedDbBackupConfigDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",changeIotFlowRuntimeCompartmentDetails=") + .append(String.valueOf(this.changeIotFlowRuntimeCompartmentDetails)); 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(); @@ -340,18 +343,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDbBackupConfigRequest)) { + if (!(o instanceof ChangeIotFlowRuntimeCompartmentRequest)) { return false; } - ChangeDistributedDbBackupConfigRequest other = (ChangeDistributedDbBackupConfigRequest) o; + ChangeIotFlowRuntimeCompartmentRequest other = (ChangeIotFlowRuntimeCompartmentRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) && java.util.Objects.equals( - this.changeDistributedDbBackupConfigDetails, - other.changeDistributedDbBackupConfigDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + this.changeIotFlowRuntimeCompartmentDetails, + other.changeIotFlowRuntimeCompartmentDetails) && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -361,16 +364,14 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); result = (result * PRIME) - + (this.changeDistributedDbBackupConfigDetails == null + + (this.changeIotFlowRuntimeCompartmentDetails == null ? 43 - : this.changeDistributedDbBackupConfigDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + : this.changeIotFlowRuntimeCompartmentDetails.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-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..2c1d4606d56 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/CreateIotFlowRuntimeRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use CreateIotFlowRuntimeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class CreateIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails> { + + /** + * Details for creating the IoT flow runtime. + */ + private com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails createIotFlowRuntimeDetails; + + /** + * Details for creating the IoT flow runtime. + */ + public com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails getCreateIotFlowRuntimeDetails() { + return createIotFlowRuntimeDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails getBody$() { + return createIotFlowRuntimeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateIotFlowRuntimeRequest, + com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for creating the IoT flow runtime. + */ + private com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails createIotFlowRuntimeDetails = + null; + + /** + * Details for creating the IoT flow runtime. + * @param createIotFlowRuntimeDetails the value to set + * @return this builder instance + */ + public Builder createIotFlowRuntimeDetails( + com.oracle.bmc.iot.model.CreateIotFlowRuntimeDetails createIotFlowRuntimeDetails) { + this.createIotFlowRuntimeDetails = createIotFlowRuntimeDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(CreateIotFlowRuntimeRequest o) { + createIotFlowRuntimeDetails(o.getCreateIotFlowRuntimeDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateIotFlowRuntimeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateIotFlowRuntimeRequest + */ + public CreateIotFlowRuntimeRequest build() { + CreateIotFlowRuntimeRequest 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.iot.model.CreateIotFlowRuntimeDetails body) { + createIotFlowRuntimeDetails(body); + return this; + } + + /** + * Build the instance of CreateIotFlowRuntimeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateIotFlowRuntimeRequest + */ + public CreateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + CreateIotFlowRuntimeRequest request = new CreateIotFlowRuntimeRequest(); + request.createIotFlowRuntimeDetails = createIotFlowRuntimeDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateIotFlowRuntimeRequest(createIotFlowRuntimeDetails, 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() + .createIotFlowRuntimeDetails(createIotFlowRuntimeDetails) + .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(",createIotFlowRuntimeDetails=") + .append(String.valueOf(this.createIotFlowRuntimeDetails)); + 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 CreateIotFlowRuntimeRequest)) { + return false; + } + + CreateIotFlowRuntimeRequest other = (CreateIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createIotFlowRuntimeDetails, other.createIotFlowRuntimeDetails) + && 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.createIotFlowRuntimeDetails == null + ? 43 + : this.createIotFlowRuntimeDetails.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.java similarity index 74% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.java index fe987ffbe5c..f7645587252 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeactivateIotFlowRuntimeRequest.java @@ -2,37 +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.distributeddatabase.requests; +package com.oracle.bmc.iot.requests; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.iot.model.*; /** - * Example: Click here to see how to use DownloadDistributedDatabaseGsmCertificateSigningRequestRequest. + * Example: Click here to see how to use DeactivateIotFlowRuntimeRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedDatabaseGsmCertificateSigningRequestRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeactivateIotFlowRuntimeRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - private String distributedDatabaseId; + private String iotFlowRuntimeId; /** - * Globally distributed database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -55,6 +44,21 @@ 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, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -79,39 +83,23 @@ public String getOpcRetryToken() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest, - java.lang.Void> { + DeactivateIotFlowRuntimeRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. */ - 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; + private String iotFlowRuntimeId = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; return this; } @@ -140,6 +128,25 @@ public Builder ifMatch(String ifMatch) { return this; } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 @@ -192,10 +199,10 @@ public Builder retryConfiguration( * 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()); + public Builder copy(DeactivateIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -203,41 +210,38 @@ public Builder copy(DownloadDistributedDatabaseGsmCertificateSigningRequestReque } /** - * Build the instance of DownloadDistributedDatabaseGsmCertificateSigningRequestRequest as configured by this builder + * Build the instance of DeactivateIotFlowRuntimeRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of DownloadDistributedDatabaseGsmCertificateSigningRequestRequest + * @return instance of DeactivateIotFlowRuntimeRequest */ - public DownloadDistributedDatabaseGsmCertificateSigningRequestRequest build() { - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); + public DeactivateIotFlowRuntimeRequest build() { + DeactivateIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of DownloadDistributedDatabaseGsmCertificateSigningRequestRequest as configured by this builder + * Build the instance of DeactivateIotFlowRuntimeRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of DownloadDistributedDatabaseGsmCertificateSigningRequestRequest + * @return instance of DeactivateIotFlowRuntimeRequest */ - public DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest request = - new DownloadDistributedDatabaseGsmCertificateSigningRequestRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRequestId = opcRequestId; + public DeactivateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + DeactivateIotFlowRuntimeRequest request = new DeactivateIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; return request; - // new DownloadDistributedDatabaseGsmCertificateSigningRequestRequest(distributedDatabaseId, opcRequestId, ifMatch, opcRetryToken); + // new DeactivateIotFlowRuntimeRequest(iotFlowRuntimeId, ifMatch, opcRequestId, opcRetryToken); } } @@ -247,9 +251,9 @@ public DownloadDistributedDatabaseGsmCertificateSigningRequestRequest build() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRequestId(opcRequestId) + .iotFlowRuntimeId(iotFlowRuntimeId) .ifMatch(ifMatch) + .opcRequestId(opcRequestId) .opcRetryToken(opcRetryToken); } @@ -266,9 +270,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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); 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(); @@ -279,16 +283,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DownloadDistributedDatabaseGsmCertificateSigningRequestRequest)) { + if (!(o instanceof DeactivateIotFlowRuntimeRequest)) { return false; } - DownloadDistributedDatabaseGsmCertificateSigningRequestRequest other = - (DownloadDistributedDatabaseGsmCertificateSigningRequestRequest) o; + DeactivateIotFlowRuntimeRequest other = (DeactivateIotFlowRuntimeRequest) 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.iotFlowRuntimeId, other.iotFlowRuntimeId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -298,11 +301,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()); + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.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-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..045a288e74e --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/DeleteIotFlowRuntimeRequest.java @@ -0,0 +1,258 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use DeleteIotFlowRuntimeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeleteIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteIotFlowRuntimeRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(DeleteIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteIotFlowRuntimeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteIotFlowRuntimeRequest + */ + public DeleteIotFlowRuntimeRequest build() { + DeleteIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteIotFlowRuntimeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteIotFlowRuntimeRequest + */ + public DeleteIotFlowRuntimeRequest buildWithoutInvocationCallback() { + DeleteIotFlowRuntimeRequest request = new DeleteIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteIotFlowRuntimeRequest(iotFlowRuntimeId, 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() + .iotFlowRuntimeId(iotFlowRuntimeId) + .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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + 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 DeleteIotFlowRuntimeRequest)) { + return false; + } + + DeleteIotFlowRuntimeRequest other = (DeleteIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && 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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.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-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.java new file mode 100644 index 00000000000..0feaa2e54bf --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeFlowsRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use GetIotFlowRuntimeFlowsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeFlowsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetIotFlowRuntimeFlowsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(GetIotFlowRuntimeFlowsRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetIotFlowRuntimeFlowsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetIotFlowRuntimeFlowsRequest + */ + public GetIotFlowRuntimeFlowsRequest build() { + GetIotFlowRuntimeFlowsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetIotFlowRuntimeFlowsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetIotFlowRuntimeFlowsRequest + */ + public GetIotFlowRuntimeFlowsRequest buildWithoutInvocationCallback() { + GetIotFlowRuntimeFlowsRequest request = new GetIotFlowRuntimeFlowsRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.opcRequestId = opcRequestId; + return request; + // new GetIotFlowRuntimeFlowsRequest(iotFlowRuntimeId, 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().iotFlowRuntimeId(iotFlowRuntimeId).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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + 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 GetIotFlowRuntimeFlowsRequest)) { + return false; + } + + GetIotFlowRuntimeFlowsRequest other = (GetIotFlowRuntimeFlowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..4fef67516fb --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/GetIotFlowRuntimeRequest.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use GetIotFlowRuntimeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetIotFlowRuntimeRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(GetIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetIotFlowRuntimeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetIotFlowRuntimeRequest + */ + public GetIotFlowRuntimeRequest build() { + GetIotFlowRuntimeRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetIotFlowRuntimeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetIotFlowRuntimeRequest + */ + public GetIotFlowRuntimeRequest buildWithoutInvocationCallback() { + GetIotFlowRuntimeRequest request = new GetIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.opcRequestId = opcRequestId; + return request; + // new GetIotFlowRuntimeRequest(iotFlowRuntimeId, 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().iotFlowRuntimeId(iotFlowRuntimeId).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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + 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 GetIotFlowRuntimeRequest)) { + return false; + } + + GetIotFlowRuntimeRequest other = (GetIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java index bbc5709e63d..c64503692a8 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinAdaptersRequest.java @@ -13,13 +13,13 @@ public class ListDigitalTwinAdaptersRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ public String getIotDomainId() { @@ -242,13 +242,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java index c5267e22614..4cd667e6873 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinInstancesRequest.java @@ -13,13 +13,13 @@ public class ListDigitalTwinInstancesRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ public String getIotDomainId() { @@ -255,13 +255,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java index 978dffc99d2..1635768331c 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinModelsRequest.java @@ -13,13 +13,13 @@ public class ListDigitalTwinModelsRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ public String getIotDomainId() { @@ -229,13 +229,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java index a9ac37e1088..51733817ae6 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListDigitalTwinRelationshipsRequest.java @@ -13,13 +13,13 @@ public class ListDigitalTwinRelationshipsRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ public String getIotDomainId() { @@ -255,13 +255,13 @@ public static class Builder private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * */ private String iotDomainId = null; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list digital twin resources. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list IoT resources. * * @param iotDomainId the value to set * @return this builder instance diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java index c15e6414a5d..c27de7bf218 100644 --- a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotDomainGroupsRequest.java @@ -60,12 +60,12 @@ public com.oracle.bmc.iot.model.IotDomainGroup.LifecycleState getLifecycleState( return lifecycleState; } /** - * Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. */ private com.oracle.bmc.iot.model.IotDomainGroup.Type type; /** - * Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. */ public com.oracle.bmc.iot.model.IotDomainGroup.Type getType() { return type; @@ -293,12 +293,12 @@ public Builder lifecycleState( } /** - * Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. */ private com.oracle.bmc.iot.model.IotDomainGroup.Type type = null; /** - * Filter resources by type. Valid values are LIGHTWEIGHT or STANDARD. + * Filter resources by type. Valid values are DEVELOPMENT or PRODUCTION. LIGHTWEIGHT and STANDARD are deprecated aliases for DEVELOPMENT and PRODUCTION, respectively. * @param type the value to set * @return this builder instance */ diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java new file mode 100644 index 00000000000..d7986954cfb --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/ListIotFlowRuntimesRequest.java @@ -0,0 +1,586 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use ListIotFlowRuntimesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ListIotFlowRuntimesRequest 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; + } + /** + * Filter resources by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a valid OCID of the resource type. + * + */ + private String id; + + /** + * Filter resources by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a valid OCID of the resource type. + * + */ + public String getId() { + return id; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list flow runtime. + * + */ + private String iotDomainId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list flow runtime. + * + */ + public String getIotDomainId() { + return iotDomainId; + } + /** + * Filter resources whose display name matches the specified value. + * + */ + private String displayName; + + /** + * Filter resources whose display name matches the specified value. + * + */ + public String getDisplayName() { + return displayName; + } + /** + * Filter resources whose lifecycleState matches the specified value. + * + */ + private com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState lifecycleState; + + /** + * Filter resources whose lifecycleState matches the specified value. + * + */ + public com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * 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 on 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 on how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * Specifies sort order to use, either ASC (ascending) or DESC (descending). + */ + private SortOrder sortOrder; + + /** + * Specifies sort order to use, either ASC (ascending) or DESC (descending). + **/ + public enum SortOrder { + 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 to use, either ASC (ascending) or DESC (descending). + */ + 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 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 { + 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; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListIotFlowRuntimesRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * Filter resources by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a valid OCID of the resource type. + * + */ + private String id = null; + + /** + * Filter resources by [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). Must be a valid OCID of the resource type. + * + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list flow runtime. + * + */ + private String iotDomainId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IoT domain in which to list flow runtime. + * + * @param iotDomainId the value to set + * @return this builder instance + */ + public Builder iotDomainId(String iotDomainId) { + this.iotDomainId = iotDomainId; + return this; + } + + /** + * Filter resources whose display name matches the specified value. + * + */ + private String displayName = null; + + /** + * Filter resources whose display name matches the specified value. + * + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filter resources whose lifecycleState matches the specified value. + * + */ + private com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState lifecycleState = null; + + /** + * Filter resources whose lifecycleState matches the specified value. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.iot.model.IotFlowRuntime.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + 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 on 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 on 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; + } + + /** + * Specifies sort order to use, either ASC (ascending) or DESC (descending). + */ + private SortOrder sortOrder = null; + + /** + * Specifies sort order to use, either ASC (ascending) or DESC (descending). + * @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 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; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(ListIotFlowRuntimesRequest o) { + compartmentId(o.getCompartmentId()); + id(o.getId()); + iotDomainId(o.getIotDomainId()); + 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 ListIotFlowRuntimesRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListIotFlowRuntimesRequest + */ + public ListIotFlowRuntimesRequest build() { + ListIotFlowRuntimesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListIotFlowRuntimesRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListIotFlowRuntimesRequest + */ + public ListIotFlowRuntimesRequest buildWithoutInvocationCallback() { + ListIotFlowRuntimesRequest request = new ListIotFlowRuntimesRequest(); + request.compartmentId = compartmentId; + request.id = id; + request.iotDomainId = iotDomainId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListIotFlowRuntimesRequest(compartmentId, id, iotDomainId, 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() + .compartmentId(compartmentId) + .id(id) + .iotDomainId(iotDomainId) + .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(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",iotDomainId=").append(String.valueOf(this.iotDomainId)); + 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 ListIotFlowRuntimesRequest)) { + return false; + } + + ListIotFlowRuntimesRequest other = (ListIotFlowRuntimesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.iotDomainId, other.iotDomainId) + && 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.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.iotDomainId == null ? 43 : this.iotDomainId.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-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.java new file mode 100644 index 00000000000..0555deab9c0 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeFlowsRequest.java @@ -0,0 +1,312 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use UpdateIotFlowRuntimeFlowsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeFlowsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * The opaque flows document for the IoT flow runtime. + */ + private Object flowsDocument; + + /** + * The opaque flows document for the IoT flow runtime. + */ + public Object getFlowsDocument() { + return flowsDocument; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public Object getBody$() { + return flowsDocument; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateIotFlowRuntimeFlowsRequest, Object> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * The opaque flows document for the IoT flow runtime. + */ + private Object flowsDocument = null; + + /** + * The opaque flows document for the IoT flow runtime. + * @param flowsDocument the value to set + * @return this builder instance + */ + public Builder flowsDocument(Object flowsDocument) { + this.flowsDocument = flowsDocument; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(UpdateIotFlowRuntimeFlowsRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + flowsDocument(o.getFlowsDocument()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeFlowsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateIotFlowRuntimeFlowsRequest + */ + public UpdateIotFlowRuntimeFlowsRequest build() { + UpdateIotFlowRuntimeFlowsRequest 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$(Object body) { + flowsDocument(body); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeFlowsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateIotFlowRuntimeFlowsRequest + */ + public UpdateIotFlowRuntimeFlowsRequest buildWithoutInvocationCallback() { + UpdateIotFlowRuntimeFlowsRequest request = new UpdateIotFlowRuntimeFlowsRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.flowsDocument = flowsDocument; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateIotFlowRuntimeFlowsRequest(iotFlowRuntimeId, flowsDocument, 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() + .iotFlowRuntimeId(iotFlowRuntimeId) + .flowsDocument(flowsDocument) + .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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",flowsDocument=").append(String.valueOf(this.flowsDocument)); + 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 UpdateIotFlowRuntimeFlowsRequest)) { + return false; + } + + UpdateIotFlowRuntimeFlowsRequest other = (UpdateIotFlowRuntimeFlowsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals(this.flowsDocument, other.flowsDocument) + && 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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = + (result * PRIME) + + (this.flowsDocument == null ? 43 : this.flowsDocument.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-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.java new file mode 100644 index 00000000000..ccf78a200a3 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/requests/UpdateIotFlowRuntimeRequest.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.iot.requests; + +import com.oracle.bmc.iot.model.*; +/** + * Example: Click here to see how to use UpdateIotFlowRuntimeRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + public String getIotFlowRuntimeId() { + return iotFlowRuntimeId; + } + /** + * The IoT flow runtime details to be updated. + */ + private com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails updateIotFlowRuntimeDetails; + + /** + * The IoT flow runtime details to be updated. + */ + public com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails getUpdateIotFlowRuntimeDetails() { + return updateIotFlowRuntimeDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails getBody$() { + return updateIotFlowRuntimeDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateIotFlowRuntimeRequest, + com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + */ + private String iotFlowRuntimeId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an IoT flow runtime. + * @param iotFlowRuntimeId the value to set + * @return this builder instance + */ + public Builder iotFlowRuntimeId(String iotFlowRuntimeId) { + this.iotFlowRuntimeId = iotFlowRuntimeId; + return this; + } + + /** + * The IoT flow runtime details to be updated. + */ + private com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails updateIotFlowRuntimeDetails = + null; + + /** + * The IoT flow runtime details to be updated. + * @param updateIotFlowRuntimeDetails the value to set + * @return this builder instance + */ + public Builder updateIotFlowRuntimeDetails( + com.oracle.bmc.iot.model.UpdateIotFlowRuntimeDetails updateIotFlowRuntimeDetails) { + this.updateIotFlowRuntimeDetails = updateIotFlowRuntimeDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. + * If you need to contact Oracle about a particular request, 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.util.internal.Consumer + 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(UpdateIotFlowRuntimeRequest o) { + iotFlowRuntimeId(o.getIotFlowRuntimeId()); + updateIotFlowRuntimeDetails(o.getUpdateIotFlowRuntimeDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateIotFlowRuntimeRequest + */ + public UpdateIotFlowRuntimeRequest build() { + UpdateIotFlowRuntimeRequest 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.iot.model.UpdateIotFlowRuntimeDetails body) { + updateIotFlowRuntimeDetails(body); + return this; + } + + /** + * Build the instance of UpdateIotFlowRuntimeRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateIotFlowRuntimeRequest + */ + public UpdateIotFlowRuntimeRequest buildWithoutInvocationCallback() { + UpdateIotFlowRuntimeRequest request = new UpdateIotFlowRuntimeRequest(); + request.iotFlowRuntimeId = iotFlowRuntimeId; + request.updateIotFlowRuntimeDetails = updateIotFlowRuntimeDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateIotFlowRuntimeRequest(iotFlowRuntimeId, updateIotFlowRuntimeDetails, 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() + .iotFlowRuntimeId(iotFlowRuntimeId) + .updateIotFlowRuntimeDetails(updateIotFlowRuntimeDetails) + .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(",iotFlowRuntimeId=").append(String.valueOf(this.iotFlowRuntimeId)); + sb.append(",updateIotFlowRuntimeDetails=") + .append(String.valueOf(this.updateIotFlowRuntimeDetails)); + 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 UpdateIotFlowRuntimeRequest)) { + return false; + } + + UpdateIotFlowRuntimeRequest other = (UpdateIotFlowRuntimeRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.iotFlowRuntimeId, other.iotFlowRuntimeId) + && java.util.Objects.equals( + this.updateIotFlowRuntimeDetails, other.updateIotFlowRuntimeDetails) + && 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.iotFlowRuntimeId == null ? 43 : this.iotFlowRuntimeId.hashCode()); + result = + (result * PRIME) + + (this.updateIotFlowRuntimeDetails == null + ? 43 + : this.updateIotFlowRuntimeDetails.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/AddDistributedDatabaseGdsControlNodeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java similarity index 78% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java index d076fd2ab13..75c37196c85 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ActivateIotFlowRuntimeResponse.java @@ -2,21 +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.iot.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ActivateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -47,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private AddDistributedDatabaseGdsControlNodeResponse( + private ActivateIotFlowRuntimeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -112,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(AddDistributedDatabaseGdsControlNodeResponse o) { + public Builder copy(ActivateIotFlowRuntimeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +128,8 @@ public Builder copy(AddDistributedDatabaseGdsControlNodeResponse o) { * Build the response object. * @return the response object */ - public AddDistributedDatabaseGdsControlNodeResponse build() { - return new AddDistributedDatabaseGdsControlNodeResponse( + public ActivateIotFlowRuntimeResponse build() { + return new ActivateIotFlowRuntimeResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AddDistributedDatabaseGdsControlNodeResponse)) { + if (!(o instanceof ActivateIotFlowRuntimeResponse)) { return false; } - AddDistributedDatabaseGdsControlNodeResponse other = - (AddDistributedDatabaseGdsControlNodeResponse) o; + ActivateIotFlowRuntimeResponse other = (ActivateIotFlowRuntimeResponse) 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/DeleteDistributedAutonomousDatabaseResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java similarity index 77% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java index 4d111efdf98..a48ad9b4e92 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ChangeIotFlowRuntimeCompartmentResponse.java @@ -2,21 +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.iot.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ChangeIotFlowRuntimeCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -47,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private DeleteDistributedAutonomousDatabaseResponse( + private ChangeIotFlowRuntimeCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -112,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(DeleteDistributedAutonomousDatabaseResponse o) { + public Builder copy(ChangeIotFlowRuntimeCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +128,8 @@ public Builder copy(DeleteDistributedAutonomousDatabaseResponse o) { * Build the response object. * @return the response object */ - public DeleteDistributedAutonomousDatabaseResponse build() { - return new DeleteDistributedAutonomousDatabaseResponse( + public ChangeIotFlowRuntimeCompartmentResponse build() { + return new ChangeIotFlowRuntimeCompartmentResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof ChangeIotFlowRuntimeCompartmentResponse)) { return false; } - DeleteDistributedAutonomousDatabaseResponse other = - (DeleteDistributedAutonomousDatabaseResponse) o; + ChangeIotFlowRuntimeCompartmentResponse other = (ChangeIotFlowRuntimeCompartmentResponse) 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/GenerateDistributedAutonomousDatabaseWalletResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.java similarity index 51% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.java index 18fc88ac0a0..808451401d4 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/CreateIotFlowRuntimeResponse.java @@ -2,28 +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.responses; +package com.oracle.bmc.iot.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedAutonomousDatabaseWalletResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class CreateIotFlowRuntimeResponse 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. - * + * The URI of the created IoT flow runtime. */ - private String opcRequestId; + private String location; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * + * The URI of the created IoT flow runtime. * @return the value */ - public String getOpcRequestId() { - return opcRequestId; + public String getLocation() { + return location; + } + + /** + * Same as location. + */ + private String contentLocation; + + /** + * Same as location. + * @return the value + */ + public String getContentLocation() { + return contentLocation; } /** @@ -42,67 +50,78 @@ public String getEtag() { } /** - * Size of the file. + * 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 Long contentLength; + private String opcWorkRequestId; /** - * Size of the file. + * 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 Long getContentLength() { - return contentLength; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } /** - * The date and time the wallet was created. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * */ - private java.util.Date lastModified; + private String opcRequestId; /** - * The date and time the wallet was created. + * 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 java.util.Date getLastModified() { - return lastModified; + public String getOpcRequestId() { + return opcRequestId; } /** - * The returned java.io.InputStream instance. + * The returned IotFlowRuntime instance. */ - private java.io.InputStream inputStream; + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; /** - * The returned java.io.InputStream instance. + * The returned IotFlowRuntime instance. * @return the value */ - public java.io.InputStream getInputStream() { - return inputStream; + public com.oracle.bmc.iot.model.IotFlowRuntime getIotFlowRuntime() { + return iotFlowRuntime; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcRequestId", + "location", + "contentLocation", "etag", - "contentLength", - "lastModified", - "inputStream" + "opcWorkRequestId", + "opcRequestId", + "iotFlowRuntime" }) - private GenerateDistributedAutonomousDatabaseWalletResponse( + private CreateIotFlowRuntimeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, + String location, + String contentLocation, String etag, - Long contentLength, - java.util.Date lastModified, - java.io.InputStream inputStream) { + String opcWorkRequestId, + String opcRequestId, + com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; + this.location = location; + this.contentLocation = contentLocation; this.etag = etag; - this.contentLength = contentLength; - this.lastModified = lastModified; - this.inputStream = inputStream; + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + this.iotFlowRuntime = iotFlowRuntime; } public static class Builder { @@ -121,21 +140,32 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * + * The URI of the created IoT flow runtime. */ - private String opcRequestId; + private String location; /** - * 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 + * The URI of the created IoT flow runtime. + * @param location the value to set * @return this builder */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * Same as location. + */ + private String contentLocation; + + /** + * Same as location. + * @param contentLocation the value to set + * @return this builder + */ + public Builder contentLocation(String contentLocation) { + this.contentLocation = contentLocation; return this; } @@ -157,47 +187,55 @@ public Builder etag(String etag) { } /** - * Size of the file. + * 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 Long contentLength; + private String opcWorkRequestId; /** - * Size of the file. - * @param contentLength the value to set + * 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 contentLength(Long contentLength) { - this.contentLength = contentLength; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } /** - * The date and time the wallet was created. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * */ - private java.util.Date lastModified; + private String opcRequestId; /** - * The date and time the wallet was created. - * @param lastModified the value to set + * 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 lastModified(java.util.Date lastModified) { - this.lastModified = lastModified; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * The returned java.io.InputStream instance. + * The returned IotFlowRuntime instance. */ - private java.io.InputStream inputStream; + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; /** - * The returned java.io.InputStream instance. - * @param inputStream the value to set + * The returned IotFlowRuntime instance. + * @param iotFlowRuntime the value to set * @return this builder */ - public Builder inputStream(java.io.InputStream inputStream) { - this.inputStream = inputStream; + public Builder iotFlowRuntime(com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + this.iotFlowRuntime = iotFlowRuntime; return this; } @@ -205,14 +243,15 @@ public Builder inputStream(java.io.InputStream inputStream) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GenerateDistributedAutonomousDatabaseWalletResponse o) { + public Builder copy(CreateIotFlowRuntimeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); + location(o.getLocation()); + contentLocation(o.getContentLocation()); etag(o.getEtag()); - contentLength(o.getContentLength()); - lastModified(o.getLastModified()); - inputStream(o.getInputStream()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + iotFlowRuntime(o.getIotFlowRuntime()); return this; } @@ -221,15 +260,16 @@ public Builder copy(GenerateDistributedAutonomousDatabaseWalletResponse o) { * Build the response object. * @return the response object */ - public GenerateDistributedAutonomousDatabaseWalletResponse build() { - return new GenerateDistributedAutonomousDatabaseWalletResponse( + public CreateIotFlowRuntimeResponse build() { + return new CreateIotFlowRuntimeResponse( __httpStatusCode__, headers, - opcRequestId, + location, + contentLocation, etag, - contentLength, - lastModified, - inputStream); + opcWorkRequestId, + opcRequestId, + iotFlowRuntime); } } @@ -246,11 +286,12 @@ 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(",location=").append(String.valueOf(location)); + sb.append(",contentLocation=").append(String.valueOf(contentLocation)); 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(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",iotFlowRuntime=").append(String.valueOf(iotFlowRuntime)); sb.append(")"); return sb.toString(); } @@ -260,31 +301,36 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GenerateDistributedAutonomousDatabaseWalletResponse)) { + if (!(o instanceof CreateIotFlowRuntimeResponse)) { return false; } - GenerateDistributedAutonomousDatabaseWalletResponse other = - (GenerateDistributedAutonomousDatabaseWalletResponse) o; + CreateIotFlowRuntimeResponse other = (CreateIotFlowRuntimeResponse) o; return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.contentLocation, other.contentLocation) && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.contentLength, other.contentLength) - && java.util.Objects.equals(this.lastModified, other.lastModified) - && java.util.Objects.equals(this.inputStream, other.inputStream); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.iotFlowRuntime, other.iotFlowRuntime); } @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.location == null ? 43 : this.location.hashCode()); + result = + (result * PRIME) + + (this.contentLocation == null ? 43 : this.contentLocation.hashCode()); result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.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()); + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.iotFlowRuntime == null ? 43 : this.iotFlowRuntime.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java similarity index 78% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java index c6e56926f41..f539b2baf0d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeactivateIotFlowRuntimeResponse.java @@ -2,20 +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.iot.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeactivateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -46,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private ConfigureDistributedDatabaseGsmsResponse( + private DeactivateIotFlowRuntimeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -72,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -111,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ConfigureDistributedDatabaseGsmsResponse o) { + public Builder copy(DeactivateIotFlowRuntimeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -124,8 +128,8 @@ public Builder copy(ConfigureDistributedDatabaseGsmsResponse o) { * Build the response object. * @return the response object */ - public ConfigureDistributedDatabaseGsmsResponse build() { - return new ConfigureDistributedDatabaseGsmsResponse( + public DeactivateIotFlowRuntimeResponse build() { + return new DeactivateIotFlowRuntimeResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -154,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedDatabaseGsmsResponse)) { + if (!(o instanceof DeactivateIotFlowRuntimeResponse)) { return false; } - ConfigureDistributedDatabaseGsmsResponse other = - (ConfigureDistributedDatabaseGsmsResponse) o; + DeactivateIotFlowRuntimeResponse other = (DeactivateIotFlowRuntimeResponse) 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/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.java similarity index 78% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.java index f4620c8cc9b..f431c53254c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/DeleteIotFlowRuntimeResponse.java @@ -2,21 +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.iot.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.iot.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedAutonomousDatabaseGdsControlNodeResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class DeleteIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -47,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private AddDistributedAutonomousDatabaseGdsControlNodeResponse( + private DeleteIotFlowRuntimeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -112,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(AddDistributedAutonomousDatabaseGdsControlNodeResponse o) { + public Builder copy(DeleteIotFlowRuntimeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +128,8 @@ public Builder copy(AddDistributedAutonomousDatabaseGdsControlNodeResponse o) { * Build the response object. * @return the response object */ - public AddDistributedAutonomousDatabaseGdsControlNodeResponse build() { - return new AddDistributedAutonomousDatabaseGdsControlNodeResponse( + public DeleteIotFlowRuntimeResponse build() { + return new DeleteIotFlowRuntimeResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AddDistributedAutonomousDatabaseGdsControlNodeResponse)) { + if (!(o instanceof DeleteIotFlowRuntimeResponse)) { return false; } - AddDistributedAutonomousDatabaseGdsControlNodeResponse other = - (AddDistributedAutonomousDatabaseGdsControlNodeResponse) o; + DeleteIotFlowRuntimeResponse other = (DeleteIotFlowRuntimeResponse) 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-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.java new file mode 100644 index 00000000000..cbfb70596ae --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeFlowsResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeFlowsResponse 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 java.util.Map<String, Object> instance. + */ + private java.util.Map map; + + /** + * The returned java.util.Map<String, Object> instance. + * @return the value + */ + public java.util.Map getMap() { + return map; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "map" + }) + private GetIotFlowRuntimeFlowsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + java.util.Map map) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.map = map; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.util.Map<String, Object> instance. + */ + private java.util.Map map; + + /** + * The returned java.util.Map<String, Object> instance. + * @param map the value to set + * @return this builder + */ + public Builder map(java.util.Map map) { + this.map = map; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetIotFlowRuntimeFlowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + map(o.getMap()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetIotFlowRuntimeFlowsResponse build() { + return new GetIotFlowRuntimeFlowsResponse( + __httpStatusCode__, headers, etag, opcRequestId, map); + } + } + + /** + * 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(",map=").append(String.valueOf(map)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetIotFlowRuntimeFlowsResponse)) { + return false; + } + + GetIotFlowRuntimeFlowsResponse other = (GetIotFlowRuntimeFlowsResponse) 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.map, other.map); + } + + @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.map == null ? 43 : this.map.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.java new file mode 100644 index 00000000000..8409176c282 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/GetIotFlowRuntimeResponse.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class GetIotFlowRuntimeResponse 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 IotFlowRuntime instance. + */ + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; + + /** + * The returned IotFlowRuntime instance. + * @return the value + */ + public com.oracle.bmc.iot.model.IotFlowRuntime getIotFlowRuntime() { + return iotFlowRuntime; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "iotFlowRuntime" + }) + private GetIotFlowRuntimeResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.iotFlowRuntime = iotFlowRuntime; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 IotFlowRuntime instance. + */ + private com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime; + + /** + * The returned IotFlowRuntime instance. + * @param iotFlowRuntime the value to set + * @return this builder + */ + public Builder iotFlowRuntime(com.oracle.bmc.iot.model.IotFlowRuntime iotFlowRuntime) { + this.iotFlowRuntime = iotFlowRuntime; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetIotFlowRuntimeResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + iotFlowRuntime(o.getIotFlowRuntime()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetIotFlowRuntimeResponse build() { + return new GetIotFlowRuntimeResponse( + __httpStatusCode__, headers, etag, opcRequestId, iotFlowRuntime); + } + } + + /** + * 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(",iotFlowRuntime=").append(String.valueOf(iotFlowRuntime)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetIotFlowRuntimeResponse)) { + return false; + } + + GetIotFlowRuntimeResponse other = (GetIotFlowRuntimeResponse) 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.iotFlowRuntime, other.iotFlowRuntime); + } + + @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.iotFlowRuntime == null ? 43 : this.iotFlowRuntime.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java new file mode 100644 index 00000000000..1e404463a39 --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/ListIotFlowRuntimesResponse.java @@ -0,0 +1,268 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class ListIotFlowRuntimesResponse 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; + } + + /** + * 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 opcPrevPage; + + /** + * 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 getOpcPrevPage() { + return opcPrevPage; + } + + /** + * The returned IotFlowRuntimeCollection instance. + */ + private com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection; + + /** + * The returned IotFlowRuntimeCollection instance. + * @return the value + */ + public com.oracle.bmc.iot.model.IotFlowRuntimeCollection getIotFlowRuntimeCollection() { + return iotFlowRuntimeCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "iotFlowRuntimeCollection" + }) + private ListIotFlowRuntimesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.iotFlowRuntimeCollection = iotFlowRuntimeCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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; + } + + /** + * 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 opcPrevPage; + + /** + * 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 opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** + * The returned IotFlowRuntimeCollection instance. + */ + private com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection; + + /** + * The returned IotFlowRuntimeCollection instance. + * @param iotFlowRuntimeCollection the value to set + * @return this builder + */ + public Builder iotFlowRuntimeCollection( + com.oracle.bmc.iot.model.IotFlowRuntimeCollection iotFlowRuntimeCollection) { + this.iotFlowRuntimeCollection = iotFlowRuntimeCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListIotFlowRuntimesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + iotFlowRuntimeCollection(o.getIotFlowRuntimeCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListIotFlowRuntimesResponse build() { + return new ListIotFlowRuntimesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + iotFlowRuntimeCollection); + } + } + + /** + * 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(",iotFlowRuntimeCollection=").append(String.valueOf(iotFlowRuntimeCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListIotFlowRuntimesResponse)) { + return false; + } + + ListIotFlowRuntimesResponse other = (ListIotFlowRuntimesResponse) 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.iotFlowRuntimeCollection, other.iotFlowRuntimeCollection); + } + + @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.iotFlowRuntimeCollection == null + ? 43 + : this.iotFlowRuntimeCollection.hashCode()); + return result; + } +} diff --git a/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.java new file mode 100644 index 00000000000..9f776d6dc6e --- /dev/null +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeFlowsResponse.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.iot.responses; + +import com.oracle.bmc.iot.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeFlowsResponse 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 java.util.Map<String, Object> instance. + */ + private java.util.Map map; + + /** + * The returned java.util.Map<String, Object> instance. + * @return the value + */ + public java.util.Map getMap() { + return map; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "map" + }) + private UpdateIotFlowRuntimeFlowsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + java.util.Map map) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.map = map; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.util.Map<String, Object> instance. + */ + private java.util.Map map; + + /** + * The returned java.util.Map<String, Object> instance. + * @param map the value to set + * @return this builder + */ + public Builder map(java.util.Map map) { + this.map = map; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateIotFlowRuntimeFlowsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + map(o.getMap()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateIotFlowRuntimeFlowsResponse build() { + return new UpdateIotFlowRuntimeFlowsResponse( + __httpStatusCode__, headers, etag, opcRequestId, map); + } + } + + /** + * 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(",map=").append(String.valueOf(map)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateIotFlowRuntimeFlowsResponse)) { + return false; + } + + UpdateIotFlowRuntimeFlowsResponse other = (UpdateIotFlowRuntimeFlowsResponse) 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.map, other.map); + } + + @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.map == null ? 43 : this.map.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.java similarity index 78% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java rename to bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.java index 81ae7f8e818..f617551e516 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.java +++ b/bmc-iot/src/main/java/com/oracle/bmc/iot/responses/UpdateIotFlowRuntimeResponse.java @@ -2,21 +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.distributeddatabase.responses; +package com.oracle.bmc.iot.responses; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.iot.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250531") +public class UpdateIotFlowRuntimeResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 */ @@ -47,7 +48,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse( + private UpdateIotFlowRuntimeResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -73,13 +74,15 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 @@ -112,7 +115,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse o) { + public Builder copy(UpdateIotFlowRuntimeResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -125,8 +128,8 @@ public Builder copy(UploadDistributedDatabaseSignedCertificateAndGenerateWalletR * Build the response object. * @return the response object */ - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse build() { - return new UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse( + public UpdateIotFlowRuntimeResponse build() { + return new UpdateIotFlowRuntimeResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -155,12 +158,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse)) { + if (!(o instanceof UpdateIotFlowRuntimeResponse)) { return false; } - UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse other = - (UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse) o; + UpdateIotFlowRuntimeResponse other = (UpdateIotFlowRuntimeResponse) 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-jms/pom.xml b/bmc-jms/pom.xml index 28da3dc4e84..0505976d3f2 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-jms @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index a1c3cc7d1c9..4ac1435e44b 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index f3aa1e86749..5cb605c956b 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index da6e5f10fc6..460d06f882e 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 74d24a2372c..e83fb6f74fa 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-licensemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 0539a72652c..1ee8bcce531 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-limits @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index 8fd0c5301e2..e1334438b59 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index b5e4bd63a32..d117c7bf49c 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index a55c0b33e19..4d25fe8bcca 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-lockbox @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index c50164e2fd4..7a9070f77a8 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-loganalytics @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index ecd22288671..014a33f2db4 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-logging @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 45a3f2a7152..2d2e3d63131 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-loggingingestion @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index aeb420f6284..c26bb7e786e 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-loggingsearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 10abed28af4..ff575a6a73c 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index efe028a2c5d..8019c03387e 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index efc173f76d9..da5d89a1a26 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-managementagent @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 594fd148b71..651070b219c 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-managementdashboard @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 92238e2f10b..010070341f7 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-marketplace @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 24f54e53e09..1a8b9791462 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 25f6ab83ce4..5647f7c225f 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java similarity index 79% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java index ca031226932..289db124c3e 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifact.java @@ -2,17 +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.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; /** - * A description of the ReferenceService API. in progress + * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateSqlFromNlJob extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface AdministratorArtifact extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,15 +60,15 @@ public interface GenerateSqlFromNlJob extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Generates a SQL query from a natural language input for the specified SemanticStore. - * + * 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 GenerateSqlFromNl API. + * Example: Click here to see how to use UpdateAdminArtifactStatus API. */ - GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request); + UpdateAdminArtifactStatusResponse updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java similarity index 80% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.java index 4735522b534..c902dc2a026 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsync.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.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; /** - * A description of the ReferenceService API. in progress + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud Infrastructure Marketplace. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateEnrichmentJobAsync extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface AdministratorArtifactAsync extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -59,8 +59,7 @@ public interface GenerateEnrichmentJobAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Creates a new asynchronous EnrichmentJob. - * + * 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. @@ -69,9 +68,9 @@ public interface GenerateEnrichmentJobAsync extends AutoCloseable { * 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 generateEnrichmentJob( - GenerateEnrichmentJobRequest request, + java.util.concurrent.Future updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request, com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + UpdateAdminArtifactStatusRequest, UpdateAdminArtifactStatusResponse> handler); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java similarity index 90% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.java index 69ff566a6f8..b823c2b814f 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactAsyncClient.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.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.internal.http.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** - * Async client implementation for GenerateEnrichmentJob service.
      + * 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, @@ -23,21 +23,21 @@ * Future.isDone/isCancelled.
      * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateEnrichmentJobAsyncClient implements GenerateEnrichmentJobAsync { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class AdministratorArtifactAsyncClient implements AdministratorArtifactAsync { /** - * Service instance for GenerateEnrichmentJob. + * Service instance for AdministratorArtifact. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateEnrichmentJobClient.class.getName()) + .serviceName(AdministratorArtifactClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateEnrichmentJobAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(AdministratorArtifactAsyncClient.class); private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; @@ -80,7 +80,7 @@ public class GenerateEnrichmentJobAsyncClient implements GenerateEnrichmentJobAs * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -90,7 +90,7 @@ public GenerateEnrichmentJobAsyncClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -103,7 +103,7 @@ public GenerateEnrichmentJobAsyncClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -125,7 +125,7 @@ public GenerateEnrichmentJobAsyncClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -149,7 +149,7 @@ public GenerateEnrichmentJobAsyncClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -176,7 +176,7 @@ public GenerateEnrichmentJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -207,7 +207,7 @@ public GenerateEnrichmentJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -243,7 +243,7 @@ public GenerateEnrichmentJobAsyncClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - public GenerateEnrichmentJobAsyncClient( + public AdministratorArtifactAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -324,7 +324,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateEnrichmentJobAsyncClient> { + Builder, AdministratorArtifactAsyncClient> { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -337,7 +337,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public GenerateEnrichmentJobAsyncClient build( + public AdministratorArtifactAsyncClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -345,7 +345,7 @@ public GenerateEnrichmentJobAsyncClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new GenerateEnrichmentJobAsyncClient( + return new AdministratorArtifactAsyncClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -472,46 +472,47 @@ public void close() { } @Override - public java.util.concurrent.Future generateEnrichmentJob( - GenerateEnrichmentJobRequest request, + public java.util.concurrent.Future updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request, final com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + UpdateAdminArtifactStatusRequest, UpdateAdminArtifactStatusResponse> handler) { - LOG.trace("Called async generateEnrichmentJob"); - final GenerateEnrichmentJobRequest interceptedRequest = - GenerateEnrichmentJobConverter.interceptRequest(request); + LOG.trace("Called async updateAdminArtifactStatus"); + final UpdateAdminArtifactStatusRequest interceptedRequest = + UpdateAdminArtifactStatusConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateEnrichmentJobConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + UpdateAdminArtifactStatusConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GenerateEnrichmentJob", - "GenerateEnrichmentJob", + "AdministratorArtifact", + "UpdateAdminArtifactStatus", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/UpdateAdminArtifactStatus"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateAdminArtifactStatusResponse> transformer = - GenerateEnrichmentJobConverter.fromResponse( + UpdateAdminArtifactStatusConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> + UpdateAdminArtifactStatusRequest, UpdateAdminArtifactStatusResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse>, - java.util.concurrent.Future> + UpdateAdminArtifactStatusRequest, + UpdateAdminArtifactStatusResponse>, + java.util.concurrent.Future> futureSupplier = - client.postFutureSupplier( + client.putFutureSupplier( interceptedRequest, - interceptedRequest.getGenerateEnrichmentJobDetails(), + interceptedRequest.getUpdateAdminArtifactStatusDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse>( + UpdateAdminArtifactStatusRequest, UpdateAdminArtifactStatusResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java similarity index 92% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java index 82cc464d347..a0fbd6f5e57 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorArtifactClient.java @@ -2,32 +2,32 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.internal.http.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; import com.oracle.bmc.util.CircuitBreakerUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateEnrichmentJobClient implements GenerateEnrichmentJob { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class AdministratorArtifactClient implements AdministratorArtifact { /** - * Service instance for GenerateEnrichmentJob. + * Service instance for AdministratorArtifact. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateEnrichmentJobClient.class.getName()) + .serviceName(AdministratorArtifactClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateEnrichmentJobClient.class); + org.slf4j.LoggerFactory.getLogger(AdministratorArtifactClient.class); com.oracle.bmc.http.internal.RestClient getClient() { return client; @@ -76,7 +76,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -86,7 +86,7 @@ public GenerateEnrichmentJobClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -99,7 +99,7 @@ public GenerateEnrichmentJobClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -121,7 +121,7 @@ public GenerateEnrichmentJobClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -145,7 +145,7 @@ public GenerateEnrichmentJobClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -172,7 +172,7 @@ public GenerateEnrichmentJobClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -203,7 +203,7 @@ public GenerateEnrichmentJobClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GenerateEnrichmentJobClient( + public AdministratorArtifactClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -241,7 +241,7 @@ public GenerateEnrichmentJobClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - protected GenerateEnrichmentJobClient( + protected AdministratorArtifactClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -337,7 +337,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateEnrichmentJobClient> { + Builder, AdministratorArtifactClient> { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -350,7 +350,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public GenerateEnrichmentJobClient build( + public AdministratorArtifactClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -358,7 +358,7 @@ public GenerateEnrichmentJobClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new GenerateEnrichmentJobClient( + return new AdministratorArtifactClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -484,28 +484,27 @@ public void close() { } @Override - public GenerateEnrichmentJobResponse generateEnrichmentJob( - GenerateEnrichmentJobRequest request) { - LOG.trace("Called generateEnrichmentJob"); - final GenerateEnrichmentJobRequest interceptedRequest = - GenerateEnrichmentJobConverter.interceptRequest(request); + public UpdateAdminArtifactStatusResponse updateAdminArtifactStatus( + UpdateAdminArtifactStatusRequest request) { + LOG.trace("Called updateAdminArtifactStatus"); + final UpdateAdminArtifactStatusRequest interceptedRequest = + UpdateAdminArtifactStatusConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateEnrichmentJobConverter.fromRequest(client, interceptedRequest); + UpdateAdminArtifactStatusConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GenerateEnrichmentJob", - "GenerateEnrichmentJob", + "AdministratorArtifact", + "UpdateAdminArtifactStatus", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/UpdateAdminArtifactStatus"); + java.util.function.Function transformer = - GenerateEnrichmentJobConverter.fromResponse( + UpdateAdminArtifactStatusConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -517,9 +516,10 @@ public GenerateEnrichmentJobResponse generateEnrichmentJob( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( + client.put( ib, - retriedRequest.getGenerateEnrichmentJobDetails(), + retriedRequest + .getUpdateAdminArtifactStatusDetails(), retriedRequest); return transformer.apply(response); }); diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java similarity index 81% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java index 3b98c435e3f..9b6db0e9bf4 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisher.java @@ -2,17 +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.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; /** - * A description of the ReferenceService API. in progress + * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface CancelEnrichmentJob extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface AdministratorPublisher extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,15 +60,14 @@ public interface CancelEnrichmentJob extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Cancels an EnrichmentJob resource by identifier. - * + * 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 CancelEnrichmentJob API. + * Example: Click here to see how to use GetAdminPublisher API. */ - CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request); + GetAdminPublisherResponse getAdminPublisher(GetAdminPublisherRequest request); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java similarity index 81% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.java index 04c0433a33f..c49e6ec1204 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsync.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.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; /** - * A description of the ReferenceService API. in progress + * Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud Infrastructure Marketplace. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface ListEnrichmentJobsAsync extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface AdministratorPublisherAsync extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -59,8 +59,7 @@ public interface ListEnrichmentJobsAsync extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Lists EnrichmentJobs in a semantic store. - * + * 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. @@ -69,9 +68,9 @@ public interface ListEnrichmentJobsAsync extends AutoCloseable { * types of responses (like java.io.InputStream) may not be able to be read in * both places as the underlying stream may only be consumed once. */ - java.util.concurrent.Future listEnrichmentJobs( - ListEnrichmentJobsRequest request, + java.util.concurrent.Future getAdminPublisher( + GetAdminPublisherRequest request, com.oracle.bmc.responses.AsyncHandler< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> + GetAdminPublisherRequest, GetAdminPublisherResponse> handler); } diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java similarity index 91% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.java index c0888df964d..aad9195386f 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherAsyncClient.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.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.internal.http.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** - * Async client implementation for GetEnrichmentJob service.
      + * 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, @@ -23,21 +23,21 @@ * Future.isDone/isCancelled.
      * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobAsyncClient implements GetEnrichmentJobAsync { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class AdministratorPublisherAsyncClient implements AdministratorPublisherAsync { /** - * Service instance for GetEnrichmentJob. + * Service instance for AdministratorPublisher. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(GetEnrichmentJobClient.class.getName()) + .serviceName(AdministratorPublisherClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetEnrichmentJobAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(AdministratorPublisherAsyncClient.class); private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; @@ -80,7 +80,7 @@ public class GetEnrichmentJobAsyncClient implements GetEnrichmentJobAsync { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -90,7 +90,7 @@ public GetEnrichmentJobAsyncClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -103,7 +103,7 @@ public GetEnrichmentJobAsyncClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -125,7 +125,7 @@ public GetEnrichmentJobAsyncClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -149,7 +149,7 @@ public GetEnrichmentJobAsyncClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -176,7 +176,7 @@ public GetEnrichmentJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -207,7 +207,7 @@ public GetEnrichmentJobAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -243,7 +243,7 @@ public GetEnrichmentJobAsyncClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - public GetEnrichmentJobAsyncClient( + public AdministratorPublisherAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -324,7 +324,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GetEnrichmentJobAsyncClient> { + Builder, AdministratorPublisherAsyncClient> { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -337,7 +337,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public GetEnrichmentJobAsyncClient build( + public AdministratorPublisherAsyncClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -345,7 +345,7 @@ public GetEnrichmentJobAsyncClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new GetEnrichmentJobAsyncClient( + return new AdministratorPublisherAsyncClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -472,39 +472,39 @@ public void close() { } @Override - public java.util.concurrent.Future getEnrichmentJob( - GetEnrichmentJobRequest request, + public java.util.concurrent.Future getAdminPublisher( + GetAdminPublisherRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetEnrichmentJobRequest, GetEnrichmentJobResponse> + GetAdminPublisherRequest, GetAdminPublisherResponse> handler) { - LOG.trace("Called async getEnrichmentJob"); - final GetEnrichmentJobRequest interceptedRequest = - GetEnrichmentJobConverter.interceptRequest(request); + LOG.trace("Called async getAdminPublisher"); + final GetAdminPublisherRequest interceptedRequest = + GetAdminPublisherConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); + GetAdminPublisherConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "GetEnrichmentJob", - "GetEnrichmentJob", + "AdministratorPublisher", + "GetAdminPublisher", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); - final java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/GetAdminPublisher"); + final java.util.function.Function transformer = - GetEnrichmentJobConverter.fromResponse( + GetAdminPublisherConverter.fromResponse( java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetEnrichmentJobRequest, GetEnrichmentJobResponse>, - java.util.concurrent.Future> + GetAdminPublisherRequest, GetAdminPublisherResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetEnrichmentJobRequest, GetEnrichmentJobResponse>( + GetAdminPublisherRequest, GetAdminPublisherResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java similarity index 92% rename from bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java index e2677a48d8b..3e71cf91087 100644 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/AdministratorPublisherClient.java @@ -2,32 +2,32 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.generativeaidata; +package com.oracle.bmc.marketplacepublisher; -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; +import com.oracle.bmc.marketplacepublisher.internal.http.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; import com.oracle.bmc.util.CircuitBreakerUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class CancelEnrichmentJobClient implements CancelEnrichmentJob { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class AdministratorPublisherClient implements AdministratorPublisher { /** - * Service instance for CancelEnrichmentJob. + * Service instance for AdministratorPublisher. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(CancelEnrichmentJobClient.class.getName()) + .serviceName(AdministratorPublisherClient.class.getName()) .serviceEndpointPrefix("") .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") + "https://marketplace-publisher.{region}.oci.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CancelEnrichmentJobClient.class); + org.slf4j.LoggerFactory.getLogger(AdministratorPublisherClient.class); com.oracle.bmc.http.internal.RestClient getClient() { return client; @@ -76,7 +76,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -86,7 +86,7 @@ public CancelEnrichmentJobClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -99,7 +99,7 @@ public CancelEnrichmentJobClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -121,7 +121,7 @@ public CancelEnrichmentJobClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -145,7 +145,7 @@ public CancelEnrichmentJobClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -172,7 +172,7 @@ public CancelEnrichmentJobClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -203,7 +203,7 @@ public CancelEnrichmentJobClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public CancelEnrichmentJobClient( + public AdministratorPublisherClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -241,7 +241,7 @@ public CancelEnrichmentJobClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - protected CancelEnrichmentJobClient( + protected AdministratorPublisherClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -337,7 +337,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, CancelEnrichmentJobClient> { + Builder, AdministratorPublisherClient> { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -350,7 +350,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public CancelEnrichmentJobClient build( + public AdministratorPublisherClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -358,7 +358,7 @@ public CancelEnrichmentJobClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new CancelEnrichmentJobClient( + return new AdministratorPublisherClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -484,27 +484,26 @@ public void close() { } @Override - public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request) { - LOG.trace("Called cancelEnrichmentJob"); - final CancelEnrichmentJobRequest interceptedRequest = - CancelEnrichmentJobConverter.interceptRequest(request); + public GetAdminPublisherResponse getAdminPublisher(GetAdminPublisherRequest request) { + LOG.trace("Called getAdminPublisher"); + final GetAdminPublisherRequest interceptedRequest = + GetAdminPublisherConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CancelEnrichmentJobConverter.fromRequest(client, interceptedRequest); + GetAdminPublisherConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "CancelEnrichmentJob", - "CancelEnrichmentJob", + "AdministratorPublisher", + "GetAdminPublisher", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); - java.util.function.Function + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisher/GetAdminPublisher"); + java.util.function.Function transformer = - CancelEnrichmentJobConverter.fromResponse( + GetAdminPublisherConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -515,8 +514,7 @@ public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobReques return tokenRefreshRetrier.execute( retryRequest, retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); return transformer.apply(response); }); }); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java new file mode 100644 index 00000000000..0056a65055c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministrator.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public interface MarketplaceAdministrator 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); + + /** + * 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 + * @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 ChangeListingRevisionStatusToNew API. + */ + ChangeListingRevisionStatusToNewResponse changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request); + + /** + * Creates a new Market. + * + * @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 CreateMarket API. + */ + CreateMarketResponse createMarket(CreateMarketRequest request); + + /** + * 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 + * @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 GetAdminArtifact API. + */ + GetAdminArtifactResponse getAdminArtifact(GetAdminArtifactRequest request); + + /** + * 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 + * @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 GetAdminListing API. + */ + GetAdminListingResponse getAdminListing(GetAdminListingRequest request); + + /** + * 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 + * @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 GetAdminListingRevision API. + */ + GetAdminListingRevisionResponse getAdminListingRevision(GetAdminListingRevisionRequest request); + + /** + * 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 + * @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 GetAdminListingRevisionAttachment API. + */ + GetAdminListingRevisionAttachmentResponse getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request); + + /** + * 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 + * @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 GetAdminListingRevisionPackage API. + */ + GetAdminListingRevisionPackageResponse getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request); + + /** + * 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 + * @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 GetAdminTerm API. + */ + GetAdminTermResponse getAdminTerm(GetAdminTermRequest request); + + /** + * 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 + * @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 GetAdminTermVersion API. + */ + GetAdminTermVersionResponse getAdminTermVersion(GetAdminTermVersionRequest request); + + /** + * 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 + * @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 ListAdminArtifacts API. + */ + ListAdminArtifactsResponse listAdminArtifacts(ListAdminArtifactsRequest request); + + /** + * 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 + * @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 ListAdminListingRevisionAttachments API. + */ + ListAdminListingRevisionAttachmentsResponse listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request); + + /** + * 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 + * @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 ListAdminListingRevisionPackages API. + */ + ListAdminListingRevisionPackagesResponse listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest request); + + /** + * 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 + * @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 ListAdminListingRevisions API. + */ + ListAdminListingRevisionsResponse listAdminListingRevisions( + ListAdminListingRevisionsRequest request); + + /** + * 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 + * @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 ListAdminPublisherSkus API. + */ + ListAdminPublisherSkusResponse listAdminPublisherSkus(ListAdminPublisherSkusRequest request); + + /** + * 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 + * @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 ListAdminTermVersions API. + */ + ListAdminTermVersionsResponse listAdminTermVersions(ListAdminTermVersionsRequest request); + + /** + * 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 + * @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 ListAdminTerms API. + */ + ListAdminTermsResponse listAdminTerms(ListAdminTermsRequest request); + + /** + * Lists the work requests in a compartment. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListAdminWorkRequests API. + */ + ListAdminWorkRequestsResponse listAdminWorkRequests(ListAdminWorkRequestsRequest request); + + /** + * 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. + */ + 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..ab24713e8ae --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsync.java @@ -0,0 +1,349 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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..ae9d2eeeec4 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorAsyncClient.java @@ -0,0 +1,1300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * 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 + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class MarketplaceAdministratorAsyncClient 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); + + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public MarketplaceAdministratorAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public MarketplaceAdministratorAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public MarketplaceAdministratorAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + 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, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.clientConfigurationToUse = configuration; + + this.refreshClient(); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * 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); + 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( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new MarketplaceAdministratorAsyncClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint); + } + } + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public java.util.concurrent.Future + changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeListingRevisionStatusToNewRequest, + ChangeListingRevisionStatusToNewResponse> + handler) { + LOG.trace("Called async changeListingRevisionStatusToNew"); + final ChangeListingRevisionStatusToNewRequest interceptedRequest = + ChangeListingRevisionStatusToNewConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeListingRevisionStatusToNewConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ChangeListingRevisionStatusToNew", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/ChangeListingRevisionStatusToNew"); + final java.util.function.Function< + javax.ws.rs.core.Response, ChangeListingRevisionStatusToNewResponse> + transformer = + ChangeListingRevisionStatusToNewConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ChangeListingRevisionStatusToNewRequest, + ChangeListingRevisionStatusToNewResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeListingRevisionStatusToNewRequest, + ChangeListingRevisionStatusToNewResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeListingRevisionStatusToNewRequest, + ChangeListingRevisionStatusToNewResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createMarket( + CreateMarketRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async createMarket"); + final CreateMarketRequest interceptedRequest = + CreateMarketConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateMarketConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "CreateMarket", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Market/CreateMarket"); + final java.util.function.Function + transformer = + CreateMarketConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateMarketRequest, CreateMarketResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateMarketDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateMarketRequest, CreateMarketResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getAdminArtifact( + GetAdminArtifactRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminArtifactRequest, GetAdminArtifactResponse> + handler) { + LOG.trace("Called async getAdminArtifact"); + final GetAdminArtifactRequest interceptedRequest = + GetAdminArtifactConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminArtifactConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminArtifact", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifact/GetAdminArtifact"); + final java.util.function.Function + transformer = + GetAdminArtifactConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminArtifactRequest, GetAdminArtifactResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminArtifactRequest, GetAdminArtifactResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getAdminListing( + GetAdminListingRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRequest, GetAdminListingResponse> + handler) { + LOG.trace("Called async getAdminListing"); + final GetAdminListingRequest interceptedRequest = + GetAdminListingConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListing", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListing/GetAdminListing"); + final java.util.function.Function + transformer = + GetAdminListingConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRequest, GetAdminListingResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminListingRequest, GetAdminListingResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getAdminListingRevision( + GetAdminListingRevisionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionRequest, GetAdminListingRevisionResponse> + handler) { + LOG.trace("Called async getAdminListingRevision"); + final GetAdminListingRevisionRequest interceptedRequest = + GetAdminListingRevisionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingRevisionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevision", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/GetAdminListingRevision"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetAdminListingRevisionResponse> + transformer = + GetAdminListingRevisionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionRequest, GetAdminListingRevisionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionRequest, GetAdminListingRevisionResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminListingRevisionRequest, GetAdminListingRevisionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionAttachmentRequest, + GetAdminListingRevisionAttachmentResponse> + handler) { + LOG.trace("Called async getAdminListingRevisionAttachment"); + final GetAdminListingRevisionAttachmentRequest interceptedRequest = + GetAdminListingRevisionAttachmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingRevisionAttachmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionAttachment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachment/GetAdminListingRevisionAttachment"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetAdminListingRevisionAttachmentResponse> + transformer = + GetAdminListingRevisionAttachmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionAttachmentRequest, + GetAdminListingRevisionAttachmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionAttachmentRequest, + GetAdminListingRevisionAttachmentResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminListingRevisionAttachmentRequest, + GetAdminListingRevisionAttachmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionPackageRequest, + GetAdminListingRevisionPackageResponse> + handler) { + LOG.trace("Called async getAdminListingRevisionPackage"); + final GetAdminListingRevisionPackageRequest interceptedRequest = + GetAdminListingRevisionPackageConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingRevisionPackageConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionPackage", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackage/GetAdminListingRevisionPackage"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetAdminListingRevisionPackageResponse> + transformer = + GetAdminListingRevisionPackageConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionPackageRequest, + GetAdminListingRevisionPackageResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminListingRevisionPackageRequest, + GetAdminListingRevisionPackageResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminListingRevisionPackageRequest, GetAdminListingRevisionPackageResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getAdminTerm( + GetAdminTermRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getAdminTerm"); + final GetAdminTermRequest interceptedRequest = + GetAdminTermConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminTermConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminTerm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTerm/GetAdminTerm"); + final java.util.function.Function + transformer = + GetAdminTermConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminTermRequest, GetAdminTermResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminTermRequest, GetAdminTermResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getAdminTermVersion( + GetAdminTermVersionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetAdminTermVersionRequest, GetAdminTermVersionResponse> + handler) { + LOG.trace("Called async getAdminTermVersion"); + final GetAdminTermVersionRequest interceptedRequest = + GetAdminTermVersionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminTermVersionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminTermVersion", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersion/GetAdminTermVersion"); + final java.util.function.Function + transformer = + GetAdminTermVersionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetAdminTermVersionRequest, GetAdminTermVersionResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetAdminTermVersionRequest, GetAdminTermVersionResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetAdminTermVersionRequest, GetAdminTermVersionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAdminArtifacts( + ListAdminArtifactsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminArtifactsRequest, ListAdminArtifactsResponse> + handler) { + LOG.trace("Called async listAdminArtifacts"); + final ListAdminArtifactsRequest interceptedRequest = + ListAdminArtifactsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminArtifactsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminArtifacts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifactCollection/ListAdminArtifacts"); + final java.util.function.Function + transformer = + ListAdminArtifactsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminArtifactsRequest, ListAdminArtifactsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminArtifactsRequest, ListAdminArtifactsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse> + handler) { + LOG.trace("Called async listAdminListingRevisionAttachments"); + final ListAdminListingRevisionAttachmentsRequest interceptedRequest = + ListAdminListingRevisionAttachmentsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminListingRevisionAttachmentsConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionAttachments", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachmentCollection/ListAdminListingRevisionAttachments"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListAdminListingRevisionAttachmentsResponse> + transformer = + ListAdminListingRevisionAttachmentsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminListingRevisionAttachmentsRequest, + ListAdminListingRevisionAttachmentsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse> + handler) { + LOG.trace("Called async listAdminListingRevisionPackages"); + final ListAdminListingRevisionPackagesRequest interceptedRequest = + ListAdminListingRevisionPackagesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminListingRevisionPackagesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionPackages", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackageCollection/ListAdminListingRevisionPackages"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListAdminListingRevisionPackagesResponse> + transformer = + ListAdminListingRevisionPackagesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminListingRevisionPackagesRequest, + ListAdminListingRevisionPackagesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAdminListingRevisions( + ListAdminListingRevisionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse> + handler) { + LOG.trace("Called async listAdminListingRevisions"); + final ListAdminListingRevisionsRequest interceptedRequest = + ListAdminListingRevisionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminListingRevisionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionCollection/ListAdminListingRevisions"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListAdminListingRevisionsResponse> + transformer = + ListAdminListingRevisionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminListingRevisionsRequest, + ListAdminListingRevisionsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminListingRevisionsRequest, ListAdminListingRevisionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAdminPublisherSkus( + ListAdminPublisherSkusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse> + handler) { + LOG.trace("Called async listAdminPublisherSkus"); + final ListAdminPublisherSkusRequest interceptedRequest = + ListAdminPublisherSkusConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminPublisherSkusConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminPublisherSkus", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisherSkuCollection/ListAdminPublisherSkus"); + final java.util.function.Function + transformer = + ListAdminPublisherSkusConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminPublisherSkusRequest, ListAdminPublisherSkusResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAdminTermVersions( + ListAdminTermVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse> + handler) { + LOG.trace("Called async listAdminTermVersions"); + final ListAdminTermVersionsRequest interceptedRequest = + ListAdminTermVersionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminTermVersionsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminTermVersions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersionCollection/ListAdminTermVersions"); + final java.util.function.Function + transformer = + ListAdminTermVersionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminTermVersionsRequest, ListAdminTermVersionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAdminTerms( + ListAdminTermsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminTermsRequest, ListAdminTermsResponse> + handler) { + LOG.trace("Called async listAdminTerms"); + final ListAdminTermsRequest interceptedRequest = + ListAdminTermsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminTermsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminTerms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermCollection/ListAdminTerms"); + final java.util.function.Function + transformer = + ListAdminTermsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminTermsRequest, ListAdminTermsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminTermsRequest, ListAdminTermsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listAdminWorkRequests( + ListAdminWorkRequestsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse> + handler) { + LOG.trace("Called async listAdminWorkRequests"); + final ListAdminWorkRequestsRequest interceptedRequest = + ListAdminWorkRequestsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminWorkRequestsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminWorkRequestSummary/ListAdminWorkRequests"); + final java.util.function.Function + transformer = + ListAdminWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListAdminWorkRequestsRequest, ListAdminWorkRequestsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } +} 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..e0f7c33aa45 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorClient.java @@ -0,0 +1,1138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.CircuitBreakerUtils; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class MarketplaceAdministratorClient 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(); + // attempt twice if it's instance principals, immediately failures will try to refresh the token + private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MarketplaceAdministratorClient.class); + + com.oracle.bmc.http.internal.RestClient getClient() { + return client; + } + + private final MarketplaceAdministratorPaginators paginators; + private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider; + private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; + private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy + apacheConnectionClosingStrategy; + private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; + private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; + private final java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories; + private final boolean isNonBufferingApacheClient; + private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; + private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + circuitBreakerConfiguration; + private String regionId; + + // This pattern matches substrings that are enclosed within curly braces {} + private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = + Pattern.compile("\\{([^}]+)\\}"); + + /** + * Used to synchronize any updates on the `this.client` object. + */ + private final Object clientUpdate = new Object(); + + /** + * Stores the actual client object used to make the API calls. + * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. + * For any writes to the object, please synchronize on `this.clientUpdate`. + */ + private volatile com.oracle.bmc.http.internal.RestClient client; + + /** + * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. + * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. + */ + private volatile String overrideEndpoint = null; + + /** + * Creates a new service instance using the given authentication provider. + * @param authenticationDetailsProvider The authentication details provider, required. + */ + public MarketplaceAdministratorClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(authenticationDetailsProvider, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + */ + public MarketplaceAdministratorClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(authenticationDetailsProvider, configuration, null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + */ + public MarketplaceAdministratorClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + new java.util.ArrayList()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + additionalClientConfigurators, + null); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory + .createDefaultRequestSignerFactories(), + additionalClientConfigurators, + endpoint); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + */ + 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( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

      + * This is an advanced constructor for clients that want to take control over how requests are signed. + * Use the {@link Builder} to get access to all these parameters. + * + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + protected 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, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { + this.authenticationDetailsProvider = authenticationDetailsProvider; + java.util.List authenticationDetailsConfigurators = + new java.util.ArrayList<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { + authenticationDetailsConfigurators.addAll( + ((com.oracle.bmc.auth.ProvidesClientConfigurators) + this.authenticationDetailsProvider) + .getClientConfigurators()); + } + java.util.List allConfigurators = + new java.util.ArrayList<>(additionalClientConfigurators); + allConfigurators.addAll(authenticationDetailsConfigurators); + java.util.List + additionalSpiClientConfigurators = + com.oracle.bmc.util.internal.SpiClientConfiguratorUtils + .getEnabledSpiClientConfigurators(); + allConfigurators.addAll(additionalSpiClientConfigurators); + this.restClientFactory = + restClientFactoryBuilder + .clientConfigurator(clientConfigurator) + .additionalClientConfigurators(allConfigurators) + .build(); + this.isNonBufferingApacheClient = + com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( + this.restClientFactory.getClientConfigurator()); + this.apacheConnectionClosingStrategy = + com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( + restClientFactory.getClientConfigurator()); + + this.clientConfigurationToUse = + (configuration != null) + ? configuration + : com.oracle.bmc.ClientConfiguration.builder().build(); + this.defaultRequestSignerFactory = defaultRequestSignerFactory; + this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; + this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); + final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration + userCircuitBreakerConfiguration = + CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( + configuration); + if (userCircuitBreakerConfiguration == null) { + this.circuitBreakerConfiguration = + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; + } else { + this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; + } + + this.refreshClient(); + + this.paginators = new MarketplaceAdministratorPaginators(this); + + if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { + com.oracle.bmc.auth.RegionProvider provider = + (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; + + if (provider.getRegion() != null) { + this.regionId = provider.getRegion().getRegionId(); + this.setRegion(provider.getRegion()); + if (endpoint != null) { + LOG.info( + "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", + provider.getRegion(), + endpoint); + } + } + } + if (endpoint != null) { + setEndpoint(endpoint); + } + } + + /** + * 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); + 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( + @javax.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + if (authenticationDetailsProvider == null) { + throw new NullPointerException( + "authenticationDetailsProvider is marked non-null but is null"); + } + return new MarketplaceAdministratorClient( + authenticationDetailsProvider, + configuration, + clientConfigurator, + requestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + restClientFactoryBuilder); + } + } + + @Override + public void refreshClient() { + LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); + com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = + this.defaultRequestSignerFactory.createRequestSigner( + SERVICE, this.authenticationDetailsProvider); + + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSigner> + requestSigners = new java.util.HashMap<>(); + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { + for (com.oracle.bmc.http.signing.SigningStrategy s : + com.oracle.bmc.http.signing.SigningStrategy.values()) { + requestSigners.put( + s, + this.signingStrategyRequestSignerFactories + .get(s) + .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); + } + } + + com.oracle.bmc.http.internal.RestClient refreshedClient = + this.restClientFactory.create( + defaultRequestSigner, + requestSigners, + this.clientConfigurationToUse, + this.isNonBufferingApacheClient, + null, + this.circuitBreakerConfiguration); + + synchronized (clientUpdate) { + if (this.overrideEndpoint != null) { + refreshedClient.setEndpoint(this.overrideEndpoint); + } + + this.client = refreshedClient; + } + + LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); + } + + @Override + public void setEndpoint(String endpoint) { + LOG.info("Setting endpoint to {}", endpoint); + + synchronized (clientUpdate) { + this.overrideEndpoint = endpoint; + client.setEndpoint(endpoint); + } + } + + @Override + public String getEndpoint() { + String value = client.getEndpoint(); + if (value.contains("{")) { + Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); + java.lang.StringBuilder params = new java.lang.StringBuilder(); + while (matcher.find()) { + if (params.length() > 0) { + params.append(", "); + } + params.append("{").append(matcher.group(1)).append("}"); + } + LOG.warn( + "Parameters like {} get replaced with appropriate values at request time.", + params.toString()); + } + return client.getEndpoint(); + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + this.regionId = region.getRegionId(); + java.util.Optional endpoint = + com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); + if (endpoint.isPresent()) { + setEndpoint(endpoint.get()); + } else { + throw new IllegalArgumentException( + "Endpoint for " + SERVICE + " is not known in region " + region); + } + } + + @Override + public void setRegion(String regionId) { + regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); + this.regionId = regionId; + try { + com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); + setRegion(region); + } catch (IllegalArgumentException e) { + LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); + String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); + setEndpoint(endpoint); + } + } + + @Override + public synchronized void useRealmSpecificEndpointTemplate( + boolean useOfRealmSpecificEndpointTemplateEnabled) { + setEndpoint( + com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils + .getRealmSpecificEndpointTemplate( + useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); + } + + @Override + public void close() { + client.close(); + } + + @Override + public ChangeListingRevisionStatusToNewResponse changeListingRevisionStatusToNew( + ChangeListingRevisionStatusToNewRequest request) { + LOG.trace("Called changeListingRevisionStatusToNew"); + final ChangeListingRevisionStatusToNewRequest interceptedRequest = + ChangeListingRevisionStatusToNewConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeListingRevisionStatusToNewConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ChangeListingRevisionStatusToNew", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/ChangeListingRevisionStatusToNew"); + java.util.function.Function< + javax.ws.rs.core.Response, ChangeListingRevisionStatusToNewResponse> + transformer = + ChangeListingRevisionStatusToNewConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateMarketResponse createMarket(CreateMarketRequest request) { + LOG.trace("Called createMarket"); + final CreateMarketRequest interceptedRequest = + CreateMarketConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateMarketConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "CreateMarket", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Market/CreateMarket"); + java.util.function.Function transformer = + CreateMarketConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateMarketDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminArtifactResponse getAdminArtifact(GetAdminArtifactRequest request) { + LOG.trace("Called getAdminArtifact"); + final GetAdminArtifactRequest interceptedRequest = + GetAdminArtifactConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminArtifactConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminArtifact", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifact/GetAdminArtifact"); + java.util.function.Function + transformer = + GetAdminArtifactConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminListingResponse getAdminListing(GetAdminListingRequest request) { + LOG.trace("Called getAdminListing"); + final GetAdminListingRequest interceptedRequest = + GetAdminListingConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListing", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListing/GetAdminListing"); + java.util.function.Function + transformer = + GetAdminListingConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminListingRevisionResponse getAdminListingRevision( + GetAdminListingRevisionRequest request) { + LOG.trace("Called getAdminListingRevision"); + final GetAdminListingRevisionRequest interceptedRequest = + GetAdminListingRevisionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingRevisionConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevision", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevision/GetAdminListingRevision"); + java.util.function.Function + transformer = + GetAdminListingRevisionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminListingRevisionAttachmentResponse getAdminListingRevisionAttachment( + GetAdminListingRevisionAttachmentRequest request) { + LOG.trace("Called getAdminListingRevisionAttachment"); + final GetAdminListingRevisionAttachmentRequest interceptedRequest = + GetAdminListingRevisionAttachmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingRevisionAttachmentConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionAttachment", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachment/GetAdminListingRevisionAttachment"); + java.util.function.Function< + javax.ws.rs.core.Response, GetAdminListingRevisionAttachmentResponse> + transformer = + GetAdminListingRevisionAttachmentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminListingRevisionPackageResponse getAdminListingRevisionPackage( + GetAdminListingRevisionPackageRequest request) { + LOG.trace("Called getAdminListingRevisionPackage"); + final GetAdminListingRevisionPackageRequest interceptedRequest = + GetAdminListingRevisionPackageConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminListingRevisionPackageConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminListingRevisionPackage", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackage/GetAdminListingRevisionPackage"); + java.util.function.Function< + javax.ws.rs.core.Response, GetAdminListingRevisionPackageResponse> + transformer = + GetAdminListingRevisionPackageConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminTermResponse getAdminTerm(GetAdminTermRequest request) { + LOG.trace("Called getAdminTerm"); + final GetAdminTermRequest interceptedRequest = + GetAdminTermConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminTermConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminTerm", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTerm/GetAdminTerm"); + java.util.function.Function transformer = + GetAdminTermConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetAdminTermVersionResponse getAdminTermVersion(GetAdminTermVersionRequest request) { + LOG.trace("Called getAdminTermVersion"); + final GetAdminTermVersionRequest interceptedRequest = + GetAdminTermVersionConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetAdminTermVersionConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "GetAdminTermVersion", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersion/GetAdminTermVersion"); + java.util.function.Function + transformer = + GetAdminTermVersionConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminArtifactsResponse listAdminArtifacts(ListAdminArtifactsRequest request) { + LOG.trace("Called listAdminArtifacts"); + final ListAdminArtifactsRequest interceptedRequest = + ListAdminArtifactsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminArtifactsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminArtifacts", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminArtifactCollection/ListAdminArtifacts"); + java.util.function.Function + transformer = + ListAdminArtifactsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminListingRevisionAttachmentsResponse listAdminListingRevisionAttachments( + ListAdminListingRevisionAttachmentsRequest request) { + LOG.trace("Called listAdminListingRevisionAttachments"); + final ListAdminListingRevisionAttachmentsRequest interceptedRequest = + ListAdminListingRevisionAttachmentsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminListingRevisionAttachmentsConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionAttachments", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionAttachmentCollection/ListAdminListingRevisionAttachments"); + java.util.function.Function< + javax.ws.rs.core.Response, ListAdminListingRevisionAttachmentsResponse> + transformer = + ListAdminListingRevisionAttachmentsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminListingRevisionPackagesResponse listAdminListingRevisionPackages( + ListAdminListingRevisionPackagesRequest request) { + LOG.trace("Called listAdminListingRevisionPackages"); + final ListAdminListingRevisionPackagesRequest interceptedRequest = + ListAdminListingRevisionPackagesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminListingRevisionPackagesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisionPackages", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionPackageCollection/ListAdminListingRevisionPackages"); + java.util.function.Function< + javax.ws.rs.core.Response, ListAdminListingRevisionPackagesResponse> + transformer = + ListAdminListingRevisionPackagesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminListingRevisionsResponse listAdminListingRevisions( + ListAdminListingRevisionsRequest request) { + LOG.trace("Called listAdminListingRevisions"); + final ListAdminListingRevisionsRequest interceptedRequest = + ListAdminListingRevisionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminListingRevisionsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminListingRevisions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminListingRevisionCollection/ListAdminListingRevisions"); + java.util.function.Function + transformer = + ListAdminListingRevisionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminPublisherSkusResponse listAdminPublisherSkus( + ListAdminPublisherSkusRequest request) { + LOG.trace("Called listAdminPublisherSkus"); + final ListAdminPublisherSkusRequest interceptedRequest = + ListAdminPublisherSkusConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminPublisherSkusConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminPublisherSkus", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminPublisherSkuCollection/ListAdminPublisherSkus"); + java.util.function.Function + transformer = + ListAdminPublisherSkusConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminTermVersionsResponse listAdminTermVersions( + ListAdminTermVersionsRequest request) { + LOG.trace("Called listAdminTermVersions"); + final ListAdminTermVersionsRequest interceptedRequest = + ListAdminTermVersionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminTermVersionsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminTermVersions", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermVersionCollection/ListAdminTermVersions"); + java.util.function.Function + transformer = + ListAdminTermVersionsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminTermsResponse listAdminTerms(ListAdminTermsRequest request) { + LOG.trace("Called listAdminTerms"); + final ListAdminTermsRequest interceptedRequest = + ListAdminTermsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminTermsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminTerms", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminTermCollection/ListAdminTerms"); + java.util.function.Function transformer = + ListAdminTermsConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ListAdminWorkRequestsResponse listAdminWorkRequests( + ListAdminWorkRequestsRequest request) { + LOG.trace("Called listAdminWorkRequests"); + final ListAdminWorkRequestsRequest interceptedRequest = + ListAdminWorkRequestsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAdminWorkRequestsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplaceAdministrator", + "ListAdminWorkRequests", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/AdminWorkRequestSummary/ListAdminWorkRequests"); + java.util.function.Function + transformer = + ListAdminWorkRequestsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public MarketplaceAdministratorPaginators getPaginators() { + return paginators; + } +} 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..acab0dfc915 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/MarketplaceAdministratorPaginators.java @@ -0,0 +1,998 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 1f019817a9d..6b219ea48b1 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 @@ -202,7 +202,7 @@ 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. @@ -272,6 +272,19 @@ 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. * @@ -336,6 +349,19 @@ 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 * @param request The request object containing the details to send @@ -423,6 +449,20 @@ 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. * @param request The request object containing the details to send @@ -447,6 +487,32 @@ 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. * @@ -705,6 +771,20 @@ 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 * @@ -792,7 +872,6 @@ 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). * @@ -1135,6 +1214,46 @@ 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 967d457cecc..eb82560a12b 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 @@ -240,7 +240,7 @@ 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. @@ -329,6 +329,22 @@ 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. * @@ -375,6 +391,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 * @@ -487,6 +521,25 @@ 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. * @@ -515,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. * @@ -838,6 +927,25 @@ 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 * @@ -948,7 +1056,6 @@ 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). * @@ -1355,6 +1462,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 f0ea4bfe5e0..a2f342879b4 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 @@ -1259,6 +1259,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createPublisher( + CreatePublisherRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreatePublisherRequest, CreatePublisherResponse> + handler) { + LOG.trace("Called async createPublisher"); + final CreatePublisherRequest interceptedRequest = + CreatePublisherConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreatePublisherConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "CreatePublisher", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Publisher/CreatePublisher"); + final java.util.function.Function + transformer = + CreatePublisherConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreatePublisherRequest, CreatePublisherResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreatePublisherDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreatePublisherRequest, CreatePublisherResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createTerm( CreateTermRequest request, @@ -1418,6 +1470,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + deleteCustomerInstanceReportExport( + DeleteCustomerInstanceReportExportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteCustomerInstanceReportExportRequest, + DeleteCustomerInstanceReportExportResponse> + handler) { + LOG.trace("Called async deleteCustomerInstanceReportExport"); + final DeleteCustomerInstanceReportExportRequest interceptedRequest = + DeleteCustomerInstanceReportExportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCustomerInstanceReportExportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "DeleteCustomerInstanceReportExport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/DeleteCustomerInstanceReportExport"); + final java.util.function.Function< + javax.ws.rs.core.Response, DeleteCustomerInstanceReportExportResponse> + transformer = + DeleteCustomerInstanceReportExportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteCustomerInstanceReportExportRequest, + DeleteCustomerInstanceReportExportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteCustomerInstanceReportExportRequest, + DeleteCustomerInstanceReportExportResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteCustomerInstanceReportExportRequest, + DeleteCustomerInstanceReportExportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteListing( DeleteListingRequest request, @@ -1751,6 +1856,66 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + generateCustomerInstanceReportExport( + GenerateCustomerInstanceReportExportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateCustomerInstanceReportExportRequest, + GenerateCustomerInstanceReportExportResponse> + handler) { + LOG.trace("Called async generateCustomerInstanceReportExport"); + final GenerateCustomerInstanceReportExportRequest interceptedRequest = + GenerateCustomerInstanceReportExportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateCustomerInstanceReportExportConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "GenerateCustomerInstanceReportExport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GenerateCustomerInstanceReportExport"); + final java.util.function.Function< + javax.ws.rs.core.Response, GenerateCustomerInstanceReportExportResponse> + transformer = + GenerateCustomerInstanceReportExportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateCustomerInstanceReportExportRequest, + GenerateCustomerInstanceReportExportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateCustomerInstanceReportExportRequest, + GenerateCustomerInstanceReportExportResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getGenerateCustomerInstanceReportExportDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateCustomerInstanceReportExportRequest, + GenerateCustomerInstanceReportExportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getArtifact( GetArtifactRequest request, @@ -1839,6 +2004,113 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + getCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse> + handler) { + LOG.trace("Called async getCustomerInstanceReportExport"); + final GetCustomerInstanceReportExportRequest interceptedRequest = + GetCustomerInstanceReportExportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCustomerInstanceReportExportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExport"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetCustomerInstanceReportExportResponse> + transformer = + GetCustomerInstanceReportExportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetCustomerInstanceReportExportRequest, + GetCustomerInstanceReportExportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getCustomerInstanceReportExportContent( + GetCustomerInstanceReportExportContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportContentRequest, + GetCustomerInstanceReportExportContentResponse> + handler) { + LOG.trace("Called async getCustomerInstanceReportExportContent"); + final GetCustomerInstanceReportExportContentRequest interceptedRequest = + GetCustomerInstanceReportExportContentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCustomerInstanceReportExportContentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExportContent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExportContent"); + final java.util.function.Function< + javax.ws.rs.core.Response, GetCustomerInstanceReportExportContentResponse> + transformer = + GetCustomerInstanceReportExportContentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportContentRequest, + GetCustomerInstanceReportExportContentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetCustomerInstanceReportExportContentRequest, + GetCustomerInstanceReportExportContentResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetCustomerInstanceReportExportContentRequest, + GetCustomerInstanceReportExportContentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getLead( GetLeadRequest request, @@ -2753,6 +3025,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listCustomerInstanceReportExports( + ListCustomerInstanceReportExportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse> + handler) { + LOG.trace("Called async listCustomerInstanceReportExports"); + final ListCustomerInstanceReportExportsRequest interceptedRequest = + ListCustomerInstanceReportExportsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCustomerInstanceReportExportsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "ListCustomerInstanceReportExports", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExportCollection/ListCustomerInstanceReportExports"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListCustomerInstanceReportExportsResponse> + transformer = + ListCustomerInstanceReportExportsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListCustomerInstanceReportExportsRequest, + ListCustomerInstanceReportExportsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listCustomerInstanceReportRecords( @@ -4249,6 +4574,76 @@ protected void beforeRetryAction() { } } + @Override + public java.util.concurrent.Future + updateListingRevisionBannerContent( + UpdateListingRevisionBannerContentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateListingRevisionBannerContentRequest, + UpdateListingRevisionBannerContentResponse> + handler) { + LOG.trace("Called async updateListingRevisionBannerContent"); + if (request.getRetryConfiguration() != null + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, UpdateListingRevisionBannerContentRequest.builder()); + } + final UpdateListingRevisionBannerContentRequest interceptedRequest = + UpdateListingRevisionBannerContentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateListingRevisionBannerContentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "UpdateListingRevisionBannerContent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/ListingRevision/UpdateListingRevisionBannerContent"); + final java.util.function.Function< + javax.ws.rs.core.Response, UpdateListingRevisionBannerContentResponse> + transformer = + UpdateListingRevisionBannerContentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateListingRevisionBannerContentRequest, + UpdateListingRevisionBannerContentResponse> + handlerToUse = + new com.oracle.bmc.responses.internal.StreamClosingAsyncHandler<>(handler); + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateListingRevisionBannerContentRequest, + UpdateListingRevisionBannerContentResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateListingRevisionBannerContent(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateListingRevisionBannerContentRequest, + UpdateListingRevisionBannerContentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() { + LOG.debug("Resetting stream"); + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest.getUpdateListingRevisionBannerContent(), true); + } + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @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 a451be9c7d2..a330a06db61 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 @@ -1188,6 +1188,48 @@ public CreateListingRevisionPackageResponse createListingRevisionPackage( }); } + @Override + public CreatePublisherResponse createPublisher(CreatePublisherRequest request) { + LOG.trace("Called createPublisher"); + final CreatePublisherRequest interceptedRequest = + CreatePublisherConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreatePublisherConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "CreatePublisher", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/Publisher/CreatePublisher"); + java.util.function.Function + transformer = + CreatePublisherConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreatePublisherDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateTermResponse createTerm(CreateTermRequest request) { LOG.trace("Called createTerm"); @@ -1339,6 +1381,46 @@ public DeleteArtifactResponse deleteArtifact(DeleteArtifactRequest request) { }); } + @Override + public DeleteCustomerInstanceReportExportResponse deleteCustomerInstanceReportExport( + DeleteCustomerInstanceReportExportRequest request) { + LOG.trace("Called deleteCustomerInstanceReportExport"); + final DeleteCustomerInstanceReportExportRequest interceptedRequest = + DeleteCustomerInstanceReportExportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteCustomerInstanceReportExportConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "DeleteCustomerInstanceReportExport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/DeleteCustomerInstanceReportExport"); + java.util.function.Function< + javax.ws.rs.core.Response, DeleteCustomerInstanceReportExportResponse> + transformer = + DeleteCustomerInstanceReportExportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteListingResponse deleteListing(DeleteListingRequest request) { LOG.trace("Called deleteListing"); @@ -1605,6 +1687,52 @@ public DeleteTermVersionResponse deleteTermVersion(DeleteTermVersionRequest requ }); } + @Override + public GenerateCustomerInstanceReportExportResponse generateCustomerInstanceReportExport( + GenerateCustomerInstanceReportExportRequest request) { + LOG.trace("Called generateCustomerInstanceReportExport"); + final GenerateCustomerInstanceReportExportRequest interceptedRequest = + GenerateCustomerInstanceReportExportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateCustomerInstanceReportExportConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "GenerateCustomerInstanceReportExport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GenerateCustomerInstanceReportExport"); + java.util.function.Function< + javax.ws.rs.core.Response, GenerateCustomerInstanceReportExportResponse> + transformer = + GenerateCustomerInstanceReportExportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getGenerateCustomerInstanceReportExportDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetArtifactResponse getArtifact(GetArtifactRequest request) { LOG.trace("Called getArtifact"); @@ -1675,6 +1803,85 @@ public GetCategoryResponse getCategory(GetCategoryRequest request) { }); } + @Override + public GetCustomerInstanceReportExportResponse getCustomerInstanceReportExport( + GetCustomerInstanceReportExportRequest request) { + LOG.trace("Called getCustomerInstanceReportExport"); + final GetCustomerInstanceReportExportRequest interceptedRequest = + GetCustomerInstanceReportExportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCustomerInstanceReportExportConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExport"); + java.util.function.Function< + javax.ws.rs.core.Response, GetCustomerInstanceReportExportResponse> + transformer = + GetCustomerInstanceReportExportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public GetCustomerInstanceReportExportContentResponse getCustomerInstanceReportExportContent( + GetCustomerInstanceReportExportContentRequest request) { + LOG.trace("Called getCustomerInstanceReportExportContent"); + final GetCustomerInstanceReportExportContentRequest interceptedRequest = + GetCustomerInstanceReportExportContentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetCustomerInstanceReportExportContentConverter.fromRequest( + client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "GetCustomerInstanceReportExportContent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExport/GetCustomerInstanceReportExportContent"); + java.util.function.Function< + javax.ws.rs.core.Response, GetCustomerInstanceReportExportContentResponse> + transformer = + GetCustomerInstanceReportExportContentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetLeadResponse getLead(GetLeadRequest request) { LOG.trace("Called getLead"); @@ -2398,6 +2605,45 @@ public ListCategoriesResponse listCategories(ListCategoriesRequest request) { }); } + @Override + public ListCustomerInstanceReportExportsResponse listCustomerInstanceReportExports( + ListCustomerInstanceReportExportsRequest request) { + LOG.trace("Called listCustomerInstanceReportExports"); + final ListCustomerInstanceReportExportsRequest interceptedRequest = + ListCustomerInstanceReportExportsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListCustomerInstanceReportExportsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "ListCustomerInstanceReportExports", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/CustomerInstanceReportExportCollection/ListCustomerInstanceReportExports"); + java.util.function.Function< + javax.ws.rs.core.Response, ListCustomerInstanceReportExportsResponse> + transformer = + ListCustomerInstanceReportExportsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListCustomerInstanceReportRecordsResponse listCustomerInstanceReportRecords( ListCustomerInstanceReportRecordsRequest request) { @@ -3593,6 +3839,83 @@ public UpdateListingRevisionAttachmentContentResponse updateListingRevisionAttac } } + @Override + public UpdateListingRevisionBannerContentResponse updateListingRevisionBannerContent( + UpdateListingRevisionBannerContentRequest request) { + LOG.trace("Called updateListingRevisionBannerContent"); + try { + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + request.getRetryConfiguration(), retryConfiguration, true); + if (request.getRetryConfiguration() != null + || retryConfiguration != null + || shouldRetryBecauseOfWaiterConfiguration(retrier) + || authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + request = + com.oracle.bmc.retrier.Retriers.wrapBodyInputStreamIfNecessary( + request, UpdateListingRevisionBannerContentRequest.builder()); + } + final UpdateListingRevisionBannerContentRequest interceptedRequest = + UpdateListingRevisionBannerContentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateListingRevisionBannerContentConverter.fromRequest( + client, interceptedRequest); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "MarketplacePublisher", + "UpdateListingRevisionBannerContent", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/publisher/20241201/ListingRevision/UpdateListingRevisionBannerContent"); + java.util.function.Function< + javax.ws.rs.core.Response, UpdateListingRevisionBannerContentResponse> + transformer = + UpdateListingRevisionBannerContentConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + try { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest + .getUpdateListingRevisionBannerContent(), + retriedRequest); + return transformer.apply(response); + } catch (RuntimeException e) { + if (interceptedRequest.getRetryConfiguration() != null + || retryConfiguration != null + || shouldRetryBecauseOfWaiterConfiguration(retrier) + || (e instanceof com.oracle.bmc.model.BmcException + && tokenRefreshRetrier + .getRetryCondition() + .shouldBeRetried( + (com.oracle.bmc.model + .BmcException) + e))) { + com.oracle.bmc.retrier.Retriers.tryResetStreamForRetry( + interceptedRequest + .getUpdateListingRevisionBannerContent(), + true); + } + throw e; // rethrow + } + }); + }); + } finally { + com.oracle.bmc.io.internal.KeepOpenInputStream.closeStream( + request.getUpdateListingRevisionBannerContent()); + } + } + @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 798665b7d79..db974c9a14c 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 @@ -375,6 +375,135 @@ 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 server as needed. 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 101396b2310..4ab12b278e3 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 @@ -220,6 +220,125 @@ 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/SdkClientsMetadata.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/SdkClientsMetadata.java index 17a587bb938..0d2c7c54e25 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/SdkClientsMetadata.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/SdkClientsMetadata.java @@ -7,5 +7,14 @@ import com.oracle.bmc.SdkClients; @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") -@SdkClients({MarketplacePublisherAsyncClient.class, MarketplacePublisherClient.class}) +@SdkClients({ + AdministratorArtifactAsyncClient.class, + AdministratorArtifactClient.class, + AdministratorPublisherAsyncClient.class, + AdministratorPublisherClient.class, + MarketplaceAdministratorAsyncClient.class, + MarketplaceAdministratorClient.class, + MarketplacePublisherAsyncClient.class, + MarketplacePublisherClient.class +}) public final class SdkClientsMetadata {} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ChangeListingRevisionStatusToNewConverter.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ChangeListingRevisionStatusToNewConverter.java index 2f4467718bb..392e561d705 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ChangeListingRevisionStatusToNewConverter.java @@ -2,28 +2,28 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.marketplacepublisher.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedAutonomousDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ChangeListingRevisionStatusToNewConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(UpdateDistributedAutonomousDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(ChangeListingRevisionStatusToNewConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedAutonomousDatabaseRequest + public static com.oracle.bmc.marketplacepublisher.requests + .ChangeListingRevisionStatusToNewRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedAutonomousDatabaseRequest + com.oracle.bmc.marketplacepublisher.requests + .ChangeListingRevisionStatusToNewRequest request) { return request; @@ -31,37 +31,33 @@ public class UpdateDistributedAutonomousDatabaseConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedAutonomousDatabaseRequest + com.oracle.bmc.marketplacepublisher.requests.ChangeListingRevisionStatusToNewRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getUpdateDistributedAutonomousDatabaseDetails(), - "updateDistributedAutonomousDatabaseDetails is required"); + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") + .path("/20241201") + .path("adminListingRevisions") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); + request.getListingRevisionId())) + .path("status") + .path("new"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -70,70 +66,70 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse> + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse> + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse> + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse>() { + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse + public com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.UpdateDistributedAutonomousDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ChangeListingRevisionStatusToNewResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase>> + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase> + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse.Builder + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedAutonomousDatabase(response.getItem()); + builder.adminListingRevision(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -155,8 +151,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( "etag", etagHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse + com.oracle.bmc.marketplacepublisher.responses + .ChangeListingRevisionStatusToNewResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreateMarketConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreateMarketConverter.java new file mode 100644 index 00000000000..ac1b1ccfa15 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreateMarketConverter.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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreateMarketConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreateMarketConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.CreateMarketRequest interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.CreateMarketRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.CreateMarketRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCreateMarketDetails(), "createMarketDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminMarkets"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.CreateMarketResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.CreateMarketResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.CreateMarketResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .CreateMarketResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .CreateMarketResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.CreateMarketResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses.CreateMarketResponse + .Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .CreateMarketResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses.CreateMarketResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreatePublisherConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreatePublisherConverter.java new file mode 100644 index 00000000000..a69601fc909 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/CreatePublisherConverter.java @@ -0,0 +1,148 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreatePublisherConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CreatePublisherConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.CreatePublisherRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.CreatePublisherRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.CreatePublisherRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCreatePublisherDetails(), "createPublisherDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("publishers"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.CreatePublisherResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.CreatePublisherResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.CreatePublisherResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .CreatePublisherResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .CreatePublisherResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.CreatePublisherResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .Publisher>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .Publisher + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .Publisher + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model.Publisher> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .CreatePublisherResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .CreatePublisherResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.publisher(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .CreatePublisherResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/DeleteCustomerInstanceReportExportConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/DeleteCustomerInstanceReportExportConverter.java new file mode 100644 index 00000000000..20b329352bc --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/DeleteCustomerInstanceReportExportConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class DeleteCustomerInstanceReportExportConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteCustomerInstanceReportExportConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .DeleteCustomerInstanceReportExportRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .DeleteCustomerInstanceReportExportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.DeleteCustomerInstanceReportExportRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("customerInstanceReportExports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCustomerInstanceReportExportId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.DeleteCustomerInstanceReportExportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .DeleteCustomerInstanceReportExportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GenerateCustomerInstanceReportExportConverter.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GenerateCustomerInstanceReportExportConverter.java index 058d16d16e6..f6779b8fbb1 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GenerateCustomerInstanceReportExportConverter.java @@ -2,28 +2,28 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.marketplacepublisher.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDatabaseCompartmentConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GenerateCustomerInstanceReportExportConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ChangeDistributedDatabaseCompartmentConverter.class); + org.slf4j.LoggerFactory.getLogger(GenerateCustomerInstanceReportExportConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabaseCompartmentRequest + public static com.oracle.bmc.marketplacepublisher.requests + .GenerateCustomerInstanceReportExportRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabaseCompartmentRequest + com.oracle.bmc.marketplacepublisher.requests + .GenerateCustomerInstanceReportExportRequest request) { return request; @@ -31,25 +31,19 @@ public class ChangeDistributedDatabaseCompartmentConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabaseCompartmentRequest + com.oracle.bmc.marketplacepublisher.requests.GenerateCustomerInstanceReportExportRequest request) { Validate.notNull(request, "request instance is required"); Validate.notNull( - request.getChangeDistributedDatabaseCompartmentDetails(), - "changeDistributedDatabaseCompartmentDetails is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + request.getGenerateCustomerInstanceReportExportDetails(), + "generateCustomerInstanceReportExportDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) + .path("/20241201") + .path("customerInstanceReportExports") .path("actions") - .path("changeCompartment"); + .path("generate"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -59,10 +53,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-request-id", request.getOpcRequestId()); } - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - if (request.getOpcRetryToken() != null) { ib.header("opc-retry-token", request.getOpcRetryToken()); } @@ -75,32 +65,32 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse> + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse> + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse> + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse>() { + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse + public com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedDatabaseCompartmentResponse"); + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GenerateCustomerInstanceReportExportResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -118,16 +108,27 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); @@ -139,19 +140,19 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - java.util.Optional> opcWorkRequestIdHeader = + java.util.Optional> exportIdentifierHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( + headers, "exportIdentifier"); + if (exportIdentifierHeader.isPresent()) { + builder.exportIdentifier( com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), + "exportIdentifier", + exportIdentifierHeader.get().get(0), String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse + com.oracle.bmc.marketplacepublisher.responses + .GenerateCustomerInstanceReportExportResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminArtifactConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminArtifactConverter.java new file mode 100644 index 00000000000..e9501767e1d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminArtifactConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminArtifactConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminArtifactConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminArtifactRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.GetAdminArtifactRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminArtifactRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminArtifacts") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getArtifactId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminArtifactResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminArtifactResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminArtifactResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminArtifactResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminArtifactResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminArtifactResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminArtifact>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminArtifact + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminArtifact + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminArtifact> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminArtifactResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminArtifactResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminArtifact(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminArtifactResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingConverter.java new file mode 100644 index 00000000000..a880b4bf7ce --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminListingConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getListingId(), "listingId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminListings") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getListingId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminListingResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminListingResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminListingResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminListingResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListing>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListing + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListing + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListing> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListing(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionAttachmentConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionAttachmentConverter.java new file mode 100644 index 00000000000..593329c20c0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionAttachmentConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionAttachmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminListingRevisionAttachmentConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .GetAdminListingRevisionAttachmentRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .GetAdminListingRevisionAttachmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRevisionAttachmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getListingRevisionAttachmentId(), + "listingRevisionAttachmentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminListingRevisionAttachments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getListingRevisionAttachmentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminListingRevisionAttachmentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachment>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachment + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachment + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachment> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListingRevisionAttachment(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionAttachmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionConverter.java new file mode 100644 index 00000000000..58e31de18a6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionConverter.java @@ -0,0 +1,154 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminListingRevisionConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRevisionRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRevisionRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRevisionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminListingRevisions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getListingRevisionId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminListingRevisionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminListingRevisionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminListingRevisionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevision> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListingRevision(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionPackageConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionPackageConverter.java new file mode 100644 index 00000000000..edd69ce6aa2 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminListingRevisionPackageConverter.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.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionPackageConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminListingRevisionPackageConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRevisionPackageRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .GetAdminListingRevisionPackageRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminListingRevisionPackageRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getListingRevisionPackageId(), + "listingRevisionPackageId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminListingRevisionPackages") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getListingRevisionPackageId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminListingRevisionPackageResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackage>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackage + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackage + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackage> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListingRevisionPackage(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminListingRevisionPackageResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminPublisherConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminPublisherConverter.java new file mode 100644 index 00000000000..78c8bcda9e1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminPublisherConverter.java @@ -0,0 +1,150 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminPublisherConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminPublisherConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminPublisherRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.GetAdminPublisherRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminPublisherRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getPublisherId(), "publisherId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminPublishers") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getPublisherId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminPublisherResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminPublisherResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminPublisherResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminPublisherResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminPublisherResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminPublisherResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminPublisher>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminPublisher + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminPublisher + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminPublisher> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminPublisherResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminPublisherResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminPublisher(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminPublisherResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermConverter.java new file mode 100644 index 00000000000..52e24c2d972 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminTermConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminTermConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminTermRequest interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.GetAdminTermRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminTermRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getTermId(), "termId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminTerms") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminTermResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTerm>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTerm + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTerm + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model.AdminTerm> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermResponse + .Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminTerm(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermVersionConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermVersionConverter.java new file mode 100644 index 00000000000..28db6e8b6df --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetAdminTermVersionConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminTermVersionConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetAdminTermVersionConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.GetAdminTermVersionRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.GetAdminTermVersionRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetAdminTermVersionRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getTermVersionId(), "termVersionId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminTermVersions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTermVersionId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermVersionResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermVersionResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.GetAdminTermVersionResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermVersionResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermVersionResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetAdminTermVersionResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersion>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersion + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersion + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersion> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermVersionResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermVersionResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminTermVersion(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetAdminTermVersionResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportContentConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportContentConverter.java new file mode 100644 index 00000000000..886366cd0e7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportContentConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportContentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger( + GetCustomerInstanceReportExportContentConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .GetCustomerInstanceReportExportContentRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .GetCustomerInstanceReportExportContentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests + .GetCustomerInstanceReportExportContentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("customerInstanceReportExports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCustomerInstanceReportExportId())) + .path("content"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetCustomerInstanceReportExportContentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse + .Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportContentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportConverter.java new file mode 100644 index 00000000000..053d542c8f6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/GetCustomerInstanceReportExportConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetCustomerInstanceReportExportConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .GetCustomerInstanceReportExportRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .GetCustomerInstanceReportExportRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.GetCustomerInstanceReportExportRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getCustomerInstanceReportExportId(), + "customerInstanceReportExportId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("customerInstanceReportExports") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getCustomerInstanceReportExportId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.GetCustomerInstanceReportExportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExport>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExport + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExport + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExport> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.customerInstanceReportExport(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .GetCustomerInstanceReportExportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminArtifactsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminArtifactsConverter.java new file mode 100644 index 00000000000..97e8b3d84ba --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminArtifactsConverter.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminArtifactsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminArtifactsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.ListAdminArtifactsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.ListAdminArtifactsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminArtifactsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminArtifacts"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getPublisherId() != null) { + target = + target.queryParam( + "publisherId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPublisherId())); + } + + if (request.getArtifactType() != null) { + target = + target.queryParam( + "artifactType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getArtifactType().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminArtifactsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminArtifactsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminArtifactsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminArtifactsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminArtifactsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminArtifactsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminArtifactCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminArtifactCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminArtifactCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminArtifactCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminArtifactsResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminArtifactsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminArtifactCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminArtifactsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionAttachmentsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionAttachmentsConverter.java new file mode 100644 index 00000000000..16994da94c5 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionAttachmentsConverter.java @@ -0,0 +1,218 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionAttachmentsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminListingRevisionAttachmentsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .ListAdminListingRevisionAttachmentsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .ListAdminListingRevisionAttachmentsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminListingRevisionAttachmentsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getListingRevisionId(), "listingRevisionId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminListingRevisionAttachments"); + + target = + target.queryParam( + "listingRevisionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingRevisionId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminListingRevisionAttachmentsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachmentCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachmentCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachmentCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionAttachmentCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListingRevisionAttachmentCollection( + response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionAttachmentsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionPackagesConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionPackagesConverter.java new file mode 100644 index 00000000000..abd3f008c82 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionPackagesConverter.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionPackagesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminListingRevisionPackagesConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .ListAdminListingRevisionPackagesRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .ListAdminListingRevisionPackagesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminListingRevisionPackagesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getListingRevisionId(), "listingRevisionId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminListingRevisionPackages"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + target = + target.queryParam( + "listingRevisionId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingRevisionId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminListingRevisionPackagesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionPackageCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListingRevisionPackageCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionPackagesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionsConverter.java new file mode 100644 index 00000000000..60b70392bbd --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminListingRevisionsConverter.java @@ -0,0 +1,292 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminListingRevisionsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.ListAdminListingRevisionsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.ListAdminListingRevisionsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminListingRevisionsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminListingRevisions"); + + if (request.getListingId() != null) { + target = + target.queryParam( + "listingId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingId())); + } + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getListingType() != null) { + target = + target.queryParam( + "listingType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingType().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getPublisherId() != null) { + target = + target.queryParam( + "publisherId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPublisherId())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getListingRevisionStatus() != null) { + target = + target.queryParam( + "listingRevisionStatus", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingRevisionStatus().getValue())); + } + + if (request.getStatusCsv() != null) { + target = + target.queryParam( + "statusCsv", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatusCsv())); + } + + if (request.getProduct() != null) { + target = + target.queryParam( + "product", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getProduct())); + } + + if (request.getTimeCreatedAfter() != null) { + target = + target.queryParam( + "timeCreatedAfter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeCreatedAfter())); + } + + if (request.getTimeUpdatedAfter() != null) { + target = + target.queryParam( + "timeUpdatedAfter", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeUpdatedAfter())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getPricingType() != null) { + target = + target.queryParam( + "pricingType", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPricingType())); + } + + if (request.getIsPrivateOfferEnabled() != null) { + target = + target.queryParam( + "isPrivateOfferEnabled", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getIsPrivateOfferEnabled())); + } + + if (request.getDataSource() != null) { + target = + target.queryParam( + "dataSource", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDataSource())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminListingRevisionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminListingRevisionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminListingRevisionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminListingRevisionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionsResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminListingRevisionCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminListingRevisionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminPublisherSkusConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminPublisherSkusConverter.java new file mode 100644 index 00000000000..f28bcdb123a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminPublisherSkusConverter.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminPublisherSkusConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminPublisherSkusConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.ListAdminPublisherSkusRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.ListAdminPublisherSkusRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminPublisherSkusRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminPublisherSkus"); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminPublisherSkusResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminPublisherSkusResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminPublisherSkusResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminPublisherSkusResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminPublisherSkusResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminPublisherSkusResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminPublisherSkuCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminPublisherSkuCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminPublisherSkuCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminPublisherSkuCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminPublisherSkusResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminPublisherSkusResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminPublisherSkuCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminPublisherSkusResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermVersionsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermVersionsConverter.java new file mode 100644 index 00000000000..35aa457fd4c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermVersionsConverter.java @@ -0,0 +1,202 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminTermVersionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminTermVersionsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.ListAdminTermVersionsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.ListAdminTermVersionsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminTermVersionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getTermId(), "termId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminTermVersions"); + + target = + target.queryParam( + "termId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTermId())); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermVersionsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermVersionsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermVersionsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermVersionsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermVersionsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminTermVersionsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersionCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersionCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersionCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTermVersionCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermVersionsResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermVersionsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminTermVersionCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermVersionsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermsConverter.java new file mode 100644 index 00000000000..7803664ed8f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminTermsConverter.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminTermsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminTermsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.ListAdminTermsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.ListAdminTermsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminTermsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminTerms"); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminTermsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTermCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTermCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminTermCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminTermCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermsResponse + .Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminTermsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminTermCollection(response.getItem()); + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses.ListAdminTermsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminWorkRequestsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminWorkRequestsConverter.java new file mode 100644 index 00000000000..27f1b9d065e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListAdminWorkRequestsConverter.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.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminWorkRequestsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListAdminWorkRequestsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.ListAdminWorkRequestsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.ListAdminWorkRequestsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListAdminWorkRequestsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("adminWorkRequests"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getWorkRequestId() != null) { + target = + target.queryParam( + "workRequestId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getWorkRequestId())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getResourceId() != null) { + target = + target.queryParam( + "resourceId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getResourceId())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminWorkRequestsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminWorkRequestsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.ListAdminWorkRequestsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListAdminWorkRequestsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListAdminWorkRequestsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListAdminWorkRequestsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminWorkRequestSummaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminWorkRequestSummaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .AdminWorkRequestSummaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .AdminWorkRequestSummaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminWorkRequestsResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListAdminWorkRequestsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.adminWorkRequestSummaryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListAdminWorkRequestsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportExportsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportExportsConverter.java new file mode 100644 index 00000000000..c02500d5c67 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportExportsConverter.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListCustomerInstanceReportExportsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListCustomerInstanceReportExportsConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .ListCustomerInstanceReportExportsRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .ListCustomerInstanceReportExportsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.ListCustomerInstanceReportExportsRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20241201").path("customerInstanceReportExports"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getName() != null) { + target = + target.queryParam( + "name", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getName())); + } + + if (request.getListingId() != null) { + target = + target.queryParam( + "listingId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingId())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getShape() != null) { + target = + target.queryParam( + "shape", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getShape())); + } + + if (request.getRegion() != null) { + target = + target.queryParam( + "region", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRegion())); + } + + if (request.getRealm() != null) { + target = + target.queryParam( + "realm", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRealm())); + } + + if (request.getTenantAdminDomain() != null) { + target = + target.queryParam( + "tenantAdminDomain", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTenantAdminDomain())); + } + + if (request.getPackageVersion() != null) { + target = + target.queryParam( + "packageVersion", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPackageVersion())); + } + + if (request.getInstanceOcid() != null) { + target = + target.queryParam( + "instanceOcid", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getInstanceOcid())); + } + + if (request.getTimeInstanceCreationFromDate() != null) { + target = + target.queryParam( + "timeInstanceCreationFromDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceCreationFromDate())); + } + + if (request.getTimeInstanceCreationToDate() != null) { + target = + target.queryParam( + "timeInstanceCreationToDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceCreationToDate())); + } + + if (request.getTimeInstanceTerminationFromDate() != null) { + target = + target.queryParam( + "timeInstanceTerminationFromDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceTerminationFromDate())); + } + + if (request.getTimeInstanceTerminationToDate() != null) { + target = + target.queryParam( + "timeInstanceTerminationToDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceTerminationToDate())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.ListCustomerInstanceReportExportsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .CustomerInstanceReportExportCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.customerInstanceReportExportCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .ListCustomerInstanceReportExportsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportRecordsConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportRecordsConverter.java index 3bf015f16e5..f0f0691549d 100644 --- a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportRecordsConverter.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/ListCustomerInstanceReportRecordsConverter.java @@ -35,7 +35,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request) { Validate.notNull(request, "request instance is required"); Validate.notNull(request.getCompartmentId(), "compartmentId is required"); - Validate.notNull(request.getDateRange(), "dateRange is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20241201").path("customerInstanceReportRecords"); @@ -46,12 +45,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( request.getCompartmentId())); - target = - target.queryParam( - "dateRange", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDateRange().getValue())); - if (request.getLimit() != null) { target = target.queryParam( @@ -92,6 +85,102 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getName())); } + if (request.getListingId() != null) { + target = + target.queryParam( + "listingId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingId())); + } + + if (request.getStatus() != null) { + target = + target.queryParam( + "status", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getStatus().getValue())); + } + + if (request.getShape() != null) { + target = + target.queryParam( + "shape", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getShape())); + } + + if (request.getRegion() != null) { + target = + target.queryParam( + "region", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRegion())); + } + + if (request.getRealm() != null) { + target = + target.queryParam( + "realm", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getRealm())); + } + + if (request.getTenantAdminDomain() != null) { + target = + target.queryParam( + "tenantAdminDomain", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTenantAdminDomain())); + } + + if (request.getPackageVersion() != null) { + target = + target.queryParam( + "packageVersion", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPackageVersion())); + } + + if (request.getInstanceOcid() != null) { + target = + target.queryParam( + "instanceOcid", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getInstanceOcid())); + } + + if (request.getTimeInstanceCreationFromDate() != null) { + target = + target.queryParam( + "timeInstanceCreationFromDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceCreationFromDate())); + } + + if (request.getTimeInstanceCreationToDate() != null) { + target = + target.queryParam( + "timeInstanceCreationToDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceCreationToDate())); + } + + if (request.getTimeInstanceTerminationFromDate() != null) { + target = + target.queryParam( + "timeInstanceTerminationFromDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceTerminationFromDate())); + } + + if (request.getTimeInstanceTerminationToDate() != null) { + target = + target.queryParam( + "timeInstanceTerminationToDate", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTimeInstanceTerminationToDate())); + } + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateAdminArtifactStatusConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateAdminArtifactStatusConverter.java new file mode 100644 index 00000000000..81c4bfbf4b6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateAdminArtifactStatusConverter.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateAdminArtifactStatusConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateAdminArtifactStatusConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests.UpdateAdminArtifactStatusRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests.UpdateAdminArtifactStatusRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.UpdateAdminArtifactStatusRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getUpdateAdminArtifactStatusDetails(), + "updateAdminArtifactStatusDetails is required"); + Validate.notBlank(request.getArtifactId(), "artifactId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("adminArtifacts") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getArtifactId())) + .path("status") + .path("new"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.UpdateAdminArtifactStatusResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses.UpdateAdminArtifactStatusResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .UpdateAdminArtifactStatusResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .UpdateAdminArtifactStatusResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .UpdateAdminArtifactStatusResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.UpdateAdminArtifactStatusResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .Artifact>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .Artifact + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .Artifact + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model.Artifact> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .UpdateAdminArtifactStatusResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .UpdateAdminArtifactStatusResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.artifact(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .UpdateAdminArtifactStatusResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateListingRevisionBannerContentConverter.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateListingRevisionBannerContentConverter.java new file mode 100644 index 00000000000..f5c223f1269 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/internal/http/UpdateListingRevisionBannerContentConverter.java @@ -0,0 +1,174 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.marketplacepublisher.model.*; +import com.oracle.bmc.marketplacepublisher.requests.*; +import com.oracle.bmc.marketplacepublisher.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateListingRevisionBannerContentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateListingRevisionBannerContentConverter.class); + + public static com.oracle.bmc.marketplacepublisher.requests + .UpdateListingRevisionBannerContentRequest + interceptRequest( + com.oracle.bmc.marketplacepublisher.requests + .UpdateListingRevisionBannerContentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.marketplacepublisher.requests.UpdateListingRevisionBannerContentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getListingRevisionId(), "listingRevisionId must not be blank"); + Validate.notNull(request.getBannerName(), "bannerName is required"); + Validate.notNull( + request.getUpdateListingRevisionBannerContent(), + "updateListingRevisionBannerContent is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20241201") + .path("listingRevisions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getListingRevisionId())) + .path("banner") + .path("content"); + + target = + target.queryParam( + "bannerName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getBannerName())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse>() { + @Override + public com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.marketplacepublisher.responses.UpdateListingRevisionBannerContentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .ListingRevision>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .ListingRevision + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.marketplacepublisher.model + .ListingRevision + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.marketplacepublisher.model + .ListingRevision> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse.Builder + builder = + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.listingRevision(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.marketplacepublisher.responses + .UpdateListingRevisionBannerContentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} 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 d428a5dc72d..22a11172e31 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 @@ -22,6 +22,7 @@ public final class AdditionalFilter extends com.oracle.bmc.http.internal.Explici @java.beans.ConstructorProperties({ "name", "code", + "timeCreated", "usageInstructions", "isMultiSelect", "isMandatory", @@ -30,6 +31,7 @@ public final class AdditionalFilter extends com.oracle.bmc.http.internal.Explici public AdditionalFilter( String name, String code, + java.util.Date timeCreated, String usageInstructions, Boolean isMultiSelect, Boolean isMandatory, @@ -37,6 +39,7 @@ public AdditionalFilter( super(); this.name = name; this.code = code; + this.timeCreated = timeCreated; this.usageInstructions = usageInstructions; this.isMultiSelect = isMultiSelect; this.isMandatory = isMandatory; @@ -77,6 +80,28 @@ 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 **/ @@ -150,6 +175,7 @@ public AdditionalFilter build() { new AdditionalFilter( this.name, this.code, + this.timeCreated, this.usageInstructions, this.isMultiSelect, this.isMandatory, @@ -168,6 +194,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()); } @@ -223,6 +252,26 @@ 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 **/ @@ -295,6 +344,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)); @@ -315,6 +365,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) @@ -328,6 +379,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..ae665a78d9a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminAiAgentListingRevision.java @@ -0,0 +1,1052 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 { + 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 { + 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..6d12dcdf6b6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifact.java @@ -0,0 +1,377 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class AdminArtifact extends com.oracle.bmc.http.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.java new file mode 100644 index 00000000000..3d465e8a313 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactCollection.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 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminArtifactCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AdminArtifactCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminArtifactCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of artifact summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of artifact 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 AdminArtifactCollection build() { + AdminArtifactCollection model = new AdminArtifactCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminArtifactCollection 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 artifact summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of artifact 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("AdminArtifactCollection("); + 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 AdminArtifactCollection)) { + return false; + } + + AdminArtifactCollection other = (AdminArtifactCollection) 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/AdminArtifactSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java new file mode 100644 index 00000000000..0a27ac32dbb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminArtifactSummary.java @@ -0,0 +1,633 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminArtifactSummary extends com.oracle.bmc.http.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java new file mode 100644 index 00000000000..d27f4c2dd15 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminBillToCountries.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminBillToCountries.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AdminBillToCountries extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "code"}) + public AdminBillToCountries(String name, String code) { + super(); + this.name = name; + this.code = code; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the Bill to Country. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name of the Bill to Country. + * @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 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 AdminBillToCountries build() { + AdminBillToCountries model = new AdminBillToCountries(this.name, this.code); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminBillToCountries model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("code")) { + this.code(model.getCode()); + } + 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 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; + + /** + * The code of the Bill to Country. + * @return the value + **/ + public String getCode() { + return code; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminBillToCountries("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", code=").append(String.valueOf(this.code)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminBillToCountries)) { + return false; + } + + AdminBillToCountries other = (AdminBillToCountries) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.code, other.code) + && 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) + 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..92e4cffbcb1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerImageArtifact.java @@ -0,0 +1,325 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..4e2658d0340 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminContainerPackage.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..7c4d2358230 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminCustomerSuccessAttachment.java @@ -0,0 +1,518 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..976ea155e05 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminHelmChartPackage.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..2c52bee502f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminKubernetesImageArtifact.java @@ -0,0 +1,368 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..404f214a076 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminLeadGenListingRevision.java @@ -0,0 +1,948 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..ca3a492ab01 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListing.java @@ -0,0 +1,813 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListing extends com.oracle.bmc.http.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..216b3427f1c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingProduct.java @@ -0,0 +1,303 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListingProduct extends com.oracle.bmc.http.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..dae53bd1537 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevision.java @@ -0,0 +1,734 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class AdminListingRevision extends com.oracle.bmc.http.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..646c69a153b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachment.java @@ -0,0 +1,358 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class AdminListingRevisionAttachment + extends com.oracle.bmc.http.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentCollection.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/AdminListingRevisionAttachmentCollection.java index 987efbbe24d..5b62a6f476f 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/AdminListingRevisionAttachmentCollection.java @@ -2,14 +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 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 @@ -18,16 +14,17 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchDistributedDatabaseDetails.Builder.class + builder = AdminListingRevisionAttachmentCollection.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchDistributedDatabaseDetails +public final class AdminListingRevisionAttachmentCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public PatchDistributedDatabaseDetails(java.util.List items) { + public AdminListingRevisionAttachmentCollection( + java.util.List items) { super(); this.items = items; } @@ -35,17 +32,17 @@ public PatchDistributedDatabaseDetails(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * List of patch instructions. + * List of attachment summary. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * List of patch instructions. + * List of attachment 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; @@ -54,8 +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 PatchDistributedDatabaseDetails build() { - PatchDistributedDatabaseDetails model = new PatchDistributedDatabaseDetails(this.items); + public AdminListingRevisionAttachmentCollection build() { + AdminListingRevisionAttachmentCollection model = + new AdminListingRevisionAttachmentCollection(this.items); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,7 +61,7 @@ public PatchDistributedDatabaseDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchDistributedDatabaseDetails model) { + public Builder copy(AdminListingRevisionAttachmentCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -83,16 +81,16 @@ public Builder toBuilder() { } /** - * List of patch instructions. + * List of attachment 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 attachment summary. * @return the value **/ - public java.util.List getItems() { + public java.util.List getItems() { return items; } @@ -108,7 +106,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchDistributedDatabaseDetails("); + sb.append("AdminListingRevisionAttachmentCollection("); sb.append("super=").append(super.toString()); sb.append("items=").append(String.valueOf(this.items)); sb.append(")"); @@ -120,11 +118,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedDatabaseDetails)) { + if (!(o instanceof AdminListingRevisionAttachmentCollection)) { return false; } - PatchDistributedDatabaseDetails other = (PatchDistributedDatabaseDetails) o; + AdminListingRevisionAttachmentCollection other = + (AdminListingRevisionAttachmentCollection) 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/AdminListingRevisionAttachmentSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentSummary.java new file mode 100644 index 00000000000..26d9f5468b9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionAttachmentSummary.java @@ -0,0 +1,811 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListingRevisionAttachmentSummary + extends com.oracle.bmc.http.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..1a3ae8d5e48 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionCollection.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListingRevisionCollection + extends com.oracle.bmc.http.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..f83cc5eae4f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackage.java @@ -0,0 +1,524 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public class AdminListingRevisionPackage + extends com.oracle.bmc.http.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..a77e60156e1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListingRevisionPackageCollection + extends com.oracle.bmc.http.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..78e9a902453 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionPackageSummary.java @@ -0,0 +1,812 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListingRevisionPackageSummary + extends com.oracle.bmc.http.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..4639f224a8c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminListingRevisionSummary.java @@ -0,0 +1,1460 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminListingRevisionSummary + extends com.oracle.bmc.http.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 { + 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..d85d16daa1a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImageArtifact.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; + +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..f6a87a5f1ac --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMachineImagePackage.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..9c32adc63ad --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminMarket.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminMarket extends com.oracle.bmc.http.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..98a5b0f69f2 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOciListingRevision.java @@ -0,0 +1,1128 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..e782953282e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminOpnPartnerSummary.java @@ -0,0 +1,974 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminOpnPartnerSummary + extends com.oracle.bmc.http.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 { + Active("ACTIVE"), + Inactive("INACTIVE"), + RenewalInProgress("RENEWAL_IN_PROGRESS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MembershipStatus v : MembershipStatus.values()) { + 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); + } + throw new IllegalArgumentException("Invalid MembershipStatus: " + key); + } + }; + /** + * 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..3d8f7d70d2b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisher.java @@ -0,0 +1,1754 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminPublisher extends com.oracle.bmc.http.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..eb3265572c6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSku.java @@ -0,0 +1,252 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminPublisherSku extends com.oracle.bmc.http.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..e56ccbae3c8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSkuCollection.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminPublisherSkuCollection + extends com.oracle.bmc.http.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..906bb792c87 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminPublisherSummary.java @@ -0,0 +1,1530 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminPublisherSummary + extends com.oracle.bmc.http.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..cbd24a77029 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminRelatedDocumentAttachment.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..bfa15f12001 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminReviewSupportDocumentAttachment.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; + +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..57f5f62c132 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminScreenShotAttachment.java @@ -0,0 +1,401 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..6ba30e6d8dd --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminServiceListingRevision.java @@ -0,0 +1,845 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java new file mode 100644 index 00000000000..e9a67edf8fc --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSkuPricingRate.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminSkuPricingRate.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AdminSkuPricingRate extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"currencyCode", "unitPrice"}) + public AdminSkuPricingRate(String currencyCode, Float unitPrice) { + super(); + this.currencyCode = currencyCode; + this.unitPrice = unitPrice; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The currency supported, in the format specified by ISO-4217 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") + private String currencyCode; + + /** + * The currency supported, in the format specified by ISO-4217 + * @param currencyCode the value to set + * @return this builder + **/ + public Builder currencyCode(String currencyCode) { + this.currencyCode = currencyCode; + this.__explicitlySet__.add("currencyCode"); + return this; + } + /** + * The amount for the currency type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unitPrice") + private Float unitPrice; + + /** + * The amount for the currency type. + * @param unitPrice the value to set + * @return this builder + **/ + 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 AdminSkuPricingRate build() { + AdminSkuPricingRate model = new AdminSkuPricingRate(this.currencyCode, this.unitPrice); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminSkuPricingRate model) { + if (model.wasPropertyExplicitlySet("currencyCode")) { + this.currencyCode(model.getCurrencyCode()); + } + if (model.wasPropertyExplicitlySet("unitPrice")) { + this.unitPrice(model.getUnitPrice()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The currency supported, in the format specified by ISO-4217 + **/ + @com.fasterxml.jackson.annotation.JsonProperty("currencyCode") + private final String currencyCode; + + /** + * The currency supported, in the format specified by ISO-4217 + * @return the value + **/ + public String getCurrencyCode() { + return currencyCode; + } + + /** + * The amount for the currency type. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("unitPrice") + private final Float unitPrice; + + /** + * The amount for the currency type. + * @return the value + **/ + public Float getUnitPrice() { + return unitPrice; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("AdminSkuPricingRate("); + sb.append("super=").append(super.toString()); + sb.append("currencyCode=").append(String.valueOf(this.currencyCode)); + sb.append(", unitPrice=").append(String.valueOf(this.unitPrice)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof AdminSkuPricingRate)) { + return false; + } + + AdminSkuPricingRate other = (AdminSkuPricingRate) o; + return java.util.Objects.equals(this.currencyCode, other.currencyCode) + && java.util.Objects.equals(this.unitPrice, other.unitPrice) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + 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..fbc8c4f9811 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackArtifact.java @@ -0,0 +1,322 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..238d6e817fd --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminStackPackage.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..a98f49e1727 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminSupportedServiceAttachment.java @@ -0,0 +1,518 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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..b0c51c572f2 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTerm.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminTerm extends com.oracle.bmc.http.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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.java new file mode 100644 index 00000000000..c15c39f2069 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermCollection.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.marketplacepublisher.model; + +/** + * 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 set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AdminTermCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class AdminTermCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public AdminTermCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of the Terms summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of the Terms 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 AdminTermCollection build() { + AdminTermCollection model = new AdminTermCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AdminTermCollection 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 summary. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of the Terms 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("AdminTermCollection("); + 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 AdminTermCollection)) { + return false; + } + + AdminTermCollection other = (AdminTermCollection) 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/AdminTermSummary.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermSummary.java new file mode 100644 index 00000000000..e75b3e42c8e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermSummary.java @@ -0,0 +1,591 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminTermSummary extends com.oracle.bmc.http.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..062d2b70402 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersion.java @@ -0,0 +1,832 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminTermVersion extends com.oracle.bmc.http.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 { + 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 { + 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..117bc8fffb8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionAttachment.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminTermVersionAttachment + extends com.oracle.bmc.http.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..a107c3ecc5b --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionCollection.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminTermVersionCollection + extends com.oracle.bmc.http.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..1c45abb1006 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminTermVersionSummary.java @@ -0,0 +1,594 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminTermVersionSummary + extends com.oracle.bmc.http.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..6a67d3c7d05 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminVideoAttachment.java @@ -0,0 +1,362 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 a5593b9d6f3..b123f0a4dd5 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. @@ -14,12 +14,13 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class AdminWorkRequestSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "operationType", @@ -32,7 +33,7 @@ public final class WorkRequestSummary extends com.oracle.bmc.http.internal.Expli "timeStarted", "timeFinished" }) - public WorkRequestSummary( + public AdminWorkRequestSummary( OperationType operationType, OperationStatus status, String id, @@ -222,9 +223,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, @@ -241,7 +242,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()); } @@ -440,7 +441,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)); @@ -460,11 +461,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..76c5328ead1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/AdminWorkRequestSummaryCollection.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class AdminWorkRequestSummaryCollection + extends com.oracle.bmc.http.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..99081c168a3 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/BillToCountry.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class BillToCountry extends com.oracle.bmc.http.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..7b466ef5660 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateAdminListingRevisionNoteDetails.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CreateAdminListingRevisionNoteDetails + extends com.oracle.bmc.http.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 5e42ac2ec78..f9b1920ff8c 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 @@ -120,6 +120,22 @@ 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(); @@ -134,7 +150,8 @@ public CreateCustomerSuccessAttachment build() { this.definedTags, this.customerName, this.url, - this.productCodes); + this.productCodes, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -167,6 +184,9 @@ public Builder copy(CreateCustomerSuccessAttachment model) { if (model.wasPropertyExplicitlySet("productCodes")) { this.productCodes(model.getProductCodes()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -191,11 +211,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; } /** @@ -240,6 +262,20 @@ 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); @@ -257,6 +293,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(); } @@ -274,6 +311,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); } @@ -284,6 +322,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..7be3d25458f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreateMarketDetails.java @@ -0,0 +1,254 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CreateMarketDetails extends com.oracle.bmc.http.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 cd5054e8317..8a6d7384d44 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 @@ -235,6 +235,38 @@ 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 **/ @@ -300,6 +332,38 @@ 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(); @@ -327,10 +391,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); } @@ -399,6 +467,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()); } @@ -412,6 +486,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; } } @@ -449,10 +529,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, @@ -474,10 +558,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") @@ -543,6 +631,34 @@ 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 **/ @@ -599,6 +715,34 @@ 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); @@ -618,12 +762,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(); } @@ -643,6 +791,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, @@ -650,6 +801,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); } @@ -668,6 +821,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) @@ -682,6 +841,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..5618cf6384e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CreatePublisherDetails.java @@ -0,0 +1,721 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CreatePublisherDetails + extends com.oracle.bmc.http.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 41cc35dc2ec..a7a29aeb846 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 @@ -91,6 +91,54 @@ 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(); @@ -103,7 +151,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); } @@ -130,6 +181,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; } } @@ -152,9 +212,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; } /** @@ -171,6 +237,48 @@ 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); @@ -186,6 +294,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(); } @@ -201,6 +312,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); } @@ -211,6 +325,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 a80c4c4de55..92652a7ab95 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 @@ -105,6 +105,22 @@ 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(); @@ -118,7 +134,8 @@ public CreateReviewSupportDocumentAttachment build() { this.freeformTags, this.definedTags, this.documentName, - this.templateCode); + this.templateCode, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -148,6 +165,9 @@ public Builder copy(CreateReviewSupportDocumentAttachment model) { if (model.wasPropertyExplicitlySet("templateCode")) { this.templateCode(model.getTemplateCode()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -171,10 +191,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; } /** @@ -205,6 +227,20 @@ 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); @@ -221,6 +257,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(); } @@ -237,6 +274,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); } @@ -246,6 +284,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 829261dfce8..c8671ad9415 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 @@ -74,6 +74,22 @@ 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(); @@ -85,7 +101,8 @@ public CreateScreenShotAttachmentDetails build() { this.displayName, this.description, this.freeformTags, - this.definedTags); + this.definedTags, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -109,6 +126,9 @@ public Builder copy(CreateScreenShotAttachmentDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -130,8 +150,24 @@ 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 @@ -148,6 +184,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(); } @@ -162,13 +199,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 13926f36013..89d0a1b1654 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 @@ -120,6 +120,22 @@ 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(); @@ -134,7 +150,8 @@ public CreateSupportedServiceAttachment build() { this.definedTags, this.serviceName, this.url, - this.type); + this.type, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -167,6 +184,9 @@ public Builder copy(CreateSupportedServiceAttachment model) { if (model.wasPropertyExplicitlySet("type")) { this.type(model.getType()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -191,11 +211,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; } /** @@ -240,6 +262,20 @@ 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); @@ -257,6 +293,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(); } @@ -274,6 +311,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); } @@ -284,6 +322,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 4418d9e43f8..66258bc2f94 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 @@ -21,10 +21,11 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class CreateVideoDetails extends com.oracle.bmc.http.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 = "") @@ -45,12 +46,28 @@ 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); } @@ -62,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; } } @@ -91,6 +111,20 @@ 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); @@ -106,6 +140,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(); } @@ -120,7 +155,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 @@ -128,6 +165,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..f379cae5ce1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExport.java @@ -0,0 +1,1387 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CustomerInstanceReportExport + extends com.oracle.bmc.http.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 { + 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 { + 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 { + 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 { + 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..b2d00fb21e9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportCollection.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CustomerInstanceReportExportCollection + extends com.oracle.bmc.http.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..3db8329cb83 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/CustomerInstanceReportExportSummary.java @@ -0,0 +1,1333 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class CustomerInstanceReportExportSummary + extends com.oracle.bmc.http.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 { + 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 { + 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 { + 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 367963de816..7ee6560d54e 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 @@ -37,8 +37,8 @@ public final class CustomerInstanceReportRecord "realm", "shape", "ociTenancy", - "tenantAdminName", - "tenantAdminEmail", + "tenantAdminDomain", + "legacyListingId", "freeformTags", "definedTags", "systemTags" @@ -58,8 +58,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) { @@ -78,8 +78,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; @@ -324,35 +324,35 @@ public Builder ociTenancy(String ociTenancy) { return this; } /** - * The name of the tenant adminstrator + * The domain of the tenant administrator email address **/ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminName") - private String tenantAdminName; + @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminDomain") + private String tenantAdminDomain; /** - * The name of the tenant adminstrator - * @param tenantAdminName the value to set + * The domain of the tenant administrator email address + * @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 + * The legacy listing id of the listing **/ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminEmail") - private String tenantAdminEmail; + @com.fasterxml.jackson.annotation.JsonProperty("legacyListingId") + private String legacyListingId; /** - * The email of the tenant adminstrator - * @param tenantAdminEmail the value to set + * The legacy listing id of the listing + * @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; } /** @@ -437,8 +437,8 @@ public CustomerInstanceReportRecord build() { this.realm, this.shape, this.ociTenancy, - this.tenantAdminName, - this.tenantAdminEmail, + this.tenantAdminDomain, + this.legacyListingId, this.freeformTags, this.definedTags, this.systemTags); @@ -492,11 +492,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()); @@ -731,31 +731,31 @@ public String getOciTenancy() { } /** - * The name of the tenant adminstrator + * The domain of the tenant administrator email address **/ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminName") - private final String tenantAdminName; + @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 + * The legacy listing id of the listing **/ - @com.fasterxml.jackson.annotation.JsonProperty("tenantAdminEmail") - private final String tenantAdminEmail; + @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; } /** @@ -841,8 +841,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)); @@ -875,8 +875,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) @@ -917,10 +917,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 1600f7c2ac4..77dab0f488d 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; @@ -218,6 +227,7 @@ public CustomerSuccessAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -252,6 +262,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()); } @@ -307,6 +320,7 @@ public CustomerSuccessAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -324,6 +338,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 13553f37c7a..b5c9083e0b5 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 @@ -56,6 +56,7 @@ public final class DisbursementReportRecord "disbursementAmountUsd", "partnerName", "partnerId", + "publisherServiceListingId", "freeformTags", "definedTags", "systemTags" @@ -94,6 +95,7 @@ public DisbursementReportRecord( String disbursementAmountUsd, String partnerName, String partnerId, + String publisherServiceListingId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -131,6 +133,7 @@ public DisbursementReportRecord( this.disbursementAmountUsd = disbursementAmountUsd; this.partnerName = partnerName; this.partnerId = partnerId; + this.publisherServiceListingId = publisherServiceListingId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -667,6 +670,22 @@ 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"}} @@ -768,6 +787,7 @@ public DisbursementReportRecord build() { this.disbursementAmountUsd, this.partnerName, this.partnerId, + this.publisherServiceListingId, this.freeformTags, this.definedTags, this.systemTags); @@ -879,6 +899,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()); } @@ -1365,6 +1388,20 @@ 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"}} @@ -1469,6 +1506,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)); @@ -1524,6 +1563,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) @@ -1625,6 +1666,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..1d1ff50df4a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/GenerateCustomerInstanceReportExportDetails.java @@ -0,0 +1,884 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class GenerateCustomerInstanceReportExportDetails + extends com.oracle.bmc.http.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 { + 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 { + 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 { + 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..39bdee44d1f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/HybridPricingPlan.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; + +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 { + 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 { + 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 8bf0fd2de6c..81aa9101f5c 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; @@ -433,6 +442,7 @@ public LeadGenListingRevision build() { this.supportContacts, this.supportLinks, this.icon, + this.banner, this.status, this.statusNotes, this.lifecycleState, @@ -513,6 +523,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()); } @@ -603,6 +616,7 @@ public LeadGenListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -640,6 +654,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 547d0229ba2..a16394a424e 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 @@ -21,6 +21,8 @@ public final class ListingPart extends com.oracle.bmc.http.internal.ExplicitlySe @Deprecated @java.beans.ConstructorProperties({ "sku", + "pricingPlanKey", + "billingModel", "metricType", "rateAllocation", "hasGovSku", @@ -28,12 +30,16 @@ public final class ListingPart extends com.oracle.bmc.http.internal.ExplicitlySe }) 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; @@ -58,6 +64,38 @@ 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. **/ @@ -130,6 +168,8 @@ public ListingPart build() { ListingPart model = new ListingPart( this.sku, + this.pricingPlanKey, + this.billingModel, this.metricType, this.rateAllocation, this.hasGovSku, @@ -145,6 +185,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()); } @@ -187,25 +233,48 @@ public String getSku() { } /** - * The part's metric. + * 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 MetricType { - OcpuHours("OCPU_HOURS"), - InstanceHours("INSTANCE_HOURS"), - CoreHours("CORE_HOURS"), - ; + public enum BillingModel { + 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; } @@ -215,13 +284,30 @@ 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. **/ @@ -293,6 +379,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)); @@ -312,6 +400,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) @@ -324,6 +414,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 f37026a21bd..81a6cacb2cd 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 @@ -57,6 +57,7 @@ public class ListingRevision extends com.oracle.bmc.http.internal.ExplicitlySetB "supportContacts", "supportLinks", "icon", + "banner", "status", "statusNotes", "lifecycleState", @@ -85,6 +86,7 @@ protected ListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -112,6 +114,7 @@ protected ListingRevision( this.supportContacts = supportContacts; this.supportLinks = supportLinks; this.icon = icon; + this.banner = banner; this.status = status; this.statusNotes = statusNotes; this.lifecycleState = lifecycleState; @@ -360,6 +363,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. **/ @@ -628,6 +638,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)); @@ -668,6 +679,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) @@ -719,6 +731,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 04b9bf45f54..3fa193441f2 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 @@ -56,6 +56,7 @@ public class ListingRevisionAttachment extends com.oracle.bmc.http.internal.Expl "listingRevisionId", "displayName", "description", + "sourceType", "lifecycleState", "timeCreated", "timeUpdated", @@ -69,6 +70,7 @@ protected ListingRevisionAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -81,6 +83,7 @@ protected ListingRevisionAttachment( this.listingRevisionId = listingRevisionId; this.displayName = displayName; this.description = description; + this.sourceType = sourceType; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -159,6 +162,71 @@ 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 { + 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. **/ @@ -323,6 +391,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)); @@ -348,6 +417,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) @@ -370,6 +440,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 9ee02582997..5c6fd05d8ae 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 @@ -28,6 +28,7 @@ public final class ListingRevisionAttachmentSummary "compartmentId", "displayName", "attachmentType", + "sourceType", "documentCategory", "contentUrl", "mimeType", @@ -44,6 +45,7 @@ public ListingRevisionAttachmentSummary( String compartmentId, String displayName, ListingRevisionAttachment.AttachmentType attachmentType, + ListingRevisionAttachment.SourceType sourceType, DocumentCategory documentCategory, String contentUrl, String mimeType, @@ -59,6 +61,7 @@ public ListingRevisionAttachmentSummary( this.compartmentId = compartmentId; this.displayName = displayName; this.attachmentType = attachmentType; + this.sourceType = sourceType; this.documentCategory = documentCategory; this.contentUrl = contentUrl; this.mimeType = mimeType; @@ -152,6 +155,22 @@ 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. **/ @@ -337,6 +356,7 @@ public ListingRevisionAttachmentSummary build() { this.compartmentId, this.displayName, this.attachmentType, + this.sourceType, this.documentCategory, this.contentUrl, this.mimeType, @@ -369,6 +389,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()); } @@ -481,6 +504,20 @@ 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. **/ @@ -708,6 +745,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)); @@ -736,6 +774,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) @@ -763,6 +802,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..1fb7e860139 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/ListingRevisionBannerAttachment.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class ListingRevisionBannerAttachment + extends com.oracle.bmc.http.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 91c936bff9b..0df564a2d93 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 @@ -27,6 +27,7 @@ public final class ListingRevisionNote extends com.oracle.bmc.http.internal.Expl "compartmentId", "noteSource", "noteDetails", + "adminEmail", "lifecycleState", "timeCreated", "timeUpdated", @@ -40,6 +41,7 @@ public ListingRevisionNote( String compartmentId, NoteSource noteSource, String noteDetails, + String adminEmail, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -52,6 +54,7 @@ public ListingRevisionNote( this.compartmentId = compartmentId; this.noteSource = noteSource; this.noteDetails = noteDetails; + this.adminEmail = adminEmail; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -142,6 +145,22 @@ 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. **/ @@ -279,6 +298,7 @@ public ListingRevisionNote build() { this.compartmentId, this.noteSource, this.noteDetails, + this.adminEmail, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -308,6 +328,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()); } @@ -459,6 +482,20 @@ 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. **/ @@ -638,6 +675,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)); @@ -663,6 +701,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) @@ -685,6 +724,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 3df3275174d..c41a7cd94b6 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 @@ -28,6 +28,7 @@ public final class ListingRevisionNoteSummary "compartmentId", "noteSource", "noteDetails", + "adminEmail", "lifecycleState", "timeCreated", "timeUpdated", @@ -41,6 +42,7 @@ public ListingRevisionNoteSummary( String compartmentId, ListingRevisionNote.NoteSource noteSource, String noteDetails, + String adminEmail, ListingRevisionNote.LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -53,6 +55,7 @@ public ListingRevisionNoteSummary( this.compartmentId = compartmentId; this.noteSource = noteSource; this.noteDetails = noteDetails; + this.adminEmail = adminEmail; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; @@ -143,6 +146,22 @@ 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. **/ @@ -280,6 +299,7 @@ public ListingRevisionNoteSummary build() { this.compartmentId, this.noteSource, this.noteDetails, + this.adminEmail, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -309,6 +329,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()); } @@ -412,6 +435,20 @@ 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. **/ @@ -543,6 +580,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)); @@ -568,6 +606,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) @@ -590,6 +629,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..3fade628906 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/MetricType.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; + +/** + * Shared metric type values used across listing and listing revision models. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public enum MetricType { + 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 084ec4dac1f..c2832f5858e 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; @@ -318,6 +327,38 @@ 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. **/ @@ -431,6 +472,38 @@ 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(); @@ -456,6 +529,7 @@ public OciListingRevision build() { this.supportContacts, this.supportLinks, this.icon, + this.banner, this.status, this.statusNotes, this.lifecycleState, @@ -468,13 +542,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); } @@ -537,6 +615,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()); } @@ -573,6 +654,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()); } @@ -595,6 +682,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; } } @@ -630,6 +723,7 @@ public OciListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -642,13 +736,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, @@ -668,6 +766,7 @@ public OciListingRevision( supportContacts, supportLinks, icon, + banner, status, statusNotes, lifecycleState, @@ -680,6 +779,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; @@ -687,6 +788,8 @@ public OciListingRevision( this.recommendedServiceProviderListingIds = recommendedServiceProviderListingIds; this.areInternalTenancyLaunchAllowed = areInternalTenancyLaunchAllowed; this.isRoverExportable = isRoverExportable; + this.demoUrl = demoUrl; + this.selfPacedTrainingUrl = selfPacedTrainingUrl; } @com.fasterxml.jackson.annotation.JsonProperty("versionDetails") @@ -787,6 +890,34 @@ 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. **/ @@ -885,6 +1016,34 @@ 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); @@ -903,6 +1062,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)); @@ -913,6 +1074,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(); } @@ -931,6 +1094,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) @@ -942,6 +1108,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); } @@ -959,6 +1127,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) @@ -982,6 +1156,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 af3c9125302..77bc73ac885 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 @@ -14,6 +14,10 @@ public enum OperationType { 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"), @@ -30,6 +34,8 @@ public enum OperationType { 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 ce0a8d5cae1..fb96eff6339 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 @@ -29,7 +29,7 @@ public final class OpnMembership extends com.oracle.bmc.http.internal.Explicitly public OpnMembership( java.util.Date timeStart, java.util.Date timeEnd, - OpnStatus opnStatus, + AdminOpnPartnerSummary.MembershipStatus opnStatus, String opnNumber, String opnMembershipType) { super(); @@ -78,14 +78,14 @@ public Builder timeEnd(java.util.Date timeEnd) { * OPN status **/ @com.fasterxml.jackson.annotation.JsonProperty("opnStatus") - private OpnStatus opnStatus; + private AdminOpnPartnerSummary.MembershipStatus opnStatus; /** * OPN status * @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; @@ -200,66 +200,17 @@ public java.util.Date getTimeEnd() { return timeEnd; } - /** - * OPN status - **/ - public enum OpnStatus { - 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..321e04f5fc8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PartnerPortalOptions.java @@ -0,0 +1,1104 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class PartnerPortalOptions extends com.oracle.bmc.http.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 abd6463d90b..608346c6dca 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,14 @@ 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" @@ -101,6 +109,8 @@ public int hashCode() { public enum PlanType { 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 this 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 49c629f327c..19288391c8a 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 @@ -22,8 +22,10 @@ public final class Publisher extends com.oracle.bmc.http.internal.ExplicitlySetB @java.beans.ConstructorProperties({ "publisherStatus", "notificationEmail", + "enrollmentStatus", "opnMembership", "privateOfferAccountDetails", + "isFxEnabled", "id", "compartmentId", "registryNamespace", @@ -42,6 +44,14 @@ public final class Publisher extends com.oracle.bmc.http.internal.ExplicitlySetB "publisherType", "timeCreated", "timeUpdated", + "email", + "businessPhoneNumber", + "employeeCount", + "solutionDescription", + "opnNumber", + "country", + "city", + "state", "freeformTags", "definedTags", "systemTags" @@ -49,8 +59,10 @@ public final class Publisher extends com.oracle.bmc.http.internal.ExplicitlySetB public Publisher( PublisherStatus publisherStatus, String notificationEmail, + String enrollmentStatus, OpnMembership opnMembership, PrivateOfferAccountDetails privateOfferAccountDetails, + Boolean isFxEnabled, String id, String compartmentId, String registryNamespace, @@ -69,14 +81,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; @@ -95,6 +117,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,22 @@ 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 +199,22 @@ 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. **/ @@ -434,6 +496,134 @@ 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"}} @@ -504,8 +694,10 @@ public Publisher build() { new Publisher( this.publisherStatus, this.notificationEmail, + this.enrollmentStatus, this.opnMembership, this.privateOfferAccountDetails, + this.isFxEnabled, this.id, this.compartmentId, this.registryNamespace, @@ -524,6 +716,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); @@ -541,12 +741,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()); } @@ -601,6 +807,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()); } @@ -625,58 +855,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * publisher status. - **/ - public enum PublisherStatus { - 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. **/ @@ -705,6 +883,20 @@ 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; @@ -719,6 +911,20 @@ 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. **/ @@ -1012,6 +1218,118 @@ 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"}} @@ -1082,9 +1400,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)); @@ -1103,6 +1423,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)); @@ -1122,9 +1450,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) @@ -1143,6 +1473,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) @@ -1159,6 +1497,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()); @@ -1167,6 +1508,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) @@ -1191,6 +1533,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..205a0c9548c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/PublisherStatus.java @@ -0,0 +1,59 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.model; + +/** + * Publisher Status + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public enum PublisherStatus { + 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 fbea390d129..8b998ac6d26 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 @@ -38,6 +38,14 @@ public final class PublisherSummary extends com.oracle.bmc.http.internal.Explici "publisherType", "timeCreated", "timeUpdated", + "email", + "businessPhoneNumber", + "employeeCount", + "solutionDescription", + "opnNumber", + "country", + "city", + "state", "freeformTags", "definedTags", "systemTags" @@ -61,6 +69,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) { @@ -83,6 +99,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; @@ -371,6 +395,134 @@ 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"}} @@ -457,6 +609,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); @@ -522,6 +682,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()); } @@ -839,6 +1023,118 @@ 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"}} @@ -925,6 +1221,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)); @@ -960,6 +1264,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) @@ -994,6 +1306,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 03b5eb56ea6..9506f235792 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; @@ -186,6 +195,7 @@ public RelatedDocumentAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -218,6 +228,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()); } @@ -267,6 +280,7 @@ public RelatedDocumentAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -282,6 +296,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 cce11f79cf6..30f3af214d1 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; @@ -202,6 +211,7 @@ public ReviewSupportDocumentAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -235,6 +245,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()); } @@ -287,6 +300,7 @@ public ReviewSupportDocumentAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -303,6 +317,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 7362b093dae..24e9fb32ade 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,22 @@ 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. **/ @@ -82,6 +98,22 @@ 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. * @@ -108,9 +140,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); @@ -123,6 +157,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()); } @@ -132,6 +169,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()); } @@ -153,17 +193,35 @@ 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. **/ @@ -198,7 +256,10 @@ public String getPlanDescription() { public enum BillingFrequency { 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 this @@ -255,6 +316,72 @@ public BillingFrequency getBillingFrequency() { return billingFrequency; } + /** + * The plan duration. + **/ + public enum PlanDuration { + 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. * @@ -285,9 +412,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(); @@ -303,9 +432,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); } @@ -314,6 +445,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) @@ -321,6 +455,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 f99c029550d..e65e00953e4 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; @@ -170,6 +179,7 @@ public ScreenShotAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -201,6 +211,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()); } @@ -247,6 +260,7 @@ public ScreenShotAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -261,6 +275,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 f1be3625395..399b266c686 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; @@ -383,6 +392,7 @@ public ServiceListingRevision build() { this.supportContacts, this.supportLinks, this.icon, + this.banner, this.status, this.statusNotes, this.lifecycleState, @@ -459,6 +469,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()); } @@ -536,6 +549,7 @@ public ServiceListingRevision( java.util.List supportContacts, java.util.List supportLinks, ListingRevisionIconAttachment icon, + ListingRevisionBannerAttachment banner, Status status, String statusNotes, LifecycleState lifecycleState, @@ -569,6 +583,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 10ea0efcd6b..c2f64d4abc7 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; @@ -218,6 +227,7 @@ public SupportedServiceAttachment build() { this.listingRevisionId, this.displayName, this.description, + this.sourceType, this.lifecycleState, this.timeCreated, this.timeUpdated, @@ -252,6 +262,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()); } @@ -307,6 +320,7 @@ public SupportedServiceAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -324,6 +338,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 29f2270db6b..a808f0b48eb 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 @@ -14,44 +14,45 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbMetadata +public final class UpdateAdminArtifactStatusDetails extends com.oracle.bmc.http.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. + * The new status for the artifact. **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private java.util.Map map; + @com.fasterxml.jackson.annotation.JsonProperty("newStatus") + private String newStatus; /** - * The map containing key-value pair of additional metadata. - * @param map the value to set + * The new status for the artifact. + * @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; } @@ -79,17 +80,17 @@ public Builder toBuilder() { } /** - * The map containing key-value pair of additional metadata. + * The new status for the artifact. **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private final java.util.Map map; + @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 @@ -104,9 +105,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(); } @@ -116,19 +117,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 ba344dde143..6b4163ca1c2 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 @@ -201,6 +201,38 @@ 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 **/ @@ -282,6 +314,38 @@ 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(); @@ -306,11 +370,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); } @@ -370,6 +438,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()); } @@ -386,6 +460,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; } } @@ -420,11 +500,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, @@ -443,11 +527,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") @@ -499,6 +587,34 @@ 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 **/ @@ -569,6 +685,34 @@ 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); @@ -587,6 +731,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)); @@ -594,6 +740,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(); } @@ -612,6 +760,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, @@ -620,6 +771,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); } @@ -637,6 +790,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) @@ -652,6 +811,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 98e5cb6bd2c..48193eacddb 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 @@ -82,6 +82,22 @@ 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(); @@ -93,7 +109,8 @@ public UpdateRelatedDocumentAttachmentDetails build() { this.description, this.freeformTags, this.definedTags, - this.documentCategory); + this.documentCategory, + this.sourceUrl); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -117,6 +134,9 @@ public Builder copy(UpdateRelatedDocumentAttachmentDetails model) { if (model.wasPropertyExplicitlySet("documentCategory")) { this.documentCategory(model.getDocumentCategory()); } + if (model.wasPropertyExplicitlySet("sourceUrl")) { + this.sourceUrl(model.getSourceUrl()); + } return this; } } @@ -138,9 +158,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; } /** @@ -157,6 +179,20 @@ 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); @@ -172,6 +208,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(); } @@ -187,6 +224,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); } @@ -197,6 +235,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 906738c26bc..52e55dfcc5a 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 @@ -111,6 +111,22 @@ 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(); @@ -124,7 +140,8 @@ public UpdateSupportedServiceAttachment build() { this.definedTags, this.serviceName, this.url, - this.type); + this.type, + this.sourceType); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -154,6 +171,9 @@ public Builder copy(UpdateSupportedServiceAttachment model) { if (model.wasPropertyExplicitlySet("type")) { this.type(model.getType()); } + if (model.wasPropertyExplicitlySet("sourceType")) { + this.sourceType(model.getSourceType()); + } return this; } } @@ -177,11 +197,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; } /** @@ -226,6 +248,20 @@ 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); @@ -243,6 +279,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(); } @@ -260,6 +297,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); } @@ -270,6 +308,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..63a2ac21f6a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageBasedPricingPlan.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; + +/** + * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.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 { + 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 { + 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..0511ffac1d9 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/model/UsageDimension.java @@ -0,0 +1,491 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.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.internal.ExplicitlySetFilter.NAME) +public final class UsageDimension extends com.oracle.bmc.http.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 { + 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 cf1cde5b7b1..0e1aa588507 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 @@ -70,6 +70,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()); } @@ -225,6 +238,7 @@ public VideoAttachment( String listingRevisionId, String displayName, String description, + SourceType sourceType, LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, @@ -238,6 +252,7 @@ public VideoAttachment( listingRevisionId, displayName, description, + sourceType, lifecycleState, timeCreated, timeUpdated, diff --git a/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java new file mode 100644 index 00000000000..bbe0ba53fca --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ChangeListingRevisionStatusToNewRequest.java @@ -0,0 +1,251 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ChangeListingRevisionStatusToNewRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ChangeListingRevisionStatusToNewRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * listing revision + */ + private String listingRevisionId; + + /** + * listing revision + */ + public String getListingRevisionId() { + return listingRevisionId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeListingRevisionStatusToNewRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(ChangeListingRevisionStatusToNewRequest o) { + listingRevisionId(o.getListingRevisionId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeListingRevisionStatusToNewRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ChangeListingRevisionStatusToNewRequest + */ + public ChangeListingRevisionStatusToNewRequest build() { + ChangeListingRevisionStatusToNewRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeListingRevisionStatusToNewRequest + */ + public ChangeListingRevisionStatusToNewRequest buildWithoutInvocationCallback() { + ChangeListingRevisionStatusToNewRequest request = + new ChangeListingRevisionStatusToNewRequest(); + request.listingRevisionId = listingRevisionId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ChangeListingRevisionStatusToNewRequest(listingRevisionId, 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() + .listingRevisionId(listingRevisionId) + .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(",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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeListingRevisionStatusToNewRequest)) { + return false; + } + + ChangeListingRevisionStatusToNewRequest other = (ChangeListingRevisionStatusToNewRequest) o; + return super.equals(o) + && 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 + 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.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/CreateMarketRequest.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/CreateMarketRequest.java index 108cc8bd79c..e513d794720 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/CreateMarketRequest.java @@ -2,30 +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.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** - * Example: Click here to see how to use CreateDistributedAutonomousDatabaseRequest. + * Example: Click here to see how to use CreateMarketRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedAutonomousDatabaseRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class CreateMarketRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails> { + com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails> { /** - * Details of the Globally distributed autonomous database to be created. + * Details for the new Market. */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails; + private com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails createMarketDetails; /** - * Details of the Globally distributed autonomous database to be created. + * Details for the new Market. */ - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - getCreateDistributedAutonomousDatabaseDetails() { - return createDistributedAutonomousDatabaseDetails; + 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 @@ -66,38 +63,32 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - getBody$() { - return createDistributedAutonomousDatabaseDetails; + public com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails getBody$() { + return createMarketDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedAutonomousDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails> { + CreateMarketRequest, + com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details of the Globally distributed autonomous database to be created. + * Details for the new Market. */ - private com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails = null; + private com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails createMarketDetails = + null; /** - * Details of the Globally distributed autonomous database to be created. - * @param createDistributedAutonomousDatabaseDetails the value to set + * Details for the new Market. + * @param createMarketDetails the value to set * @return this builder instance */ - public Builder createDistributedAutonomousDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails) { - this.createDistributedAutonomousDatabaseDetails = - createDistributedAutonomousDatabaseDetails; + public Builder createMarketDetails( + com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails createMarketDetails) { + this.createMarketDetails = createMarketDetails; return this; } @@ -168,9 +159,8 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(CreateDistributedAutonomousDatabaseRequest o) { - createDistributedAutonomousDatabaseDetails( - o.getCreateDistributedAutonomousDatabaseDetails()); + public Builder copy(CreateMarketRequest o) { + createMarketDetails(o.getCreateMarketDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -179,17 +169,17 @@ public Builder copy(CreateDistributedAutonomousDatabaseRequest o) { } /** - * Build the instance of CreateDistributedAutonomousDatabaseRequest 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.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of CreateDistributedAutonomousDatabaseRequest + * @return instance of CreateMarketRequest */ - public CreateDistributedAutonomousDatabaseRequest build() { - CreateDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); + public CreateMarketRequest build() { + CreateMarketRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -201,31 +191,26 @@ public CreateDistributedAutonomousDatabaseRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - body) { - createDistributedAutonomousDatabaseDetails(body); + public Builder body$(com.oracle.bmc.marketplacepublisher.model.CreateMarketDetails body) { + createMarketDetails(body); return this; } /** - * Build the instance of CreateDistributedAutonomousDatabaseRequest as configured by this builder + * 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.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of CreateDistributedAutonomousDatabaseRequest + * @return instance of CreateMarketRequest */ - public CreateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - CreateDistributedAutonomousDatabaseRequest request = - new CreateDistributedAutonomousDatabaseRequest(); - request.createDistributedAutonomousDatabaseDetails = - createDistributedAutonomousDatabaseDetails; + public CreateMarketRequest buildWithoutInvocationCallback() { + CreateMarketRequest request = new CreateMarketRequest(); + request.createMarketDetails = createMarketDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new CreateDistributedAutonomousDatabaseRequest(createDistributedAutonomousDatabaseDetails, opcRetryToken, opcRequestId); + // new CreateMarketRequest(createMarketDetails, opcRetryToken, opcRequestId); } } @@ -235,8 +220,7 @@ public CreateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback */ public Builder toBuilder() { return new Builder() - .createDistributedAutonomousDatabaseDetails( - createDistributedAutonomousDatabaseDetails) + .createMarketDetails(createMarketDetails) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); } @@ -254,8 +238,7 @@ 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(",createMarketDetails=").append(String.valueOf(this.createMarketDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -267,16 +250,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedAutonomousDatabaseRequest)) { + if (!(o instanceof CreateMarketRequest)) { return false; } - CreateDistributedAutonomousDatabaseRequest other = - (CreateDistributedAutonomousDatabaseRequest) o; + CreateMarketRequest other = (CreateMarketRequest) o; return super.equals(o) - && java.util.Objects.equals( - this.createDistributedAutonomousDatabaseDetails, - other.createDistributedAutonomousDatabaseDetails) + && java.util.Objects.equals(this.createMarketDetails, other.createMarketDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -287,9 +267,9 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.createDistributedAutonomousDatabaseDetails == null + + (this.createMarketDetails == null ? 43 - : this.createDistributedAutonomousDatabaseDetails.hashCode()); + : this.createMarketDetails.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); 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 c10a9cbca21..4fe851766e2 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,29 +2,28 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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. + * Example: Click here to see how to use CreatePublisherRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabaseRequest +@javax.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. + * The publisher information to be created. */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails; + private com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails createPublisherDetails; /** - * Details of the Globally distributed database to be created. + * The publisher information to be created. */ - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - getCreateDistributedDatabaseDetails() { - return createDistributedDatabaseDetails; + 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 @@ -65,33 +64,33 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details of the Globally distributed database to be created. + * The publisher information to be created. */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails = null; + private com.oracle.bmc.marketplacepublisher.model.CreatePublisherDetails + createPublisherDetails = null; /** - * Details of the Globally distributed database to be created. - * @param createDistributedDatabaseDetails the value to set + * The publisher information to be created. + * @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; } @@ -162,8 +161,8 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @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()); @@ -172,17 +171,17 @@ 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.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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; @@ -195,26 +194,26 @@ 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.util.internal.Consumer)} 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); } } @@ -224,7 +223,7 @@ public CreateDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .createDistributedDatabaseDetails(createDistributedDatabaseDetails) + .createPublisherDetails(createPublisherDetails) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); } @@ -242,8 +241,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(")"); @@ -255,15 +253,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); } @@ -274,9 +271,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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java new file mode 100644 index 00000000000..49060a99e14 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/DeleteCustomerInstanceReportExportRequest.java @@ -0,0 +1,256 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 DeleteCustomerInstanceReportExportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class DeleteCustomerInstanceReportExportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Customer Instance Report export identifier. + */ + private String customerInstanceReportExportId; + + /** + * 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 if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * The client request ID for tracing. + */ + private String opcRequestId; + + /** + * The client request ID for tracing. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteCustomerInstanceReportExportRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * The client request ID for tracing. + */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(DeleteCustomerInstanceReportExportRequest o) { + customerInstanceReportExportId(o.getCustomerInstanceReportExportId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteCustomerInstanceReportExportRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteCustomerInstanceReportExportRequest + */ + public DeleteCustomerInstanceReportExportRequest build() { + DeleteCustomerInstanceReportExportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteCustomerInstanceReportExportRequest + */ + public DeleteCustomerInstanceReportExportRequest buildWithoutInvocationCallback() { + DeleteCustomerInstanceReportExportRequest request = + new DeleteCustomerInstanceReportExportRequest(); + request.customerInstanceReportExportId = customerInstanceReportExportId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteCustomerInstanceReportExportRequest(customerInstanceReportExportId, 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() + .customerInstanceReportExportId(customerInstanceReportExportId) + .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(",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(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteCustomerInstanceReportExportRequest)) { + return false; + } + + DeleteCustomerInstanceReportExportRequest other = + (DeleteCustomerInstanceReportExportRequest) o; + return super.equals(o) + && 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 + 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.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/CreateDistributedDatabasePrivateEndpointRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java similarity index 62% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java index 6f68c1612dc..9c6bb441c21 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GenerateCustomerInstanceReportExportRequest.java @@ -2,32 +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.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** - * Example: Click here to see how to use CreateDistributedDatabasePrivateEndpointRequest. + * Example: Click here to see how to use GenerateCustomerInstanceReportExportRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabasePrivateEndpointRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GenerateCustomerInstanceReportExportRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails> { + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails> { /** - * Details of DistributedDatabasePrivateEndpoint to be created. + * Details for the Customer Instance Report export. */ - private com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails; + private com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails + generateCustomerInstanceReportExportDetails; /** - * Details of DistributedDatabasePrivateEndpoint to be created. + * Details for the Customer Instance Report export. */ - public com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - getCreateDistributedDatabasePrivateEndpointDetails() { - return createDistributedDatabasePrivateEndpointDetails; + 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 @@ -50,17 +59,6 @@ public class CreateDistributedDatabasePrivateEndpointRequest 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. @@ -68,39 +66,53 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails + public com.oracle.bmc.marketplacepublisher.model.GenerateCustomerInstanceReportExportDetails getBody$() { - return createDistributedDatabasePrivateEndpointDetails; + return generateCustomerInstanceReportExportDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedDatabasePrivateEndpointRequest, - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails> { + GenerateCustomerInstanceReportExportRequest, + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Details of DistributedDatabasePrivateEndpoint to be created. + * 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 com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails = null; + private String opcRequestId = null; /** - * Details of DistributedDatabasePrivateEndpoint to be created. - * @param createDistributedDatabasePrivateEndpointDetails the value to set + * The client request ID for tracing. + * @param opcRequestId the value to set * @return this builder instance */ - public Builder createDistributedDatabasePrivateEndpointDetails( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails) { - this.createDistributedDatabasePrivateEndpointDetails = - createDistributedDatabasePrivateEndpointDetails; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -129,21 +141,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. * @param invocationCallback the invocation callback to be set for the request @@ -171,29 +168,28 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(CreateDistributedDatabasePrivateEndpointRequest o) { - createDistributedDatabasePrivateEndpointDetails( - o.getCreateDistributedDatabasePrivateEndpointDetails()); - opcRetryToken(o.getOpcRetryToken()); + 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 CreateDistributedDatabasePrivateEndpointRequest as configured by this builder + * Build the instance of GenerateCustomerInstanceReportExportRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of CreateDistributedDatabasePrivateEndpointRequest + * @return instance of GenerateCustomerInstanceReportExportRequest */ - public CreateDistributedDatabasePrivateEndpointRequest build() { - CreateDistributedDatabasePrivateEndpointRequest request = - buildWithoutInvocationCallback(); + public GenerateCustomerInstanceReportExportRequest build() { + GenerateCustomerInstanceReportExportRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -206,30 +202,30 @@ public CreateDistributedDatabasePrivateEndpointRequest build() { */ @com.oracle.bmc.InternalSdk public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails + com.oracle.bmc.marketplacepublisher.model + .GenerateCustomerInstanceReportExportDetails body) { - createDistributedDatabasePrivateEndpointDetails(body); + generateCustomerInstanceReportExportDetails(body); return this; } /** - * Build the instance of CreateDistributedDatabasePrivateEndpointRequest as configured by this builder + * 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.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of CreateDistributedDatabasePrivateEndpointRequest + * @return instance of GenerateCustomerInstanceReportExportRequest */ - public CreateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - CreateDistributedDatabasePrivateEndpointRequest request = - new CreateDistributedDatabasePrivateEndpointRequest(); - request.createDistributedDatabasePrivateEndpointDetails = - createDistributedDatabasePrivateEndpointDetails; - request.opcRetryToken = opcRetryToken; + public GenerateCustomerInstanceReportExportRequest buildWithoutInvocationCallback() { + GenerateCustomerInstanceReportExportRequest request = + new GenerateCustomerInstanceReportExportRequest(); + request.generateCustomerInstanceReportExportDetails = + generateCustomerInstanceReportExportDetails; request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; return request; - // new CreateDistributedDatabasePrivateEndpointRequest(createDistributedDatabasePrivateEndpointDetails, opcRetryToken, opcRequestId); + // new GenerateCustomerInstanceReportExportRequest(generateCustomerInstanceReportExportDetails, opcRequestId, opcRetryToken); } } @@ -239,10 +235,10 @@ public CreateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCal */ public Builder toBuilder() { return new Builder() - .createDistributedDatabasePrivateEndpointDetails( - createDistributedDatabasePrivateEndpointDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .generateCustomerInstanceReportExportDetails( + generateCustomerInstanceReportExportDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); } /** @@ -258,10 +254,10 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",createDistributedDatabasePrivateEndpointDetails=") - .append(String.valueOf(this.createDistributedDatabasePrivateEndpointDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",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(); } @@ -271,18 +267,18 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointRequest)) { + if (!(o instanceof GenerateCustomerInstanceReportExportRequest)) { return false; } - CreateDistributedDatabasePrivateEndpointRequest other = - (CreateDistributedDatabasePrivateEndpointRequest) o; + GenerateCustomerInstanceReportExportRequest other = + (GenerateCustomerInstanceReportExportRequest) o; return super.equals(o) && java.util.Objects.equals( - this.createDistributedDatabasePrivateEndpointDetails, - other.createDistributedDatabasePrivateEndpointDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + this.generateCustomerInstanceReportExportDetails, + other.generateCustomerInstanceReportExportDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @Override @@ -291,13 +287,13 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.createDistributedDatabasePrivateEndpointDetails == null + + (this.generateCustomerInstanceReportExportDetails == null ? 43 - : this.createDistributedDatabasePrivateEndpointDetails.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..669238f4a3c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminArtifactRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminArtifactRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..44e060108e8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminListingRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..277a999b415 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionAttachmentRequest.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 GetAdminListingRevisionAttachmentRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java new file mode 100644 index 00000000000..b6640ac672e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionPackageRequest.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GetAdminListingRevisionPackageRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetAdminListingRevisionPackageRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Unique listing revision package identifier. + */ + private String listingRevisionPackageId; + + /** + * Unique listing revision package identifier. + */ + public String getListingRevisionPackageId() { + return listingRevisionPackageId; + } + /** + * 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< + GetAdminListingRevisionPackageRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Unique listing revision package identifier. + */ + private String listingRevisionPackageId = null; + + /** + * Unique listing revision package identifier. + * @param listingRevisionPackageId the value to set + * @return this builder instance + */ + public Builder listingRevisionPackageId(String listingRevisionPackageId) { + this.listingRevisionPackageId = listingRevisionPackageId; + 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.util.internal.Consumer + 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(GetAdminListingRevisionPackageRequest o) { + listingRevisionPackageId(o.getListingRevisionPackageId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetAdminListingRevisionPackageRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetAdminListingRevisionPackageRequest + */ + public GetAdminListingRevisionPackageRequest build() { + GetAdminListingRevisionPackageRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetAdminListingRevisionPackageRequest + */ + public GetAdminListingRevisionPackageRequest buildWithoutInvocationCallback() { + GetAdminListingRevisionPackageRequest request = + new GetAdminListingRevisionPackageRequest(); + request.listingRevisionPackageId = listingRevisionPackageId; + request.opcRequestId = opcRequestId; + return request; + // new GetAdminListingRevisionPackageRequest(listingRevisionPackageId, 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() + .listingRevisionPackageId(listingRevisionPackageId) + .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(",listingRevisionPackageId=") + .append(String.valueOf(this.listingRevisionPackageId)); + 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 GetAdminListingRevisionPackageRequest)) { + return false; + } + + GetAdminListingRevisionPackageRequest other = (GetAdminListingRevisionPackageRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.listingRevisionPackageId, other.listingRevisionPackageId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.listingRevisionPackageId == null + ? 43 + : 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..2dc9d0068ca --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminListingRevisionRequest.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminListingRevisionRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..039f29e854f --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminPublisherRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminPublisherRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..79b2c718de1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermRequest.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use GetAdminTermRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..e4ac997879a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetAdminTermVersionRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 3bb235cb0d7..c98a5f1eabb 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,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.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** - * Example: Click here to see how to use GetDistributedAutonomousDatabaseRaftMetricRequest. + * Example: Click here to see how to use GetCustomerInstanceReportExportContentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRaftMetricRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class GetCustomerInstanceReportExportContentRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed autonomous database identifier. + * Customer Instance Report export identifier. */ - private String distributedAutonomousDatabaseId; + private String customerInstanceReportExportId; /** - * Globally distributed autonomous database identifier. + * Customer Instance Report export identifier. */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + public String getCustomerInstanceReportExportId() { + return customerInstanceReportExportId; } /** * The client request ID for tracing. @@ -37,23 +37,23 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed autonomous database identifier. + * Customer Instance Report export identifier. */ - private String distributedAutonomousDatabaseId = null; + private String customerInstanceReportExportId = null; /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set + * Customer Instance Report export identifier. + * @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; } @@ -99,8 +99,8 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @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()); @@ -108,17 +108,17 @@ 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.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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); @@ -126,20 +126,20 @@ 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.util.internal.Consumer)} 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, opcRequestId); + // new GetCustomerInstanceReportExportContentRequest(customerInstanceReportExportId, opcRequestId); } } @@ -149,7 +149,7 @@ public GetDistributedAutonomousDatabaseRaftMetricRequest buildWithoutInvocationC */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .customerInstanceReportExportId(customerInstanceReportExportId) .opcRequestId(opcRequestId); } @@ -166,8 +166,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(); @@ -178,15 +178,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); } @@ -196,9 +196,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..882e8386d9a --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/GetCustomerInstanceReportExportRequest.java @@ -0,0 +1,203 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 51% 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 b8d8d4aadaa..a07021dc74c 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,62 +2,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.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. + * Example: Click here to see how to use ListAdminArtifactsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesRequest - extends com.oracle.bmc.requests.BmcRequest { +@javax.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; } /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. + * Unique publisher identifier. */ - private Boolean compartmentIdInSubtree; + private String publisherId; /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. + * Unique publisher identifier. */ - public Boolean getCompartmentIdInSubtree() { - return compartmentIdInSubtree; + public String getPublisherId() { + return publisherId; } /** - * A filter to return only resources that are associated with the given privateEndpointId. + * A filter to return only artifacts with specific type. */ - private String privateEndpointId; + private com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum artifactType; /** - * A filter to return only resources that are associated with the given privateEndpointId. + * A filter to return only artifacts with specific type. */ - public String getPrivateEndpointId() { - return privateEndpointId; + public com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum getArtifactType() { + return artifactType; } /** - * A filter to return only resources whose lifecycleState matches the specified value. + * A filter to return only artifacts with their lifecycleState matches the given lifecycleState. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState; + private com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState lifecycleState; /** - * A filter to return only resources whose lifecycleState matches the specified value. + * A filter to return only artifacts with their lifecycleState matches the given lifecycleState. */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - getLifecycleState() { + public com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState getLifecycleState() { return lifecycleState; } + /** + * 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 artifacts with specific status. + */ + private com.oracle.bmc.marketplacepublisher.model.Artifact.Status status; + + /** + * 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. */ @@ -83,27 +102,30 @@ public String getPage() { /** * 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 { TimeCreated("timeCreated"), TimeUpdated("timeUpdated"), + DisplayName("displayName"), ; private final String value; @@ -135,7 +157,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() { @@ -152,67 +175,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. - */ - 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.util.internal.Consumer 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 */ @@ -222,53 +199,83 @@ public Builder compartmentId(String compartmentId) { } /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. + * Unique publisher identifier. */ - private Boolean compartmentIdInSubtree = null; + 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. - * @param compartmentIdInSubtree the value to set + * Unique publisher identifier. + * @param publisherId the value to set * @return this builder instance */ - public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { - this.compartmentIdInSubtree = compartmentIdInSubtree; + public Builder publisherId(String publisherId) { + this.publisherId = publisherId; return this; } /** - * A filter to return only resources that are associated with the given privateEndpointId. + * A filter to return only artifacts with specific type. */ - private String privateEndpointId = null; + private com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum artifactType = null; /** - * A filter to return only resources that are associated with the given privateEndpointId. - * @param privateEndpointId the value to set + * A filter to return only artifacts with specific type. + * @param artifactType the value to set * @return this builder instance */ - public Builder privateEndpointId(String privateEndpointId) { - this.privateEndpointId = privateEndpointId; + public Builder artifactType( + com.oracle.bmc.marketplacepublisher.model.ArtifactTypeEnum artifactType) { + this.artifactType = artifactType; return this; } /** - * A filter to return only resources whose lifecycleState matches the specified value. + * A filter to return only artifacts with their lifecycleState matches the given lifecycleState. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState = null; + private com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState lifecycleState = + null; /** - * A filter to return only resources whose lifecycleState matches the specified value. + * A filter to return only artifacts with their lifecycleState matches the given lifecycleState. * @param lifecycleState the value to set * @return this builder instance */ public Builder lifecycleState( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState) { + com.oracle.bmc.marketplacepublisher.model.Artifact.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; 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 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; + } + /** * The maximum number of items to return. */ @@ -302,26 +309,28 @@ 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'. * @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 @@ -346,68 +355,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. * @param invocationCallback the invocation callback to be set for the request @@ -435,67 +382,63 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @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.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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.util.internal.Consumer)} 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); } } @@ -506,18 +449,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); } /** @@ -534,19 +475,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(); } @@ -556,27 +494,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 @@ -586,32 +520,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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.java new file mode 100644 index 00000000000..1b67ac853b6 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionAttachmentsRequest.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.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ListAdminListingRevisionAttachmentsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionAttachmentsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * OCID of the listing revision. + */ + private String listingRevisionId; + + /** + * OCID of the listing revision. + */ + public String getListingRevisionId() { + return listingRevisionId; + } + /** + * 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 attachments their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment.LifecycleState + 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; + + /** + * 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 { + 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< + ListAdminListingRevisionAttachmentsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + 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; + } + + /** + * 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 attachments their lifecycleState matches the given lifecycleState. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionAttachment.LifecycleState + lifecycleState = null; + + /** + * 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.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; + + /** + * 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.util.internal.Consumer + 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(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()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAdminListingRevisionAttachmentsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListAdminListingRevisionAttachmentsRequest + */ + public ListAdminListingRevisionAttachmentsRequest build() { + ListAdminListingRevisionAttachmentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * 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.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListAdminListingRevisionAttachmentsRequest + */ + 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; + return request; + // new ListAdminListingRevisionAttachmentsRequest(listingRevisionId, displayName, lifecycleState, compartmentId, 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) + .displayName(displayName) + .lifecycleState(lifecycleState) + .compartmentId(compartmentId) + .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(",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(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminListingRevisionAttachmentsRequest)) { + return false; + } + + ListAdminListingRevisionAttachmentsRequest other = + (ListAdminListingRevisionAttachmentsRequest) o; + return super.equals(o) + && 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); + } + + @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.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.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()); + 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/ListAdminListingRevisionPackagesRequest.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/ListAdminListingRevisionPackagesRequest.java index 636f7784283..f89bb858bfc 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/ListAdminListingRevisionPackagesRequest.java @@ -2,50 +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.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** - * Example: Click here to see how to use ListDistributedDatabasePrivateEndpointsRequest. + * Example: Click here to see how to use ListAdminListingRevisionPackagesRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class ListAdminListingRevisionPackagesRequest extends com.oracle.bmc.requests.BmcRequest { /** - * The ID of the compartment in which to list resources. + * 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 ID of the compartment in which to list resources. + * The unique identifier for the compartment. */ 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. + * A filter to return only resources that match the entire display name given. */ - private Boolean compartmentIdInSubtree; + private String 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 resources that match the entire display name given. */ - public Boolean getCompartmentIdInSubtree() { - return compartmentIdInSubtree; + public String getDisplayName() { + return displayName; } /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only packages their lifecycleState matches the given lifecycleState. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.LifecycleState lifecycleState; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * A filter to return only packages their lifecycleState matches the given lifecycleState. */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState + public com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.LifecycleState getLifecycleState() { return lifecycleState; } @@ -74,12 +83,12 @@ public String getPage() { /** * 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; } /** @@ -94,7 +103,7 @@ public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { **/ public enum SortBy { TimeCreated("timeCreated"), - TimeUpdated("timeUpdated"), + DisplayName("displayName"), ; private final String value; @@ -143,32 +152,36 @@ 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> { + ListAdminListingRevisionPackagesRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * The ID of the compartment in which to list resources. + * 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 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 */ @@ -178,35 +191,33 @@ public Builder compartmentId(String compartmentId) { } /** - * 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. */ - private Boolean compartmentIdInSubtree = null; + 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. - * @param compartmentIdInSubtree the value to set + * 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 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 packages their lifecycleState matches the given lifecycleState. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState + private com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.LifecycleState lifecycleState = null; /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. + * 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.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState + com.oracle.bmc.marketplacepublisher.model.ListingRevisionPackage.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; return this; @@ -245,14 +256,14 @@ 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'. * @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; } @@ -289,21 +300,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. * @param invocationCallback the invocation callback to be set for the request @@ -331,61 +327,60 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { + public Builder copy(ListAdminListingRevisionPackagesRequest o) { + listingRevisionId(o.getListingRevisionId()); compartmentId(o.getCompartmentId()); - compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + displayName(o.getDisplayName()); lifecycleState(o.getLifecycleState()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); opcRequestId(o.getOpcRequestId()); - displayName(o.getDisplayName()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of ListDistributedDatabasePrivateEndpointsRequest as configured by this builder + * Build the instance of ListAdminListingRevisionPackagesRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of ListDistributedDatabasePrivateEndpointsRequest + * @return instance of ListAdminListingRevisionPackagesRequest */ - public ListDistributedDatabasePrivateEndpointsRequest build() { - ListDistributedDatabasePrivateEndpointsRequest request = - buildWithoutInvocationCallback(); + public ListAdminListingRevisionPackagesRequest build() { + ListAdminListingRevisionPackagesRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of ListDistributedDatabasePrivateEndpointsRequest as configured by this builder + * 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.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of ListDistributedDatabasePrivateEndpointsRequest + * @return instance of ListAdminListingRevisionPackagesRequest */ - public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCallback() { - ListDistributedDatabasePrivateEndpointsRequest request = - new ListDistributedDatabasePrivateEndpointsRequest(); + public ListAdminListingRevisionPackagesRequest buildWithoutInvocationCallback() { + ListAdminListingRevisionPackagesRequest request = + new ListAdminListingRevisionPackagesRequest(); + request.listingRevisionId = listingRevisionId; request.compartmentId = compartmentId; - request.compartmentIdInSubtree = compartmentIdInSubtree; + request.displayName = displayName; request.lifecycleState = lifecycleState; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; - request.displayName = displayName; return request; - // new ListDistributedDatabasePrivateEndpointsRequest(compartmentId, compartmentIdInSubtree, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, displayName); + // new ListAdminListingRevisionPackagesRequest(listingRevisionId, compartmentId, displayName, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -395,15 +390,15 @@ public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCall */ public Builder toBuilder() { return new Builder() + .listingRevisionId(listingRevisionId) .compartmentId(compartmentId) - .compartmentIdInSubtree(compartmentIdInSubtree) + .displayName(displayName) .lifecycleState(lifecycleState) .limit(limit) .page(page) .sortOrder(sortOrder) .sortBy(sortBy) - .opcRequestId(opcRequestId) - .displayName(displayName); + .opcRequestId(opcRequestId); } /** @@ -419,15 +414,15 @@ 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(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + 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(",displayName=").append(String.valueOf(this.displayName)); sb.append(")"); return sb.toString(); } @@ -437,23 +432,21 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasePrivateEndpointsRequest)) { + if (!(o instanceof ListAdminListingRevisionPackagesRequest)) { return false; } - ListDistributedDatabasePrivateEndpointsRequest other = - (ListDistributedDatabasePrivateEndpointsRequest) o; + 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.compartmentIdInSubtree, other.compartmentIdInSubtree) + && 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) - && java.util.Objects.equals(this.displayName, other.displayName); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -462,12 +455,11 @@ 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.compartmentIdInSubtree == null - ? 43 - : this.compartmentIdInSubtree.hashCode()); + + (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()); @@ -476,7 +468,6 @@ 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.displayName == null ? 43 : this.displayName.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..7791175c5d4 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminListingRevisionsRequest.java @@ -0,0 +1,819 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..9782d86dfea --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminPublisherSkusRequest.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.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ListAdminPublisherSkusRequest. + */ +@javax.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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..8ce4804f310 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermVersionsRequest.java @@ -0,0 +1,431 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.requests; + +import com.oracle.bmc.marketplacepublisher.model.*; +/** + * Example: Click here to see how to use ListAdminTermVersionsRequest. + */ +@javax.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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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..86dc840efdf --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListAdminTermsRequest.java @@ -0,0 +1,398 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 0b88f736c2c..b88c923bffd 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,14 +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.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. + * Example: Click here to see how to use ListAdminWorkRequestsRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { +@javax.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. @@ -36,12 +37,12 @@ public String getWorkRequestId() { /** * 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; } /** @@ -91,12 +92,12 @@ public Integer getLimit() { /** * 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; } /** @@ -151,7 +152,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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -189,14 +190,14 @@ 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. * @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; } @@ -264,14 +265,14 @@ 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'. * @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; } @@ -320,7 +321,7 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListWorkRequestsRequest o) { + public Builder copy(ListAdminWorkRequestsRequest o) { compartmentId(o.getCompartmentId()); workRequestId(o.getWorkRequestId()); status(o.getStatus()); @@ -336,32 +337,32 @@ 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.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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.util.internal.Consumer)} 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; @@ -372,7 +373,7 @@ public ListWorkRequestsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.sortBy = sortBy; return request; - // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, opcRequestId, page, limit, sortOrder, sortBy); + // new ListAdminWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, opcRequestId, page, limit, sortOrder, sortBy); } } @@ -424,11 +425,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..11327f823ba --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/requests/ListCustomerInstanceReportExportsRequest.java @@ -0,0 +1,857 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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. + */ +@javax.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 { + 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 { + 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.util.internal.Consumer + 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.util.internal.Consumer + 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 6d56de984d4..94d25f827c2 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 @@ -23,59 +23,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 { - 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. */ @@ -121,18 +68,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 { - TimeCreated("timeCreated"), - DisplayName("displayName"), + InstanceId("INSTANCE_ID"), ; private final String value; @@ -164,7 +110,7 @@ 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() { @@ -181,6 +127,181 @@ 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 { + 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< @@ -204,23 +325,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. */ @@ -282,13 +386,13 @@ 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 @@ -313,6 +417,187 @@ 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. * @param invocationCallback the invocation callback to be set for the request @@ -342,13 +627,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; @@ -383,15 +679,26 @@ 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); } } @@ -402,13 +709,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); } /** @@ -425,13 +743,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(); } @@ -449,13 +782,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 @@ -465,13 +813,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 effb27ae98f..d5fb7ff67c4 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 @@ -36,6 +36,10 @@ public String getCompartmentId() { public enum DateRange { 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 fc7f6e2a582..2b3490b8f0a 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,51 +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.marketplacepublisher.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.marketplacepublisher.model.*; /** - * Example: Click here to see how to use UpdateDistributedDatabaseRequest. + * Example: Click here to see how to use UpdateAdminArtifactStatusRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseRequest +@javax.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. + * The artifact status information to be updated. */ - private String distributedDatabaseId; + private com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + updateAdminArtifactStatusDetails; /** - * Globally distributed database identifier. + * The artifact status information to be updated. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + getUpdateAdminArtifactStatusDetails() { + return updateAdminArtifactStatusDetails; } /** - * The configuration of the Globally distributed database to be updated. + * artifact OCID */ - private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails; + private String artifactId; /** - * The configuration of the Globally distributed database to be updated. + * artifact OCID */ - 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; + public String getArtifactId() { + return artifactId; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -69,6 +58,17 @@ 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. @@ -76,63 +76,48 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The artifact status information to be updated. */ - private String distributedDatabaseId = null; + private com.oracle.bmc.marketplacepublisher.model.UpdateAdminArtifactStatusDetails + updateAdminArtifactStatusDetails = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The artifact status information to be updated. + * @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. + * artifact OCID */ - private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails = null; + private String artifactId = null; /** - * The configuration of the Globally distributed database to be updated. - * @param updateDistributedDatabaseDetails the value to set + * artifact OCID + * @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; } @@ -161,6 +146,21 @@ 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. * @param invocationCallback the invocation callback to be set for the request @@ -188,28 +188,28 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(UpdateDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - updateDistributedDatabaseDetails(o.getUpdateDistributedDatabaseDetails()); - opcRequestId(o.getOpcRequestId()); + 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.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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; @@ -222,27 +222,27 @@ 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.util.internal.Consumer)} 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); } } @@ -252,10 +252,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); } /** @@ -271,11 +271,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(); } @@ -285,18 +285,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 @@ -305,16 +305,12 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.updateAdminArtifactStatusDetails == null ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.updateDistributedDatabaseDetails == null - ? 43 - : this.updateDistributedDatabaseDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + : 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 992954ad5fb..5522af915a2 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,58 +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.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. + * Example: Click here to see how to use UpdateListingRevisionBannerContentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20241201") +public class UpdateListingRevisionBannerContentRequest + extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed autonomous database identifier. + * listing revision */ - private String distributedAutonomousDatabaseId; + private String listingRevisionId; /** - * Globally distributed autonomous database identifier. + * listing revision */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + 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. - * + * banner name */ - private String opcRetryToken; + 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. - * + * banner name */ - public String getOpcRetryToken() { - return opcRetryToken; + public String getBannerName() { + return bannerName; } /** - * The client request ID for tracing. + * The listing revision icon to be updated. */ - private String opcRequestId; + private java.io.InputStream updateListingRevisionBannerContent; /** - * The client request ID for tracing. + * The listing revision icon to be updated. */ - public String getOpcRequestId() { - return opcRequestId; + public java.io.InputStream getUpdateListingRevisionBannerContent() { + return updateListingRevisionBannerContent; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -76,66 +66,78 @@ 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.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed autonomous database identifier. + * listing revision */ - private String distributedAutonomousDatabaseId = null; + private String listingRevisionId = null; /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set + * listing revision + * @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. - * + * banner name */ - private String opcRetryToken = null; + 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. - * - * @param opcRetryToken the value to set + * banner name + * @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. + * The listing revision icon to be updated. */ - private String opcRequestId = null; + private java.io.InputStream updateListingRevisionBannerContent = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * The listing revision icon to be updated. + * @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; } @@ -164,6 +166,21 @@ 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. * @param invocationCallback the invocation callback to be set for the request @@ -191,50 +208,63 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(StartDistributedAutonomousDatabaseRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); + 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 builder + * Build the instance of UpdateListingRevisionBannerContentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * 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 builder + * 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.util.internal.Consumer)} 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); } } @@ -244,10 +274,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); } /** @@ -263,11 +294,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(); } @@ -277,18 +309,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 @@ -297,14 +331,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/GetDistributedAutonomousDatabaseResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ChangeListingRevisionStatusToNewResponse.java similarity index 68% 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/ChangeListingRevisionStatusToNewResponse.java index b0a9b4c2b43..20ddd0ced4a 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/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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.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. @@ -41,18 +41,17 @@ public String getEtag() { } /** - * The returned DistributedAutonomousDatabase instance. + * The returned AdminListingRevision instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; /** - * The returned DistributedAutonomousDatabase instance. + * The returned AdminListingRevision instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevision + getAdminListingRevision() { + return adminListingRevision; } @java.beans.ConstructorProperties({ @@ -60,19 +59,18 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedAutonomousDatabase" + "adminListingRevision" }) - private GetDistributedAutonomousDatabaseResponse( + private ChangeListingRevisionStatusToNewResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + this.adminListingRevision = adminListingRevision; } public static class Builder { @@ -127,20 +125,19 @@ public Builder etag(String etag) { } /** - * The returned DistributedAutonomousDatabase instance. + * The returned AdminListingRevision instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; /** - * The returned DistributedAutonomousDatabase instance. - * @param distributedAutonomousDatabase the value to set + * The returned AdminListingRevision instance. + * @param adminListingRevision the value to set * @return this builder */ - public Builder distributedAutonomousDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + public Builder adminListingRevision( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevision + adminListingRevision) { + this.adminListingRevision = adminListingRevision; return this; } @@ -148,12 +145,12 @@ public Builder distributedAutonomousDatabase( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetDistributedAutonomousDatabaseResponse o) { + public Builder copy(ChangeListingRevisionStatusToNewResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + adminListingRevision(o.getAdminListingRevision()); return this; } @@ -162,9 +159,9 @@ public Builder copy(GetDistributedAutonomousDatabaseResponse o) { * Build the response object. * @return the response object */ - public GetDistributedAutonomousDatabaseResponse build() { - return new GetDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); + public ChangeListingRevisionStatusToNewResponse build() { + return new ChangeListingRevisionStatusToNewResponse( + __httpStatusCode__, headers, opcRequestId, etag, adminListingRevision); } } @@ -183,8 +180,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(",distributedAutonomousDatabase=") - .append(String.valueOf(distributedAutonomousDatabase)); + sb.append(",adminListingRevision=").append(String.valueOf(adminListingRevision)); sb.append(")"); return sb.toString(); } @@ -194,17 +190,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof ChangeListingRevisionStatusToNewResponse)) { return false; } - GetDistributedAutonomousDatabaseResponse other = - (GetDistributedAutonomousDatabaseResponse) 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.distributedAutonomousDatabase, other.distributedAutonomousDatabase); + && java.util.Objects.equals(this.adminListingRevision, other.adminListingRevision); } @Override @@ -215,9 +210,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabase == null + + (this.adminListingRevision == null ? 43 - : this.distributedAutonomousDatabase.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 90% 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 7844e242b52..ffc8d9c5b47 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.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__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -111,7 +111,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ReinstateProxyInstanceResponse o) { + public Builder copy(CreateMarketResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -124,8 +124,8 @@ public Builder copy(ReinstateProxyInstanceResponse o) { * Build the response object. * @return the response object */ - public ReinstateProxyInstanceResponse build() { - return new ReinstateProxyInstanceResponse( + public CreateMarketResponse build() { + return new CreateMarketResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -154,11 +154,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..320902cdb83 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/CreatePublisherResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 Publisher instance. + */ + private com.oracle.bmc.marketplacepublisher.model.Publisher publisher; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 Publisher instance. + */ + private com.oracle.bmc.marketplacepublisher.model.Publisher publisher; + + /** + * The returned 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 + */ + 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 + */ + 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 6afd51d72d9..6ff426a62d0 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,28 +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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedAutonomousDatabaseResponse +@javax.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,19 +26,12 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private PatchDistributedAutonomousDatabaseResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private DeleteCustomerInstanceReportExportResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, String opcRequestId) { super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; this.opcRequestId = opcRequestId; } @@ -72,23 +50,6 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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. @@ -112,10 +73,9 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - 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; @@ -125,9 +85,9 @@ public Builder copy(PatchDistributedAutonomousDatabaseResponse o) { * Build the response object. * @return the response object */ - public PatchDistributedAutonomousDatabaseResponse build() { - return new PatchDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public DeleteCustomerInstanceReportExportResponse build() { + return new DeleteCustomerInstanceReportExportResponse( + __httpStatusCode__, headers, opcRequestId); } } @@ -144,7 +104,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(); @@ -155,24 +114,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/ConfigureDistributedDatabaseShardingResponse.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/ConfigureDistributedDatabaseShardingResponse.java rename to bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GenerateCustomerInstanceReportExportResponse.java index ec2d97dbc21..5f147a4f92c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseShardingResponse +@javax.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 status. @@ -41,20 +41,36 @@ 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 ConfigureDistributedDatabaseShardingResponse( + private GenerateCustomerInstanceReportExportResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap 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 { @@ -108,15 +124,31 @@ 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 */ - public Builder copy(ConfigureDistributedDatabaseShardingResponse o) { + public Builder copy(GenerateCustomerInstanceReportExportResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); + exportIdentifier(o.getExportIdentifier()); return this; } @@ -125,9 +157,9 @@ public Builder copy(ConfigureDistributedDatabaseShardingResponse o) { * Build the response object. * @return the response object */ - public ConfigureDistributedDatabaseShardingResponse build() { - return new ConfigureDistributedDatabaseShardingResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public GenerateCustomerInstanceReportExportResponse build() { + return new GenerateCustomerInstanceReportExportResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId, exportIdentifier); } } @@ -146,6 +178,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(); } @@ -155,15 +188,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ConfigureDistributedDatabaseShardingResponse)) { + if (!(o instanceof GenerateCustomerInstanceReportExportResponse)) { return false; } - ConfigureDistributedDatabaseShardingResponse other = - (ConfigureDistributedDatabaseShardingResponse) 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 @@ -174,6 +208,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..05ec49d99ed --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminArtifactResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminArtifact instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifact adminArtifact; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminArtifact instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifact adminArtifact; + + /** + * The returned 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 + */ + 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 + */ + 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..c7e7874b2f8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingResponse.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.*; + +@javax.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 AdminListing instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListing adminListing; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminListing instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListing adminListing; + + /** + * The returned 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 + */ + 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 + */ + 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 5459b3b7a1e..e55cb0dd29c 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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabasePrivateEndpointResponse +@javax.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 @@ -42,18 +42,18 @@ public String getEtag() { } /** - * The returned DistributedDatabasePrivateEndpoint instance. + * The returned AdminListingRevisionAttachment instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + adminListingRevisionAttachment; /** - * The returned DistributedDatabasePrivateEndpoint instance. + * The returned 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({ @@ -61,19 +61,19 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabasePrivateEndpoint" + "adminListingRevisionAttachment" }) - private GetDistributedDatabasePrivateEndpointResponse( + private GetAdminListingRevisionAttachmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap 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 { @@ -128,20 +128,20 @@ public Builder etag(String etag) { } /** - * The returned DistributedDatabasePrivateEndpoint instance. + * The returned AdminListingRevisionAttachment instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachment + adminListingRevisionAttachment; /** - * The returned DistributedDatabasePrivateEndpoint instance. - * @param distributedDatabasePrivateEndpoint the value to set + * The returned AdminListingRevisionAttachment instance. + * @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; } @@ -149,12 +149,12 @@ public Builder distributedDatabasePrivateEndpoint( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - 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; } @@ -163,13 +163,13 @@ public Builder copy(GetDistributedDatabasePrivateEndpointResponse o) { * Build the response object. * @return the response object */ - public GetDistributedDatabasePrivateEndpointResponse build() { - return new GetDistributedDatabasePrivateEndpointResponse( + public GetAdminListingRevisionAttachmentResponse build() { + return new GetAdminListingRevisionAttachmentResponse( __httpStatusCode__, headers, opcRequestId, etag, - distributedDatabasePrivateEndpoint); + adminListingRevisionAttachment); } } @@ -188,8 +188,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(); } @@ -199,18 +199,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 @@ -221,9 +220,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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java new file mode 100644 index 00000000000..a9ec0ffc8ec --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionPackageResponse.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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. + * + */ + private 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 AdminListingRevisionPackage instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage; + + /** + * The returned AdminListingRevisionPackage instance. + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + getAdminListingRevisionPackage() { + return adminListingRevisionPackage; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "adminListingRevisionPackage" + }) + private GetAdminListingRevisionPackageResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.adminListingRevisionPackage = adminListingRevisionPackage; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminListingRevisionPackage instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage; + + /** + * The returned AdminListingRevisionPackage instance. + * @param adminListingRevisionPackage the value to set + * @return this builder + */ + public Builder adminListingRevisionPackage( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackage + adminListingRevisionPackage) { + this.adminListingRevisionPackage = adminListingRevisionPackage; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetAdminListingRevisionPackageResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + adminListingRevisionPackage(o.getAdminListingRevisionPackage()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetAdminListingRevisionPackageResponse build() { + return new GetAdminListingRevisionPackageResponse( + __httpStatusCode__, headers, opcRequestId, etag, adminListingRevisionPackage); + } + } + + /** + * 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(",adminListingRevisionPackage=") + .append(String.valueOf(adminListingRevisionPackage)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetAdminListingRevisionPackageResponse)) { + return false; + } + + 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.adminListingRevisionPackage, other.adminListingRevisionPackage); + } + + @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.adminListingRevisionPackage == null + ? 43 + : 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..2bf48474f32 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminListingRevisionResponse.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.*; + +@javax.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 AdminListingRevision instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminListingRevision instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevision adminListingRevision; + + /** + * The returned 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 + */ + 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 + */ + 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..5bf3ce21bf7 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminPublisherResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminPublisher instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisher adminPublisher; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminPublisher instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisher adminPublisher; + + /** + * The returned 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 + */ + 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 + */ + 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..19540f0ef7c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminTerm instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTerm adminTerm; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminTerm instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTerm adminTerm; + + /** + * The returned 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 + */ + 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 + */ + 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..3a6b94ff63d --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetAdminTermVersionResponse.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminTermVersion instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersion adminTermVersion; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminTermVersion instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersion adminTermVersion; + + /** + * The returned 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 + */ + 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 + */ + 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 086d8514356..e9e3e702cff 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,28 +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.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedDatabaseReplicationUnitResponse +@javax.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,19 +26,12 @@ public String getOpcRequestId() { return opcRequestId; } - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private MoveDistributedDatabaseReplicationUnitResponse( + @java.beans.ConstructorProperties({"__httpStatusCode__", "headers", "opcRequestId"}) + private GetCustomerInstanceReportExportContentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, String opcRequestId) { super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; this.opcRequestId = opcRequestId; } @@ -72,23 +50,6 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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. @@ -112,10 +73,9 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - 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; @@ -125,9 +85,9 @@ public Builder copy(MoveDistributedDatabaseReplicationUnitResponse o) { * Build the response object. * @return the response object */ - public MoveDistributedDatabaseReplicationUnitResponse build() { - return new MoveDistributedDatabaseReplicationUnitResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public GetCustomerInstanceReportExportContentResponse build() { + return new GetCustomerInstanceReportExportContentResponse( + __httpStatusCode__, headers, opcRequestId); } } @@ -144,7 +104,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(); @@ -155,24 +114,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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java new file mode 100644 index 00000000000..443d2a96d4c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/GetCustomerInstanceReportExportResponse.java @@ -0,0 +1,222 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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. + * + */ + private 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 CustomerInstanceReportExport instance. + */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport; + + /** + * The returned CustomerInstanceReportExport instance. + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + getCustomerInstanceReportExport() { + return customerInstanceReportExport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "customerInstanceReportExport" + }) + private GetCustomerInstanceReportExportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.customerInstanceReportExport = customerInstanceReportExport; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CustomerInstanceReportExport instance. + */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport; + + /** + * The returned CustomerInstanceReportExport instance. + * @param customerInstanceReportExport the value to set + * @return this builder + */ + public Builder customerInstanceReportExport( + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExport + customerInstanceReportExport) { + this.customerInstanceReportExport = customerInstanceReportExport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetCustomerInstanceReportExportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + customerInstanceReportExport(o.getCustomerInstanceReportExport()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetCustomerInstanceReportExportResponse build() { + return new GetCustomerInstanceReportExportResponse( + __httpStatusCode__, headers, opcRequestId, etag, customerInstanceReportExport); + } + } + + /** + * 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(",customerInstanceReportExport=") + .append(String.valueOf(customerInstanceReportExport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetCustomerInstanceReportExportResponse)) { + return false; + } + + 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.customerInstanceReportExport, other.customerInstanceReportExport); + } + + @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.customerInstanceReportExport == null + ? 43 + : 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..a03033aa2c1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminArtifactsResponse.java @@ -0,0 +1,233 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminArtifactCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + adminArtifactCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminArtifactCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminArtifactCollection + adminArtifactCollection; + + /** + * The returned 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 + */ + 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 + */ + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.java new file mode 100644 index 00000000000..c01abc1a7df --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionAttachmentsResponse.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.*; + +@javax.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 particular request, please provide the request ID. + * + */ + private 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 AdminListingRevisionAttachmentCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection; + + /** + * The returned AdminListingRevisionAttachmentCollection instance. + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + getAdminListingRevisionAttachmentCollection() { + return adminListingRevisionAttachmentCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminListingRevisionAttachmentCollection" + }) + private ListAdminListingRevisionAttachmentsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminListingRevisionAttachmentCollection = adminListingRevisionAttachmentCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminListingRevisionAttachmentCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection; + + /** + * The returned AdminListingRevisionAttachmentCollection instance. + * @param adminListingRevisionAttachmentCollection the value to set + * @return this builder + */ + public Builder adminListingRevisionAttachmentCollection( + com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionAttachmentCollection + adminListingRevisionAttachmentCollection) { + this.adminListingRevisionAttachmentCollection = + adminListingRevisionAttachmentCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAdminListingRevisionAttachmentsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminListingRevisionAttachmentCollection( + o.getAdminListingRevisionAttachmentCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAdminListingRevisionAttachmentsResponse build() { + return new ListAdminListingRevisionAttachmentsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + adminListingRevisionAttachmentCollection); + } + } + + /** + * 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(",adminListingRevisionAttachmentCollection=") + .append(String.valueOf(adminListingRevisionAttachmentCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminListingRevisionAttachmentsResponse)) { + return false; + } + + 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.adminListingRevisionAttachmentCollection, + other.adminListingRevisionAttachmentCollection); + } + + @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.adminListingRevisionAttachmentCollection == null + ? 43 + : 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..661fd3c5feb --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionPackagesResponse.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.*; + +@javax.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 AdminListingRevisionPackageCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + adminListingRevisionPackageCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminListingRevisionPackageCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionPackageCollection + adminListingRevisionPackageCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..8fa47e9ae3c --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminListingRevisionsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminListingRevisionCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + adminListingRevisionCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminListingRevisionCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminListingRevisionCollection + adminListingRevisionCollection; + + /** + * The returned 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 + */ + 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 + */ + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.java new file mode 100644 index 00000000000..3f36ccac890 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminPublisherSkusResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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. + * + */ + private 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 AdminPublisherSkuCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection; + + /** + * The returned AdminPublisherSkuCollection instance. + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + getAdminPublisherSkuCollection() { + return adminPublisherSkuCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "adminPublisherSkuCollection" + }) + private ListAdminPublisherSkusResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.adminPublisherSkuCollection = adminPublisherSkuCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminPublisherSkuCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection; + + /** + * The returned AdminPublisherSkuCollection instance. + * @param adminPublisherSkuCollection the value to set + * @return this builder + */ + public Builder adminPublisherSkuCollection( + com.oracle.bmc.marketplacepublisher.model.AdminPublisherSkuCollection + adminPublisherSkuCollection) { + this.adminPublisherSkuCollection = adminPublisherSkuCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAdminPublisherSkusResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + adminPublisherSkuCollection(o.getAdminPublisherSkuCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListAdminPublisherSkusResponse build() { + return new ListAdminPublisherSkusResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + adminPublisherSkuCollection); + } + } + + /** + * 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(",adminPublisherSkuCollection=") + .append(String.valueOf(adminPublisherSkuCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListAdminPublisherSkusResponse)) { + return false; + } + + 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.adminPublisherSkuCollection, other.adminPublisherSkuCollection); + } + + @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.adminPublisherSkuCollection == null + ? 43 + : 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..b2b1ed2362e --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermVersionsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminTermVersionCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + adminTermVersionCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminTermVersionCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermVersionCollection + adminTermVersionCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..011337fa733 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminTermsResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 AdminTermCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermCollection adminTermCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminTermCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminTermCollection adminTermCollection; + + /** + * The returned 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 + */ + 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 + */ + 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..d3a70f97667 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListAdminWorkRequestsResponse.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.*; + +@javax.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 AdminWorkRequestSummaryCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + adminWorkRequestSummaryCollection; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 AdminWorkRequestSummaryCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.AdminWorkRequestSummaryCollection + adminWorkRequestSummaryCollection; + + /** + * The returned 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 + */ + 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 + */ + 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-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.java new file mode 100644 index 00000000000..77ee19f94b0 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/ListCustomerInstanceReportExportsResponse.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.*; + +@javax.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 particular request, please provide the request ID. + * + */ + private 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 CustomerInstanceReportExportCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection; + + /** + * The returned CustomerInstanceReportExportCollection instance. + * @return the value + */ + public com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + getCustomerInstanceReportExportCollection() { + return customerInstanceReportExportCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "customerInstanceReportExportCollection" + }) + private ListCustomerInstanceReportExportsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.customerInstanceReportExportCollection = customerInstanceReportExportCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 CustomerInstanceReportExportCollection instance. + */ + private com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection; + + /** + * The returned CustomerInstanceReportExportCollection instance. + * @param customerInstanceReportExportCollection the value to set + * @return this builder + */ + public Builder customerInstanceReportExportCollection( + com.oracle.bmc.marketplacepublisher.model.CustomerInstanceReportExportCollection + customerInstanceReportExportCollection) { + this.customerInstanceReportExportCollection = customerInstanceReportExportCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListCustomerInstanceReportExportsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + customerInstanceReportExportCollection(o.getCustomerInstanceReportExportCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListCustomerInstanceReportExportsResponse build() { + return new ListCustomerInstanceReportExportsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + customerInstanceReportExportCollection); + } + } + + /** + * 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(",customerInstanceReportExportCollection=") + .append(String.valueOf(customerInstanceReportExportCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListCustomerInstanceReportExportsResponse)) { + return false; + } + + 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.customerInstanceReportExportCollection, + other.customerInstanceReportExportCollection); + } + + @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.customerInstanceReportExportCollection == null + ? 43 + : 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..0c1c85014b1 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateAdminArtifactStatusResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 Artifact instance. + */ + private com.oracle.bmc.marketplacepublisher.model.Artifact artifact; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 Artifact instance. + */ + private com.oracle.bmc.marketplacepublisher.model.Artifact artifact; + + /** + * The returned 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 + */ + 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 + */ + 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..2625d40ccc8 --- /dev/null +++ b/bmc-marketplacepublisher/src/main/java/com/oracle/bmc/marketplacepublisher/responses/UpdateListingRevisionBannerContentResponse.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.marketplacepublisher.responses; + +import com.oracle.bmc.marketplacepublisher.model.*; + +@javax.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 ListingRevision instance. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision listingRevision; + + /** + * The returned 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__, + javax.ws.rs.core.MultivaluedMap 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 { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 ListingRevision instance. + */ + private com.oracle.bmc.marketplacepublisher.model.ListingRevision listingRevision; + + /** + * The returned 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 + */ + 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 + */ + 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-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 0143e307989..5aa42ffa629 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-mediaservices @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index e1cc7a001ac..3f4360ddcfb 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index 938ca855310..6b54d9b8a8c 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 357355d5543..bbd2e0e63c8 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-monitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index 70ef2b2b312..c39116cec54 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 78f0dc1c614..c7822aa6d90 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-mysql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java similarity index 59% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java index f262cfa3257..d6d505ff736 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeployments.java @@ -2,17 +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; +package com.oracle.bmc.mysql; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; /** - * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. + * The API for the MySQL Database Service * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbPrivateEndpointService extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public interface BlueGreenDeployments extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -60,7 +60,9 @@ public interface DistributedDbPrivateEndpointService extends AutoCloseable { void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Moves the DistributedDatabasePrivateEndpoint to the specified compartment. + * Moves only the blue/green deployment wrapper resource into a different compartment. + * This operation does not move the source DB system, target DB system, or replication channel referenced by the deployment. + * When provided, If-Match is checked against ETag values of the blue/green deployment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -68,84 +70,87 @@ public interface DistributedDbPrivateEndpointService extends AutoCloseable { * 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. + * Example: Click here to see how to use ChangeBlueGreenDeploymentCompartment API. */ - ChangeDistributedDatabasePrivateEndpointCompartmentResponse - changeDistributedDatabasePrivateEndpointCompartment( - ChangeDistributedDatabasePrivateEndpointCompartmentRequest request); + ChangeBlueGreenDeploymentCompartmentResponse changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest 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. - * + * Creates a blue/green deployment resource and its replication channel. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use DeleteDistributedDatabasePrivateEndpoint API. + * Example: Click here to see how to use CreateBlueGreenDeployment API. */ - DeleteDistributedDatabasePrivateEndpointResponse deleteDistributedDatabasePrivateEndpoint( - DeleteDistributedDatabasePrivateEndpointRequest request); + CreateBlueGreenDeploymentResponse createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request); /** - * Get the DistributedDatabasePrivateEndpoint resource. - * + * Deletes only the blue/green deployment wrapper resource. This operation does not delete the source DB system, target DB system, or replication channel associated with the deployment. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use GetDistributedDatabasePrivateEndpoint API. + * Example: Click here to see how to use DeleteBlueGreenDeployment API. */ - GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request); + DeleteBlueGreenDeploymentResponse deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request); /** - * List of DistributedDatabasePrivateEndpoints. - * + * Gets a blue/green deployment by identifier. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use ListDistributedDatabasePrivateEndpoints API. + * Example: Click here to see how to use GetBlueGreenDeployment API. */ - ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePrivateEndpoints( - ListDistributedDatabasePrivateEndpointsRequest request); + GetBlueGreenDeploymentResponse getBlueGreenDeployment(GetBlueGreenDeploymentRequest request); /** - * Patch operation to update VCN network security group (NSG) IDs associated with the DistributedDatabasePrivateEndpoint. - * + * Lists blue/green deployments in a compartment. * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries * - * Example: Click here to see how to use PatchDistributedDatabasePrivateEndpoint API. + * Example: Click here to see how to use ListBlueGreenDeployments API. */ - PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateEndpoint( - PatchDistributedDatabasePrivateEndpointRequest request); + ListBlueGreenDeploymentsResponse listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request); /** - * Reinstates the proxy instance associated with the DistributedDatabasePrivateEndpoint. + * Initiates switchover for a blue/green deployment. + *

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

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

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

      + * When `waitTimeInSeconds` is omitted from the request body, the default + * wait time applies. The effective wait time provides upper bound guidance + * for waiting while the target DB System applies remaining replication + * changes during switchover processing. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -153,12 +158,14 @@ PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateE * 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. + * Example: Click here to see how to use SwitchoverBlueGreenDeployment API. */ - ReinstateProxyInstanceResponse reinstateProxyInstance(ReinstateProxyInstanceRequest request); + SwitchoverBlueGreenDeploymentResponse switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request); /** - * Updates the configuration of DistributedDatabasePrivateEndpoint. + * Updates mutable metadata for a blue/green deployment. + * Currently only `displayName`, `freeformTags`, and `definedTags` can be changed. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -166,17 +173,17 @@ PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateE * 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. + * Example: Click here to see how to use UpdateBlueGreenDeployment API. */ - UpdateDistributedDatabasePrivateEndpointResponse updateDistributedDatabasePrivateEndpoint( - UpdateDistributedDatabasePrivateEndpointRequest request); + UpdateBlueGreenDeploymentResponse updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request); /** * Gets the pre-configured waiters available for resources for this service. * * @return The service waiters. */ - DistributedDbPrivateEndpointServiceWaiters getWaiters(); + BlueGreenDeploymentsWaiters getWaiters(); /** * Gets the pre-configured paginators available for list operations in this service which may return multiple @@ -185,5 +192,5 @@ UpdateDistributedDatabasePrivateEndpointResponse updateDistributedDatabasePrivat * * @return The service paginators. */ - DistributedDbPrivateEndpointServicePaginators getPaginators(); + BlueGreenDeploymentsPaginators getPaginators(); } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java similarity index 55% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.java index 3e4ea24deab..97c8c411b12 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsync.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.mysql; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; /** - * Use the Globally Distributed Database service APIs to create and manage the Globally distributed databases. + * The API for the MySQL Database Service */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public interface BlueGreenDeploymentsAsync extends AutoCloseable { /** * Rebuilds the client from scratch. @@ -59,7 +59,9 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** - * Moves the DistributedDatabasePrivateEndpoint to the specified compartment. + * Moves only the blue/green deployment wrapper resource into a different compartment. + * This operation does not move the source DB system, target DB system, or replication channel referenced by the deployment. + * When provided, If-Match is checked against ETag values of the blue/green deployment. * * * @param request The request object containing the details to send @@ -69,17 +71,16 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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, + java.util.concurrent.Future + changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request, com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse> handler); /** - * Creates a DistributedDatabasePrivateEndpoint. - * + * Creates a blue/green deployment resource and its replication channel. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -88,17 +89,14 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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); + java.util.concurrent.Future createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateBlueGreenDeploymentRequest, CreateBlueGreenDeploymentResponse> + handler); /** - * Deletes the given DistributedDatabasePrivateEndpoint. - * + * Deletes only the blue/green deployment wrapper resource. This operation does not delete the source DB system, target DB system, or replication channel associated with the deployment. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -107,17 +105,14 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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); + java.util.concurrent.Future deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse> + handler); /** - * Get the DistributedDatabasePrivateEndpoint resource. - * + * Gets a blue/green deployment by identifier. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -126,17 +121,14 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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); + java.util.concurrent.Future getBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + handler); /** - * List of DistributedDatabasePrivateEndpoints. - * + * Lists blue/green deployments in a compartment. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -145,16 +137,37 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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); + java.util.concurrent.Future listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse> + handler); /** - * Patch operation to update VCN network security group (NSG) IDs associated with the DistributedDatabasePrivateEndpoint. + * Initiates switchover for a blue/green deployment. + *

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

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

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

      + * When `waitTimeInSeconds` is omitted from the request body, the default + * wait time applies. The effective wait time provides upper bound guidance + * for waiting while the target DB System applies remaining replication + * changes during switchover processing. * * * @param request The request object containing the details to send @@ -164,16 +177,17 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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, + java.util.concurrent.Future + switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request, com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse> + SwitchoverBlueGreenDeploymentRequest, + SwitchoverBlueGreenDeploymentResponse> handler); /** - * Reinstates the proxy instance associated with the DistributedDatabasePrivateEndpoint. + * Updates mutable metadata for a blue/green deployment. + * Currently only `displayName`, `freeformTags`, and `definedTags` can be changed. * * * @param request The request object containing the details to send @@ -183,28 +197,9 @@ public interface DistributedDbPrivateEndpointServiceAsync extends AutoCloseable * 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, + java.util.concurrent.Future updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request, com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + UpdateBlueGreenDeploymentRequest, UpdateBlueGreenDeploymentResponse> 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-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.java index 75fa749a718..b81adea5bad 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsAsyncClient.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.mysql; -import com.oracle.bmc.distributeddatabasev26.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.internal.http.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; import java.util.regex.Matcher; import java.util.regex.Pattern; /** - * Async client implementation for DistributedDbPrivateEndpointService service.
      + * Async client implementation for BlueGreenDeployments service.
      * There are two ways to use async client: * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, @@ -23,21 +23,20 @@ * Future.isDone/isCancelled.
      * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbPrivateEndpointServiceAsyncClient - implements DistributedDbPrivateEndpointServiceAsync { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class BlueGreenDeploymentsAsyncClient implements BlueGreenDeploymentsAsync { /** - * Service instance for DistributedDbPrivateEndpointService. + * Service instance for BlueGreenDeployments. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbPrivateEndpointServiceClient.class.getName()) + .serviceName(BlueGreenDeploymentsClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate("https://mysql.{region}.ocp.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbPrivateEndpointServiceAsyncClient.class); + org.slf4j.LoggerFactory.getLogger(BlueGreenDeploymentsAsyncClient.class); private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; @@ -80,7 +79,7 @@ public class DistributedDbPrivateEndpointServiceAsyncClient * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -90,7 +89,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -103,7 +102,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -125,7 +124,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -149,7 +148,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -176,7 +175,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -207,7 +206,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -243,7 +242,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - public DistributedDbPrivateEndpointServiceAsyncClient( + public BlueGreenDeploymentsAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -324,7 +323,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbPrivateEndpointServiceAsyncClient> { + Builder, BlueGreenDeploymentsAsyncClient> { private Builder(com.oracle.bmc.Service service) { super(service); requestSignerFactory = @@ -337,7 +336,7 @@ private Builder(com.oracle.bmc.Service service) { * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbPrivateEndpointServiceAsyncClient build( + public BlueGreenDeploymentsAsyncClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -345,7 +344,7 @@ public DistributedDbPrivateEndpointServiceAsyncClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new DistributedDbPrivateEndpointServiceAsyncClient( + return new BlueGreenDeploymentsAsyncClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -472,57 +471,53 @@ public void close() { } @Override - public java.util.concurrent.Future - changeDistributedDatabasePrivateEndpointCompartment( - ChangeDistributedDatabasePrivateEndpointCompartmentRequest request, + public java.util.concurrent.Future + changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request, final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse> handler) { - LOG.trace("Called async changeDistributedDatabasePrivateEndpointCompartment"); - final ChangeDistributedDatabasePrivateEndpointCompartmentRequest interceptedRequest = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.interceptRequest( - request); + LOG.trace("Called async changeBlueGreenDeploymentCompartment"); + final ChangeBlueGreenDeploymentCompartmentRequest interceptedRequest = + ChangeBlueGreenDeploymentCompartmentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromRequest( + ChangeBlueGreenDeploymentCompartmentConverter.fromRequest( client, interceptedRequest); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ChangeDistributedDatabasePrivateEndpointCompartment", + "BlueGreenDeployments", + "ChangeBlueGreenDeploymentCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/ChangeBlueGreenDeploymentCompartment"); final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + javax.ws.rs.core.Response, ChangeBlueGreenDeploymentCompartmentResponse> transformer = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromResponse( + ChangeBlueGreenDeploymentCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse>, - java.util.concurrent.Future< - ChangeDistributedDatabasePrivateEndpointCompartmentResponse>> + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), + interceptedRequest.getChangeBlueGreenDeploymentCompartmentDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse>( + ChangeBlueGreenDeploymentCompartmentRequest, + ChangeBlueGreenDeploymentCompartmentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -536,55 +531,48 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - createDistributedDatabasePrivateEndpoint( - CreateDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async createDistributedDatabasePrivateEndpoint"); - final CreateDistributedDatabasePrivateEndpointRequest interceptedRequest = - CreateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public java.util.concurrent.Future createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateBlueGreenDeploymentRequest, CreateBlueGreenDeploymentResponse> + handler) { + LOG.trace("Called async createBlueGreenDeployment"); + final CreateBlueGreenDeploymentRequest interceptedRequest = + CreateBlueGreenDeploymentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + CreateBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "CreateDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "CreateBlueGreenDeployment", ib.getRequestUri().toString(), ""); final java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedDatabasePrivateEndpointResponse> + javax.ws.rs.core.Response, CreateBlueGreenDeploymentResponse> transformer = - CreateDistributedDatabasePrivateEndpointConverter.fromResponse( + CreateBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse> + CreateBlueGreenDeploymentRequest, CreateBlueGreenDeploymentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - CreateDistributedDatabasePrivateEndpointResponse>> + CreateBlueGreenDeploymentRequest, + CreateBlueGreenDeploymentResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getCreateDistributedDatabasePrivateEndpointDetails(), + interceptedRequest.getCreateBlueGreenDeploymentDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse>( + CreateBlueGreenDeploymentRequest, CreateBlueGreenDeploymentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -598,49 +586,42 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - deleteDistributedDatabasePrivateEndpoint( - DeleteDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async deleteDistributedDatabasePrivateEndpoint"); - final DeleteDistributedDatabasePrivateEndpointRequest interceptedRequest = - DeleteDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public java.util.concurrent.Future deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse> + handler) { + LOG.trace("Called async deleteBlueGreenDeployment"); + final DeleteBlueGreenDeploymentRequest interceptedRequest = + DeleteBlueGreenDeploymentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + DeleteBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "DeleteDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "DeleteBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/DeleteBlueGreenDeployment"); final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedDatabasePrivateEndpointResponse> + javax.ws.rs.core.Response, DeleteBlueGreenDeploymentResponse> transformer = - DeleteDistributedDatabasePrivateEndpointConverter.fromResponse( + DeleteBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse> + DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - DeleteDistributedDatabasePrivateEndpointResponse>> + DeleteBlueGreenDeploymentRequest, + DeleteBlueGreenDeploymentResponse>, + java.util.concurrent.Future> futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse>( + DeleteBlueGreenDeploymentRequest, DeleteBlueGreenDeploymentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -654,47 +635,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - getDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async getDistributedDatabasePrivateEndpoint"); - final GetDistributedDatabasePrivateEndpointRequest interceptedRequest = - GetDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public java.util.concurrent.Future getBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + handler) { + LOG.trace("Called async getBlueGreenDeployment"); + final GetBlueGreenDeploymentRequest interceptedRequest = + GetBlueGreenDeploymentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + GetBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "GetDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "GetBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabasePrivateEndpointResponse> + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/GetBlueGreenDeployment"); + final java.util.function.Function transformer = - GetDistributedDatabasePrivateEndpointConverter.fromResponse( + GetBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future> + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse>( + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -708,48 +682,41 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listDistributedDatabasePrivateEndpoints( - ListDistributedDatabasePrivateEndpointsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse> - handler) { - LOG.trace("Called async listDistributedDatabasePrivateEndpoints"); - final ListDistributedDatabasePrivateEndpointsRequest interceptedRequest = - ListDistributedDatabasePrivateEndpointsConverter.interceptRequest(request); + public java.util.concurrent.Future listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse> + handler) { + LOG.trace("Called async listBlueGreenDeployments"); + final ListBlueGreenDeploymentsRequest interceptedRequest = + ListBlueGreenDeploymentsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasePrivateEndpointsConverter.fromRequest( - client, interceptedRequest); + ListBlueGreenDeploymentsConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ListDistributedDatabasePrivateEndpoints", + "BlueGreenDeployments", + "ListBlueGreenDeployments", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeploymentCollection/ListBlueGreenDeployments"); final java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedDatabasePrivateEndpointsResponse> + javax.ws.rs.core.Response, ListBlueGreenDeploymentsResponse> transformer = - ListDistributedDatabasePrivateEndpointsConverter.fromResponse( + ListBlueGreenDeploymentsConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse> + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse>, - java.util.concurrent.Future< - ListDistributedDatabasePrivateEndpointsResponse>> + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse>( + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -763,55 +730,50 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - patchDistributedDatabasePrivateEndpoint( - PatchDistributedDatabasePrivateEndpointRequest request, + public java.util.concurrent.Future + switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request, final com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse> + SwitchoverBlueGreenDeploymentRequest, + SwitchoverBlueGreenDeploymentResponse> handler) { - LOG.trace("Called async patchDistributedDatabasePrivateEndpoint"); - final PatchDistributedDatabasePrivateEndpointRequest interceptedRequest = - PatchDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + LOG.trace("Called async switchoverBlueGreenDeployment"); + final SwitchoverBlueGreenDeploymentRequest interceptedRequest = + SwitchoverBlueGreenDeploymentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + SwitchoverBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "PatchDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "SwitchoverBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/SwitchoverBlueGreenDeployment"); final java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedDatabasePrivateEndpointResponse> + javax.ws.rs.core.Response, SwitchoverBlueGreenDeploymentResponse> transformer = - PatchDistributedDatabasePrivateEndpointConverter.fromResponse( + SwitchoverBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse> + SwitchoverBlueGreenDeploymentRequest, SwitchoverBlueGreenDeploymentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - PatchDistributedDatabasePrivateEndpointResponse>> + SwitchoverBlueGreenDeploymentRequest, + SwitchoverBlueGreenDeploymentResponse>, + java.util.concurrent.Future> futureSupplier = - client.patchFutureSupplier( + client.postFutureSupplier( interceptedRequest, - interceptedRequest - .getPatchDistributedDatabasePrivateEndpointDetails(), + interceptedRequest.getSwitchoverBlueGreenDeploymentDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse>( + SwitchoverBlueGreenDeploymentRequest, SwitchoverBlueGreenDeploymentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -825,103 +787,47 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future reinstateProxyInstance( - ReinstateProxyInstanceRequest request, + public java.util.concurrent.Future updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request, final com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> + UpdateBlueGreenDeploymentRequest, UpdateBlueGreenDeploymentResponse> handler) { - LOG.trace("Called async reinstateProxyInstance"); - final ReinstateProxyInstanceRequest interceptedRequest = - ReinstateProxyInstanceConverter.interceptRequest(request); + LOG.trace("Called async updateBlueGreenDeployment"); + final UpdateBlueGreenDeploymentRequest interceptedRequest = + UpdateBlueGreenDeploymentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ReinstateProxyInstanceConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ReinstateProxyInstance", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance"); - final java.util.function.Function - transformer = - ReinstateProxyInstanceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - updateDistributedDatabasePrivateEndpoint( - UpdateDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async updateDistributedDatabasePrivateEndpoint"); - final UpdateDistributedDatabasePrivateEndpointRequest interceptedRequest = - UpdateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + UpdateBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "UpdateDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "UpdateBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/UpdateBlueGreenDeployment"); final java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedDatabasePrivateEndpointResponse> + javax.ws.rs.core.Response, UpdateBlueGreenDeploymentResponse> transformer = - UpdateDistributedDatabasePrivateEndpointConverter.fromResponse( + UpdateBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse> + UpdateBlueGreenDeploymentRequest, UpdateBlueGreenDeploymentResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - UpdateDistributedDatabasePrivateEndpointResponse>> + UpdateBlueGreenDeploymentRequest, + UpdateBlueGreenDeploymentResponse>, + java.util.concurrent.Future> futureSupplier = client.putFutureSupplier( interceptedRequest, - interceptedRequest - .getUpdateDistributedDatabasePrivateEndpointDetails(), + interceptedRequest.getUpdateBlueGreenDeploymentDetails(), ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse>( + UpdateBlueGreenDeploymentRequest, UpdateBlueGreenDeploymentResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java similarity index 76% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java index 46cdd3633a7..9db4e4a07c7 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsClient.java @@ -2,40 +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; +package com.oracle.bmc.mysql; -import com.oracle.bmc.distributeddatabasev26.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.internal.http.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; import com.oracle.bmc.util.CircuitBreakerUtils; import java.util.regex.Matcher; import java.util.regex.Pattern; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbPrivateEndpointServiceClient - implements DistributedDbPrivateEndpointService { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class BlueGreenDeploymentsClient implements BlueGreenDeployments { /** - * Service instance for DistributedDbPrivateEndpointService. + * Service instance for BlueGreenDeployments. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbPrivateEndpointServiceClient.class.getName()) + .serviceName(BlueGreenDeploymentsClient.class.getName()) .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") + .serviceEndpointTemplate("https://mysql.{region}.ocp.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbPrivateEndpointServiceClient.class); + org.slf4j.LoggerFactory.getLogger(BlueGreenDeploymentsClient.class); com.oracle.bmc.http.internal.RestClient getClient() { return client; } - private final DistributedDbPrivateEndpointServiceWaiters waiters; + private final BlueGreenDeploymentsWaiters waiters; - private final DistributedDbPrivateEndpointServicePaginators paginators; + private final BlueGreenDeploymentsPaginators paginators; private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider; private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; @@ -79,7 +78,7 @@ com.oracle.bmc.http.internal.RestClient getClient() { * Creates a new service instance using the given authentication provider. * @param authenticationDetailsProvider The authentication details provider, required. */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(authenticationDetailsProvider, null); } @@ -89,7 +88,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param authenticationDetailsProvider The authentication details provider, required. * @param configuration The client configuration, optional. */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(authenticationDetailsProvider, configuration, null); @@ -102,7 +101,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param configuration The client configuration, optional. * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { @@ -124,7 +123,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -148,7 +147,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -175,7 +174,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -206,7 +205,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -242,7 +241,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor */ - public DistributedDbPrivateEndpointServiceClient( + public BlueGreenDeploymentsClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -283,7 +282,7 @@ public DistributedDbPrivateEndpointServiceClient( * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} */ - protected DistributedDbPrivateEndpointServiceClient( + protected BlueGreenDeploymentsClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, @@ -357,15 +356,15 @@ protected DistributedDbPrivateEndpointServiceClient( new java.util.concurrent.LinkedBlockingQueue(), com.oracle.bmc.internal.ClientThreadFactory.builder() .isDaemon(true) - .nameFormat("DistributedDbPrivateEndpointService-waiters-%d") + .nameFormat("BlueGreenDeployments-waiters-%d") .build()); threadPoolExecutor.allowCoreThreadTimeOut(true); executorService = threadPoolExecutor; } - this.waiters = new DistributedDbPrivateEndpointServiceWaiters(executorService, this); + this.waiters = new BlueGreenDeploymentsWaiters(executorService, this); - this.paginators = new DistributedDbPrivateEndpointServicePaginators(this); + this.paginators = new BlueGreenDeploymentsPaginators(this); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { com.oracle.bmc.auth.RegionProvider provider = @@ -401,7 +400,7 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbPrivateEndpointServiceClient> { + Builder, BlueGreenDeploymentsClient> { private java.util.concurrent.ExecutorService executorService; private Builder(com.oracle.bmc.Service service) { @@ -426,7 +425,7 @@ public Builder executorService(java.util.concurrent.ExecutorService executorServ * @param authenticationDetailsProvider authentication details provider * @return the client */ - public DistributedDbPrivateEndpointServiceClient build( + public BlueGreenDeploymentsClient build( @javax.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { @@ -434,7 +433,7 @@ public DistributedDbPrivateEndpointServiceClient build( throw new NullPointerException( "authenticationDetailsProvider is marked non-null but is null"); } - return new DistributedDbPrivateEndpointServiceClient( + return new BlueGreenDeploymentsClient( authenticationDetailsProvider, configuration, clientConfigurator, @@ -561,15 +560,13 @@ public void close() { } @Override - public ChangeDistributedDatabasePrivateEndpointCompartmentResponse - changeDistributedDatabasePrivateEndpointCompartment( - ChangeDistributedDatabasePrivateEndpointCompartmentRequest request) { - LOG.trace("Called changeDistributedDatabasePrivateEndpointCompartment"); - final ChangeDistributedDatabasePrivateEndpointCompartmentRequest interceptedRequest = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.interceptRequest( - request); + public ChangeBlueGreenDeploymentCompartmentResponse changeBlueGreenDeploymentCompartment( + ChangeBlueGreenDeploymentCompartmentRequest request) { + LOG.trace("Called changeBlueGreenDeploymentCompartment"); + final ChangeBlueGreenDeploymentCompartmentRequest interceptedRequest = + ChangeBlueGreenDeploymentCompartmentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromRequest( + ChangeBlueGreenDeploymentCompartmentConverter.fromRequest( client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = @@ -579,15 +576,14 @@ public void close() { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ChangeDistributedDatabasePrivateEndpointCompartment", + "BlueGreenDeployments", + "ChangeBlueGreenDeploymentCompartment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/ChangeBlueGreenDeploymentCompartment"); java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> + javax.ws.rs.core.Response, ChangeBlueGreenDeploymentCompartmentResponse> transformer = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromResponse( + ChangeBlueGreenDeploymentCompartmentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -602,7 +598,7 @@ public void close() { client.post( ib, retriedRequest - .getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), + .getChangeBlueGreenDeploymentCompartmentDetails(), retriedRequest); return transformer.apply(response); }); @@ -610,15 +606,13 @@ public void close() { } @Override - public CreateDistributedDatabasePrivateEndpointResponse - createDistributedDatabasePrivateEndpoint( - CreateDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called createDistributedDatabasePrivateEndpoint"); - final CreateDistributedDatabasePrivateEndpointRequest interceptedRequest = - CreateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public CreateBlueGreenDeploymentResponse createBlueGreenDeployment( + CreateBlueGreenDeploymentRequest request) { + LOG.trace("Called createBlueGreenDeployment"); + final CreateBlueGreenDeploymentRequest interceptedRequest = + CreateBlueGreenDeploymentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + CreateBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -627,14 +621,13 @@ public void close() { com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "CreateDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "CreateBlueGreenDeployment", ib.getRequestUri().toString(), ""); - java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedDatabasePrivateEndpointResponse> + java.util.function.Function transformer = - CreateDistributedDatabasePrivateEndpointConverter.fromResponse( + CreateBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -649,7 +642,7 @@ public void close() { client.post( ib, retriedRequest - .getCreateDistributedDatabasePrivateEndpointDetails(), + .getCreateBlueGreenDeploymentDetails(), retriedRequest); return transformer.apply(response); }); @@ -657,31 +650,27 @@ public void close() { } @Override - public DeleteDistributedDatabasePrivateEndpointResponse - deleteDistributedDatabasePrivateEndpoint( - DeleteDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called deleteDistributedDatabasePrivateEndpoint"); - final DeleteDistributedDatabasePrivateEndpointRequest interceptedRequest = - DeleteDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public DeleteBlueGreenDeploymentResponse deleteBlueGreenDeployment( + DeleteBlueGreenDeploymentRequest request) { + LOG.trace("Called deleteBlueGreenDeployment"); + final DeleteBlueGreenDeploymentRequest interceptedRequest = + DeleteBlueGreenDeploymentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + DeleteBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "DeleteDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "DeleteBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedDatabasePrivateEndpointResponse> + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/DeleteBlueGreenDeployment"); + java.util.function.Function transformer = - DeleteDistributedDatabasePrivateEndpointConverter.fromResponse( + DeleteBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -700,14 +689,13 @@ public void close() { } @Override - public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called getDistributedDatabasePrivateEndpoint"); - final GetDistributedDatabasePrivateEndpointRequest interceptedRequest = - GetDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public GetBlueGreenDeploymentResponse getBlueGreenDeployment( + GetBlueGreenDeploymentRequest request) { + LOG.trace("Called getBlueGreenDeployment"); + final GetBlueGreenDeploymentRequest interceptedRequest = + GetBlueGreenDeploymentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + GetBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -715,14 +703,13 @@ public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePriva com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "GetDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "GetBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabasePrivateEndpointResponse> + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/GetBlueGreenDeployment"); + java.util.function.Function transformer = - GetDistributedDatabasePrivateEndpointConverter.fromResponse( + GetBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -740,14 +727,13 @@ public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePriva } @Override - public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePrivateEndpoints( - ListDistributedDatabasePrivateEndpointsRequest request) { - LOG.trace("Called listDistributedDatabasePrivateEndpoints"); - final ListDistributedDatabasePrivateEndpointsRequest interceptedRequest = - ListDistributedDatabasePrivateEndpointsConverter.interceptRequest(request); + public ListBlueGreenDeploymentsResponse listBlueGreenDeployments( + ListBlueGreenDeploymentsRequest request) { + LOG.trace("Called listBlueGreenDeployments"); + final ListBlueGreenDeploymentsRequest interceptedRequest = + ListBlueGreenDeploymentsConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasePrivateEndpointsConverter.fromRequest( - client, interceptedRequest); + ListBlueGreenDeploymentsConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -755,14 +741,13 @@ public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePr com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ListDistributedDatabasePrivateEndpoints", + "BlueGreenDeployments", + "ListBlueGreenDeployments", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints"); - java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedDatabasePrivateEndpointsResponse> + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeploymentCollection/ListBlueGreenDeployments"); + java.util.function.Function transformer = - ListDistributedDatabasePrivateEndpointsConverter.fromResponse( + ListBlueGreenDeploymentsConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -780,14 +765,13 @@ public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePr } @Override - public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateEndpoint( - PatchDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called patchDistributedDatabasePrivateEndpoint"); - final PatchDistributedDatabasePrivateEndpointRequest interceptedRequest = - PatchDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public SwitchoverBlueGreenDeploymentResponse switchoverBlueGreenDeployment( + SwitchoverBlueGreenDeploymentRequest request) { + LOG.trace("Called switchoverBlueGreenDeployment"); + final SwitchoverBlueGreenDeploymentRequest interceptedRequest = + SwitchoverBlueGreenDeploymentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + SwitchoverBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -796,14 +780,14 @@ public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabaseP com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "PatchDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "SwitchoverBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint"); + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/SwitchoverBlueGreenDeployment"); java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedDatabasePrivateEndpointResponse> + javax.ws.rs.core.Response, SwitchoverBlueGreenDeploymentResponse> transformer = - PatchDistributedDatabasePrivateEndpointConverter.fromResponse( + SwitchoverBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -815,10 +799,10 @@ public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabaseP retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.patch( + client.post( ib, retriedRequest - .getPatchDistributedDatabasePrivateEndpointDetails(), + .getSwitchoverBlueGreenDeploymentDetails(), retriedRequest); return transformer.apply(response); }); @@ -826,71 +810,27 @@ public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabaseP } @Override - public ReinstateProxyInstanceResponse reinstateProxyInstance( - ReinstateProxyInstanceRequest request) { - LOG.trace("Called reinstateProxyInstance"); - final ReinstateProxyInstanceRequest interceptedRequest = - ReinstateProxyInstanceConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ReinstateProxyInstanceConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ReinstateProxyInstance", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance"); - java.util.function.Function - transformer = - ReinstateProxyInstanceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public UpdateDistributedDatabasePrivateEndpointResponse - updateDistributedDatabasePrivateEndpoint( - UpdateDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called updateDistributedDatabasePrivateEndpoint"); - final UpdateDistributedDatabasePrivateEndpointRequest interceptedRequest = - UpdateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); + public UpdateBlueGreenDeploymentResponse updateBlueGreenDeployment( + UpdateBlueGreenDeploymentRequest request) { + LOG.trace("Called updateBlueGreenDeployment"); + final UpdateBlueGreenDeploymentRequest interceptedRequest = + UpdateBlueGreenDeploymentConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); + UpdateBlueGreenDeploymentConverter.fromRequest(client, interceptedRequest); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "UpdateDistributedDatabasePrivateEndpoint", + "BlueGreenDeployments", + "UpdateBlueGreenDeployment", ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedDatabasePrivateEndpointResponse> + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/BlueGreenDeployment/UpdateBlueGreenDeployment"); + java.util.function.Function transformer = - UpdateDistributedDatabasePrivateEndpointConverter.fromResponse( + UpdateBlueGreenDeploymentConverter.fromResponse( java.util.Optional.of(serviceDetails)); return retrier.execute( interceptedRequest, @@ -905,7 +845,7 @@ public ReinstateProxyInstanceResponse reinstateProxyInstance( client.put( ib, retriedRequest - .getUpdateDistributedDatabasePrivateEndpointDetails(), + .getUpdateBlueGreenDeploymentDetails(), retriedRequest); return transformer.apply(response); }); @@ -913,12 +853,12 @@ public ReinstateProxyInstanceResponse reinstateProxyInstance( } @Override - public DistributedDbPrivateEndpointServiceWaiters getWaiters() { + public BlueGreenDeploymentsWaiters getWaiters() { return waiters; } @Override - public DistributedDbPrivateEndpointServicePaginators getPaginators() { + public BlueGreenDeploymentsPaginators getPaginators() { return paginators; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java similarity index 56% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java index 09e38c765a9..6164618939e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsPaginators.java @@ -2,14 +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.mysql; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; /** * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface - * to any list operations of DistributedDbService where multiple pages of data may be fetched. + * to any list operations of BlueGreenDeployments where multiple pages of data may be fetched. * Two styles of iteration are supported: * *

        @@ -25,46 +25,46 @@ * 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. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServicePaginators { - private final DistributedDbService client; +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class BlueGreenDeploymentsPaginators { + private final BlueGreenDeployments client; - public DistributedDbServicePaginators(DistributedDbService client) { + public BlueGreenDeploymentsPaginators(BlueGreenDeployments client) { this.client = client; } /** - * Creates a new iterable which will iterate over the responses received from the listDistributedDatabases operation. This iterable + * Creates a new iterable which will iterate over the responses received from the listBlueGreenDeployments operation. This iterable * will fetch more data from the server as needed. * * @param request a request which can be sent to the service operation * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. */ - public Iterable listDistributedDatabasesResponseIterator( - final ListDistributedDatabasesRequest request) { + public Iterable listBlueGreenDeploymentsResponseIterator( + final ListBlueGreenDeploymentsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseIterable< - ListDistributedDatabasesRequest.Builder, ListDistributedDatabasesRequest, - ListDistributedDatabasesResponse>( - new java.util.function.Supplier() { + ListBlueGreenDeploymentsRequest.Builder, ListBlueGreenDeploymentsRequest, + ListBlueGreenDeploymentsResponse>( + new java.util.function.Supplier() { @Override - public ListDistributedDatabasesRequest.Builder get() { - return ListDistributedDatabasesRequest.builder().copy(request); + public ListBlueGreenDeploymentsRequest.Builder get() { + return ListBlueGreenDeploymentsRequest.builder().copy(request); } }, - new java.util.function.Function() { + new java.util.function.Function() { @Override - public String apply(ListDistributedDatabasesResponse response) { + public String apply(ListBlueGreenDeploymentsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListDistributedDatabasesRequest.Builder>, - ListDistributedDatabasesRequest>() { + ListBlueGreenDeploymentsRequest.Builder>, + ListBlueGreenDeploymentsRequest>() { @Override - public ListDistributedDatabasesRequest apply( + public ListBlueGreenDeploymentsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListDistributedDatabasesRequest.Builder> + ListBlueGreenDeploymentsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); @@ -76,50 +76,50 @@ public ListDistributedDatabasesRequest apply( } }, new java.util.function.Function< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse>() { + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse>() { @Override - public ListDistributedDatabasesResponse apply( - ListDistributedDatabasesRequest request) { - return client.listDistributedDatabases(request); + public ListBlueGreenDeploymentsResponse apply( + ListBlueGreenDeploymentsRequest request) { + return client.listBlueGreenDeployments(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 + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary} objects + * contained in responses from the listBlueGreenDeployments operation. This iterable will fetch more data from the * server as needed. * * @param request a request which can be sent to the service operation - * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary} objects + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary} objects * contained in responses received from the service. */ - public Iterable - listDistributedDatabasesRecordIterator(final ListDistributedDatabasesRequest request) { + public Iterable + listBlueGreenDeploymentsRecordIterator(final ListBlueGreenDeploymentsRequest request) { return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< - ListDistributedDatabasesRequest.Builder, ListDistributedDatabasesRequest, - ListDistributedDatabasesResponse, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseSummary>( - new java.util.function.Supplier() { + ListBlueGreenDeploymentsRequest.Builder, ListBlueGreenDeploymentsRequest, + ListBlueGreenDeploymentsResponse, + com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary>( + new java.util.function.Supplier() { @Override - public ListDistributedDatabasesRequest.Builder get() { - return ListDistributedDatabasesRequest.builder().copy(request); + public ListBlueGreenDeploymentsRequest.Builder get() { + return ListBlueGreenDeploymentsRequest.builder().copy(request); } }, - new java.util.function.Function() { + new java.util.function.Function() { @Override - public String apply(ListDistributedDatabasesResponse response) { + public String apply(ListBlueGreenDeploymentsResponse response) { return response.getOpcNextPage(); } }, new java.util.function.Function< com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListDistributedDatabasesRequest.Builder>, - ListDistributedDatabasesRequest>() { + ListBlueGreenDeploymentsRequest.Builder>, + ListBlueGreenDeploymentsRequest>() { @Override - public ListDistributedDatabasesRequest apply( + public ListBlueGreenDeploymentsRequest apply( com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListDistributedDatabasesRequest.Builder> + ListBlueGreenDeploymentsRequest.Builder> input) { if (input.getNextPageToken() == null) { return input.getRequestBuilder().build(); @@ -131,24 +131,20 @@ public ListDistributedDatabasesRequest apply( } }, new java.util.function.Function< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse>() { + ListBlueGreenDeploymentsRequest, ListBlueGreenDeploymentsResponse>() { @Override - public ListDistributedDatabasesResponse apply( - ListDistributedDatabasesRequest request) { - return client.listDistributedDatabases(request); + public ListBlueGreenDeploymentsResponse apply( + ListBlueGreenDeploymentsRequest request) { + return client.listBlueGreenDeployments(request); } }, new java.util.function.Function< - ListDistributedDatabasesResponse, - java.util.List< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseSummary>>() { + ListBlueGreenDeploymentsResponse, + java.util.List>() { @Override - public java.util.List< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseSummary> - apply(ListDistributedDatabasesResponse response) { - return response.getDistributedDatabaseCollection().getItems(); + public java.util.List + apply(ListBlueGreenDeploymentsResponse response) { + return response.getBlueGreenDeploymentCollection().getItems(); } }); } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java index c5d11d9e6fe..6f15bdc9cbe 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/BlueGreenDeploymentsWaiters.java @@ -2,24 +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; +package com.oracle.bmc.mysql; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; /** * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different - * resources of DistributedDbService. + * resources of BlueGreenDeployments. *

        * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServiceWaiters { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class BlueGreenDeploymentsWaiters { private final java.util.concurrent.ExecutorService executorService; - private final DistributedDbService client; + private final BlueGreenDeployments client; - public DistributedDbServiceWaiters( - java.util.concurrent.ExecutorService executorService, DistributedDbService client) { + public BlueGreenDeploymentsWaiters( + java.util.concurrent.ExecutorService executorService, BlueGreenDeployments client) { this.executorService = executorService; this.client = client; } @@ -32,18 +32,16 @@ public DistributedDbServiceWaiters( * @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) { + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.mysql.model.BlueGreenDeployment.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDistributedDatabase( + return forBlueGreenDeployment( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -57,17 +55,16 @@ public DistributedDbServiceWaiters( * @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, + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, + com.oracle.bmc.mysql.model.BlueGreenDeployment.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); - return forDistributedDatabase( + return forBlueGreenDeployment( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -83,37 +80,32 @@ public DistributedDbServiceWaiters( * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - forDistributedDatabase( - GetDistributedDatabaseRequest request, + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( + GetBlueGreenDeploymentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState... - targetStates) { + com.oracle.bmc.mysql.model.BlueGreenDeployment.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDistributedDatabase( + return forBlueGreenDeployment( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DistributedDatabase. + // Helper method to create a new Waiter for BlueGreenDeployment. private com.oracle.bmc.waiter.Waiter< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - forDistributedDatabase( + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse> + forBlueGreenDeployment( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDistributedDatabaseRequest request, - final com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState... + final GetBlueGreenDeploymentRequest request, + final com.oracle.bmc.mysql.model.BlueGreenDeployment.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -121,23 +113,23 @@ public DistributedDbServiceWaiters( waiter.toCallable( () -> request, new java.util.function.Function< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>() { + GetBlueGreenDeploymentRequest, GetBlueGreenDeploymentResponse>() { @Override - public GetDistributedDatabaseResponse apply( - GetDistributedDatabaseRequest request) { - return client.getDistributedDatabase(request); + public GetBlueGreenDeploymentResponse apply( + GetBlueGreenDeploymentRequest request) { + return client.getBlueGreenDeployment(request); } }, - new java.util.function.Predicate() { + new java.util.function.Predicate() { @Override - public boolean test(GetDistributedDatabaseResponse response) { + public boolean test(GetBlueGreenDeploymentResponse response) { return targetStatesSet.contains( - response.getDistributedDatabase().getLifecycleState()); + response.getBlueGreenDeployment().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState.Deleted)), + com.oracle.bmc.mysql.model.BlueGreenDeployment.LifecycleState + .Deleted)), request); } } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/SdkClientsMetadata.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/SdkClientsMetadata.java index e8cb2ad9dac..10e230c2d07 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/SdkClientsMetadata.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/SdkClientsMetadata.java @@ -8,6 +8,8 @@ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @SdkClients({ + BlueGreenDeploymentsAsyncClient.class, + BlueGreenDeploymentsClient.class, ChannelsAsyncClient.class, ChannelsClient.class, DbBackupsAsyncClient.class, diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ChangeBlueGreenDeploymentCompartmentConverter.java similarity index 71% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ChangeBlueGreenDeploymentCompartmentConverter.java index 66c7f29e4cc..ea4dbace22a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ChangeBlueGreenDeploymentCompartmentConverter.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.internal.http; +package com.oracle.bmc.mysql.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ChangeBlueGreenDeploymentCompartmentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StartDistributedDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(ChangeBlueGreenDeploymentCompartmentConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.StartDistributedDatabaseRequest + public static com.oracle.bmc.mysql.requests.ChangeBlueGreenDeploymentCompartmentRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.StartDistributedDatabaseRequest + com.oracle.bmc.mysql.requests.ChangeBlueGreenDeploymentCompartmentRequest request) { return request; @@ -29,36 +29,38 @@ public class StartDistributedDatabaseConverter { public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StartDistributedDatabaseRequest - request) { + com.oracle.bmc.mysql.requests.ChangeBlueGreenDeploymentCompartmentRequest request) { Validate.notNull(request, "request instance is required"); Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Validate.notNull( + request.getChangeBlueGreenDeploymentCompartmentDetails(), + "changeBlueGreenDeploymentCompartmentDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") + .path("/20190415") + .path("blueGreenDeployments") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) + request.getBlueGreenDeploymentId())) .path("actions") - .path("startDatabase"); + .path("changeCompartment"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); } if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); } if (client.getClientConfigurator() != null) { @@ -69,32 +71,29 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse> + com.oracle.bmc.mysql.responses.ChangeBlueGreenDeploymentCompartmentResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse> + com.oracle.bmc.mysql.responses.ChangeBlueGreenDeploymentCompartmentResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse> + com.oracle.bmc.mysql.responses.ChangeBlueGreenDeploymentCompartmentResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse>() { + com.oracle.bmc.mysql.responses + .ChangeBlueGreenDeploymentCompartmentResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse + public com.oracle.bmc.mysql.responses + .ChangeBlueGreenDeploymentCompartmentResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StartDistributedDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.mysql.responses.ChangeBlueGreenDeploymentCompartmentResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders> @@ -112,25 +111,16 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse.Builder + com.oracle.bmc.mysql.responses + .ChangeBlueGreenDeploymentCompartmentResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse.builder() + com.oracle.bmc.mysql.responses + .ChangeBlueGreenDeploymentCompartmentResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( headers, "opc-request-id"); @@ -142,8 +132,19 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.mysql.responses + .ChangeBlueGreenDeploymentCompartmentResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CreateBlueGreenDeploymentConverter.java similarity index 67% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CreateBlueGreenDeploymentConverter.java index 5a0636f2de4..865af776133 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/CreateBlueGreenDeploymentConverter.java @@ -2,58 +2,52 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.mysql.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedAutonomousDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CreateBlueGreenDeploymentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CreateDistributedAutonomousDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(CreateBlueGreenDeploymentConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedAutonomousDatabaseRequest - request) { + public static com.oracle.bmc.mysql.requests.CreateBlueGreenDeploymentRequest interceptRequest( + com.oracle.bmc.mysql.requests.CreateBlueGreenDeploymentRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedAutonomousDatabaseRequest - request) { + com.oracle.bmc.mysql.requests.CreateBlueGreenDeploymentRequest request) { Validate.notNull(request, "request instance is required"); Validate.notNull( - request.getCreateDistributedAutonomousDatabaseDetails(), - "createDistributedAutonomousDatabaseDetails is required"); + request.getCreateBlueGreenDeploymentDetails(), + "createBlueGreenDeploymentDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedAutonomousDatabases"); + client.getBaseTarget().path("/20190415").path("blueGreenDeployments"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -62,80 +56,70 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse> + com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse> + com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse> + com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse>() { + com.oracle.bmc.mysql.responses + .CreateBlueGreenDeploymentResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse + public com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.CreateDistributedAutonomousDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase>> + com.oracle.bmc.mysql.model + .BlueGreenDeployment>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase + com.oracle.bmc.mysql.model.BlueGreenDeployment .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase + com.oracle.bmc.mysql.model.BlueGreenDeployment .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase> + com.oracle.bmc.mysql.model.BlueGreenDeployment> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse.Builder + com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse - .builder() + com.oracle.bmc.mysql.responses + .CreateBlueGreenDeploymentResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedAutonomousDatabase(response.getItem()); + builder.blueGreenDeployment(response.getItem()); - java.util.Optional> opcWorkRequestIdHeader = + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); + "etag", etagHeader.get().get(0), String.class)); } java.util.Optional> opcRequestIdHeader = @@ -149,17 +133,18 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - java.util.Optional> etagHeader = + java.util.Optional> opcWorkRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse + com.oracle.bmc.mysql.responses.CreateBlueGreenDeploymentResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/DeleteBlueGreenDeploymentConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/DeleteBlueGreenDeploymentConverter.java new file mode 100644 index 00000000000..3968eb690e6 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/DeleteBlueGreenDeploymentConverter.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.mysql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class DeleteBlueGreenDeploymentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteBlueGreenDeploymentConverter.class); + + public static com.oracle.bmc.mysql.requests.DeleteBlueGreenDeploymentRequest interceptRequest( + com.oracle.bmc.mysql.requests.DeleteBlueGreenDeploymentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.mysql.requests.DeleteBlueGreenDeploymentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190415") + .path("blueGreenDeployments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBlueGreenDeploymentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses + .DeleteBlueGreenDeploymentResponse>() { + @Override + public com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse + .Builder + builder = + com.oracle.bmc.mysql.responses + .DeleteBlueGreenDeploymentResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.mysql.responses.DeleteBlueGreenDeploymentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/GetBlueGreenDeploymentConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/GetBlueGreenDeploymentConverter.java new file mode 100644 index 00000000000..a467d886af3 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/GetBlueGreenDeploymentConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class GetBlueGreenDeploymentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetBlueGreenDeploymentConverter.class); + + public static com.oracle.bmc.mysql.requests.GetBlueGreenDeploymentRequest interceptRequest( + com.oracle.bmc.mysql.requests.GetBlueGreenDeploymentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.mysql.requests.GetBlueGreenDeploymentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190415") + .path("blueGreenDeployments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBlueGreenDeploymentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfNoneMatch() != null) { + ib.header("if-none-match", request.getIfNoneMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse>() { + @Override + public com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.mysql.model + .BlueGreenDeployment>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.mysql.model.BlueGreenDeployment + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.mysql.model.BlueGreenDeployment + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.mysql.model.BlueGreenDeployment> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse + .Builder + builder = + com.oracle.bmc.mysql.responses + .GetBlueGreenDeploymentResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + if (response.getStatusCode() != 304) { + builder.blueGreenDeployment(response.getItem()); + builder.isNotModified(false); + } else { + builder.isNotModified(true); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.mysql.responses.GetBlueGreenDeploymentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ListBlueGreenDeploymentsConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ListBlueGreenDeploymentsConverter.java new file mode 100644 index 00000000000..4a391fbeee5 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/ListBlueGreenDeploymentsConverter.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ListBlueGreenDeploymentsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListBlueGreenDeploymentsConverter.class); + + public static com.oracle.bmc.mysql.requests.ListBlueGreenDeploymentsRequest interceptRequest( + com.oracle.bmc.mysql.requests.ListBlueGreenDeploymentsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.mysql.requests.ListBlueGreenDeploymentsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20190415").path("blueGreenDeployments"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSourceDbSystemId() != null) { + target = + target.queryParam( + "sourceDbSystemId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSourceDbSystemId())); + } + + if (request.getTargetDbSystemId() != null) { + target = + target.queryParam( + "targetDbSystemId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getTargetDbSystemId())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse>() { + @Override + public com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.mysql.model + .BlueGreenDeploymentCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.mysql.model + .BlueGreenDeploymentCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.mysql.model + .BlueGreenDeploymentCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.mysql.model + .BlueGreenDeploymentCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse + .Builder + builder = + com.oracle.bmc.mysql.responses + .ListBlueGreenDeploymentsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.blueGreenDeploymentCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.mysql.responses.ListBlueGreenDeploymentsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/SwitchoverBlueGreenDeploymentConverter.java similarity index 70% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/SwitchoverBlueGreenDeploymentConverter.java index dcfa8c987d8..1fc6945a8f8 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/SwitchoverBlueGreenDeploymentConverter.java @@ -2,55 +2,66 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.internal.http; +package com.oracle.bmc.mysql.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabaseConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class SwitchoverBlueGreenDeploymentConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CreateDistributedDatabaseConverter.class); + org.slf4j.LoggerFactory.getLogger(SwitchoverBlueGreenDeploymentConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests.CreateDistributedDatabaseRequest + public static com.oracle.bmc.mysql.requests.SwitchoverBlueGreenDeploymentRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.CreateDistributedDatabaseRequest - request) { + com.oracle.bmc.mysql.requests.SwitchoverBlueGreenDeploymentRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.CreateDistributedDatabaseRequest - request) { + com.oracle.bmc.mysql.requests.SwitchoverBlueGreenDeploymentRequest request) { Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); Validate.notNull( - request.getCreateDistributedDatabaseDetails(), - "createDistributedDatabaseDetails is required"); + request.getSwitchoverBlueGreenDeploymentDetails(), + "switchoverBlueGreenDeploymentDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedDatabases"); + client.getBaseTarget() + .path("/20190415") + .path("blueGreenDeployments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBlueGreenDeploymentId())) + .path("actions") + .path("switchover"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); } if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -59,79 +70,72 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse> + com.oracle.bmc.mysql.responses.SwitchoverBlueGreenDeploymentResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse> + com.oracle.bmc.mysql.responses.SwitchoverBlueGreenDeploymentResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse> + com.oracle.bmc.mysql.responses.SwitchoverBlueGreenDeploymentResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse>() { + com.oracle.bmc.mysql.responses + .SwitchoverBlueGreenDeploymentResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse + public com.oracle.bmc.mysql.responses + .SwitchoverBlueGreenDeploymentResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.CreateDistributedDatabaseResponse"); + "Transform function invoked for com.oracle.bmc.mysql.responses.SwitchoverBlueGreenDeploymentResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase>> + com.oracle.bmc.mysql.model + .BlueGreenDeployment>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase + com.oracle.bmc.mysql.model.BlueGreenDeployment .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase + com.oracle.bmc.mysql.model.BlueGreenDeployment .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase> + com.oracle.bmc.mysql.model.BlueGreenDeployment> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse.Builder + com.oracle.bmc.mysql.responses.SwitchoverBlueGreenDeploymentResponse + .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse.builder() + com.oracle.bmc.mysql.responses + .SwitchoverBlueGreenDeploymentResponse + .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabase(response.getItem()); + builder.blueGreenDeployment(response.getItem()); - java.util.Optional> opcWorkRequestIdHeader = + java.util.Optional> etagHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); + "etag", etagHeader.get().get(0), String.class)); } java.util.Optional> opcRequestIdHeader = @@ -145,17 +149,18 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - java.util.Optional> etagHeader = + java.util.Optional> opcWorkRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse + com.oracle.bmc.mysql.responses.SwitchoverBlueGreenDeploymentResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/UpdateBlueGreenDeploymentConverter.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/UpdateBlueGreenDeploymentConverter.java new file mode 100644 index 00000000000..27b7b61b8aa --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/internal/http/UpdateBlueGreenDeploymentConverter.java @@ -0,0 +1,144 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.mysql.model.*; +import com.oracle.bmc.mysql.requests.*; +import com.oracle.bmc.mysql.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class UpdateBlueGreenDeploymentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateBlueGreenDeploymentConverter.class); + + public static com.oracle.bmc.mysql.requests.UpdateBlueGreenDeploymentRequest interceptRequest( + com.oracle.bmc.mysql.requests.UpdateBlueGreenDeploymentRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.mysql.requests.UpdateBlueGreenDeploymentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getBlueGreenDeploymentId(), "blueGreenDeploymentId must not be blank"); + Validate.notNull( + request.getUpdateBlueGreenDeploymentDetails(), + "updateBlueGreenDeploymentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20190415") + .path("blueGreenDeployments") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBlueGreenDeploymentId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.mysql.responses + .UpdateBlueGreenDeploymentResponse>() { + @Override + public com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse + .Builder + builder = + com.oracle.bmc.mysql.responses + .UpdateBlueGreenDeploymentResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.mysql.responses.UpdateBlueGreenDeploymentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java new file mode 100644 index 00000000000..32432a71d44 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeployment.java @@ -0,0 +1,874 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * A blue/green deployment resource. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BlueGreenDeployment.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BlueGreenDeployment extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "targetDbSystemDetails", + "replicationChannelId", + "sslMode", + "id", + "compartmentId", + "displayName", + "lifecycleState", + "lifecycleDetails", + "sourceDbSystemId", + "targetDbSystemId", + "activeDbSystemId", + "switchoverStatus", + "freeformTags", + "definedTags", + "systemTags", + "timeCreated", + "timeUpdated" + }) + public BlueGreenDeployment( + BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails, + String replicationChannelId, + SslMode sslMode, + String id, + String compartmentId, + String displayName, + LifecycleState lifecycleState, + String lifecycleDetails, + String sourceDbSystemId, + String targetDbSystemId, + String activeDbSystemId, + BlueGreenDeploymentSwitchoverStatus switchoverStatus, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { + super(); + this.targetDbSystemDetails = targetDbSystemDetails; + this.replicationChannelId = replicationChannelId; + this.sslMode = sslMode; + this.id = id; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.sourceDbSystemId = sourceDbSystemId; + this.targetDbSystemId = targetDbSystemId; + this.activeDbSystemId = activeDbSystemId; + this.switchoverStatus = switchoverStatus; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public Builder targetDbSystemDetails( + BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails) { + this.targetDbSystemDetails = targetDbSystemDetails; + this.__explicitlySet__.add("targetDbSystemDetails"); + return this; + } + /** + * Replication channel [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationChannelId") + private String replicationChannelId; + + /** + * Replication channel [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param replicationChannelId the value to set + * @return this builder + **/ + public Builder replicationChannelId(String replicationChannelId) { + this.replicationChannelId = replicationChannelId; + this.__explicitlySet__.add("replicationChannelId"); + return this; + } + /** + * SSL mode used for the replication channel created by the blue/green workflow. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private SslMode sslMode; + + /** + * SSL mode used for the replication channel created by the blue/green workflow. + * @param sslMode the value to set + * @return this builder + **/ + public Builder sslMode(SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The display name of the blue/green deployment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the blue/green deployment. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current lifecycle state. + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * Additional lifecycle details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Additional lifecycle details. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private String sourceDbSystemId; + + /** + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @param sourceDbSystemId the value to set + * @return this builder + **/ + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + this.__explicitlySet__.add("sourceDbSystemId"); + return this; + } + /** + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private String targetDbSystemId; + + /** + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @param targetDbSystemId the value to set + * @return this builder + **/ + public Builder targetDbSystemId(String targetDbSystemId) { + this.targetDbSystemId = targetDbSystemId; + this.__explicitlySet__.add("targetDbSystemId"); + return this; + } + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private String activeDbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + * @param activeDbSystemId the value to set + * @return this builder + **/ + public Builder activeDbSystemId(String activeDbSystemId) { + this.activeDbSystemId = activeDbSystemId; + this.__explicitlySet__.add("activeDbSystemId"); + return this; + } + /** + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + * @param switchoverStatus the value to set + * @return this builder + **/ + public Builder switchoverStatus(BlueGreenDeploymentSwitchoverStatus switchoverStatus) { + this.switchoverStatus = switchoverStatus; + this.__explicitlySet__.add("switchoverStatus"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** + * The time the deployment was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the deployment was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the deployment was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BlueGreenDeployment build() { + BlueGreenDeployment model = + new BlueGreenDeployment( + this.targetDbSystemDetails, + this.replicationChannelId, + this.sslMode, + this.id, + this.compartmentId, + this.displayName, + this.lifecycleState, + this.lifecycleDetails, + this.sourceDbSystemId, + this.targetDbSystemId, + this.activeDbSystemId, + this.switchoverStatus, + this.freeformTags, + this.definedTags, + this.systemTags, + this.timeCreated, + this.timeUpdated); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BlueGreenDeployment model) { + if (model.wasPropertyExplicitlySet("targetDbSystemDetails")) { + this.targetDbSystemDetails(model.getTargetDbSystemDetails()); + } + if (model.wasPropertyExplicitlySet("replicationChannelId")) { + this.replicationChannelId(model.getReplicationChannelId()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("sourceDbSystemId")) { + this.sourceDbSystemId(model.getSourceDbSystemId()); + } + if (model.wasPropertyExplicitlySet("targetDbSystemId")) { + this.targetDbSystemId(model.getTargetDbSystemId()); + } + if (model.wasPropertyExplicitlySet("activeDbSystemId")) { + this.activeDbSystemId(model.getActiveDbSystemId()); + } + if (model.wasPropertyExplicitlySet("switchoverStatus")) { + this.switchoverStatus(model.getSwitchoverStatus()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private final BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public BlueGreenDeploymentTargetDbSystemDetails getTargetDbSystemDetails() { + return targetDbSystemDetails; + } + + /** + * Replication channel [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + **/ + @com.fasterxml.jackson.annotation.JsonProperty("replicationChannelId") + private final String replicationChannelId; + + /** + * Replication channel [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @return the value + **/ + public String getReplicationChannelId() { + return replicationChannelId; + } + + /** + * SSL mode used for the replication channel created by the blue/green workflow. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final SslMode sslMode; + + /** + * SSL mode used for the replication channel created by the blue/green workflow. + * @return the value + **/ + public SslMode getSslMode() { + return sslMode; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The display name of the blue/green deployment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the blue/green deployment. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The current lifecycle state. + **/ + public enum LifecycleState { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Failed("FAILED"), + Deleting("DELETING"), + Deleted("DELETED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current lifecycle state. + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * Additional lifecycle details. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Additional lifecycle details. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private final String sourceDbSystemId; + + /** + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @return the value + **/ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + + /** + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private final String targetDbSystemId; + + /** + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @return the value + **/ + public String getTargetDbSystemId() { + return targetDbSystemId; + } + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private final String activeDbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + * @return the value + **/ + public String getActiveDbSystemId() { + return activeDbSystemId; + } + + /** + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private final BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + * @return the value + **/ + public BlueGreenDeploymentSwitchoverStatus getSwitchoverStatus() { + return switchoverStatus; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + /** + * The time the deployment was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the deployment was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the deployment was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BlueGreenDeployment("); + sb.append("super=").append(super.toString()); + sb.append("targetDbSystemDetails=").append(String.valueOf(this.targetDbSystemDetails)); + sb.append(", replicationChannelId=").append(String.valueOf(this.replicationChannelId)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(", targetDbSystemId=").append(String.valueOf(this.targetDbSystemId)); + sb.append(", activeDbSystemId=").append(String.valueOf(this.activeDbSystemId)); + sb.append(", switchoverStatus=").append(String.valueOf(this.switchoverStatus)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BlueGreenDeployment)) { + return false; + } + + BlueGreenDeployment other = (BlueGreenDeployment) o; + return java.util.Objects.equals(this.targetDbSystemDetails, other.targetDbSystemDetails) + && java.util.Objects.equals(this.replicationChannelId, other.replicationChannelId) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemId, other.targetDbSystemId) + && java.util.Objects.equals(this.activeDbSystemId, other.activeDbSystemId) + && java.util.Objects.equals(this.switchoverStatus, other.switchoverStatus) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.targetDbSystemDetails == null + ? 43 + : this.targetDbSystemDetails.hashCode()); + result = + (result * PRIME) + + (this.replicationChannelId == null + ? 43 + : this.replicationChannelId.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemId == null ? 43 : this.targetDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.activeDbSystemId == null ? 43 : this.activeDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.switchoverStatus == null ? 43 : this.switchoverStatus.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java similarity index 75% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.java index 36e85fbaa62..8f843d82741 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentCollection.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.mysql.model; /** - * Collection of Globally distributed databases. + * A list of blue/green deployments. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCollection.Builder.class + builder = BlueGreenDeploymentCollection.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCollection +public final class BlueGreenDeploymentCollection extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"items"}) - public DistributedDatabaseCollection(java.util.List items) { + public BlueGreenDeploymentCollection(java.util.List items) { super(); this.items = items; } @@ -31,17 +31,17 @@ public DistributedDatabaseCollection(java.util.List @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Array of Globally distributed database summaries. + * A list of blue/green deployment items. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + private java.util.List items; /** - * Array of Globally distributed database summaries. + * A list of blue/green deployment items. * @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 BlueGreenDeploymentCollection build() { + BlueGreenDeploymentCollection model = new BlueGreenDeploymentCollection(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(BlueGreenDeploymentCollection model) { if (model.wasPropertyExplicitlySet("items")) { this.items(model.getItems()); } @@ -79,16 +79,16 @@ public Builder toBuilder() { } /** - * Array of Globally distributed database summaries. + * A list of blue/green deployment items. **/ @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + private final java.util.List items; /** - * Array of Globally distributed database summaries. + * A list of blue/green deployment items. * @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("DistributedDatabaseCollection("); + sb.append("BlueGreenDeploymentCollection("); 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 DistributedDatabaseCollection)) { + if (!(o instanceof BlueGreenDeploymentCollection)) { return false; } - DistributedDatabaseCollection other = (DistributedDatabaseCollection) o; + BlueGreenDeploymentCollection other = (BlueGreenDeploymentCollection) o; return java.util.Objects.equals(this.items, other.items) && super.equals(other); } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.java index 8c87d9292f3..11b79b4290e 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSummary.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.mysql.model; /** - * DistributedDatabasePrivateEndpoint resource. + * List-safe summary of a blue/green deployment. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,78 +14,72 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpoint.Builder.class + builder = BlueGreenDeploymentSummary.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabasePrivateEndpoint +public final class BlueGreenDeploymentSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", "compartmentId", - "subnetId", - "vcnId", "displayName", - "description", - "privateIp", - "vcnNsgIds", - "timeCreated", - "timeUpdated", "lifecycleState", "lifecycleDetails", - "proxyComputeInstanceId", + "sourceDbSystemId", + "targetDbSystemId", + "activeDbSystemId", + "switchoverStatus", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "timeCreated", + "timeUpdated" }) - public DistributedDatabasePrivateEndpoint( + public BlueGreenDeploymentSummary( String id, String compartmentId, - String subnetId, - String vcnId, String displayName, - String description, - String privateIp, - java.util.List vcnNsgIds, - java.util.Date timeCreated, - java.util.Date timeUpdated, LifecycleState lifecycleState, String lifecycleDetails, - String proxyComputeInstanceId, + String sourceDbSystemId, + String targetDbSystemId, + String activeDbSystemId, + BlueGreenDeploymentSwitchoverStatus switchoverStatus, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Date timeCreated, + java.util.Date timeUpdated) { super(); this.id = id; this.compartmentId = compartmentId; - this.subnetId = subnetId; - this.vcnId = vcnId; this.displayName = displayName; - this.description = description; - this.privateIp = privateIp; - this.vcnNsgIds = vcnNsgIds; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; - this.proxyComputeInstanceId = proxyComputeInstanceId; + this.sourceDbSystemId = sourceDbSystemId; + this.targetDbSystemId = targetDbSystemId; + this.activeDbSystemId = activeDbSystemId; + this.switchoverStatus = switchoverStatus; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The identifier of the Private Endpoint. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** - * The identifier of the Private Endpoint. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. * @param id the value to set * @return this builder **/ @@ -95,13 +89,13 @@ public Builder id(String id) { return this; } /** - * Identifier of the compartment in which private endpoint exists. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Identifier of the compartment in which private endpoint exists. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * @param compartmentId the value to set * @return this builder **/ @@ -111,45 +105,13 @@ public Builder compartmentId(String 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. + * The display name of the blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * DistributedDatabasePrivateEndpoint display name. + * The display name of the blue/green deployment. * @param displayName the value to set * @return this builder **/ @@ -159,131 +121,103 @@ public Builder displayName(String displayName) { return this; } /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set - * @return this builder - **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); - return this; - } - /** - * IP address of the Private Endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * IP address of the Private Endpoint. - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } - /** - * The list of network security group (NSG) details associated with the private endpoint. + * The current lifecycle state. **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; /** - * The list of network security group (NSG) details associated with the private endpoint. - * @param vcnNsgIds the value to set + * The current lifecycle state. + * @param lifecycleState the value to set * @return this builder **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); return this; } /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string + * Additional lifecycle details. **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - * @param timeCreated the value to set + * Additional lifecycle details. + * @param lifecycleDetails the value to set * @return this builder **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); return this; } /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private String sourceDbSystemId; /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - * @param timeUpdated the value to set + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @param sourceDbSystemId the value to set * @return this builder **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + this.__explicitlySet__.add("sourceDbSystemId"); return this; } /** - * Lifecycle states for private endpoint. + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private String targetDbSystemId; /** - * Lifecycle states for private endpoint. - * @param lifecycleState the value to set + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @param targetDbSystemId the value to set * @return this builder **/ - public Builder lifecycleState(LifecycleState lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); + public Builder targetDbSystemId(String targetDbSystemId) { + this.targetDbSystemId = targetDbSystemId; + this.__explicitlySet__.add("targetDbSystemId"); return this; } /** - * Detailed message for the lifecycle state. + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private String activeDbSystemId; /** - * Detailed message for the lifecycle state. - * @param lifecycleDetails the value to set + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + * @param activeDbSystemId the value to set * @return this builder **/ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); + public Builder activeDbSystemId(String activeDbSystemId) { + this.activeDbSystemId = activeDbSystemId; + this.__explicitlySet__.add("activeDbSystemId"); return this; } /** - * The identifier of the proxy compute instance. + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") - private String proxyComputeInstanceId; + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private BlueGreenDeploymentSwitchoverStatus switchoverStatus; /** - * The identifier of the proxy compute instance. - * @param proxyComputeInstanceId the value to set + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + * @param switchoverStatus the value to set * @return this builder **/ - public Builder proxyComputeInstanceId(String proxyComputeInstanceId) { - this.proxyComputeInstanceId = proxyComputeInstanceId; - this.__explicitlySet__.add("proxyComputeInstanceId"); + public Builder switchoverStatus(BlueGreenDeploymentSwitchoverStatus switchoverStatus) { + this.switchoverStatus = switchoverStatus; + this.__explicitlySet__.add("switchoverStatus"); return this; } /** @@ -347,29 +281,59 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * The time the deployment was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The time the deployment was created. + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * The time the deployment was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedDatabasePrivateEndpoint build() { - DistributedDatabasePrivateEndpoint model = - new DistributedDatabasePrivateEndpoint( + public BlueGreenDeploymentSummary build() { + BlueGreenDeploymentSummary model = + new BlueGreenDeploymentSummary( this.id, this.compartmentId, - this.subnetId, - this.vcnId, this.displayName, - this.description, - this.privateIp, - this.vcnNsgIds, - this.timeCreated, - this.timeUpdated, this.lifecycleState, this.lifecycleDetails, - this.proxyComputeInstanceId, + this.sourceDbSystemId, + this.targetDbSystemId, + this.activeDbSystemId, + this.switchoverStatus, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.timeCreated, + this.timeUpdated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -377,45 +341,33 @@ public DistributedDatabasePrivateEndpoint build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpoint model) { + public Builder copy(BlueGreenDeploymentSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } - if (model.wasPropertyExplicitlySet("description")) { - this.description(model.getDescription()); - } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } - if (model.wasPropertyExplicitlySet("vcnNsgIds")) { - this.vcnNsgIds(model.getVcnNsgIds()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } if (model.wasPropertyExplicitlySet("lifecycleDetails")) { this.lifecycleDetails(model.getLifecycleDetails()); } - if (model.wasPropertyExplicitlySet("proxyComputeInstanceId")) { - this.proxyComputeInstanceId(model.getProxyComputeInstanceId()); + if (model.wasPropertyExplicitlySet("sourceDbSystemId")) { + this.sourceDbSystemId(model.getSourceDbSystemId()); + } + if (model.wasPropertyExplicitlySet("targetDbSystemId")) { + this.targetDbSystemId(model.getTargetDbSystemId()); + } + if (model.wasPropertyExplicitlySet("activeDbSystemId")) { + this.activeDbSystemId(model.getActiveDbSystemId()); + } + if (model.wasPropertyExplicitlySet("switchoverStatus")) { + this.switchoverStatus(model.getSwitchoverStatus()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -426,6 +378,12 @@ public Builder copy(DistributedDatabasePrivateEndpoint model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } return this; } } @@ -442,13 +400,13 @@ public Builder toBuilder() { } /** - * The identifier of the Private Endpoint. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The identifier of the Private Endpoint. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. * @return the value **/ public String getId() { @@ -456,13 +414,13 @@ public String getId() { } /** - * Identifier of the compartment in which private endpoint exists. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Identifier of the compartment in which private endpoint exists. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * @return the value **/ public String getCompartmentId() { @@ -470,41 +428,13 @@ public String getCompartmentId() { } /** - * 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. + * The display name of the blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * DistributedDatabasePrivateEndpoint display name. + * The display name of the blue/green deployment. * @return the value **/ public String getDisplayName() { @@ -512,86 +442,15 @@ public String getDisplayName() { } /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - - /** - * IP address of the Private Endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * IP address of the Private Endpoint. - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - - /** - * The list of network security group (NSG) details associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the private endpoint. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** - * Lifecycle states for private endpoint. + * The current lifecycle state. **/ public enum LifecycleState { + Creating("CREATING"), Active("ACTIVE"), + Updating("UPDATING"), Failed("FAILED"), - Inactive("INACTIVE"), Deleting("DELETING"), Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -635,13 +494,13 @@ public static LifecycleState create(String key) { } }; /** - * Lifecycle states for private endpoint. + * The current lifecycle state. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * Lifecycle states for private endpoint. + * The current lifecycle state. * @return the value **/ public LifecycleState getLifecycleState() { @@ -649,13 +508,13 @@ public LifecycleState getLifecycleState() { } /** - * Detailed message for the lifecycle state. + * Additional lifecycle details. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * Detailed message for the lifecycle state. + * Additional lifecycle details. * @return the value **/ public String getLifecycleDetails() { @@ -663,17 +522,63 @@ public String getLifecycleDetails() { } /** - * The identifier of the proxy compute instance. + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private final String sourceDbSystemId; + + /** + * Blue/original source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. + * @return the value + **/ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + + /** + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. **/ - @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") - private final String proxyComputeInstanceId; + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemId") + private final String targetDbSystemId; /** - * The identifier of the proxy compute instance. + * Green/target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the deployment pair. * @return the value **/ - public String getProxyComputeInstanceId() { - return proxyComputeInstanceId; + public String getTargetDbSystemId() { + return targetDbSystemId; + } + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("activeDbSystemId") + private final String activeDbSystemId; + + /** + * The DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that currently owns the client-facing VIP and serves traffic. + * @return the value + **/ + public String getActiveDbSystemId() { + return activeDbSystemId; + } + + /** + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("switchoverStatus") + private final BlueGreenDeploymentSwitchoverStatus switchoverStatus; + + /** + * Stage of the most recent switchover workflow. + * {@code SWITCHOVER_FAILED} indicates terminal switchover failure. + * + * @return the value + **/ + public BlueGreenDeploymentSwitchoverStatus getSwitchoverStatus() { + return switchoverStatus; } /** @@ -730,6 +635,34 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * The time the deployment was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The time the deployment was created. + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The time the deployment was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The time the deployment was last updated. + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + @Override public String toString() { return this.toString(true); @@ -742,24 +675,22 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpoint("); + sb.append("BlueGreenDeploymentSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", description=").append(String.valueOf(this.description)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", proxyComputeInstanceId=").append(String.valueOf(this.proxyComputeInstanceId)); + sb.append(", sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(", targetDbSystemId=").append(String.valueOf(this.targetDbSystemId)); + sb.append(", activeDbSystemId=").append(String.valueOf(this.activeDbSystemId)); + sb.append(", switchoverStatus=").append(String.valueOf(this.switchoverStatus)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(")"); return sb.toString(); } @@ -769,28 +700,25 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDatabasePrivateEndpoint)) { + if (!(o instanceof BlueGreenDeploymentSummary)) { return false; } - DistributedDatabasePrivateEndpoint other = (DistributedDatabasePrivateEndpoint) o; + BlueGreenDeploymentSummary other = (BlueGreenDeploymentSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.description, other.description) - && java.util.Objects.equals(this.privateIp, other.privateIp) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals( - this.proxyComputeInstanceId, other.proxyComputeInstanceId) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemId, other.targetDbSystemId) + && java.util.Objects.equals(this.activeDbSystemId, other.activeDbSystemId) + && java.util.Objects.equals(this.switchoverStatus, other.switchoverStatus) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && super.equals(other); } @@ -802,14 +730,7 @@ 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.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); @@ -818,12 +739,21 @@ public int hashCode() { + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); result = (result * PRIME) - + (this.proxyComputeInstanceId == null - ? 43 - : this.proxyComputeInstanceId.hashCode()); + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemId == null ? 43 : this.targetDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.activeDbSystemId == null ? 43 : this.activeDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.switchoverStatus == null ? 43 : this.switchoverStatus.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java new file mode 100644 index 00000000000..0b540699055 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentSwitchoverStatus.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * Current stage of the latest switchover action. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public enum BlueGreenDeploymentSwitchoverStatus { + NotStarted("NOT_STARTED"), + Validating("VALIDATING"), + ReplicatingData("REPLICATING_DATA"), + ReadyForSwitchover("READY_FOR_SWITCHOVER"), + SwitchoverInProgress("SWITCHOVER_IN_PROGRESS"), + SwitchoverCompleted("SWITCHOVER_COMPLETED"), + SwitchoverFailed("SWITCHOVER_FAILED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BlueGreenDeploymentSwitchoverStatus.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BlueGreenDeploymentSwitchoverStatus v : BlueGreenDeploymentSwitchoverStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BlueGreenDeploymentSwitchoverStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BlueGreenDeploymentSwitchoverStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BlueGreenDeploymentSwitchoverStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.java new file mode 100644 index 00000000000..361244f6048 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BlueGreenDeploymentTargetDbSystemDetails.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.mysql.model; + +/** + * Target DB System details for a blue/green deployment. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BlueGreenDeploymentTargetDbSystemDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class BlueGreenDeploymentTargetDbSystemDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "mysqlVersion", + "shapeName", + "configurationId", + "dataStorageSizeInGBs" + }) + public BlueGreenDeploymentTargetDbSystemDetails( + String mysqlVersion, + String shapeName, + String configurationId, + Integer dataStorageSizeInGBs) { + super(); + this.mysqlVersion = mysqlVersion; + this.shapeName = shapeName; + this.configurationId = configurationId; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Target MySQL engine version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private String mysqlVersion; + + /** + * Target MySQL engine version. + * @param mysqlVersion the value to set + * @return this builder + **/ + public Builder mysqlVersion(String mysqlVersion) { + this.mysqlVersion = mysqlVersion; + this.__explicitlySet__.add("mysqlVersion"); + return this; + } + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration applied to the target DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration applied to the target DB System. + * @param configurationId the value to set + * @return this builder + **/ + public Builder configurationId(String configurationId) { + this.configurationId = configurationId; + this.__explicitlySet__.add("configurationId"); + return this; + } + /** + * Initial data storage size in GiBs for the target DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BlueGreenDeploymentTargetDbSystemDetails build() { + BlueGreenDeploymentTargetDbSystemDetails model = + new BlueGreenDeploymentTargetDbSystemDetails( + this.mysqlVersion, + this.shapeName, + this.configurationId, + this.dataStorageSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BlueGreenDeploymentTargetDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("mysqlVersion")) { + this.mysqlVersion(model.getMysqlVersion()); + } + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("configurationId")) { + this.configurationId(model.getConfigurationId()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Target MySQL engine version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private final String mysqlVersion; + + /** + * Target MySQL engine version. + * @return the value + **/ + public String getMysqlVersion() { + return mysqlVersion; + } + + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration applied to the target DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private final String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the configuration applied to the target DB System. + * @return the value + **/ + public String getConfigurationId() { + return configurationId; + } + + /** + * Initial data storage size in GiBs for the target DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. + * @return the value + **/ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BlueGreenDeploymentTargetDbSystemDetails("); + sb.append("super=").append(super.toString()); + sb.append("mysqlVersion=").append(String.valueOf(this.mysqlVersion)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", configurationId=").append(String.valueOf(this.configurationId)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BlueGreenDeploymentTargetDbSystemDetails)) { + return false; + } + + BlueGreenDeploymentTargetDbSystemDetails other = + (BlueGreenDeploymentTargetDbSystemDetails) o; + return java.util.Objects.equals(this.mysqlVersion, other.mysqlVersion) + && java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.configurationId, other.configurationId) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mysqlVersion == null ? 43 : this.mysqlVersion.hashCode()); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = + (result * PRIME) + + (this.configurationId == null ? 43 : this.configurationId.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.java similarity index 79% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.java index a7c9e8b0e2f..d8af3871cc0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/ChangeBlueGreenDeploymentCompartmentDetails.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.mysql.model; /** - * The configuration details for moving the resource for Globally distributed database to other compartment. - * + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target compartment for a blue/green deployment change compartment request. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -15,16 +14,16 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDatabaseCompartmentDetails.Builder.class + builder = ChangeBlueGreenDeploymentCompartmentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedDatabaseCompartmentDetails +public final class ChangeBlueGreenDeploymentCompartmentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedDatabaseCompartmentDetails(String compartmentId) { + public ChangeBlueGreenDeploymentCompartmentDetails(String compartmentId) { super(); this.compartmentId = compartmentId; } @@ -32,15 +31,13 @@ public ChangeDistributedDatabaseCompartmentDetails(String 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](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target compartment. * @param compartmentId the value to set * @return this builder **/ @@ -53,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 ChangeBlueGreenDeploymentCompartmentDetails build() { + ChangeBlueGreenDeploymentCompartmentDetails model = + new ChangeBlueGreenDeploymentCompartmentDetails(this.compartmentId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,7 +60,7 @@ public ChangeDistributedDatabaseCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDatabaseCompartmentDetails model) { + public Builder copy(ChangeBlueGreenDeploymentCompartmentDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } @@ -83,15 +80,13 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the target compartment. * @return the value **/ public String getCompartmentId() { @@ -110,7 +105,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDatabaseCompartmentDetails("); + sb.append("ChangeBlueGreenDeploymentCompartmentDetails("); sb.append("super=").append(super.toString()); sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(")"); @@ -122,12 +117,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDatabaseCompartmentDetails)) { + if (!(o instanceof ChangeBlueGreenDeploymentCompartmentDetails)) { return false; } - ChangeDistributedDatabaseCompartmentDetails other = - (ChangeDistributedDatabaseCompartmentDetails) o; + ChangeBlueGreenDeploymentCompartmentDetails other = + (ChangeBlueGreenDeploymentCompartmentDetails) o; return java.util.Objects.equals(this.compartmentId, other.compartmentId) && super.equals(other); } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java new file mode 100644 index 00000000000..d0fe3dc77b9 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentChannelDetails.java @@ -0,0 +1,374 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * Replication channel details for a blue/green deployment. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBlueGreenDeploymentChannelDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateBlueGreenDeploymentChannelDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + public CreateBlueGreenDeploymentChannelDetails( + String sourceUsername, + String sourcePassword, + String applierUsername, + SslMode sslMode, + CaCertificate sslCaCertificate) { + super(); + this.sourceUsername = sourceUsername; + this.sourcePassword = sourcePassword != null ? sourcePassword.toCharArray() : null; + this.applierUsername = applierUsername; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + } + + @com.fasterxml.jackson.annotation.JsonCreator + @Deprecated + @java.beans.ConstructorProperties({ + "sourceUsername", + "sourcePassword", + "applierUsername", + "sslMode", + "sslCaCertificate" + }) + public CreateBlueGreenDeploymentChannelDetails( + String sourceUsername, + char[] sourcePassword, + String applierUsername, + SslMode sslMode, + CaCertificate sslCaCertificate) { + super(); + this.sourceUsername = sourceUsername; + this.sourcePassword = sourcePassword; + this.applierUsername = applierUsername; + this.sslMode = sslMode; + this.sslCaCertificate = sslCaCertificate; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The username on the source DB system used by the blue/green workflow to configure the replication channel. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUsername") + private String sourceUsername; + + /** + * The username on the source DB system used by the blue/green workflow to configure the replication channel. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + * + * @param sourceUsername the value to set + * @return this builder + **/ + public Builder sourceUsername(String sourceUsername) { + this.sourceUsername = sourceUsername; + this.__explicitlySet__.add("sourceUsername"); + return this; + } + /** + * The password for the source DB system user used by the blue/green workflow to configure the replication channel. + * The password must be between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + private char[] sourcePassword; + + /** + * The password for the source DB system user used by the blue/green workflow to configure the replication channel. + * The password must be between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + * @param sourcePassword the value to set + * @return this builder + **/ + public Builder sourcePassword(char[] sourcePassword) { + this.sourcePassword = sourcePassword; + this.__explicitlySet__.add("sourcePassword"); + return this; + } + + public Builder sourcePassword(String sourcePassword) { + this.sourcePassword = sourcePassword != null ? sourcePassword.toCharArray() : null; + this.__explicitlySet__.add("sourcePassword"); + return this; + } + + /** + * The username for the replication applier of the target MySQL DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applierUsername") + private String applierUsername; + + /** + * The username for the replication applier of the target MySQL DB System. + * @param applierUsername the value to set + * @return this builder + **/ + public Builder applierUsername(String applierUsername) { + this.applierUsername = applierUsername; + this.__explicitlySet__.add("applierUsername"); + return this; + } + /** + * The SSL mode of the replication channel created by the blue/green workflow. + * {@code VERIFY_CA} and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. + * {@code REQUIRED} and {@code DISABLED} must not include {@code sslCaCertificate}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private SslMode sslMode; + + /** + * The SSL mode of the replication channel created by the blue/green workflow. + * {@code VERIFY_CA} and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. + * {@code REQUIRED} and {@code DISABLED} must not include {@code sslCaCertificate}. + * + * @param sslMode the value to set + * @return this builder + **/ + public Builder sslMode(SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + private CaCertificate sslCaCertificate; + + public Builder sslCaCertificate(CaCertificate sslCaCertificate) { + this.sslCaCertificate = sslCaCertificate; + this.__explicitlySet__.add("sslCaCertificate"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBlueGreenDeploymentChannelDetails build() { + CreateBlueGreenDeploymentChannelDetails model = + new CreateBlueGreenDeploymentChannelDetails( + this.sourceUsername, + this.sourcePassword, + this.applierUsername, + this.sslMode, + this.sslCaCertificate); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBlueGreenDeploymentChannelDetails model) { + if (model.wasPropertyExplicitlySet("sourceUsername")) { + this.sourceUsername(model.getSourceUsername()); + } + if (model.wasPropertyExplicitlySet("sourcePassword")) { + this.sourcePassword(model.getSourcePassword()); + } + if (model.wasPropertyExplicitlySet("applierUsername")) { + this.applierUsername(model.getApplierUsername()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("sslCaCertificate")) { + this.sslCaCertificate(model.getSslCaCertificate()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The username on the source DB system used by the blue/green workflow to configure the replication channel. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceUsername") + private final String sourceUsername; + + /** + * The username on the source DB system used by the blue/green workflow to configure the replication channel. + * The username has a maximum length of 96 characters. For more information, + * please see the [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/change-master-to.html) + * + * @return the value + **/ + public String getSourceUsername() { + return sourceUsername; + } + + /** + * The password for the source DB system user used by the blue/green workflow to configure the replication channel. + * The password must be between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + private final char[] sourcePassword; + + /** + * The password for the source DB system user used by the blue/green workflow to configure the replication channel. + * The password must be between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + * return the value + * @Deprecated - Use getSourcePassword__AsCharArray() instead. + */ + @Deprecated + @com.fasterxml.jackson.annotation.JsonIgnore + public String getSourcePassword() { + return sourcePassword != null ? new String(sourcePassword) : null; + } + + /** + * The password for the source DB system user used by the blue/green workflow to configure the replication channel. + * The password must be between 8 and 32 characters long, and must contain at least 1 + * numeric character, 1 lowercase character, 1 uppercase character, and 1 special + * (nonalphanumeric) character. + * + * @return the value + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourcePassword") + public char[] getSourcePassword__AsCharArray() { + return sourcePassword; + } + + /** + * The username for the replication applier of the target MySQL DB System. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("applierUsername") + private final String applierUsername; + + /** + * The username for the replication applier of the target MySQL DB System. + * @return the value + **/ + public String getApplierUsername() { + return applierUsername; + } + + /** + * The SSL mode of the replication channel created by the blue/green workflow. + * {@code VERIFY_CA} and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. + * {@code REQUIRED} and {@code DISABLED} must not include {@code sslCaCertificate}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final SslMode sslMode; + + /** + * The SSL mode of the replication channel created by the blue/green workflow. + * {@code VERIFY_CA} and {@code VERIFY_IDENTITY} require {@code sslCaCertificate}. + * {@code REQUIRED} and {@code DISABLED} must not include {@code sslCaCertificate}. + * + * @return the value + **/ + public SslMode getSslMode() { + return sslMode; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sslCaCertificate") + private final CaCertificate sslCaCertificate; + + public CaCertificate getSslCaCertificate() { + return sslCaCertificate; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBlueGreenDeploymentChannelDetails("); + sb.append("super=").append(super.toString()); + sb.append("sourceUsername=").append(String.valueOf(this.sourceUsername)); + sb.append(", sourcePassword=").append(""); + sb.append(", applierUsername=").append(String.valueOf(this.applierUsername)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", sslCaCertificate=").append(String.valueOf(this.sslCaCertificate)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBlueGreenDeploymentChannelDetails)) { + return false; + } + + CreateBlueGreenDeploymentChannelDetails other = (CreateBlueGreenDeploymentChannelDetails) o; + return java.util.Objects.equals(this.sourceUsername, other.sourceUsername) + && java.util.Objects.equals(this.sourcePassword, other.sourcePassword) + && java.util.Objects.equals(this.applierUsername, other.applierUsername) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.sslCaCertificate, other.sslCaCertificate) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.sourceUsername == null ? 43 : this.sourceUsername.hashCode()); + result = + (result * PRIME) + + (this.sourcePassword == null ? 43 : this.sourcePassword.hashCode()); + result = + (result * PRIME) + + (this.applierUsername == null ? 43 : this.applierUsername.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = + (result * PRIME) + + (this.sslCaCertificate == null ? 43 : this.sslCaCertificate.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java similarity index 63% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.java index 57ef3e9245b..8ed8f1d6d29 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentDetails.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.mysql.model; /** - * Details required for private endpoint creation. + * Details for creating a blue/green deployment backed by a replication channel. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,37 +14,37 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabasePrivateEndpointDetails.Builder.class + builder = CreateBlueGreenDeploymentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabasePrivateEndpointDetails +public final class CreateBlueGreenDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "compartmentId", - "subnetId", "displayName", - "description", - "vcnNsgIds", + "sourceDbSystemId", + "targetDbSystemDetails", + "channelDetails", "freeformTags", "definedTags" }) - public CreateDistributedDatabasePrivateEndpointDetails( + public CreateBlueGreenDeploymentDetails( String compartmentId, - String subnetId, String displayName, - String description, - java.util.List vcnNsgIds, + String sourceDbSystemId, + CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails, + CreateBlueGreenDeploymentChannelDetails channelDetails, 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.sourceDbSystemId = sourceDbSystemId; + this.targetDbSystemDetails = targetDbSystemDetails; + this.channelDetails = channelDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -52,13 +52,13 @@ public CreateDistributedDatabasePrivateEndpointDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Identifier of the compartment where private endpoint is to be created. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * Identifier of the compartment where private endpoint is to be created. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * @param compartmentId the value to set * @return this builder **/ @@ -68,29 +68,13 @@ public Builder compartmentId(String 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 blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Private endpoint display name. + * The display name of the blue/green deployment. * @param displayName the value to set * @return this builder **/ @@ -100,35 +84,38 @@ public Builder displayName(String displayName) { return this; } /** - * DistributedDatabasePrivateEndpoint description. + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private String sourceDbSystemId; /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param sourceDbSystemId the value to set * @return this builder **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + this.__explicitlySet__.add("sourceDbSystemId"); return this; } - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - * @param vcnNsgIds the value to set - * @return this builder - **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; + + public Builder targetDbSystemDetails( + CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails) { + this.targetDbSystemDetails = targetDbSystemDetails; + this.__explicitlySet__.add("targetDbSystemDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("channelDetails") + private CreateBlueGreenDeploymentChannelDetails channelDetails; + + public Builder channelDetails(CreateBlueGreenDeploymentChannelDetails channelDetails) { + this.channelDetails = channelDetails; + this.__explicitlySet__.add("channelDetails"); return this; } /** @@ -176,14 +163,14 @@ 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 CreateBlueGreenDeploymentDetails build() { + CreateBlueGreenDeploymentDetails model = + new CreateBlueGreenDeploymentDetails( this.compartmentId, - this.subnetId, this.displayName, - this.description, - this.vcnNsgIds, + this.sourceDbSystemId, + this.targetDbSystemDetails, + this.channelDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -193,21 +180,21 @@ public CreateDistributedDatabasePrivateEndpointDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabasePrivateEndpointDetails model) { + public Builder copy(CreateBlueGreenDeploymentDetails 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("sourceDbSystemId")) { + this.sourceDbSystemId(model.getSourceDbSystemId()); } - if (model.wasPropertyExplicitlySet("vcnNsgIds")) { - this.vcnNsgIds(model.getVcnNsgIds()); + if (model.wasPropertyExplicitlySet("targetDbSystemDetails")) { + this.targetDbSystemDetails(model.getTargetDbSystemDetails()); + } + if (model.wasPropertyExplicitlySet("channelDetails")) { + this.channelDetails(model.getChannelDetails()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -231,13 +218,13 @@ public Builder toBuilder() { } /** - * Identifier of the compartment where private endpoint is to be created. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * Identifier of the compartment where private endpoint is to be created. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. * @return the value **/ public String getCompartmentId() { @@ -245,27 +232,13 @@ public String getCompartmentId() { } /** - * 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 blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Private endpoint display name. + * The display name of the blue/green deployment. * @return the value **/ public String getDisplayName() { @@ -273,31 +246,31 @@ public String getDisplayName() { } /** - * DistributedDatabasePrivateEndpoint description. + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; + @com.fasterxml.jackson.annotation.JsonProperty("sourceDbSystemId") + private final String sourceDbSystemId; /** - * DistributedDatabasePrivateEndpoint description. + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). * @return the value **/ - public String getDescription() { - return description; + public String getSourceDbSystemId() { + return sourceDbSystemId; } - /** - * 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; + @com.fasterxml.jackson.annotation.JsonProperty("targetDbSystemDetails") + private final CreateBlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails; - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; + public CreateBlueGreenDeploymentTargetDbSystemDetails getTargetDbSystemDetails() { + return targetDbSystemDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("channelDetails") + private final CreateBlueGreenDeploymentChannelDetails channelDetails; + + public CreateBlueGreenDeploymentChannelDetails getChannelDetails() { + return channelDetails; } /** @@ -348,13 +321,13 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabasePrivateEndpointDetails("); + sb.append("CreateBlueGreenDeploymentDetails("); 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(", sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(", targetDbSystemDetails=").append(String.valueOf(this.targetDbSystemDetails)); + sb.append(", channelDetails=").append(String.valueOf(this.channelDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -366,17 +339,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointDetails)) { + if (!(o instanceof CreateBlueGreenDeploymentDetails)) { return false; } - CreateDistributedDatabasePrivateEndpointDetails other = - (CreateDistributedDatabasePrivateEndpointDetails) o; + CreateBlueGreenDeploymentDetails other = (CreateBlueGreenDeploymentDetails) 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.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemDetails, other.targetDbSystemDetails) + && java.util.Objects.equals(this.channelDetails, other.channelDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -389,10 +361,18 @@ 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.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemDetails == null + ? 43 + : this.targetDbSystemDetails.hashCode()); + result = + (result * PRIME) + + (this.channelDetails == null ? 43 : this.channelDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java new file mode 100644 index 00000000000..e442b93e585 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CreateBlueGreenDeploymentTargetDbSystemDetails.java @@ -0,0 +1,308 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.model; + +/** + * Target DB System overrides for a blue/green deployment. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateBlueGreenDeploymentTargetDbSystemDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateBlueGreenDeploymentTargetDbSystemDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "mysqlVersion", + "shapeName", + "configurationId", + "dataStorageSizeInGBs" + }) + public CreateBlueGreenDeploymentTargetDbSystemDetails( + String mysqlVersion, + String shapeName, + String configurationId, + Integer dataStorageSizeInGBs) { + super(); + this.mysqlVersion = mysqlVersion; + this.shapeName = shapeName; + this.configurationId = configurationId; + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Target MySQL engine version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private String mysqlVersion; + + /** + * Target MySQL engine version. + * @param mysqlVersion the value to set + * @return this builder + **/ + public Builder mysqlVersion(String mysqlVersion) { + this.mysqlVersion = mysqlVersion; + this.__explicitlySet__.add("mysqlVersion"); + return this; + } + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private String shapeName; + + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + * @param shapeName the value to set + * @return this builder + **/ + public Builder shapeName(String shapeName) { + this.shapeName = shapeName; + this.__explicitlySet__.add("shapeName"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the + * target DB System inherits the source DB System configuration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the + * target DB System inherits the source DB System configuration. + * + * @param configurationId the value to set + * @return this builder + **/ + public Builder configurationId(String configurationId) { + this.configurationId = configurationId; + this.__explicitlySet__.add("configurationId"); + return this; + } + /** + * Initial data storage size in GiBs for the target DB System. + * If omitted, the target DB System uses the source DB System storage size. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. + * If omitted, the target DB System uses the source DB System storage size. + * + * @param dataStorageSizeInGBs the value to set + * @return this builder + **/ + public Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs) { + this.dataStorageSizeInGBs = dataStorageSizeInGBs; + this.__explicitlySet__.add("dataStorageSizeInGBs"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateBlueGreenDeploymentTargetDbSystemDetails build() { + CreateBlueGreenDeploymentTargetDbSystemDetails model = + new CreateBlueGreenDeploymentTargetDbSystemDetails( + this.mysqlVersion, + this.shapeName, + this.configurationId, + this.dataStorageSizeInGBs); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateBlueGreenDeploymentTargetDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("mysqlVersion")) { + this.mysqlVersion(model.getMysqlVersion()); + } + if (model.wasPropertyExplicitlySet("shapeName")) { + this.shapeName(model.getShapeName()); + } + if (model.wasPropertyExplicitlySet("configurationId")) { + this.configurationId(model.getConfigurationId()); + } + if (model.wasPropertyExplicitlySet("dataStorageSizeInGBs")) { + this.dataStorageSizeInGBs(model.getDataStorageSizeInGBs()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Target MySQL engine version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("mysqlVersion") + private final String mysqlVersion; + + /** + * Target MySQL engine version. + * @return the value + **/ + public String getMysqlVersion() { + return mysqlVersion; + } + + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("shapeName") + private final String shapeName; + + /** + * The shape of the target DB System. The shape determines resources + * allocated to the DB System - CPU cores and memory for VM shapes; + * CPU cores, memory and storage for non-VM (or bare metal) shapes. + * To get a list of shapes, use the + * {@link #listShapes(ListShapesRequest) listShapes} operation. + * + * @return the value + **/ + public String getShapeName() { + return shapeName; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the + * target DB System inherits the source DB System configuration. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("configurationId") + private final String configurationId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * configuration to apply to the target DB System. If omitted, the + * target DB System inherits the source DB System configuration. + * + * @return the value + **/ + public String getConfigurationId() { + return configurationId; + } + + /** + * Initial data storage size in GiBs for the target DB System. + * If omitted, the target DB System uses the source DB System storage size. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGBs") + private final Integer dataStorageSizeInGBs; + + /** + * Initial data storage size in GiBs for the target DB System. + * If omitted, the target DB System uses the source DB System storage size. + * + * @return the value + **/ + public Integer getDataStorageSizeInGBs() { + return dataStorageSizeInGBs; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateBlueGreenDeploymentTargetDbSystemDetails("); + sb.append("super=").append(super.toString()); + sb.append("mysqlVersion=").append(String.valueOf(this.mysqlVersion)); + sb.append(", shapeName=").append(String.valueOf(this.shapeName)); + sb.append(", configurationId=").append(String.valueOf(this.configurationId)); + sb.append(", dataStorageSizeInGBs=").append(String.valueOf(this.dataStorageSizeInGBs)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBlueGreenDeploymentTargetDbSystemDetails)) { + return false; + } + + CreateBlueGreenDeploymentTargetDbSystemDetails other = + (CreateBlueGreenDeploymentTargetDbSystemDetails) o; + return java.util.Objects.equals(this.mysqlVersion, other.mysqlVersion) + && java.util.Objects.equals(this.shapeName, other.shapeName) + && java.util.Objects.equals(this.configurationId, other.configurationId) + && java.util.Objects.equals(this.dataStorageSizeInGBs, other.dataStorageSizeInGBs) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.mysqlVersion == null ? 43 : this.mysqlVersion.hashCode()); + result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode()); + result = + (result * PRIME) + + (this.configurationId == null ? 43 : this.configurationId.hashCode()); + result = + (result * PRIME) + + (this.dataStorageSizeInGBs == null + ? 43 + : this.dataStorageSizeInGBs.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java index 1517c50fb1b..561299a2d3c 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SslMode.java @@ -13,7 +13,14 @@ public enum SslMode { VerifyCa("VERIFY_CA"), Required("REQUIRED"), Disabled("DISABLED"), - ; + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(SslMode.class); private final String value; private static java.util.Map map; @@ -21,7 +28,9 @@ public enum SslMode { static { map = new java.util.HashMap<>(); for (SslMode v : SslMode.values()) { - map.put(v.getValue(), v); + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } } } @@ -39,6 +48,7 @@ public static SslMode create(String key) { if (map.containsKey(key)) { return map.get(key); } - throw new IllegalArgumentException("Invalid SslMode: " + key); + LOG.warn("Received unknown value '{}' for enum 'SslMode', returning UnknownEnumValue", key); + return UnknownEnumValue; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.java similarity index 55% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.java index 333880ca94c..040f4de5b33 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/SwitchoverBlueGreenDeploymentDetails.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.mysql.model; /** - * Details of Globally distributed autonomous database connection String. + * Details for switching over a blue/green deployment. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,46 +14,51 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseConnectionString.Builder.class + builder = SwitchoverBlueGreenDeploymentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseConnectionString +public final class SwitchoverBlueGreenDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"allConnectionStrings"}) - public DistributedAutonomousDatabaseConnectionString( - java.util.Map allConnectionStrings) { + @java.beans.ConstructorProperties({"waitTimeInSeconds"}) + public SwitchoverBlueGreenDeploymentDetails(Integer waitTimeInSeconds) { super(); - this.allConnectionStrings = allConnectionStrings; + this.waitTimeInSeconds = waitTimeInSeconds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Collection of connection strings. + * Upper bound guidance, in seconds, for waiting while the target DB + * System applies remaining replication changes during switchover + * processing. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private java.util.Map allConnectionStrings; + @com.fasterxml.jackson.annotation.JsonProperty("waitTimeInSeconds") + private Integer waitTimeInSeconds; /** - * Collection of connection strings. - * @param allConnectionStrings the value to set + * Upper bound guidance, in seconds, for waiting while the target DB + * System applies remaining replication changes during switchover + * processing. + * + * @param waitTimeInSeconds the value to set * @return this builder **/ - public Builder allConnectionStrings(java.util.Map allConnectionStrings) { - this.allConnectionStrings = allConnectionStrings; - this.__explicitlySet__.add("allConnectionStrings"); + public Builder waitTimeInSeconds(Integer waitTimeInSeconds) { + this.waitTimeInSeconds = waitTimeInSeconds; + this.__explicitlySet__.add("waitTimeInSeconds"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedAutonomousDatabaseConnectionString build() { - DistributedAutonomousDatabaseConnectionString model = - new DistributedAutonomousDatabaseConnectionString(this.allConnectionStrings); + public SwitchoverBlueGreenDeploymentDetails build() { + SwitchoverBlueGreenDeploymentDetails model = + new SwitchoverBlueGreenDeploymentDetails(this.waitTimeInSeconds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -61,9 +66,9 @@ public DistributedAutonomousDatabaseConnectionString build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseConnectionString model) { - if (model.wasPropertyExplicitlySet("allConnectionStrings")) { - this.allConnectionStrings(model.getAllConnectionStrings()); + public Builder copy(SwitchoverBlueGreenDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("waitTimeInSeconds")) { + this.waitTimeInSeconds(model.getWaitTimeInSeconds()); } return this; } @@ -81,17 +86,23 @@ public Builder toBuilder() { } /** - * Collection of connection strings. + * Upper bound guidance, in seconds, for waiting while the target DB + * System applies remaining replication changes during switchover + * processing. + * **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private final java.util.Map allConnectionStrings; + @com.fasterxml.jackson.annotation.JsonProperty("waitTimeInSeconds") + private final Integer waitTimeInSeconds; /** - * Collection of connection strings. + * Upper bound guidance, in seconds, for waiting while the target DB + * System applies remaining replication changes during switchover + * processing. + * * @return the value **/ - public java.util.Map getAllConnectionStrings() { - return allConnectionStrings; + public Integer getWaitTimeInSeconds() { + return waitTimeInSeconds; } @Override @@ -106,9 +117,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseConnectionString("); + sb.append("SwitchoverBlueGreenDeploymentDetails("); sb.append("super=").append(super.toString()); - sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); + sb.append("waitTimeInSeconds=").append(String.valueOf(this.waitTimeInSeconds)); sb.append(")"); return sb.toString(); } @@ -118,13 +129,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedAutonomousDatabaseConnectionString)) { + if (!(o instanceof SwitchoverBlueGreenDeploymentDetails)) { return false; } - DistributedAutonomousDatabaseConnectionString other = - (DistributedAutonomousDatabaseConnectionString) o; - return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) + SwitchoverBlueGreenDeploymentDetails other = (SwitchoverBlueGreenDeploymentDetails) o; + return java.util.Objects.equals(this.waitTimeInSeconds, other.waitTimeInSeconds) && super.equals(other); } @@ -134,9 +144,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) - + (this.allConnectionStrings == null - ? 43 - : this.allConnectionStrings.hashCode()); + + (this.waitTimeInSeconds == null ? 43 : this.waitTimeInSeconds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java similarity index 74% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java index 7125e911a2f..a36e1d68c9f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/UpdateBlueGreenDeploymentDetails.java @@ -2,10 +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.mysql.model; /** - * The details of private endpoint to be updated. + * Details for updating mutable metadata on a blue/green deployment. + * Currently only {@code displayName}, {@code freeformTags}, and {@code definedTags} are supported. + * *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,23 +16,21 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDistributedDatabasePrivateEndpointDetails.Builder.class + builder = UpdateBlueGreenDeploymentDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateDistributedDatabasePrivateEndpointDetails +public final class UpdateBlueGreenDeploymentDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) - public UpdateDistributedDatabasePrivateEndpointDetails( + @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + public UpdateBlueGreenDeploymentDetails( String displayName, - String description, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; - this.description = description; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -38,13 +38,13 @@ public UpdateDistributedDatabasePrivateEndpointDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Display name for DistributedDatabasePrivateEndpoint + * A user-supplied display name for the blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display name for DistributedDatabasePrivateEndpoint + * A user-supplied display name for the blue/green deployment. * @param displayName the value to set * @return this builder **/ @@ -53,22 +53,6 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set - * @return this builder - **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); - return this; - } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -114,13 +98,10 @@ 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( - this.displayName, - this.description, - this.freeformTags, - this.definedTags); + public UpdateBlueGreenDeploymentDetails build() { + UpdateBlueGreenDeploymentDetails model = + new UpdateBlueGreenDeploymentDetails( + this.displayName, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -128,13 +109,10 @@ public UpdateDistributedDatabasePrivateEndpointDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDistributedDatabasePrivateEndpointDetails model) { + public Builder copy(UpdateBlueGreenDeploymentDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } - if (model.wasPropertyExplicitlySet("description")) { - this.description(model.getDescription()); - } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -157,33 +135,19 @@ public Builder toBuilder() { } /** - * Display name for DistributedDatabasePrivateEndpoint + * A user-supplied display name for the blue/green deployment. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display name for DistributedDatabasePrivateEndpoint + * A user-supplied display name for the blue/green deployment. * @return the value **/ public String getDisplayName() { return displayName; } - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -232,10 +196,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDistributedDatabasePrivateEndpointDetails("); + sb.append("UpdateBlueGreenDeploymentDetails("); sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", description=").append(String.valueOf(this.description)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -247,14 +210,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedDatabasePrivateEndpointDetails)) { + if (!(o instanceof UpdateBlueGreenDeploymentDetails)) { return false; } - UpdateDistributedDatabasePrivateEndpointDetails other = - (UpdateDistributedDatabasePrivateEndpointDetails) o; + UpdateBlueGreenDeploymentDetails other = (UpdateBlueGreenDeploymentDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -265,7 +226,6 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java index 83f9c3dcfd5..16ae7ebb68e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java @@ -37,6 +37,11 @@ public enum WorkRequestOperationType { DeleteBackup("DELETE_BACKUP"), UpdateBackup("UPDATE_BACKUP"), ExportBackup("EXPORT_BACKUP"), + CreateBlueGreenDeployment("CREATE_BLUE_GREEN_DEPLOYMENT"), + UpdateBlueGreenDeployment("UPDATE_BLUE_GREEN_DEPLOYMENT"), + DeleteBlueGreenDeployment("DELETE_BLUE_GREEN_DEPLOYMENT"), + ChangeBlueGreenDeploymentCompartment("CHANGE_BLUE_GREEN_DEPLOYMENT_COMPARTMENT"), + SwitchoverBlueGreenDeployment("SWITCHOVER_BLUE_GREEN_DEPLOYMENT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.java new file mode 100644 index 00000000000..b58faa6fb67 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ChangeBlueGreenDeploymentCompartmentRequest.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.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use ChangeBlueGreenDeploymentCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ChangeBlueGreenDeploymentCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** + * Target compartment for a blue/green deployment. + */ + private com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + changeBlueGreenDeploymentCompartmentDetails; + + /** + * Target compartment for a blue/green deployment. + */ + public com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + getChangeBlueGreenDeploymentCompartmentDetails() { + return changeBlueGreenDeploymentCompartmentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails getBody$() { + return changeBlueGreenDeploymentCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeBlueGreenDeploymentCompartmentRequest, + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** + * Target compartment for a blue/green deployment. + */ + private com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + changeBlueGreenDeploymentCompartmentDetails = null; + + /** + * Target compartment for a blue/green deployment. + * @param changeBlueGreenDeploymentCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeBlueGreenDeploymentCompartmentDetails( + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails + changeBlueGreenDeploymentCompartmentDetails) { + this.changeBlueGreenDeploymentCompartmentDetails = + changeBlueGreenDeploymentCompartmentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeBlueGreenDeploymentCompartmentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + changeBlueGreenDeploymentCompartmentDetails( + o.getChangeBlueGreenDeploymentCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeBlueGreenDeploymentCompartmentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ChangeBlueGreenDeploymentCompartmentRequest + */ + public ChangeBlueGreenDeploymentCompartmentRequest build() { + ChangeBlueGreenDeploymentCompartmentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.mysql.model.ChangeBlueGreenDeploymentCompartmentDetails body) { + changeBlueGreenDeploymentCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeBlueGreenDeploymentCompartmentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeBlueGreenDeploymentCompartmentRequest + */ + public ChangeBlueGreenDeploymentCompartmentRequest buildWithoutInvocationCallback() { + ChangeBlueGreenDeploymentCompartmentRequest request = + new ChangeBlueGreenDeploymentCompartmentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.changeBlueGreenDeploymentCompartmentDetails = + changeBlueGreenDeploymentCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeBlueGreenDeploymentCompartmentRequest(blueGreenDeploymentId, changeBlueGreenDeploymentCompartmentDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .blueGreenDeploymentId(blueGreenDeploymentId) + .changeBlueGreenDeploymentCompartmentDetails( + changeBlueGreenDeploymentCompartmentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",changeBlueGreenDeploymentCompartmentDetails=") + .append(String.valueOf(this.changeBlueGreenDeploymentCompartmentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeBlueGreenDeploymentCompartmentRequest)) { + return false; + } + + ChangeBlueGreenDeploymentCompartmentRequest other = + (ChangeBlueGreenDeploymentCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals( + this.changeBlueGreenDeploymentCompartmentDetails, + other.changeBlueGreenDeploymentCompartmentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.changeBlueGreenDeploymentCompartmentDetails == null + ? 43 + : this.changeBlueGreenDeploymentCompartmentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..05e3c707f15 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CreateBlueGreenDeploymentRequest.java @@ -0,0 +1,301 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use CreateBlueGreenDeploymentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CreateBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails> { + + /** + * Details for creating a blue/green deployment, including target DB System overrides. + */ + private com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + createBlueGreenDeploymentDetails; + + /** + * Details for creating a blue/green deployment, including target DB System overrides. + */ + public com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + getCreateBlueGreenDeploymentDetails() { + return createBlueGreenDeploymentDetails; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails getBody$() { + return createBlueGreenDeploymentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateBlueGreenDeploymentRequest, + com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for creating a blue/green deployment, including target DB System overrides. + */ + private com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + createBlueGreenDeploymentDetails = null; + + /** + * Details for creating a blue/green deployment, including target DB System overrides. + * @param createBlueGreenDeploymentDetails the value to set + * @return this builder instance + */ + public Builder createBlueGreenDeploymentDetails( + com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails + createBlueGreenDeploymentDetails) { + this.createBlueGreenDeploymentDetails = createBlueGreenDeploymentDetails; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateBlueGreenDeploymentRequest o) { + createBlueGreenDeploymentDetails(o.getCreateBlueGreenDeploymentDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateBlueGreenDeploymentRequest + */ + public CreateBlueGreenDeploymentRequest build() { + CreateBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.mysql.model.CreateBlueGreenDeploymentDetails body) { + createBlueGreenDeploymentDetails(body); + return this; + } + + /** + * Build the instance of CreateBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateBlueGreenDeploymentRequest + */ + public CreateBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + CreateBlueGreenDeploymentRequest request = new CreateBlueGreenDeploymentRequest(); + request.createBlueGreenDeploymentDetails = createBlueGreenDeploymentDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new CreateBlueGreenDeploymentRequest(createBlueGreenDeploymentDetails, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createBlueGreenDeploymentDetails(createBlueGreenDeploymentDetails) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createBlueGreenDeploymentDetails=") + .append(String.valueOf(this.createBlueGreenDeploymentDetails)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateBlueGreenDeploymentRequest)) { + return false; + } + + CreateBlueGreenDeploymentRequest other = (CreateBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createBlueGreenDeploymentDetails, + other.createBlueGreenDeploymentDetails) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createBlueGreenDeploymentDetails == null + ? 43 + : this.createBlueGreenDeploymentDetails.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..068ac5c8f18 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/DeleteBlueGreenDeploymentRequest.java @@ -0,0 +1,264 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use DeleteBlueGreenDeploymentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class DeleteBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteBlueGreenDeploymentRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteBlueGreenDeploymentRequest + */ + public DeleteBlueGreenDeploymentRequest build() { + DeleteBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteBlueGreenDeploymentRequest + */ + public DeleteBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + DeleteBlueGreenDeploymentRequest request = new DeleteBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteBlueGreenDeploymentRequest(blueGreenDeploymentId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .blueGreenDeploymentId(blueGreenDeploymentId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteBlueGreenDeploymentRequest)) { + return false; + } + + DeleteBlueGreenDeploymentRequest other = (DeleteBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java index bb3d344f6ae..f709ac0f6c5 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/GetBlueGreenDeploymentRequest.java @@ -2,39 +2,43 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabasev26.requests; +package com.oracle.bmc.mysql.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; /** - * Example: Click here to see how to use GetDistributedDatabaseRequest. + * Example: Click here to see how to use GetBlueGreenDeploymentRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class GetBlueGreenDeploymentRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. */ - private String distributedDatabaseId; + private String blueGreenDeploymentId; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; } /** - * Comma-separated argument names for which metadata should be retrieved. + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. * */ - private String metadata; + private String opcRequestId; /** - * Comma-separated argument names for which metadata should be retrieved. + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. * */ - public String getMetadata() { - return metadata; + public String getOpcRequestId() { + return opcRequestId; } /** * For conditional requests. In the GET call for a resource, set the @@ -57,54 +61,47 @@ public String getMetadata() { 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> { + GetBlueGreenDeploymentRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. */ - private String distributedDatabaseId = null; + private String blueGreenDeploymentId = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @param blueGreenDeploymentId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; return this; } /** - * Comma-separated argument names for which metadata should be retrieved. + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. * */ - private String metadata = null; + private String opcRequestId = null; /** - * Comma-separated argument names for which metadata should be retrieved. + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. * - * @param metadata the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder metadata(String metadata) { - this.metadata = metadata; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } @@ -133,21 +130,6 @@ public Builder ifNoneMatch(String 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 @@ -175,49 +157,47 @@ public Builder retryConfiguration( * 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()); + public Builder copy(GetBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); opcRequestId(o.getOpcRequestId()); + ifNoneMatch(o.getIfNoneMatch()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of GetDistributedDatabaseRequest as configured by this builder + * Build the instance of GetBlueGreenDeploymentRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of GetDistributedDatabaseRequest + * @return instance of GetBlueGreenDeploymentRequest */ - public GetDistributedDatabaseRequest build() { - GetDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public GetBlueGreenDeploymentRequest build() { + GetBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GetDistributedDatabaseRequest as configured by this builder + * Build the instance of GetBlueGreenDeploymentRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of GetDistributedDatabaseRequest + * @return instance of GetBlueGreenDeploymentRequest */ - public GetDistributedDatabaseRequest buildWithoutInvocationCallback() { - GetDistributedDatabaseRequest request = new GetDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.metadata = metadata; - request.ifNoneMatch = ifNoneMatch; + public GetBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + GetBlueGreenDeploymentRequest request = new GetBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; request.opcRequestId = opcRequestId; + request.ifNoneMatch = ifNoneMatch; return request; - // new GetDistributedDatabaseRequest(distributedDatabaseId, metadata, ifNoneMatch, opcRequestId); + // new GetBlueGreenDeploymentRequest(blueGreenDeploymentId, opcRequestId, ifNoneMatch); } } @@ -227,10 +207,9 @@ public GetDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .metadata(metadata) - .ifNoneMatch(ifNoneMatch) - .opcRequestId(opcRequestId); + .blueGreenDeploymentId(blueGreenDeploymentId) + .opcRequestId(opcRequestId) + .ifNoneMatch(ifNoneMatch); } /** @@ -246,10 +225,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(",metadata=").append(String.valueOf(this.metadata)); - sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); + sb.append(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); sb.append(")"); return sb.toString(); } @@ -259,16 +237,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabaseRequest)) { + if (!(o instanceof GetBlueGreenDeploymentRequest)) { return false; } - GetDistributedDatabaseRequest other = (GetDistributedDatabaseRequest) o; + GetBlueGreenDeploymentRequest other = (GetBlueGreenDeploymentRequest) 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); + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch); } @Override @@ -277,12 +254,11 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.blueGreenDeploymentId == 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()); + : this.blueGreenDeploymentId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); return result; } } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java new file mode 100644 index 00000000000..20fd01a75ac --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/ListBlueGreenDeploymentsRequest.java @@ -0,0 +1,573 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use ListBlueGreenDeploymentsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ListBlueGreenDeploymentsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * The maximum number of items to return in a paginated list call. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + */ + private Integer limit; + + /** + * The maximum number of items to return in a paginated list call. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + */ + public Integer getLimit() { + return limit; + } + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from + * the previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + */ + private String page; + + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from + * the previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + */ + public String getPage() { + return page; + } + /** + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String sourceDbSystemId; + + /** + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + public String getSourceDbSystemId() { + return sourceDbSystemId; + } + /** + * Target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String targetDbSystemId; + + /** + * Target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + public String getTargetDbSystemId() { + return targetDbSystemId; + } + /** + * Filters deployments by display name. + */ + private String displayName; + + /** + * Filters deployments by display name. + */ + public String getDisplayName() { + return displayName; + } + /** + * Filters deployments by lifecycle state. + */ + private com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState lifecycleState; + + /** + * Filters deployments by lifecycle state. + */ + public com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState + getLifecycleState() { + return lifecycleState; + } + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending. + * + **/ + public enum SortBy { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending. + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use (ASC or DESC). + */ + private SortOrder sortOrder; + + /** + * The sort order to use (ASC or DESC). + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** + * The sort order to use (ASC or DESC). + */ + public SortOrder getSortOrder() { + return sortOrder; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListBlueGreenDeploymentsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId = null; + + /** + * The compartment [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * The maximum number of items to return in a paginated list call. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + */ + private Integer limit = null; + + /** + * The maximum number of items to return in a paginated list call. For information about pagination, see + * [List Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from + * the previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + */ + private String page = null; + + /** + * The value of the {@code opc-next-page} or {@code opc-prev-page} response header from + * the previous list call. For information about pagination, see [List + * Pagination](https://docs.oracle.com/iaas/#API/Concepts/usingapi.htm#List_Pagination). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String sourceDbSystemId = null; + + /** + * Source DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + * @param sourceDbSystemId the value to set + * @return this builder instance + */ + public Builder sourceDbSystemId(String sourceDbSystemId) { + this.sourceDbSystemId = sourceDbSystemId; + return this; + } + + /** + * Target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + */ + private String targetDbSystemId = null; + + /** + * Target DB system [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) filter. + * @param targetDbSystemId the value to set + * @return this builder instance + */ + public Builder targetDbSystemId(String targetDbSystemId) { + this.targetDbSystemId = targetDbSystemId; + return this; + } + + /** + * Filters deployments by display name. + */ + private String displayName = null; + + /** + * Filters deployments by display name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filters deployments by lifecycle state. + */ + private com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState + lifecycleState = null; + + /** + * Filters deployments by lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.mysql.model.BlueGreenDeploymentSummary.LifecycleState + lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending. + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. Time fields are default ordered as descending. Display name is default ordered as ascending. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use (ASC or DESC). + */ + private SortOrder sortOrder = null; + + /** + * The sort order to use (ASC or DESC). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListBlueGreenDeploymentsRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sourceDbSystemId(o.getSourceDbSystemId()); + targetDbSystemId(o.getTargetDbSystemId()); + displayName(o.getDisplayName()); + lifecycleState(o.getLifecycleState()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListBlueGreenDeploymentsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListBlueGreenDeploymentsRequest + */ + public ListBlueGreenDeploymentsRequest build() { + ListBlueGreenDeploymentsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListBlueGreenDeploymentsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListBlueGreenDeploymentsRequest + */ + public ListBlueGreenDeploymentsRequest buildWithoutInvocationCallback() { + ListBlueGreenDeploymentsRequest request = new ListBlueGreenDeploymentsRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + request.sourceDbSystemId = sourceDbSystemId; + request.targetDbSystemId = targetDbSystemId; + request.displayName = displayName; + request.lifecycleState = lifecycleState; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + return request; + // new ListBlueGreenDeploymentsRequest(compartmentId, opcRequestId, limit, page, sourceDbSystemId, targetDbSystemId, displayName, lifecycleState, sortBy, sortOrder); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page) + .sourceDbSystemId(sourceDbSystemId) + .targetDbSystemId(targetDbSystemId) + .displayName(displayName) + .lifecycleState(lifecycleState) + .sortBy(sortBy) + .sortOrder(sortOrder); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sourceDbSystemId=").append(String.valueOf(this.sourceDbSystemId)); + sb.append(",targetDbSystemId=").append(String.valueOf(this.targetDbSystemId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListBlueGreenDeploymentsRequest)) { + return false; + } + + ListBlueGreenDeploymentsRequest other = (ListBlueGreenDeploymentsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sourceDbSystemId, other.sourceDbSystemId) + && java.util.Objects.equals(this.targetDbSystemId, other.targetDbSystemId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = + (result * PRIME) + + (this.sourceDbSystemId == null ? 43 : this.sourceDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.targetDbSystemId == null ? 43 : this.targetDbSystemId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..9e36e24ed90 --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/SwitchoverBlueGreenDeploymentRequest.java @@ -0,0 +1,390 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use SwitchoverBlueGreenDeploymentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class SwitchoverBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** + * Details for switching over a blue/green deployment. + */ + private com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + switchoverBlueGreenDeploymentDetails; + + /** + * Details for switching over a blue/green deployment. + */ + public com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + getSwitchoverBlueGreenDeploymentDetails() { + return switchoverBlueGreenDeploymentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails getBody$() { + return switchoverBlueGreenDeploymentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SwitchoverBlueGreenDeploymentRequest, + com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** + * Details for switching over a blue/green deployment. + */ + private com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + switchoverBlueGreenDeploymentDetails = null; + + /** + * Details for switching over a blue/green deployment. + * @param switchoverBlueGreenDeploymentDetails the value to set + * @return this builder instance + */ + public Builder switchoverBlueGreenDeploymentDetails( + com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails + switchoverBlueGreenDeploymentDetails) { + this.switchoverBlueGreenDeploymentDetails = switchoverBlueGreenDeploymentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case + * of a timeout or server error without risk of executing that same action + * again. Retry tokens expire after 24 hours, but can be invalidated before + * then due to conflicting operations (for example, if a resource has been + * deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(SwitchoverBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + switchoverBlueGreenDeploymentDetails(o.getSwitchoverBlueGreenDeploymentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SwitchoverBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of SwitchoverBlueGreenDeploymentRequest + */ + public SwitchoverBlueGreenDeploymentRequest build() { + SwitchoverBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.mysql.model.SwitchoverBlueGreenDeploymentDetails body) { + switchoverBlueGreenDeploymentDetails(body); + return this; + } + + /** + * Build the instance of SwitchoverBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of SwitchoverBlueGreenDeploymentRequest + */ + public SwitchoverBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + SwitchoverBlueGreenDeploymentRequest request = + new SwitchoverBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.switchoverBlueGreenDeploymentDetails = switchoverBlueGreenDeploymentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new SwitchoverBlueGreenDeploymentRequest(blueGreenDeploymentId, switchoverBlueGreenDeploymentDetails, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .blueGreenDeploymentId(blueGreenDeploymentId) + .switchoverBlueGreenDeploymentDetails(switchoverBlueGreenDeploymentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",switchoverBlueGreenDeploymentDetails=") + .append(String.valueOf(this.switchoverBlueGreenDeploymentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchoverBlueGreenDeploymentRequest)) { + return false; + } + + SwitchoverBlueGreenDeploymentRequest other = (SwitchoverBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals( + this.switchoverBlueGreenDeploymentDetails, + other.switchoverBlueGreenDeploymentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.switchoverBlueGreenDeploymentDetails == null + ? 43 + : this.switchoverBlueGreenDeploymentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java new file mode 100644 index 00000000000..8fac69743ba --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/UpdateBlueGreenDeploymentRequest.java @@ -0,0 +1,331 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.mysql.requests; + +import com.oracle.bmc.mysql.model.*; +/** + * Example: Click here to see how to use UpdateBlueGreenDeploymentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class UpdateBlueGreenDeploymentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails> { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + public String getBlueGreenDeploymentId() { + return blueGreenDeploymentId; + } + /** + * Details for updating mutable metadata on a blue/green deployment. + */ + private com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + updateBlueGreenDeploymentDetails; + + /** + * Details for updating mutable metadata on a blue/green deployment. + */ + public com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + getUpdateBlueGreenDeploymentDetails() { + return updateBlueGreenDeploymentDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails getBody$() { + return updateBlueGreenDeploymentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateBlueGreenDeploymentRequest, + com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + */ + private String blueGreenDeploymentId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the blue/green deployment. + * @param blueGreenDeploymentId the value to set + * @return this builder instance + */ + public Builder blueGreenDeploymentId(String blueGreenDeploymentId) { + this.blueGreenDeploymentId = blueGreenDeploymentId; + return this; + } + + /** + * Details for updating mutable metadata on a blue/green deployment. + */ + private com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + updateBlueGreenDeploymentDetails = null; + + /** + * Details for updating mutable metadata on a blue/green deployment. + * @param updateBlueGreenDeploymentDetails the value to set + * @return this builder instance + */ + public Builder updateBlueGreenDeploymentDetails( + com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails + updateBlueGreenDeploymentDetails) { + this.updateBlueGreenDeploymentDetails = updateBlueGreenDeploymentDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a + * resource, set the {@code If-Match} header to the value of the etag from a + * previous GET or POST response for that resource. The resource will be + * updated or deleted only if the etag you provide matches the resource's + * current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + */ + private String opcRequestId = null; + + /** + * Customer-defined unique identifier for the request. If you need to + * contact Oracle about a specific request, please provide the request + * ID that you supplied in this header with the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateBlueGreenDeploymentRequest o) { + blueGreenDeploymentId(o.getBlueGreenDeploymentId()); + updateBlueGreenDeploymentDetails(o.getUpdateBlueGreenDeploymentDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateBlueGreenDeploymentRequest + */ + public UpdateBlueGreenDeploymentRequest build() { + UpdateBlueGreenDeploymentRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.mysql.model.UpdateBlueGreenDeploymentDetails body) { + updateBlueGreenDeploymentDetails(body); + return this; + } + + /** + * Build the instance of UpdateBlueGreenDeploymentRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateBlueGreenDeploymentRequest + */ + public UpdateBlueGreenDeploymentRequest buildWithoutInvocationCallback() { + UpdateBlueGreenDeploymentRequest request = new UpdateBlueGreenDeploymentRequest(); + request.blueGreenDeploymentId = blueGreenDeploymentId; + request.updateBlueGreenDeploymentDetails = updateBlueGreenDeploymentDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateBlueGreenDeploymentRequest(blueGreenDeploymentId, updateBlueGreenDeploymentDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .blueGreenDeploymentId(blueGreenDeploymentId) + .updateBlueGreenDeploymentDetails(updateBlueGreenDeploymentDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",blueGreenDeploymentId=").append(String.valueOf(this.blueGreenDeploymentId)); + sb.append(",updateBlueGreenDeploymentDetails=") + .append(String.valueOf(this.updateBlueGreenDeploymentDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateBlueGreenDeploymentRequest)) { + return false; + } + + UpdateBlueGreenDeploymentRequest other = (UpdateBlueGreenDeploymentRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.blueGreenDeploymentId, other.blueGreenDeploymentId) + && java.util.Objects.equals( + this.updateBlueGreenDeploymentDetails, + other.updateBlueGreenDeploymentDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.blueGreenDeploymentId == null + ? 43 + : this.blueGreenDeploymentId.hashCode()); + result = + (result * PRIME) + + (this.updateBlueGreenDeploymentDetails == null + ? 43 + : this.updateBlueGreenDeploymentDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java similarity index 83% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.java index 6095d6860cf..48126355bae 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ChangeBlueGreenDeploymentCompartmentResponse.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.mysql.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDatabaseCompartmentResponse +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ChangeBlueGreenDeploymentCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact @@ -27,13 +27,13 @@ public String getOpcRequestId() { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ @@ -47,7 +47,7 @@ public String getOpcWorkRequestId() { "opcRequestId", "opcWorkRequestId" }) - private ChangeDistributedDatabaseCompartmentResponse( + private ChangeBlueGreenDeploymentCompartmentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, @@ -92,13 +92,13 @@ public Builder opcRequestId(String opcRequestId) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @param opcWorkRequestId the value to set * @return this builder @@ -112,7 +112,7 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ChangeDistributedDatabaseCompartmentResponse o) { + public Builder copy(ChangeBlueGreenDeploymentCompartmentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); @@ -125,8 +125,8 @@ public Builder copy(ChangeDistributedDatabaseCompartmentResponse o) { * Build the response object. * @return the response object */ - public ChangeDistributedDatabaseCompartmentResponse build() { - return new ChangeDistributedDatabaseCompartmentResponse( + public ChangeBlueGreenDeploymentCompartmentResponse build() { + return new ChangeBlueGreenDeploymentCompartmentResponse( __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -155,12 +155,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDatabaseCompartmentResponse)) { + if (!(o instanceof ChangeBlueGreenDeploymentCompartmentResponse)) { return false; } - ChangeDistributedDatabaseCompartmentResponse other = - (ChangeDistributedDatabaseCompartmentResponse) o; + ChangeBlueGreenDeploymentCompartmentResponse other = + (ChangeBlueGreenDeploymentCompartmentResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java similarity index 73% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.java index 5b0220030dc..b5c7c8c53b9 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CreateBlueGreenDeploymentResponse.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.responses; +package com.oracle.bmc.mysql.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CreateBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcWorkRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * * @return the value */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; + public String getEtag() { + return etag; } /** @@ -41,54 +41,53 @@ public String getOpcRequestId() { } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String etag; + private String opcWorkRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ - public String getEtag() { - return etag; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } /** - * The returned DistributedDatabase instance. + * The returned BlueGreenDeployment instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; /** - * The returned DistributedDatabase instance. + * The returned BlueGreenDeployment instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; + public com.oracle.bmc.mysql.model.BlueGreenDeployment getBlueGreenDeployment() { + return blueGreenDeployment; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcWorkRequestId", - "opcRequestId", "etag", - "distributedDatabase" + "opcRequestId", + "opcWorkRequestId", + "blueGreenDeployment" }) - private CreateDistributedDatabaseResponse( + private CreateBlueGreenDeploymentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabase = distributedDatabase; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.blueGreenDeployment = blueGreenDeployment; } public static class Builder { @@ -107,19 +106,19 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcWorkRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * - * @param opcWorkRequestId the value to set + * @param etag the value to set * @return this builder */ - public Builder opcWorkRequestId(String opcWorkRequestId) { - this.opcWorkRequestId = opcWorkRequestId; + public Builder etag(String etag) { + this.etag = etag; return this; } @@ -143,36 +142,35 @@ public Builder opcRequestId(String opcRequestId) { } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String etag; + private String opcWorkRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * - * @param etag the value to set + * @param opcWorkRequestId the value to set * @return this builder */ - public Builder etag(String etag) { - this.etag = etag; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } /** - * The returned DistributedDatabase instance. + * The returned BlueGreenDeployment instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; /** - * The returned DistributedDatabase instance. - * @param distributedDatabase the value to set + * The returned BlueGreenDeployment instance. + * @param blueGreenDeployment the value to set * @return this builder */ - public Builder distributedDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - distributedDatabase) { - this.distributedDatabase = distributedDatabase; + public Builder blueGreenDeployment( + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + this.blueGreenDeployment = blueGreenDeployment; return this; } @@ -180,13 +178,13 @@ public Builder distributedDatabase( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(CreateDistributedDatabaseResponse o) { + public Builder copy(CreateBlueGreenDeploymentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + blueGreenDeployment(o.getBlueGreenDeployment()); return this; } @@ -195,14 +193,14 @@ public Builder copy(CreateDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public CreateDistributedDatabaseResponse build() { - return new CreateDistributedDatabaseResponse( + public CreateBlueGreenDeploymentResponse build() { + return new CreateBlueGreenDeploymentResponse( __httpStatusCode__, headers, - opcWorkRequestId, - opcRequestId, etag, - distributedDatabase); + opcRequestId, + opcWorkRequestId, + blueGreenDeployment); } } @@ -219,10 +217,10 @@ 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",blueGreenDeployment=").append(String.valueOf(blueGreenDeployment)); sb.append(")"); return sb.toString(); } @@ -232,32 +230,32 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabaseResponse)) { + if (!(o instanceof CreateBlueGreenDeploymentResponse)) { return false; } - CreateDistributedDatabaseResponse other = (CreateDistributedDatabaseResponse) o; + CreateBlueGreenDeploymentResponse other = (CreateBlueGreenDeploymentResponse) 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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.blueGreenDeployment, other.blueGreenDeployment); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabase == null + + (this.blueGreenDeployment == null ? 43 - : this.distributedDatabase.hashCode()); + : this.blueGreenDeployment.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java similarity index 82% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.java index 35f18346f72..130fad7ac2b 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/DeleteBlueGreenDeploymentResponse.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.mysql.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDatabaseCompartmentResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class DeleteBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -27,13 +26,13 @@ public String getOpcRequestId() { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ @@ -47,7 +46,7 @@ public String getOpcWorkRequestId() { "opcRequestId", "opcWorkRequestId" }) - private ChangeDistributedAutonomousDatabaseCompartmentResponse( + private DeleteBlueGreenDeploymentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, @@ -92,13 +91,13 @@ public Builder opcRequestId(String opcRequestId) { } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @param opcWorkRequestId the value to set * @return this builder @@ -112,7 +111,7 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentResponse o) { + public Builder copy(DeleteBlueGreenDeploymentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); @@ -125,8 +124,8 @@ public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentResponse o) { * Build the response object. * @return the response object */ - public ChangeDistributedAutonomousDatabaseCompartmentResponse build() { - return new ChangeDistributedAutonomousDatabaseCompartmentResponse( + public DeleteBlueGreenDeploymentResponse build() { + return new DeleteBlueGreenDeploymentResponse( __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -155,12 +154,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentResponse)) { + if (!(o instanceof DeleteBlueGreenDeploymentResponse)) { return false; } - ChangeDistributedAutonomousDatabaseCompartmentResponse other = - (ChangeDistributedAutonomousDatabaseCompartmentResponse) o; + DeleteBlueGreenDeploymentResponse other = (DeleteBlueGreenDeploymentResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java similarity index 56% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java index 8ae2b00efcc..805a908bf07 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/GetBlueGreenDeploymentResponse.java @@ -2,30 +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.distributeddatabase.responses; +package com.oracle.bmc.mysql.responses; -import com.oracle.bmc.distributeddatabase.model.*; - -@javax.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; - } +import com.oracle.bmc.mysql.model.*; +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class GetBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { /** * For optimistic concurrency control. See {@code if-match}. * @@ -42,67 +24,74 @@ public String getEtag() { } /** - * Size of the file. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * */ - private Long contentLength; + private String opcRequestId; /** - * Size of the file. + * 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 Long getContentLength() { - return contentLength; + public String getOpcRequestId() { + return opcRequestId; } /** - * The date and time the certificate signing request was created. + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. */ - private java.util.Date lastModified; + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; /** - * The date and time the certificate signing request was created. + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. * @return the value */ - public java.util.Date getLastModified() { - return lastModified; + public com.oracle.bmc.mysql.model.BlueGreenDeployment getBlueGreenDeployment() { + return blueGreenDeployment; } /** - * The returned java.io.InputStream instance. + * Flag to indicate whether or not the object was modified. If this is true, + * the getter for the object itself will return null. Callers should check this + * if they specified one of the request params that might result in a conditional + * response (like 'if-match'/'if-none-match'). */ - private java.io.InputStream inputStream; + private boolean isNotModified; /** - * The returned java.io.InputStream instance. - * @return the value + * Flag to indicate whether or not the object was modified. If this is true, + * the getter for the object itself will return null. Callers should check this + * if they specified one of the request params that might result in a conditional + * response (like 'if-match'/'if-none-match'). + * @param true if the object was not modified */ - public java.io.InputStream getInputStream() { - return inputStream; + public boolean isNotModified() { + return isNotModified; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcRequestId", "etag", - "contentLength", - "lastModified", - "inputStream" + "opcRequestId", + "blueGreenDeployment", + "isNotModified" }) - private DownloadDistributedDatabaseGsmCertificateSigningRequestResponse( + private GetBlueGreenDeploymentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, String etag, - Long contentLength, - java.util.Date lastModified, - java.io.InputStream inputStream) { + String opcRequestId, + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment, + boolean isNotModified) { super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; this.etag = etag; - this.contentLength = contentLength; - this.lastModified = lastModified; - this.inputStream = inputStream; + this.opcRequestId = opcRequestId; + this.blueGreenDeployment = blueGreenDeployment; + this.isNotModified = isNotModified; } public static class Builder { @@ -120,25 +109,6 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap 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}. * @@ -157,47 +127,57 @@ public Builder etag(String etag) { } /** - * Size of the file. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * */ - private Long contentLength; + private String opcRequestId; /** - * Size of the file. - * @param contentLength the value to set + * 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 contentLength(Long contentLength) { - this.contentLength = contentLength; + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; return this; } /** - * The date and time the certificate signing request was created. + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. */ - private java.util.Date lastModified; + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; /** - * The date and time the certificate signing request was created. - * @param lastModified the value to set + * The returned BlueGreenDeployment instance, or null if {@link #isNotModified()} is true. + * @param blueGreenDeployment the value to set * @return this builder */ - public Builder lastModified(java.util.Date lastModified) { - this.lastModified = lastModified; + public Builder blueGreenDeployment( + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + this.blueGreenDeployment = blueGreenDeployment; return this; } /** - * The returned java.io.InputStream instance. + * Flag to indicate whether or not the object was modified. If this is true, + * the getter for the object itself will return null. Callers should check this + * if they specified one of the request params that might result in a conditional + * response (like 'if-match'/'if-none-match'). */ - private java.io.InputStream inputStream; + private boolean isNotModified; /** - * The returned java.io.InputStream instance. - * @param inputStream the value to set - * @return this builder + * Flag to indicate whether or not the object was modified. If this is true, + * the getter for the object itself will return null. Callers should check this + * if they specified one of the request params that might result in a conditional + * response (like 'if-match'/'if-none-match'). + * @param true if the object was not modified */ - public Builder inputStream(java.io.InputStream inputStream) { - this.inputStream = inputStream; + public Builder isNotModified(boolean isNotModified) { + this.isNotModified = isNotModified; return this; } @@ -205,15 +185,13 @@ public Builder inputStream(java.io.InputStream inputStream) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(DownloadDistributedDatabaseGsmCertificateSigningRequestResponse o) { + public Builder copy(GetBlueGreenDeploymentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - contentLength(o.getContentLength()); - lastModified(o.getLastModified()); - inputStream(o.getInputStream()); - + opcRequestId(o.getOpcRequestId()); + blueGreenDeployment(o.getBlueGreenDeployment()); + isNotModified(o.isNotModified()); return this; } @@ -221,15 +199,14 @@ public Builder copy(DownloadDistributedDatabaseGsmCertificateSigningRequestRespo * Build the response object. * @return the response object */ - public DownloadDistributedDatabaseGsmCertificateSigningRequestResponse build() { - return new DownloadDistributedDatabaseGsmCertificateSigningRequestResponse( + public GetBlueGreenDeploymentResponse build() { + return new GetBlueGreenDeploymentResponse( __httpStatusCode__, headers, - opcRequestId, etag, - contentLength, - lastModified, - inputStream); + opcRequestId, + blueGreenDeployment, + isNotModified); } } @@ -246,11 +223,10 @@ 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",blueGreenDeployment=").append(String.valueOf(blueGreenDeployment)); + sb.append(",isNotModified=").append(isNotModified); sb.append(")"); return sb.toString(); } @@ -260,31 +236,30 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DownloadDistributedDatabaseGsmCertificateSigningRequestResponse)) { + if (!(o instanceof GetBlueGreenDeploymentResponse)) { return false; } - DownloadDistributedDatabaseGsmCertificateSigningRequestResponse other = - (DownloadDistributedDatabaseGsmCertificateSigningRequestResponse) o; + GetBlueGreenDeploymentResponse other = (GetBlueGreenDeploymentResponse) 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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.blueGreenDeployment, other.blueGreenDeployment) + && this.isNotModified == other.isNotModified; } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.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.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()); + + (this.blueGreenDeployment == null + ? 43 + : this.blueGreenDeployment.hashCode()); + result = (result * PRIME) + (this.isNotModified ? 79 : 97); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java similarity index 73% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.java index 99964747822..7046351546a 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/ListBlueGreenDeploymentsResponse.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.mysql.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class ListBlueGreenDeploymentsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -45,18 +45,17 @@ public String getOpcNextPage() { } /** - * The returned DistributedDatabaseCollection instance. + * The returned BlueGreenDeploymentCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection; + private com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection blueGreenDeploymentCollection; /** - * The returned DistributedDatabaseCollection instance. + * The returned BlueGreenDeploymentCollection instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - getDistributedDatabaseCollection() { - return distributedDatabaseCollection; + public com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + getBlueGreenDeploymentCollection() { + return blueGreenDeploymentCollection; } @java.beans.ConstructorProperties({ @@ -64,19 +63,19 @@ public String getOpcNextPage() { "headers", "opcRequestId", "opcNextPage", - "distributedDatabaseCollection" + "blueGreenDeploymentCollection" }) - private ListDistributedDatabasesResponse( + private ListBlueGreenDeploymentsResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection) { + com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + blueGreenDeploymentCollection) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.opcNextPage = opcNextPage; - this.distributedDatabaseCollection = distributedDatabaseCollection; + this.blueGreenDeploymentCollection = blueGreenDeploymentCollection; } public static class Builder { @@ -135,20 +134,20 @@ public Builder opcNextPage(String opcNextPage) { } /** - * The returned DistributedDatabaseCollection instance. + * The returned BlueGreenDeploymentCollection instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection; + private com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + blueGreenDeploymentCollection; /** - * The returned DistributedDatabaseCollection instance. - * @param distributedDatabaseCollection the value to set + * The returned BlueGreenDeploymentCollection instance. + * @param blueGreenDeploymentCollection the value to set * @return this builder */ - public Builder distributedDatabaseCollection( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection) { - this.distributedDatabaseCollection = distributedDatabaseCollection; + public Builder blueGreenDeploymentCollection( + com.oracle.bmc.mysql.model.BlueGreenDeploymentCollection + blueGreenDeploymentCollection) { + this.blueGreenDeploymentCollection = blueGreenDeploymentCollection; return this; } @@ -156,12 +155,12 @@ public Builder distributedDatabaseCollection( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ListDistributedDatabasesResponse o) { + public Builder copy(ListBlueGreenDeploymentsResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); opcNextPage(o.getOpcNextPage()); - distributedDatabaseCollection(o.getDistributedDatabaseCollection()); + blueGreenDeploymentCollection(o.getBlueGreenDeploymentCollection()); return this; } @@ -170,13 +169,13 @@ public Builder copy(ListDistributedDatabasesResponse o) { * Build the response object. * @return the response object */ - public ListDistributedDatabasesResponse build() { - return new ListDistributedDatabasesResponse( + public ListBlueGreenDeploymentsResponse build() { + return new ListBlueGreenDeploymentsResponse( __httpStatusCode__, headers, opcRequestId, opcNextPage, - distributedDatabaseCollection); + blueGreenDeploymentCollection); } } @@ -195,8 +194,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(",blueGreenDeploymentCollection=") + .append(String.valueOf(blueGreenDeploymentCollection)); sb.append(")"); return sb.toString(); } @@ -206,16 +205,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ListDistributedDatabasesResponse)) { + if (!(o instanceof ListBlueGreenDeploymentsResponse)) { return false; } - ListDistributedDatabasesResponse other = (ListDistributedDatabasesResponse) o; + ListBlueGreenDeploymentsResponse other = (ListBlueGreenDeploymentsResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) && java.util.Objects.equals( - this.distributedDatabaseCollection, other.distributedDatabaseCollection); + this.blueGreenDeploymentCollection, other.blueGreenDeploymentCollection); } @Override @@ -226,9 +225,9 @@ public int hashCode() { result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); result = (result * PRIME) - + (this.distributedDatabaseCollection == null + + (this.blueGreenDeploymentCollection == null ? 43 - : this.distributedDatabaseCollection.hashCode()); + : this.blueGreenDeploymentCollection.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java similarity index 69% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.java index ef2e559a69f..8354a75570f 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/SwitchoverBlueGreenDeploymentResponse.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.responses; +package com.oracle.bmc.mysql.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class SwitchoverBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcWorkRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * * @return the value */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; + public String getEtag() { + return etag; } /** @@ -42,56 +41,53 @@ public String getOpcRequestId() { } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String etag; + private String opcWorkRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ - public String getEtag() { - return etag; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } /** - * The returned DistributedAutonomousDatabase instance. + * The returned BlueGreenDeployment instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; /** - * The returned DistributedAutonomousDatabase instance. + * The returned BlueGreenDeployment instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; + public com.oracle.bmc.mysql.model.BlueGreenDeployment getBlueGreenDeployment() { + return blueGreenDeployment; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcWorkRequestId", - "opcRequestId", "etag", - "distributedAutonomousDatabase" + "opcRequestId", + "opcWorkRequestId", + "blueGreenDeployment" }) - private CreateDistributedAutonomousDatabaseResponse( + private SwitchoverBlueGreenDeploymentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { + String opcRequestId, + String opcWorkRequestId, + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + this.blueGreenDeployment = blueGreenDeployment; } public static class Builder { @@ -110,19 +106,19 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcWorkRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * For optimistic concurrency control. See {@code if-match}. * - * @param opcWorkRequestId the value to set + * @param etag the value to set * @return this builder */ - public Builder opcWorkRequestId(String opcWorkRequestId) { - this.opcWorkRequestId = opcWorkRequestId; + public Builder etag(String etag) { + this.etag = etag; return this; } @@ -146,37 +142,35 @@ public Builder opcRequestId(String opcRequestId) { } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String etag; + private String opcWorkRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * - * @param etag the value to set + * @param opcWorkRequestId the value to set * @return this builder */ - public Builder etag(String etag) { - this.etag = etag; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } /** - * The returned DistributedAutonomousDatabase instance. + * The returned BlueGreenDeployment instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; + private com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment; /** - * The returned DistributedAutonomousDatabase instance. - * @param distributedAutonomousDatabase the value to set + * The returned BlueGreenDeployment instance. + * @param blueGreenDeployment the value to set * @return this builder */ - public Builder distributedAutonomousDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - this.distributedAutonomousDatabase = distributedAutonomousDatabase; + public Builder blueGreenDeployment( + com.oracle.bmc.mysql.model.BlueGreenDeployment blueGreenDeployment) { + this.blueGreenDeployment = blueGreenDeployment; return this; } @@ -184,13 +178,13 @@ public Builder distributedAutonomousDatabase( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(CreateDistributedAutonomousDatabaseResponse o) { + public Builder copy(SwitchoverBlueGreenDeploymentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + blueGreenDeployment(o.getBlueGreenDeployment()); return this; } @@ -199,14 +193,14 @@ public Builder copy(CreateDistributedAutonomousDatabaseResponse o) { * Build the response object. * @return the response object */ - public CreateDistributedAutonomousDatabaseResponse build() { - return new CreateDistributedAutonomousDatabaseResponse( + public SwitchoverBlueGreenDeploymentResponse build() { + return new SwitchoverBlueGreenDeploymentResponse( __httpStatusCode__, headers, - opcWorkRequestId, - opcRequestId, etag, - distributedAutonomousDatabase); + opcRequestId, + opcWorkRequestId, + blueGreenDeployment); } } @@ -223,11 +217,10 @@ 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(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",blueGreenDeployment=").append(String.valueOf(blueGreenDeployment)); sb.append(")"); return sb.toString(); } @@ -237,34 +230,32 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedAutonomousDatabaseResponse)) { + if (!(o instanceof SwitchoverBlueGreenDeploymentResponse)) { return false; } - CreateDistributedAutonomousDatabaseResponse other = - (CreateDistributedAutonomousDatabaseResponse) o; + SwitchoverBlueGreenDeploymentResponse other = (SwitchoverBlueGreenDeploymentResponse) 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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.blueGreenDeployment, other.blueGreenDeployment); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabase == null + + (this.blueGreenDeployment == null ? 43 - : this.distributedAutonomousDatabase.hashCode()); + : this.blueGreenDeployment.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java similarity index 79% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java index 0af546f682d..f77687a9295 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/UpdateBlueGreenDeploymentResponse.java @@ -2,58 +2,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.distributeddatabasev26.responses; +package com.oracle.bmc.mysql.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.mysql.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class UpdateBlueGreenDeploymentResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - private String opcWorkRequestId; + private String opcRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * 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 getOpcWorkRequestId() { - return opcWorkRequestId; + 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. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String opcRequestId; + private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ - public String getOpcRequestId() { - return opcRequestId; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", - "opcWorkRequestId", - "opcRequestId" + "opcRequestId", + "opcWorkRequestId" }) - private ChangeDistributedDbBackupConfigResponse( + private UpdateBlueGreenDeploymentResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { + String opcRequestId, + String opcWorkRequestId) { super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; } public static class Builder { @@ -72,38 +72,38 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * */ - private String opcWorkRequestId; + private String opcRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. * - * @param opcWorkRequestId the value to set + * @param opcRequestId the value to set * @return this builder */ - public Builder opcWorkRequestId(String opcWorkRequestId) { - this.opcWorkRequestId = opcWorkRequestId; + 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. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ - private String opcRequestId; + private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * - * @param opcRequestId the value to set + * @param opcWorkRequestId the value to set * @return this builder */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; return this; } @@ -111,11 +111,11 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(ChangeDistributedDbBackupConfigResponse o) { + public Builder copy(UpdateBlueGreenDeploymentResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); return this; } @@ -124,9 +124,9 @@ public Builder copy(ChangeDistributedDbBackupConfigResponse o) { * Build the response object. * @return the response object */ - public ChangeDistributedDbBackupConfigResponse build() { - return new ChangeDistributedDbBackupConfigResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + public UpdateBlueGreenDeploymentResponse build() { + return new UpdateBlueGreenDeploymentResponse( + __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); } } @@ -143,8 +143,8 @@ 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(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(")"); return sb.toString(); } @@ -154,24 +154,24 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeDistributedDbBackupConfigResponse)) { + if (!(o instanceof UpdateBlueGreenDeploymentResponse)) { return false; } - ChangeDistributedDbBackupConfigResponse other = (ChangeDistributedDbBackupConfigResponse) o; + UpdateBlueGreenDeploymentResponse other = (UpdateBlueGreenDeploymentResponse) 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.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()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } } diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 2d770c62f5d..182294e51d4 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-networkfirewall @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 71891365ff5..d1cafa50eee 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index f374a65baa6..0027879f9d9 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-nosql @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index c3f2a129aff..4464b55b7e2 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 - 2.97.0 + 2.98.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 2.97.0 + 2.98.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index e424272d511..2b4314cf2f1 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 - 2.97.0 + 2.98.0 ../pom.xml @@ -28,12 +28,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 2.97.0 + 2.98.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index ae1683323ac..a820a2b362a 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 - 2.97.0 + 2.98.0 ../pom.xml @@ -20,7 +20,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index ee549493f97..823d619408a 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index f4c91b03a86..12fa10de57f 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-oce @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 700dac635b2..046fcce13d7 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 3276826354a..292f4a9d041 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-ocvp @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java index 1d1ef120153..587726e5ee1 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java @@ -97,6 +97,19 @@ public interface Cluster extends AutoCloseable { */ DeleteClusterResponse deleteCluster(DeleteClusterRequest request); + /** + * Generates report for how ESXi hosts are distributed across Fault Domains. + * @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 GenerateHostDistributionReport API. + */ + GenerateHostDistributionReportResponse generateHostDistributionReport( + GenerateHostDistributionReportRequest request); + /** * Gets the specified Cluster's information. * @param request The request object containing the details to send diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java index 475c6938b46..c66a6e2f869 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java @@ -102,6 +102,24 @@ java.util.concurrent.Future deleteCluster( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Generates report for how ESXi hosts are distributed across Fault Domains. + * + * @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 + generateHostDistributionReport( + GenerateHostDistributionReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateHostDistributionReportRequest, + GenerateHostDistributionReportResponse> + handler); + /** * Gets the specified Cluster's information. * diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java index d747ccefdae..caf46bc5822 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java @@ -563,6 +563,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + generateHostDistributionReport( + GenerateHostDistributionReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateHostDistributionReportRequest, + GenerateHostDistributionReportResponse> + handler) { + LOG.trace("Called async generateHostDistributionReport"); + final GenerateHostDistributionReportRequest interceptedRequest = + GenerateHostDistributionReportConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateHostDistributionReportConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Cluster", + "GenerateHostDistributionReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/GenerateHostDistributionReport"); + final java.util.function.Function< + javax.ws.rs.core.Response, GenerateHostDistributionReportResponse> + transformer = + GenerateHostDistributionReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateHostDistributionReportRequest, + GenerateHostDistributionReportResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateHostDistributionReportRequest, + GenerateHostDistributionReportResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateHostDistributionReportRequest, GenerateHostDistributionReportResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getCluster( GetClusterRequest request, diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java index f053862a5c0..be705c00f08 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java @@ -634,6 +634,47 @@ public DeleteClusterResponse deleteCluster(DeleteClusterRequest request) { }); } + @Override + public GenerateHostDistributionReportResponse generateHostDistributionReport( + GenerateHostDistributionReportRequest request) { + LOG.trace("Called generateHostDistributionReport"); + final GenerateHostDistributionReportRequest interceptedRequest = + GenerateHostDistributionReportConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateHostDistributionReportConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Cluster", + "GenerateHostDistributionReport", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/GenerateHostDistributionReport"); + java.util.function.Function< + javax.ws.rs.core.Response, GenerateHostDistributionReportResponse> + transformer = + GenerateHostDistributionReportConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetClusterResponse getCluster(GetClusterRequest request) { LOG.trace("Called getCluster"); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java index 0de45ae6512..e8b20c994e2 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java @@ -142,6 +142,20 @@ public interface Sddc extends AutoCloseable { */ DowngradeHcxResponse downgradeHcx(DowngradeHcxRequest request); + /** + * Generate the VMware binary download information. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GenerateVmwareBinaryDownloadInfo API. + */ + GenerateVmwareBinaryDownloadInfoResponse generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request); + /** * Gets the specified SDDC's information. * @param request The request object containing the details to send @@ -235,6 +249,19 @@ ListSupportedVmwareSoftwareVersionsResponse listSupportedVmwareSoftwareVersions( */ RetrievePasswordResponse retrievePassword(RetrievePasswordRequest request); + /** + * Retrieve the list of available VMware binaries for the SDDC. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use RetrieveVmwareBinaries API. + */ + RetrieveVmwareBinariesResponse retrieveVmwareBinaries(RetrieveVmwareBinariesRequest request); + /** * Updates the specified SDDC. *

        diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java index 224c773ba33..badbaeef8f6 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java @@ -156,6 +156,25 @@ java.util.concurrent.Future downgradeHcx( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Generate the VMware binary download information. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse> + handler); + /** * Gets the specified SDDC's information. * @@ -272,6 +291,23 @@ java.util.concurrent.Future retrievePassword( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Retrieve the list of available VMware binaries for the SDDC. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future retrieveVmwareBinaries( + RetrieveVmwareBinariesRequest request, + com.oracle.bmc.responses.AsyncHandler< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse> + handler); + /** * Updates the specified SDDC. *

        diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java index c893071c6d9..b6aa6eac059 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java @@ -711,6 +711,65 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse> + handler) { + LOG.trace("Called async generateVmwareBinaryDownloadInfo"); + final GenerateVmwareBinaryDownloadInfoRequest interceptedRequest = + GenerateVmwareBinaryDownloadInfoConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateVmwareBinaryDownloadInfoConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Sddc", + "GenerateVmwareBinaryDownloadInfo", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GenerateVmwareBinaryDownloadInfo"); + final java.util.function.Function< + javax.ws.rs.core.Response, GenerateVmwareBinaryDownloadInfoResponse> + transformer = + GenerateVmwareBinaryDownloadInfoConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getGenerateVmwareBinaryDownloadInfoDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GenerateVmwareBinaryDownloadInfoRequest, + GenerateVmwareBinaryDownloadInfoResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getSddc( GetSddcRequest request, @@ -1039,6 +1098,54 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future retrieveVmwareBinaries( + RetrieveVmwareBinariesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse> + handler) { + LOG.trace("Called async retrieveVmwareBinaries"); + final RetrieveVmwareBinariesRequest interceptedRequest = + RetrieveVmwareBinariesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RetrieveVmwareBinariesConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Sddc", + "RetrieveVmwareBinaries", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrieveVmwareBinaries"); + final java.util.function.Function + transformer = + RetrieveVmwareBinariesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + RetrieveVmwareBinariesRequest, RetrieveVmwareBinariesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateSddc( UpdateSddcRequest request, diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java index 899e90a96b1..29dbfa67267 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java @@ -753,6 +753,51 @@ public DowngradeHcxResponse downgradeHcx(DowngradeHcxRequest request) { }); } + @Override + public GenerateVmwareBinaryDownloadInfoResponse generateVmwareBinaryDownloadInfo( + GenerateVmwareBinaryDownloadInfoRequest request) { + LOG.trace("Called generateVmwareBinaryDownloadInfo"); + final GenerateVmwareBinaryDownloadInfoRequest interceptedRequest = + GenerateVmwareBinaryDownloadInfoConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GenerateVmwareBinaryDownloadInfoConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Sddc", + "GenerateVmwareBinaryDownloadInfo", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GenerateVmwareBinaryDownloadInfo"); + java.util.function.Function< + javax.ws.rs.core.Response, GenerateVmwareBinaryDownloadInfoResponse> + transformer = + GenerateVmwareBinaryDownloadInfoConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getGenerateVmwareBinaryDownloadInfoDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetSddcResponse getSddc(GetSddcRequest request) { LOG.trace("Called getSddc"); @@ -1016,6 +1061,46 @@ public RetrievePasswordResponse retrievePassword(RetrievePasswordRequest request }); } + @Override + public RetrieveVmwareBinariesResponse retrieveVmwareBinaries( + RetrieveVmwareBinariesRequest request) { + LOG.trace("Called retrieveVmwareBinaries"); + final RetrieveVmwareBinariesRequest interceptedRequest = + RetrieveVmwareBinariesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + RetrieveVmwareBinariesConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "Sddc", + "RetrieveVmwareBinaries", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrieveVmwareBinaries"); + java.util.function.Function + transformer = + RetrieveVmwareBinariesConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateSddcResponse updateSddc(UpdateSddcRequest request) { LOG.trace("Called updateSddc"); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateHostDistributionReportConverter.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateHostDistributionReportConverter.java new file mode 100644 index 00000000000..3f67584a461 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateHostDistributionReportConverter.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.ocvp.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.ocvp.model.*; +import com.oracle.bmc.ocvp.requests.*; +import com.oracle.bmc.ocvp.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateHostDistributionReportConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GenerateHostDistributionReportConverter.class); + + public static com.oracle.bmc.ocvp.requests.GenerateHostDistributionReportRequest + interceptRequest( + com.oracle.bmc.ocvp.requests.GenerateHostDistributionReportRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.ocvp.requests.GenerateHostDistributionReportRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getClusterId(), "clusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230701") + .path("clusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getClusterId())) + .path("actions") + .path("generateHostDistributionReport"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.GenerateHostDistributionReportResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.GenerateHostDistributionReportResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.GenerateHostDistributionReportResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses + .GenerateHostDistributionReportResponse>() { + @Override + public com.oracle.bmc.ocvp.responses + .GenerateHostDistributionReportResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.ocvp.responses.GenerateHostDistributionReportResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.ocvp.model + .HostDistributionReportDetails>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.ocvp.model + .HostDistributionReportDetails + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.ocvp.model + .HostDistributionReportDetails + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.ocvp.model + .HostDistributionReportDetails> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.ocvp.responses.GenerateHostDistributionReportResponse + .Builder + builder = + com.oracle.bmc.ocvp.responses + .GenerateHostDistributionReportResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.hostDistributionReportDetails(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.ocvp.responses.GenerateHostDistributionReportResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateVmwareBinaryDownloadInfoConverter.java similarity index 61% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java rename to bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateVmwareBinaryDownloadInfoConverter.java index bece5354522..5daeeeaf00d 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/GenerateVmwareBinaryDownloadInfoConverter.java @@ -2,52 +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.internal.http; +package com.oracle.bmc.ocvp.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.ocvp.model.*; +import com.oracle.bmc.ocvp.requests.*; +import com.oracle.bmc.ocvp.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRaftMetricConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateVmwareBinaryDownloadInfoConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GetDistributedAutonomousDatabaseRaftMetricConverter.class); + org.slf4j.LoggerFactory.getLogger(GenerateVmwareBinaryDownloadInfoConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRaftMetricRequest + public static com.oracle.bmc.ocvp.requests.GenerateVmwareBinaryDownloadInfoRequest interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRaftMetricRequest - request) { + com.oracle.bmc.ocvp.requests.GenerateVmwareBinaryDownloadInfoRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRaftMetricRequest - request) { + com.oracle.bmc.ocvp.requests.GenerateVmwareBinaryDownloadInfoRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); + Validate.notBlank(request.getSddcId(), "sddcId must not be blank"); + Validate.notNull( + request.getGenerateVmwareBinaryDownloadInfoDetails(), + "generateVmwareBinaryDownloadInfoDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") + .path("/20230701") + .path("sddcs") .path( com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("raftMetrics"); + request.getSddcId())) + .path("actions") + .path("generateVmwareBinaryDownloadInfo"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -57,6 +53,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-request-id", request.getOpcRequestId()); } + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (client.getClientConfigurator() != null) { client.getClientConfigurator().customizeRequest(request, ib); } @@ -65,71 +65,66 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse> + com.oracle.bmc.ocvp.responses.GenerateVmwareBinaryDownloadInfoResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse> + com.oracle.bmc.ocvp.responses.GenerateVmwareBinaryDownloadInfoResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse> + com.oracle.bmc.ocvp.responses.GenerateVmwareBinaryDownloadInfoResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse>() { + com.oracle.bmc.ocvp.responses + .GenerateVmwareBinaryDownloadInfoResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse + public com.oracle.bmc.ocvp.responses + .GenerateVmwareBinaryDownloadInfoResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedAutonomousDatabaseRaftMetricResponse"); + "Transform function invoked for com.oracle.bmc.ocvp.responses.GenerateVmwareBinaryDownloadInfoResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric>> + com.oracle.bmc.ocvp.model + .VmwareBinaryDownloadInfo>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric + com.oracle.bmc.ocvp.model + .VmwareBinaryDownloadInfo .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric + com.oracle.bmc.ocvp.model + .VmwareBinaryDownloadInfo .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric> + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse - .Builder + com.oracle.bmc.ocvp.responses + .GenerateVmwareBinaryDownloadInfoResponse.Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse + com.oracle.bmc.ocvp.responses + .GenerateVmwareBinaryDownloadInfoResponse .builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedAutonomousDatabaseRaftMetric(response.getItem()); + builder.vmwareBinaryDownloadInfo(response.getItem()); java.util.Optional> opcRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -142,8 +137,8 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse + com.oracle.bmc.ocvp.responses + .GenerateVmwareBinaryDownloadInfoResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/RetrieveVmwareBinariesConverter.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/RetrieveVmwareBinariesConverter.java new file mode 100644 index 00000000000..7a4a3d1cf35 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/internal/http/RetrieveVmwareBinariesConverter.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.ocvp.model.*; +import com.oracle.bmc.ocvp.requests.*; +import com.oracle.bmc.ocvp.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class RetrieveVmwareBinariesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RetrieveVmwareBinariesConverter.class); + + public static com.oracle.bmc.ocvp.requests.RetrieveVmwareBinariesRequest interceptRequest( + com.oracle.bmc.ocvp.requests.RetrieveVmwareBinariesRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.ocvp.requests.RetrieveVmwareBinariesRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getSddcId(), "sddcId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20230701") + .path("sddcs") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getSddcId())) + .path("actions") + .path("retrieveVmwareBinaries"); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse>() { + @Override + public com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.ocvp.model + .VmwareBinaryCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.ocvp.model.VmwareBinaryCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.ocvp.model.VmwareBinaryCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.ocvp.model.VmwareBinaryCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse.Builder + builder = + com.oracle.bmc.ocvp.responses + .RetrieveVmwareBinariesResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.vmwareBinaryCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.ocvp.responses.RetrieveVmwareBinariesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java index 5893e89224d..6abc4be0921 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/Cluster.java @@ -53,6 +53,7 @@ public final class Cluster extends com.oracle.bmc.http.internal.ExplicitlySetBmc "datastores", "datastoreClusterIds", "vsphereType", + "initialFaultDomainHostDistribution", "clusterByolAllocationDetails", "initialVcfByolAllocationId", "freeformTags", @@ -84,6 +85,7 @@ public Cluster( java.util.List datastores, java.util.List datastoreClusterIds, VsphereTypes vsphereType, + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, ClusterByolAllocationDetails clusterByolAllocationDetails, String initialVcfByolAllocationId, java.util.Map freeformTags, @@ -114,6 +116,7 @@ public Cluster( this.datastores = datastores; this.datastoreClusterIds = datastoreClusterIds; this.vsphereType = vsphereType; + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.clusterByolAllocationDetails = clusterByolAllocationDetails; this.initialVcfByolAllocationId = initialVcfByolAllocationId; this.freeformTags = freeformTags; @@ -631,6 +634,25 @@ public Builder vsphereType(VsphereTypes vsphereType) { this.__explicitlySet__.add("vsphereType"); return this; } + /** + * The initial fault domain host distribution mode for the Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the Cluster. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("clusterByolAllocationDetails") private ClusterByolAllocationDetails clusterByolAllocationDetails; @@ -759,6 +781,7 @@ public Cluster build() { this.datastores, this.datastoreClusterIds, this.vsphereType, + this.initialFaultDomainHostDistribution, this.clusterByolAllocationDetails, this.initialVcfByolAllocationId, this.freeformTags, @@ -844,6 +867,10 @@ public Builder copy(Cluster model) { if (model.wasPropertyExplicitlySet("vsphereType")) { this.vsphereType(model.getVsphereType()); } + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("clusterByolAllocationDetails")) { this.clusterByolAllocationDetails(model.getClusterByolAllocationDetails()); } @@ -1333,6 +1360,22 @@ public VsphereTypes getVsphereType() { return vsphereType; } + /** + * The initial fault domain host distribution mode for the Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the Cluster. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + @com.fasterxml.jackson.annotation.JsonProperty("clusterByolAllocationDetails") private final ClusterByolAllocationDetails clusterByolAllocationDetails; @@ -1459,6 +1502,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", datastores=").append(String.valueOf(this.datastores)); sb.append(", datastoreClusterIds=").append(String.valueOf(this.datastoreClusterIds)); sb.append(", vsphereType=").append(String.valueOf(this.vsphereType)); + sb.append(", initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); sb.append(", clusterByolAllocationDetails=") .append(String.valueOf(this.clusterByolAllocationDetails)); sb.append(", initialVcfByolAllocationId=") @@ -1507,6 +1552,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.datastores, other.datastores) && java.util.Objects.equals(this.datastoreClusterIds, other.datastoreClusterIds) && java.util.Objects.equals(this.vsphereType, other.vsphereType) + && java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) && java.util.Objects.equals( this.clusterByolAllocationDetails, other.clusterByolAllocationDetails) && java.util.Objects.equals( @@ -1603,6 +1651,11 @@ public int hashCode() { ? 43 : this.datastoreClusterIds.hashCode()); result = (result * PRIME) + (this.vsphereType == null ? 43 : this.vsphereType.hashCode()); + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.clusterByolAllocationDetails == null diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateClusterDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateClusterDetails.java index 071d5fa7d1b..5d8a2ec4826 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateClusterDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateClusterDetails.java @@ -38,6 +38,7 @@ public final class CreateClusterDetails extends com.oracle.bmc.http.internal.Exp "datastoreClusterIds", "vmwareSoftwareVersion", "esxiSoftwareVersion", + "initialFaultDomainHostDistribution", "clusterByolAllocationDetails", "initialVcfByolAllocationId", "freeformTags", @@ -60,6 +61,7 @@ public CreateClusterDetails( java.util.List datastoreClusterIds, String vmwareSoftwareVersion, String esxiSoftwareVersion, + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, ClusterByolAllocationDetails clusterByolAllocationDetails, String initialVcfByolAllocationId, java.util.Map freeformTags, @@ -81,6 +83,7 @@ public CreateClusterDetails( this.datastoreClusterIds = datastoreClusterIds; this.vmwareSoftwareVersion = vmwareSoftwareVersion; this.esxiSoftwareVersion = esxiSoftwareVersion; + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.clusterByolAllocationDetails = clusterByolAllocationDetails; this.initialVcfByolAllocationId = initialVcfByolAllocationId; this.freeformTags = freeformTags; @@ -410,6 +413,25 @@ public Builder esxiSoftwareVersion(String esxiSoftwareVersion) { this.__explicitlySet__.add("esxiSoftwareVersion"); return this; } + /** + * The initial fault domain host distribution mode for the Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the Cluster. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("clusterByolAllocationDetails") private ClusterByolAllocationDetails clusterByolAllocationDetails; @@ -510,6 +532,7 @@ public CreateClusterDetails build() { this.datastoreClusterIds, this.vmwareSoftwareVersion, this.esxiSoftwareVersion, + this.initialFaultDomainHostDistribution, this.clusterByolAllocationDetails, this.initialVcfByolAllocationId, this.freeformTags, @@ -570,6 +593,10 @@ public Builder copy(CreateClusterDetails model) { if (model.wasPropertyExplicitlySet("esxiSoftwareVersion")) { this.esxiSoftwareVersion(model.getEsxiSoftwareVersion()); } + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("clusterByolAllocationDetails")) { this.clusterByolAllocationDetails(model.getClusterByolAllocationDetails()); } @@ -886,6 +913,22 @@ public String getEsxiSoftwareVersion() { return esxiSoftwareVersion; } + /** + * The initial fault domain host distribution mode for the Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the Cluster. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + @com.fasterxml.jackson.annotation.JsonProperty("clusterByolAllocationDetails") private final ClusterByolAllocationDetails clusterByolAllocationDetails; @@ -986,6 +1029,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", datastoreClusterIds=").append(String.valueOf(this.datastoreClusterIds)); sb.append(", vmwareSoftwareVersion=").append(String.valueOf(this.vmwareSoftwareVersion)); sb.append(", esxiSoftwareVersion=").append(String.valueOf(this.esxiSoftwareVersion)); + sb.append(", initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); sb.append(", clusterByolAllocationDetails=") .append(String.valueOf(this.clusterByolAllocationDetails)); sb.append(", initialVcfByolAllocationId=") @@ -1025,6 +1070,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.datastoreClusterIds, other.datastoreClusterIds) && java.util.Objects.equals(this.vmwareSoftwareVersion, other.vmwareSoftwareVersion) && java.util.Objects.equals(this.esxiSoftwareVersion, other.esxiSoftwareVersion) + && java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) && java.util.Objects.equals( this.clusterByolAllocationDetails, other.clusterByolAllocationDetails) && java.util.Objects.equals( @@ -1102,6 +1150,11 @@ public int hashCode() { + (this.esxiSoftwareVersion == null ? 43 : this.esxiSoftwareVersion.hashCode()); + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.clusterByolAllocationDetails == null diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateEsxiHostDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateEsxiHostDetails.java index 47650d86393..5a27db92e9b 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateEsxiHostDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/CreateEsxiHostDetails.java @@ -33,6 +33,7 @@ public final class CreateEsxiHostDetails "hostOcpuCount", "capacityReservationId", "esxiSoftwareVersion", + "initialFaultDomainHostDistribution", "vcfByolAllocationId", "isVsanByolEnabled", "freeformTags", @@ -49,6 +50,7 @@ public CreateEsxiHostDetails( Float hostOcpuCount, String capacityReservationId, String esxiSoftwareVersion, + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, String vcfByolAllocationId, Boolean isVsanByolEnabled, java.util.Map freeformTags, @@ -64,6 +66,7 @@ public CreateEsxiHostDetails( this.hostOcpuCount = hostOcpuCount; this.capacityReservationId = capacityReservationId; this.esxiSoftwareVersion = esxiSoftwareVersion; + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.vcfByolAllocationId = vcfByolAllocationId; this.isVsanByolEnabled = isVsanByolEnabled; this.freeformTags = freeformTags; @@ -288,6 +291,25 @@ public Builder esxiSoftwareVersion(String esxiSoftwareVersion) { this.__explicitlySet__.add("esxiSoftwareVersion"); return this; } + /** + * The initial fault domain host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the ESXi host. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. * @@ -390,6 +412,7 @@ public CreateEsxiHostDetails build() { this.hostOcpuCount, this.capacityReservationId, this.esxiSoftwareVersion, + this.initialFaultDomainHostDistribution, this.vcfByolAllocationId, this.isVsanByolEnabled, this.freeformTags, @@ -432,6 +455,10 @@ public Builder copy(CreateEsxiHostDetails model) { if (model.wasPropertyExplicitlySet("esxiSoftwareVersion")) { this.esxiSoftwareVersion(model.getEsxiSoftwareVersion()); } + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("vcfByolAllocationId")) { this.vcfByolAllocationId(model.getVcfByolAllocationId()); } @@ -655,6 +682,22 @@ public String getEsxiSoftwareVersion() { return esxiSoftwareVersion; } + /** + * The initial fault domain host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the ESXi host. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. * @@ -756,6 +799,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", hostOcpuCount=").append(String.valueOf(this.hostOcpuCount)); sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(", esxiSoftwareVersion=").append(String.valueOf(this.esxiSoftwareVersion)); + sb.append(", initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId)); sb.append(", isVsanByolEnabled=").append(String.valueOf(this.isVsanByolEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -785,6 +830,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.hostOcpuCount, other.hostOcpuCount) && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && java.util.Objects.equals(this.esxiSoftwareVersion, other.esxiSoftwareVersion) + && java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) && java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId) && java.util.Objects.equals(this.isVsanByolEnabled, other.isVsanByolEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -830,6 +878,11 @@ public int hashCode() { + (this.esxiSoftwareVersion == null ? 43 : this.esxiSoftwareVersion.hashCode()); + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.vcfByolAllocationId == null diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java index e344fddde0a..608904eb3bc 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHost.java @@ -52,6 +52,8 @@ public final class EsxiHost extends com.oracle.bmc.http.internal.ExplicitlySetBm "nonUpgradedEsxiHostId", "upgradedReplacementEsxiHostId", "computeAvailabilityDomain", + "computeFaultDomain", + "initialFaultDomainHostDistribution", "hostShapeName", "hostOcpuCount", "capacityReservationId", @@ -89,6 +91,8 @@ public EsxiHost( String nonUpgradedEsxiHostId, String upgradedReplacementEsxiHostId, String computeAvailabilityDomain, + String computeFaultDomain, + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, String hostShapeName, Float hostOcpuCount, String capacityReservationId, @@ -125,6 +129,8 @@ public EsxiHost( this.nonUpgradedEsxiHostId = nonUpgradedEsxiHostId; this.upgradedReplacementEsxiHostId = upgradedReplacementEsxiHostId; this.computeAvailabilityDomain = computeAvailabilityDomain; + this.computeFaultDomain = computeFaultDomain; + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.hostShapeName = hostShapeName; this.hostOcpuCount = hostOcpuCount; this.capacityReservationId = capacityReservationId; @@ -610,6 +616,43 @@ public Builder computeAvailabilityDomain(String computeAvailabilityDomain) { this.__explicitlySet__.add("computeAvailabilityDomain"); return this; } + /** + * The fault domain of the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeFaultDomain") + private String computeFaultDomain; + + /** + * The fault domain of the ESXi host. + * + * @param computeFaultDomain the value to set + * @return this builder + **/ + public Builder computeFaultDomain(String computeFaultDomain) { + this.computeFaultDomain = computeFaultDomain; + this.__explicitlySet__.add("computeFaultDomain"); + return this; + } + /** + * The initial fault domain host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the ESXi host. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } /** * The compute shape name of the ESXi host. * {@link #listSupportedHostShapes(ListSupportedHostShapesRequest) listSupportedHostShapes}. @@ -855,6 +898,8 @@ public EsxiHost build() { this.nonUpgradedEsxiHostId, this.upgradedReplacementEsxiHostId, this.computeAvailabilityDomain, + this.computeFaultDomain, + this.initialFaultDomainHostDistribution, this.hostShapeName, this.hostOcpuCount, this.capacityReservationId, @@ -946,6 +991,13 @@ public Builder copy(EsxiHost model) { if (model.wasPropertyExplicitlySet("computeAvailabilityDomain")) { this.computeAvailabilityDomain(model.getComputeAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("computeFaultDomain")) { + this.computeFaultDomain(model.getComputeFaultDomain()); + } + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("hostShapeName")) { this.hostShapeName(model.getHostShapeName()); } @@ -1416,6 +1468,38 @@ public String getComputeAvailabilityDomain() { return computeAvailabilityDomain; } + /** + * The fault domain of the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeFaultDomain") + private final String computeFaultDomain; + + /** + * The fault domain of the ESXi host. + * + * @return the value + **/ + public String getComputeFaultDomain() { + return computeFaultDomain; + } + + /** + * The initial fault domain host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * The initial fault domain host distribution mode for the ESXi host. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + /** * The compute shape name of the ESXi host. * {@link #listSupportedHostShapes(ListSupportedHostShapesRequest) listSupportedHostShapes}. @@ -1648,6 +1732,9 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.upgradedReplacementEsxiHostId)); sb.append(", computeAvailabilityDomain=") .append(String.valueOf(this.computeAvailabilityDomain)); + sb.append(", computeFaultDomain=").append(String.valueOf(this.computeFaultDomain)); + sb.append(", initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); sb.append(", hostShapeName=").append(String.valueOf(this.hostShapeName)); sb.append(", hostOcpuCount=").append(String.valueOf(this.hostOcpuCount)); sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); @@ -1702,6 +1789,10 @@ public boolean equals(Object o) { this.upgradedReplacementEsxiHostId, other.upgradedReplacementEsxiHostId) && java.util.Objects.equals( this.computeAvailabilityDomain, other.computeAvailabilityDomain) + && java.util.Objects.equals(this.computeFaultDomain, other.computeFaultDomain) + && java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) && java.util.Objects.equals(this.hostShapeName, other.hostShapeName) && java.util.Objects.equals(this.hostOcpuCount, other.hostOcpuCount) && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) @@ -1802,6 +1893,16 @@ public int hashCode() { + (this.computeAvailabilityDomain == null ? 43 : this.computeAvailabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.computeFaultDomain == null + ? 43 + : this.computeFaultDomain.hashCode()); + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.hostShapeName == null ? 43 : this.hostShapeName.hashCode()); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java index 2d515b876dd..95d7c0e0885 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/EsxiHostSummary.java @@ -39,6 +39,7 @@ public final class EsxiHostSummary extends com.oracle.bmc.http.internal.Explicit "nonUpgradedEsxiHostId", "upgradedReplacementEsxiHostId", "computeAvailabilityDomain", + "computeFaultDomain", "hostShapeName", "hostOcpuCount", "billingDonorHostId", @@ -73,6 +74,7 @@ public EsxiHostSummary( String nonUpgradedEsxiHostId, String upgradedReplacementEsxiHostId, String computeAvailabilityDomain, + String computeFaultDomain, String hostShapeName, Float hostOcpuCount, String billingDonorHostId, @@ -106,6 +108,7 @@ public EsxiHostSummary( this.nonUpgradedEsxiHostId = nonUpgradedEsxiHostId; this.upgradedReplacementEsxiHostId = upgradedReplacementEsxiHostId; this.computeAvailabilityDomain = computeAvailabilityDomain; + this.computeFaultDomain = computeFaultDomain; this.hostShapeName = hostShapeName; this.hostOcpuCount = hostOcpuCount; this.billingDonorHostId = billingDonorHostId; @@ -503,6 +506,24 @@ public Builder computeAvailabilityDomain(String computeAvailabilityDomain) { this.__explicitlySet__.add("computeAvailabilityDomain"); return this; } + /** + * The fault domain of the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeFaultDomain") + private String computeFaultDomain; + + /** + * The fault domain of the ESXi host. + * + * @param computeFaultDomain the value to set + * @return this builder + **/ + public Builder computeFaultDomain(String computeFaultDomain) { + this.computeFaultDomain = computeFaultDomain; + this.__explicitlySet__.add("computeFaultDomain"); + return this; + } /** * The compute shape name of the ESXi host. * {@link #listSupportedHostShapes(ListSupportedHostShapesRequest) listSupportedHostShapes}. @@ -780,6 +801,7 @@ public EsxiHostSummary build() { this.nonUpgradedEsxiHostId, this.upgradedReplacementEsxiHostId, this.computeAvailabilityDomain, + this.computeFaultDomain, this.hostShapeName, this.hostOcpuCount, this.billingDonorHostId, @@ -858,6 +880,9 @@ public Builder copy(EsxiHostSummary model) { if (model.wasPropertyExplicitlySet("computeAvailabilityDomain")) { this.computeAvailabilityDomain(model.getComputeAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("computeFaultDomain")) { + this.computeFaultDomain(model.getComputeFaultDomain()); + } if (model.wasPropertyExplicitlySet("hostShapeName")) { this.hostShapeName(model.getHostShapeName()); } @@ -1254,6 +1279,22 @@ public String getComputeAvailabilityDomain() { return computeAvailabilityDomain; } + /** + * The fault domain of the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("computeFaultDomain") + private final String computeFaultDomain; + + /** + * The fault domain of the ESXi host. + * + * @return the value + **/ + public String getComputeFaultDomain() { + return computeFaultDomain; + } + /** * The compute shape name of the ESXi host. * {@link #listSupportedHostShapes(ListSupportedHostShapesRequest) listSupportedHostShapes}. @@ -1513,6 +1554,7 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.upgradedReplacementEsxiHostId)); sb.append(", computeAvailabilityDomain=") .append(String.valueOf(this.computeAvailabilityDomain)); + sb.append(", computeFaultDomain=").append(String.valueOf(this.computeFaultDomain)); sb.append(", hostShapeName=").append(String.valueOf(this.hostShapeName)); sb.append(", hostOcpuCount=").append(String.valueOf(this.hostOcpuCount)); sb.append(", billingDonorHostId=").append(String.valueOf(this.billingDonorHostId)); @@ -1564,6 +1606,7 @@ public boolean equals(Object o) { this.upgradedReplacementEsxiHostId, other.upgradedReplacementEsxiHostId) && java.util.Objects.equals( this.computeAvailabilityDomain, other.computeAvailabilityDomain) + && java.util.Objects.equals(this.computeFaultDomain, other.computeFaultDomain) && java.util.Objects.equals(this.hostShapeName, other.hostShapeName) && java.util.Objects.equals(this.hostOcpuCount, other.hostOcpuCount) && java.util.Objects.equals(this.billingDonorHostId, other.billingDonorHostId) @@ -1645,6 +1688,11 @@ public int hashCode() { + (this.computeAvailabilityDomain == null ? 43 : this.computeAvailabilityDomain.hashCode()); + result = + (result * PRIME) + + (this.computeFaultDomain == null + ? 43 + : this.computeFaultDomain.hashCode()); result = (result * PRIME) + (this.hostShapeName == null ? 43 : this.hostShapeName.hashCode()); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionModes.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionModes.java new file mode 100644 index 00000000000..474085ea12c --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionModes.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.ocvp.model; + +/** + * Fault domain host distribution mode. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public enum FaultDomainHostDistributionModes { + EvenlyDistributed("EVENLY_DISTRIBUTED"), + UnevenlyDistributed("UNEVENLY_DISTRIBUTED"), + + /** + * 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(FaultDomainHostDistributionModes.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FaultDomainHostDistributionModes v : FaultDomainHostDistributionModes.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FaultDomainHostDistributionModes(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FaultDomainHostDistributionModes create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FaultDomainHostDistributionModes', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java new file mode 100644 index 00000000000..10631a7ac45 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.model; + +/** + * Current ESXi host Fault Domain distribution state. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public enum FaultDomainHostDistributionState { + EvenlyDistributed("EVENLY_DISTRIBUTED"), + UnevenlyDistributed("UNEVENLY_DISTRIBUTED"), + Unsupported("UNSUPPORTED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FaultDomainHostDistributionState v : FaultDomainHostDistributionState.values()) { + map.put(v.getValue(), v); + } + } + + FaultDomainHostDistributionState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FaultDomainHostDistributionState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid FaultDomainHostDistributionState: " + key); + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java similarity index 59% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java rename to bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.java index 720b9370f39..c85b335fc96 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/GenerateVmwareBinaryDownloadInfoDetails.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.ocvp.model; /** - * Details of Globally distributed database connection String. + * The details for generating VMware Binary download information. + * *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,45 +15,45 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbConnectionString.Builder.class + builder = GenerateVmwareBinaryDownloadInfoDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbConnectionString +public final class GenerateVmwareBinaryDownloadInfoDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"allConnectionStrings"}) - public DistributedDbConnectionString(java.util.Map allConnectionStrings) { + @java.beans.ConstructorProperties({"vmwareBinaryFileName"}) + public GenerateVmwareBinaryDownloadInfoDetails(String vmwareBinaryFileName) { super(); - this.allConnectionStrings = allConnectionStrings; + this.vmwareBinaryFileName = vmwareBinaryFileName; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Collection of connection strings. + * The name of the VMware binary file. **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private java.util.Map allConnectionStrings; + @com.fasterxml.jackson.annotation.JsonProperty("vmwareBinaryFileName") + private String vmwareBinaryFileName; /** - * Collection of connection strings. - * @param allConnectionStrings the value to set + * The name of the VMware binary file. + * @param vmwareBinaryFileName the value to set * @return this builder **/ - public Builder allConnectionStrings(java.util.Map allConnectionStrings) { - this.allConnectionStrings = allConnectionStrings; - this.__explicitlySet__.add("allConnectionStrings"); + public Builder vmwareBinaryFileName(String vmwareBinaryFileName) { + this.vmwareBinaryFileName = vmwareBinaryFileName; + this.__explicitlySet__.add("vmwareBinaryFileName"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DistributedDbConnectionString build() { - DistributedDbConnectionString model = - new DistributedDbConnectionString(this.allConnectionStrings); + public GenerateVmwareBinaryDownloadInfoDetails build() { + GenerateVmwareBinaryDownloadInfoDetails model = + new GenerateVmwareBinaryDownloadInfoDetails(this.vmwareBinaryFileName); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -60,9 +61,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(GenerateVmwareBinaryDownloadInfoDetails model) { + if (model.wasPropertyExplicitlySet("vmwareBinaryFileName")) { + this.vmwareBinaryFileName(model.getVmwareBinaryFileName()); } return this; } @@ -80,17 +81,17 @@ public Builder toBuilder() { } /** - * Collection of connection strings. + * The name of the VMware binary file. **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private final java.util.Map allConnectionStrings; + @com.fasterxml.jackson.annotation.JsonProperty("vmwareBinaryFileName") + private final String vmwareBinaryFileName; /** - * Collection of connection strings. + * The name of the VMware binary file. * @return the value **/ - public java.util.Map getAllConnectionStrings() { - return allConnectionStrings; + public String getVmwareBinaryFileName() { + return vmwareBinaryFileName; } @Override @@ -105,9 +106,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbConnectionString("); + sb.append("GenerateVmwareBinaryDownloadInfoDetails("); sb.append("super=").append(super.toString()); - sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); + sb.append("vmwareBinaryFileName=").append(String.valueOf(this.vmwareBinaryFileName)); sb.append(")"); return sb.toString(); } @@ -117,12 +118,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDbConnectionString)) { + if (!(o instanceof GenerateVmwareBinaryDownloadInfoDetails)) { return false; } - DistributedDbConnectionString other = (DistributedDbConnectionString) o; - return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) + GenerateVmwareBinaryDownloadInfoDetails other = (GenerateVmwareBinaryDownloadInfoDetails) o; + return java.util.Objects.equals(this.vmwareBinaryFileName, other.vmwareBinaryFileName) && super.equals(other); } @@ -132,9 +133,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) - + (this.allConnectionStrings == null + + (this.vmwareBinaryFileName == null ? 43 - : this.allConnectionStrings.hashCode()); + : this.vmwareBinaryFileName.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java new file mode 100644 index 00000000000..1b5176912db --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.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.ocvp.model; + +/** + * Details for how ESXi hosts are distributed across Fault Domains in a 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = HostDistributionReportDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class HostDistributionReportDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"faultDomainHostDistributionState"}) + public HostDistributionReportDetails( + FaultDomainHostDistributionState faultDomainHostDistributionState) { + super(); + this.faultDomainHostDistributionState = faultDomainHostDistributionState; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("faultDomainHostDistributionState") + private FaultDomainHostDistributionState faultDomainHostDistributionState; + + public Builder faultDomainHostDistributionState( + FaultDomainHostDistributionState faultDomainHostDistributionState) { + this.faultDomainHostDistributionState = faultDomainHostDistributionState; + this.__explicitlySet__.add("faultDomainHostDistributionState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public HostDistributionReportDetails build() { + HostDistributionReportDetails model = + new HostDistributionReportDetails(this.faultDomainHostDistributionState); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(HostDistributionReportDetails model) { + if (model.wasPropertyExplicitlySet("faultDomainHostDistributionState")) { + this.faultDomainHostDistributionState(model.getFaultDomainHostDistributionState()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + **/ + public enum FaultDomainHostDistributionState { + EvenlyDistributed("EVENLY_DISTRIBUTED"), + UnevenlyDistributed("UNEVENLY_DISTRIBUTED"), + Unsupported("UNSUPPORTED"), + + /** + * 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(FaultDomainHostDistributionState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FaultDomainHostDistributionState v : FaultDomainHostDistributionState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + FaultDomainHostDistributionState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FaultDomainHostDistributionState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'FaultDomainHostDistributionState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + + @com.fasterxml.jackson.annotation.JsonProperty("faultDomainHostDistributionState") + private final FaultDomainHostDistributionState faultDomainHostDistributionState; + + public FaultDomainHostDistributionState getFaultDomainHostDistributionState() { + return faultDomainHostDistributionState; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("HostDistributionReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("faultDomainHostDistributionState=") + .append(String.valueOf(this.faultDomainHostDistributionState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HostDistributionReportDetails)) { + return false; + } + + HostDistributionReportDetails other = (HostDistributionReportDetails) o; + return java.util.Objects.equals( + this.faultDomainHostDistributionState, + other.faultDomainHostDistributionState) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.faultDomainHostDistributionState == null + ? 43 + : this.faultDomainHostDistributionState.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InitialClusterConfiguration.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InitialClusterConfiguration.java index 7b6749f71be..bfb8f696971 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InitialClusterConfiguration.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InitialClusterConfiguration.java @@ -37,6 +37,7 @@ public final class InitialClusterConfiguration "capacityReservationId", "datastores", "datastoreClusterIds", + "initialFaultDomainHostDistribution", "clusterByolAllocationDetails", "initialVcfByolAllocationId" }) @@ -55,6 +56,7 @@ public InitialClusterConfiguration( String capacityReservationId, java.util.List datastores, java.util.List datastoreClusterIds, + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, ClusterByolAllocationDetails clusterByolAllocationDetails, String initialVcfByolAllocationId) { super(); @@ -72,6 +74,7 @@ public InitialClusterConfiguration( this.capacityReservationId = capacityReservationId; this.datastores = datastores; this.datastoreClusterIds = datastoreClusterIds; + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.clusterByolAllocationDetails = clusterByolAllocationDetails; this.initialVcfByolAllocationId = initialVcfByolAllocationId; } @@ -355,6 +358,25 @@ public Builder datastoreClusterIds(java.util.List datastoreClusterIds) { this.__explicitlySet__.add("datastoreClusterIds"); return this; } + /** + * Initial Fault Domain Host distribution mode for the Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * Initial Fault Domain Host distribution mode for the Cluster. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("clusterByolAllocationDetails") private ClusterByolAllocationDetails clusterByolAllocationDetails; @@ -404,6 +426,7 @@ public InitialClusterConfiguration build() { this.capacityReservationId, this.datastores, this.datastoreClusterIds, + this.initialFaultDomainHostDistribution, this.clusterByolAllocationDetails, this.initialVcfByolAllocationId); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -456,6 +479,10 @@ public Builder copy(InitialClusterConfiguration model) { if (model.wasPropertyExplicitlySet("datastoreClusterIds")) { this.datastoreClusterIds(model.getDatastoreClusterIds()); } + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("clusterByolAllocationDetails")) { this.clusterByolAllocationDetails(model.getClusterByolAllocationDetails()); } @@ -726,6 +753,22 @@ public java.util.List getDatastoreClusterIds() { return datastoreClusterIds; } + /** + * Initial Fault Domain Host distribution mode for the Cluster. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * Initial Fault Domain Host distribution mode for the Cluster. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + @com.fasterxml.jackson.annotation.JsonProperty("clusterByolAllocationDetails") private final ClusterByolAllocationDetails clusterByolAllocationDetails; @@ -780,6 +823,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); sb.append(", datastores=").append(String.valueOf(this.datastores)); sb.append(", datastoreClusterIds=").append(String.valueOf(this.datastoreClusterIds)); + sb.append(", initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); sb.append(", clusterByolAllocationDetails=") .append(String.valueOf(this.clusterByolAllocationDetails)); sb.append(", initialVcfByolAllocationId=") @@ -815,6 +860,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) && java.util.Objects.equals(this.datastores, other.datastores) && java.util.Objects.equals(this.datastoreClusterIds, other.datastoreClusterIds) + && java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) && java.util.Objects.equals( this.clusterByolAllocationDetails, other.clusterByolAllocationDetails) && java.util.Objects.equals( @@ -880,6 +928,11 @@ public int hashCode() { + (this.datastoreClusterIds == null ? 43 : this.datastoreClusterIds.hashCode()); + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.clusterByolAllocationDetails == null diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java index d53728e1e14..1230c884ad1 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java @@ -23,14 +23,36 @@ public final class InplaceUpgradeDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"vcfByolAllocationId"}) - public InplaceUpgradeDetails(String vcfByolAllocationId) { + @java.beans.ConstructorProperties({"initialFaultDomainHostDistribution", "vcfByolAllocationId"}) + public InplaceUpgradeDetails( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, + String vcfByolAllocationId) { super(); + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.vcfByolAllocationId = vcfByolAllocationId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. * @@ -54,7 +76,9 @@ public Builder vcfByolAllocationId(String vcfByolAllocationId) { private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public InplaceUpgradeDetails build() { - InplaceUpgradeDetails model = new InplaceUpgradeDetails(this.vcfByolAllocationId); + InplaceUpgradeDetails model = + new InplaceUpgradeDetails( + this.initialFaultDomainHostDistribution, this.vcfByolAllocationId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -63,6 +87,10 @@ public InplaceUpgradeDetails build() { @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(InplaceUpgradeDetails model) { + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("vcfByolAllocationId")) { this.vcfByolAllocationId(model.getVcfByolAllocationId()); } @@ -81,6 +109,22 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. * @@ -111,7 +155,9 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("InplaceUpgradeDetails("); sb.append("super=").append(super.toString()); - sb.append("vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId)); + sb.append("initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); + sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId)); sb.append(")"); return sb.toString(); } @@ -126,7 +172,10 @@ public boolean equals(Object o) { } InplaceUpgradeDetails other = (InplaceUpgradeDetails) o; - return java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId) + return java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) + && java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId) && super.equals(other); } @@ -134,6 +183,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.vcfByolAllocationId == null diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java index 3baed4b0aaa..a4404f3b2c4 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java @@ -22,10 +22,18 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class ReplaceHostDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"esxiSoftwareVersion", "vcfByolAllocationId"}) - public ReplaceHostDetails(String esxiSoftwareVersion, String vcfByolAllocationId) { + @java.beans.ConstructorProperties({ + "esxiSoftwareVersion", + "initialFaultDomainHostDistribution", + "vcfByolAllocationId" + }) + public ReplaceHostDetails( + String esxiSoftwareVersion, + FaultDomainHostDistributionModes initialFaultDomainHostDistribution, + String vcfByolAllocationId) { super(); this.esxiSoftwareVersion = esxiSoftwareVersion; + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; this.vcfByolAllocationId = vcfByolAllocationId; } @@ -55,6 +63,25 @@ public Builder esxiSoftwareVersion(String esxiSoftwareVersion) { this.__explicitlySet__.add("esxiSoftwareVersion"); return this; } + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + * @param initialFaultDomainHostDistribution the value to set + * @return this builder + **/ + public Builder initialFaultDomainHostDistribution( + FaultDomainHostDistributionModes initialFaultDomainHostDistribution) { + this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution; + this.__explicitlySet__.add("initialFaultDomainHostDistribution"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. * @@ -79,7 +106,10 @@ public Builder vcfByolAllocationId(String vcfByolAllocationId) { public ReplaceHostDetails build() { ReplaceHostDetails model = - new ReplaceHostDetails(this.esxiSoftwareVersion, this.vcfByolAllocationId); + new ReplaceHostDetails( + this.esxiSoftwareVersion, + this.initialFaultDomainHostDistribution, + this.vcfByolAllocationId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -91,6 +121,10 @@ public Builder copy(ReplaceHostDetails model) { if (model.wasPropertyExplicitlySet("esxiSoftwareVersion")) { this.esxiSoftwareVersion(model.getEsxiSoftwareVersion()); } + if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) { + this.initialFaultDomainHostDistribution( + model.getInitialFaultDomainHostDistribution()); + } if (model.wasPropertyExplicitlySet("vcfByolAllocationId")) { this.vcfByolAllocationId(model.getVcfByolAllocationId()); } @@ -131,6 +165,22 @@ public String getEsxiSoftwareVersion() { return esxiSoftwareVersion; } + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution") + private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution; + + /** + * Initial Fault Domain Host distribution mode for the ESXi host. + * + * @return the value + **/ + public FaultDomainHostDistributionModes getInitialFaultDomainHostDistribution() { + return initialFaultDomainHostDistribution; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol Allocation for VCF (VMware Cloud Foundation) deployment. * @@ -162,6 +212,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("ReplaceHostDetails("); sb.append("super=").append(super.toString()); sb.append("esxiSoftwareVersion=").append(String.valueOf(this.esxiSoftwareVersion)); + sb.append(", initialFaultDomainHostDistribution=") + .append(String.valueOf(this.initialFaultDomainHostDistribution)); sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId)); sb.append(")"); return sb.toString(); @@ -178,6 +230,9 @@ public boolean equals(Object o) { ReplaceHostDetails other = (ReplaceHostDetails) o; return java.util.Objects.equals(this.esxiSoftwareVersion, other.esxiSoftwareVersion) + && java.util.Objects.equals( + this.initialFaultDomainHostDistribution, + other.initialFaultDomainHostDistribution) && java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId) && super.equals(other); } @@ -191,6 +246,11 @@ public int hashCode() { + (this.esxiSoftwareVersion == null ? 43 : this.esxiSoftwareVersion.hashCode()); + result = + (result * PRIME) + + (this.initialFaultDomainHostDistribution == null + ? 43 + : this.initialFaultDomainHostDistribution.hashCode()); result = (result * PRIME) + (this.vcfByolAllocationId == null diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.java new file mode 100644 index 00000000000..375d08d0b13 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinary.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.ocvp.model; + +/** + * A third party VMware Binary file. + * + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VmwareBinary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmwareBinary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileName", "description", "sizeInBytes", "checksum"}) + public VmwareBinary(String fileName, String description, Long sizeInBytes, String checksum) { + super(); + this.fileName = fileName; + this.description = description; + this.sizeInBytes = sizeInBytes; + this.checksum = checksum; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the VMware binary file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private String fileName; + + /** + * The name of the VMware binary file. + * + * @param fileName the value to set + * @return this builder + **/ + public Builder fileName(String fileName) { + this.fileName = fileName; + this.__explicitlySet__.add("fileName"); + return this; + } + /** + * Description of the VMware binary. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the VMware binary. + * + * @param description the value to set + * @return this builder + **/ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * Size of the VMware binary file in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + /** + * Size of the VMware binary file in bytes. + * @param sizeInBytes the value to set + * @return this builder + **/ + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + /** + * Base64-encoded SHA256 hash of the object data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("checksum") + private String checksum; + + /** + * Base64-encoded SHA256 hash of the object data. + * @param checksum the value to set + * @return this builder + **/ + public Builder checksum(String checksum) { + this.checksum = checksum; + this.__explicitlySet__.add("checksum"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmwareBinary build() { + VmwareBinary model = + new VmwareBinary( + this.fileName, this.description, this.sizeInBytes, this.checksum); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmwareBinary model) { + if (model.wasPropertyExplicitlySet("fileName")) { + this.fileName(model.getFileName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("sizeInBytes")) { + this.sizeInBytes(model.getSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("checksum")) { + this.checksum(model.getChecksum()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The name of the VMware binary file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private final String fileName; + + /** + * The name of the VMware binary file. + * + * @return the value + **/ + public String getFileName() { + return fileName; + } + + /** + * Description of the VMware binary. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the VMware binary. + * + * @return the value + **/ + public String getDescription() { + return description; + } + + /** + * Size of the VMware binary file in bytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private final Long sizeInBytes; + + /** + * Size of the VMware binary file in bytes. + * @return the value + **/ + public Long getSizeInBytes() { + return sizeInBytes; + } + + /** + * Base64-encoded SHA256 hash of the object data. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("checksum") + private final String checksum; + + /** + * Base64-encoded SHA256 hash of the object data. + * @return the value + **/ + public String getChecksum() { + return checksum; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmwareBinary("); + sb.append("super=").append(super.toString()); + sb.append("fileName=").append(String.valueOf(this.fileName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", sizeInBytes=").append(String.valueOf(this.sizeInBytes)); + sb.append(", checksum=").append(String.valueOf(this.checksum)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmwareBinary)) { + return false; + } + + VmwareBinary other = (VmwareBinary) o; + return java.util.Objects.equals(this.fileName, other.fileName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.sizeInBytes, other.sizeInBytes) + && java.util.Objects.equals(this.checksum, other.checksum) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.fileName == null ? 43 : this.fileName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.sizeInBytes == null ? 43 : this.sizeInBytes.hashCode()); + result = (result * PRIME) + (this.checksum == null ? 43 : this.checksum.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.java new file mode 100644 index 00000000000..03783c228e4 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryCollection.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.ocvp.model; + +/** + * A list of third party VMware binary files. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmwareBinaryCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmwareBinaryCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public VmwareBinaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A list of third party VMware binary files. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of third party VMware binary files. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public VmwareBinaryCollection build() { + VmwareBinaryCollection model = new VmwareBinaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(VmwareBinaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A list of third party VMware binary files. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of third party VMware binary files. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmwareBinaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmwareBinaryCollection)) { + return false; + } + + VmwareBinaryCollection other = (VmwareBinaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.java new file mode 100644 index 00000000000..86e02c31ba4 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/VmwareBinaryDownloadInfo.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.ocvp.model; + +/** + * The VMware binary download. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = VmwareBinaryDownloadInfo.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class VmwareBinaryDownloadInfo + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"fileName", "url", "timeExpires"}) + public VmwareBinaryDownloadInfo(String fileName, String url, java.util.Date timeExpires) { + super(); + this.fileName = fileName; + this.url = url; + this.timeExpires = timeExpires; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The name of the VMware binary file. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("fileName") + private String fileName; + + /** + * The name of the VMware binary file. + * + * @param fileName the value to set + * @return this builder + **/ + public Builder fileName(String fileName) { + this.fileName = fileName; + this.__explicitlySet__.add("fileName"); + return this; + } + /** + * The URL to download the VMware binary. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * The URL to download the VMware binary. + * + * @param url the value to set + * @return this builder + **/ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** + * The expiration date for the URL, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * After this date the URL will no longer be valid. + *

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

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

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

        + * Example: {@code 2016-08-25T21:10:29.600Z} + * + * @return the value + **/ + public java.util.Date getTimeExpires() { + return timeExpires; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("VmwareBinaryDownloadInfo("); + sb.append("super=").append(super.toString()); + sb.append("fileName=").append(String.valueOf(this.fileName)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", timeExpires=").append(String.valueOf(this.timeExpires)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof VmwareBinaryDownloadInfo)) { + return false; + } + + VmwareBinaryDownloadInfo other = (VmwareBinaryDownloadInfo) o; + return java.util.Objects.equals(this.fileName, other.fileName) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.timeExpires, other.timeExpires) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.fileName == null ? 43 : this.fileName.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.timeExpires == null ? 43 : this.timeExpires.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateHostDistributionReportRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateHostDistributionReportRequest.java new file mode 100644 index 00000000000..4b6b7bcd253 --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateHostDistributionReportRequest.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.requests; + +import com.oracle.bmc.ocvp.model.*; +/** + * Example: Click here to see how to use GenerateHostDistributionReportRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateHostDistributionReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC Cluster. + * + */ + private String clusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC Cluster. + * + */ + public String getClusterId() { + return clusterId; + } + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateHostDistributionReportRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC Cluster. + * + */ + private String clusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC Cluster. + * + * @param clusterId the value to set + * @return this builder instance + */ + public Builder clusterId(String clusterId) { + this.clusterId = clusterId; + return this; + } + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + 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(GenerateHostDistributionReportRequest o) { + clusterId(o.getClusterId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateHostDistributionReportRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GenerateHostDistributionReportRequest + */ + public GenerateHostDistributionReportRequest build() { + GenerateHostDistributionReportRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GenerateHostDistributionReportRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GenerateHostDistributionReportRequest + */ + public GenerateHostDistributionReportRequest buildWithoutInvocationCallback() { + GenerateHostDistributionReportRequest request = + new GenerateHostDistributionReportRequest(); + request.clusterId = clusterId; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new GenerateHostDistributionReportRequest(clusterId, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .clusterId(clusterId) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",clusterId=").append(String.valueOf(this.clusterId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateHostDistributionReportRequest)) { + return false; + } + + GenerateHostDistributionReportRequest other = (GenerateHostDistributionReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.clusterId, other.clusterId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.clusterId == null ? 43 : this.clusterId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java similarity index 55% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java rename to bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java index fe59eccf0c4..4ea2301e519 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/GenerateVmwareBinaryDownloadInfoRequest.java @@ -2,65 +2,64 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; +package com.oracle.bmc.ocvp.requests; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.ocvp.model.*; /** - * Example: Click here to see how to use DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest. + * Example: Click here to see how to use GenerateVmwareBinaryDownloadInfoRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateVmwareBinaryDownloadInfoRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails> { /** - * Globally distributed autonomous database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * */ - private String distributedAutonomousDatabaseId; + private String sddcId; /** - * Globally distributed autonomous database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; + public String getSddcId() { + return sddcId; } /** - * The client request ID for tracing. + * The details for generating VMware Binary download information. */ - private String opcRequestId; + private com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + generateVmwareBinaryDownloadInfoDetails; /** - * The client request ID for tracing. + * The details for generating VMware Binary download information. */ - public String getOpcRequestId() { - return opcRequestId; + public com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + getGenerateVmwareBinaryDownloadInfoDetails() { + return generateVmwareBinaryDownloadInfoDetails; } /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * */ - private String ifMatch; + private 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. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * */ - public String getIfMatch() { - return ifMatch; + 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 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * */ private String opcRetryToken; @@ -68,84 +67,93 @@ public String getIfMatch() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * */ public String getOpcRetryToken() { return opcRetryToken; } + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails getBody$() { + return generateVmwareBinaryDownloadInfoDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest, - java.lang.Void> { + GenerateVmwareBinaryDownloadInfoRequest, + com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed autonomous database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * */ - private String distributedAutonomousDatabaseId = null; + private String sddcId = null; /** - * Globally distributed autonomous database identifier - * @param distributedAutonomousDatabaseId the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * + * @param sddcId the value to set * @return this builder instance */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public Builder sddcId(String sddcId) { + this.sddcId = sddcId; return this; } /** - * The client request ID for tracing. + * The details for generating VMware Binary download information. */ - private String opcRequestId = null; + private com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + generateVmwareBinaryDownloadInfoDetails = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * The details for generating VMware Binary download information. + * @param generateVmwareBinaryDownloadInfoDetails the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder generateVmwareBinaryDownloadInfoDetails( + com.oracle.bmc.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails + generateVmwareBinaryDownloadInfoDetails) { + this.generateVmwareBinaryDownloadInfoDetails = generateVmwareBinaryDownloadInfoDetails; 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. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * */ - private String ifMatch = null; + private String opcRequestId = 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. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * - * @param ifMatch the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; + 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 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * */ private String opcRetryToken = null; @@ -153,9 +161,9 @@ 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 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * * @param opcRetryToken the value to set * @return this builder instance @@ -192,11 +200,10 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); + public Builder copy(GenerateVmwareBinaryDownloadInfoRequest o) { + sddcId(o.getSddcId()); + generateVmwareBinaryDownloadInfoDetails(o.getGenerateVmwareBinaryDownloadInfoDetails()); opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -204,41 +211,52 @@ public Builder copy( } /** - * Build the instance of DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest as configured by this builder + * Build the instance of GenerateVmwareBinaryDownloadInfoRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest + * @return instance of GenerateVmwareBinaryDownloadInfoRequest */ - public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest build() { - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); + public GenerateVmwareBinaryDownloadInfoRequest build() { + GenerateVmwareBinaryDownloadInfoRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest 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.ocvp.model.GenerateVmwareBinaryDownloadInfoDetails body) { + generateVmwareBinaryDownloadInfoDetails(body); + return this; + } + + /** + * Build the instance of GenerateVmwareBinaryDownloadInfoRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest + * @return instance of GenerateVmwareBinaryDownloadInfoRequest */ - public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest request = - new DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; + public GenerateVmwareBinaryDownloadInfoRequest buildWithoutInvocationCallback() { + GenerateVmwareBinaryDownloadInfoRequest request = + new GenerateVmwareBinaryDownloadInfoRequest(); + request.sddcId = sddcId; + request.generateVmwareBinaryDownloadInfoDetails = + generateVmwareBinaryDownloadInfoDetails; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; return request; - // new DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest(distributedAutonomousDatabaseId, opcRequestId, ifMatch, opcRetryToken); + // new GenerateVmwareBinaryDownloadInfoRequest(sddcId, generateVmwareBinaryDownloadInfoDetails, opcRequestId, opcRetryToken); } } @@ -248,9 +266,9 @@ public DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest */ public Builder toBuilder() { return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) + .sddcId(sddcId) + .generateVmwareBinaryDownloadInfoDetails(generateVmwareBinaryDownloadInfoDetails) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); } @@ -267,10 +285,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(",sddcId=").append(String.valueOf(this.sddcId)); + sb.append(",generateVmwareBinaryDownloadInfoDetails=") + .append(String.valueOf(this.generateVmwareBinaryDownloadInfoDetails)); 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(); @@ -281,19 +299,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o - instanceof - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest)) { + if (!(o instanceof GenerateVmwareBinaryDownloadInfoRequest)) { return false; } - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest other = - (DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest) o; + GenerateVmwareBinaryDownloadInfoRequest other = (GenerateVmwareBinaryDownloadInfoRequest) o; return super.equals(o) + && java.util.Objects.equals(this.sddcId, other.sddcId) && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) + this.generateVmwareBinaryDownloadInfoDetails, + other.generateVmwareBinaryDownloadInfoDetails) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -301,13 +317,13 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.sddcId == null ? 43 : this.sddcId.hashCode()); result = (result * PRIME) - + (this.distributedAutonomousDatabaseId == null + + (this.generateVmwareBinaryDownloadInfoDetails == null ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); + : this.generateVmwareBinaryDownloadInfoDetails.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()); diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java similarity index 54% rename from bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java rename to bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java index 63fb4cc1bf7..83ffb2d9871 100644 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveVmwareBinariesRequest.java @@ -2,76 +2,84 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ -package com.oracle.bmc.distributeddatabase.requests; +package com.oracle.bmc.ocvp.requests; -import com.oracle.bmc.distributeddatabase.model.*; +import com.oracle.bmc.ocvp.model.*; /** - * Example: Click here to see how to use GenerateDistributedDatabaseGsmCertificateSigningRequestRequest. + * Example: Click here to see how to use RetrieveVmwareBinariesRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedDatabaseGsmCertificateSigningRequestRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class RetrieveVmwareBinariesRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * */ - private String distributedDatabaseId; + private String sddcId; /** - * Globally distributed database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getSddcId() { + return sddcId; } /** - * The ID of the Ca Bundle. + * 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 String caBundleId; + private Integer limit; /** - * The ID of the Ca Bundle. + * 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 String getCaBundleId() { - return caBundleId; + public Integer getLimit() { + return limit; } /** - * The client request ID for tracing. + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * */ - private String opcRequestId; + private String page; /** - * The client request ID for tracing. + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * */ - public String getOpcRequestId() { - return opcRequestId; + public String getPage() { + return page; } /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * */ - private String ifMatch; + private 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. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * */ - public String getIfMatch() { - return ifMatch; + 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 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * */ private String opcRetryToken; @@ -79,9 +87,9 @@ public String getIfMatch() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * */ public String getOpcRetryToken() { @@ -90,88 +98,95 @@ public String getOpcRetryToken() { public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest, - java.lang.Void> { + RetrieveVmwareBinariesRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * */ - private String distributedDatabaseId = null; + private String sddcId = null; /** - * Globally distributed database identifier - * @param distributedDatabaseId the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC. + * + * @param sddcId the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder sddcId(String sddcId) { + this.sddcId = sddcId; return this; } /** - * The ID of the Ca Bundle. + * 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 String caBundleId = null; + private Integer limit = null; /** - * The ID of the Ca Bundle. - * @param caBundleId the value to set + * 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 caBundleId(String caBundleId) { - this.caBundleId = caBundleId; + public Builder limit(Integer limit) { + this.limit = limit; return this; } /** - * The client request ID for tracing. + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * */ - private String opcRequestId = null; + private String page = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * For list pagination. The value of the {@code opc-next-page} response header from the previous "List" + * call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder page(String page) { + this.page = page; 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. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * */ - private String ifMatch = null; + private String opcRequestId = 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. + * Unique identifier for the request. If you need to contact Oracle about a particular + * request, please provide the request ID. * - * @param ifMatch the value to set + * @param opcRequestId the value to set * @return this builder instance */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; + 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 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * */ private String opcRetryToken = null; @@ -179,9 +194,9 @@ 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 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. + * may be rejected). * * @param opcRetryToken the value to set * @return this builder instance @@ -218,11 +233,11 @@ public Builder retryConfiguration( * 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()); + public Builder copy(RetrieveVmwareBinariesRequest o) { + sddcId(o.getSddcId()); + limit(o.getLimit()); + page(o.getPage()); opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -230,42 +245,39 @@ public Builder copy(GenerateDistributedDatabaseGsmCertificateSigningRequestReque } /** - * Build the instance of GenerateDistributedDatabaseGsmCertificateSigningRequestRequest as configured by this builder + * Build the instance of RetrieveVmwareBinariesRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of GenerateDistributedDatabaseGsmCertificateSigningRequestRequest + * @return instance of RetrieveVmwareBinariesRequest */ - public GenerateDistributedDatabaseGsmCertificateSigningRequestRequest build() { - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request = - buildWithoutInvocationCallback(); + public RetrieveVmwareBinariesRequest build() { + RetrieveVmwareBinariesRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of GenerateDistributedDatabaseGsmCertificateSigningRequestRequest as configured by this builder + * Build the instance of RetrieveVmwareBinariesRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of GenerateDistributedDatabaseGsmCertificateSigningRequestRequest + * @return instance of RetrieveVmwareBinariesRequest */ - public GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - buildWithoutInvocationCallback() { - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest request = - new GenerateDistributedDatabaseGsmCertificateSigningRequestRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.caBundleId = caBundleId; + public RetrieveVmwareBinariesRequest buildWithoutInvocationCallback() { + RetrieveVmwareBinariesRequest request = new RetrieveVmwareBinariesRequest(); + request.sddcId = sddcId; + request.limit = limit; + request.page = page; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; return request; - // new GenerateDistributedDatabaseGsmCertificateSigningRequestRequest(distributedDatabaseId, caBundleId, opcRequestId, ifMatch, opcRetryToken); + // new RetrieveVmwareBinariesRequest(sddcId, limit, page, opcRequestId, opcRetryToken); } } @@ -275,10 +287,10 @@ public GenerateDistributedDatabaseGsmCertificateSigningRequestRequest build() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .caBundleId(caBundleId) + .sddcId(sddcId) + .limit(limit) + .page(page) .opcRequestId(opcRequestId) - .ifMatch(ifMatch) .opcRetryToken(opcRetryToken); } @@ -295,10 +307,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(",caBundleId=").append(String.valueOf(this.caBundleId)); + sb.append(",sddcId=").append(String.valueOf(this.sddcId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(")"); return sb.toString(); @@ -309,17 +321,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GenerateDistributedDatabaseGsmCertificateSigningRequestRequest)) { + if (!(o instanceof RetrieveVmwareBinariesRequest)) { return false; } - GenerateDistributedDatabaseGsmCertificateSigningRequestRequest other = - (GenerateDistributedDatabaseGsmCertificateSigningRequestRequest) o; + RetrieveVmwareBinariesRequest other = (RetrieveVmwareBinariesRequest) 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.sddcId, other.sddcId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @@ -327,14 +338,10 @@ public boolean equals(Object o) { 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.sddcId == null ? 43 : this.sddcId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateHostDistributionReportResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateHostDistributionReportResponse.java new file mode 100644 index 00000000000..5de0ba0263a --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateHostDistributionReportResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.responses; + +import com.oracle.bmc.ocvp.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateHostDistributionReportResponse 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 HostDistributionReportDetails instance. + */ + private com.oracle.bmc.ocvp.model.HostDistributionReportDetails hostDistributionReportDetails; + + /** + * The returned HostDistributionReportDetails instance. + * @return the value + */ + public com.oracle.bmc.ocvp.model.HostDistributionReportDetails + getHostDistributionReportDetails() { + return hostDistributionReportDetails; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "hostDistributionReportDetails" + }) + private GenerateHostDistributionReportResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.ocvp.model.HostDistributionReportDetails hostDistributionReportDetails) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.hostDistributionReportDetails = hostDistributionReportDetails; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 HostDistributionReportDetails instance. + */ + private com.oracle.bmc.ocvp.model.HostDistributionReportDetails + hostDistributionReportDetails; + + /** + * The returned HostDistributionReportDetails instance. + * @param hostDistributionReportDetails the value to set + * @return this builder + */ + public Builder hostDistributionReportDetails( + com.oracle.bmc.ocvp.model.HostDistributionReportDetails + hostDistributionReportDetails) { + this.hostDistributionReportDetails = hostDistributionReportDetails; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateHostDistributionReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + hostDistributionReportDetails(o.getHostDistributionReportDetails()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GenerateHostDistributionReportResponse build() { + return new GenerateHostDistributionReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, hostDistributionReportDetails); + } + } + + /** + * 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(",hostDistributionReportDetails=") + .append(String.valueOf(hostDistributionReportDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateHostDistributionReportResponse)) { + return false; + } + + GenerateHostDistributionReportResponse other = (GenerateHostDistributionReportResponse) 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.hostDistributionReportDetails, other.hostDistributionReportDetails); + } + + @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.hostDistributionReportDetails == null + ? 43 + : this.hostDistributionReportDetails.hashCode()); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java new file mode 100644 index 00000000000..62c93f2495f --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/GenerateVmwareBinaryDownloadInfoResponse.java @@ -0,0 +1,178 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.responses; + +import com.oracle.bmc.ocvp.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class GenerateVmwareBinaryDownloadInfoResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned VmwareBinaryDownloadInfo instance. + */ + private com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo; + + /** + * The returned VmwareBinaryDownloadInfo instance. + * @return the value + */ + public com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo getVmwareBinaryDownloadInfo() { + return vmwareBinaryDownloadInfo; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "vmwareBinaryDownloadInfo" + }) + private GenerateVmwareBinaryDownloadInfoResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.vmwareBinaryDownloadInfo = vmwareBinaryDownloadInfo; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 VmwareBinaryDownloadInfo instance. + */ + private com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo; + + /** + * The returned VmwareBinaryDownloadInfo instance. + * @param vmwareBinaryDownloadInfo the value to set + * @return this builder + */ + public Builder vmwareBinaryDownloadInfo( + com.oracle.bmc.ocvp.model.VmwareBinaryDownloadInfo vmwareBinaryDownloadInfo) { + this.vmwareBinaryDownloadInfo = vmwareBinaryDownloadInfo; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GenerateVmwareBinaryDownloadInfoResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + vmwareBinaryDownloadInfo(o.getVmwareBinaryDownloadInfo()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GenerateVmwareBinaryDownloadInfoResponse build() { + return new GenerateVmwareBinaryDownloadInfoResponse( + __httpStatusCode__, headers, opcRequestId, vmwareBinaryDownloadInfo); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",vmwareBinaryDownloadInfo=").append(String.valueOf(vmwareBinaryDownloadInfo)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GenerateVmwareBinaryDownloadInfoResponse)) { + return false; + } + + GenerateVmwareBinaryDownloadInfoResponse other = + (GenerateVmwareBinaryDownloadInfoResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.vmwareBinaryDownloadInfo, other.vmwareBinaryDownloadInfo); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.vmwareBinaryDownloadInfo == null + ? 43 + : this.vmwareBinaryDownloadInfo.hashCode()); + return result; + } +} diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java new file mode 100644 index 00000000000..7755c00696f --- /dev/null +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveVmwareBinariesResponse.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.ocvp.responses; + +import com.oracle.bmc.ocvp.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701") +public class RetrieveVmwareBinariesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages + * of results remain. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned VmwareBinaryCollection instance. + */ + private com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection; + + /** + * The returned VmwareBinaryCollection instance. + * @return the value + */ + public com.oracle.bmc.ocvp.model.VmwareBinaryCollection getVmwareBinaryCollection() { + return vmwareBinaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "vmwareBinaryCollection" + }) + private RetrieveVmwareBinariesResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.vmwareBinaryCollection = vmwareBinaryCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 VmwareBinaryCollection instance. + */ + private com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection; + + /** + * The returned VmwareBinaryCollection instance. + * @param vmwareBinaryCollection the value to set + * @return this builder + */ + public Builder vmwareBinaryCollection( + com.oracle.bmc.ocvp.model.VmwareBinaryCollection vmwareBinaryCollection) { + this.vmwareBinaryCollection = vmwareBinaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(RetrieveVmwareBinariesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + vmwareBinaryCollection(o.getVmwareBinaryCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public RetrieveVmwareBinariesResponse build() { + return new RetrieveVmwareBinariesResponse( + __httpStatusCode__, headers, opcRequestId, opcNextPage, vmwareBinaryCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",vmwareBinaryCollection=").append(String.valueOf(vmwareBinaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RetrieveVmwareBinariesResponse)) { + return false; + } + + RetrieveVmwareBinariesResponse other = (RetrieveVmwareBinariesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.vmwareBinaryCollection, other.vmwareBinaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.vmwareBinaryCollection == null + ? 43 + : this.vmwareBinaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 13691fd62f1..ab7bcab0211 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-oda @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 775b2476e82..1f5951f421d 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-onesubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 7b86dd3264b..e3d7642cea2 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-ons @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index 0993cd622bc..80136097368 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-opa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 27a6e7d165f..964dcd83363 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-opensearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 225e1c4bcdd..33dd687987d 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 0653e078884..687e11ea8d6 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-opsi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 4355c948ca2..9bd88fd5d7f 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-optimizer @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 4ac5db0f672..9d066c48423 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index d4870a3f694..5877f5b7505 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-ospgateway @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index af2a5462d37..3ac024dd86d 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 8739225d57a..8eb42cdf0dd 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 60539f851ff..2cf127aa569 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-osubsubscription @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 5b585c34d68..0fa6b49afc1 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-osubusage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 665fdf408db..4d5494ec6fa 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index fa856a57014..1349967f65a 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java index 4fd4990b245..280bf3872b3 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/Backup.java @@ -38,6 +38,7 @@ public final class Backup extends com.oracle.bmc.http.internal.ExplicitlySetBmcM "lastAcceptedRequestToken", "lastCompletedRequestToken", "copyStatus", + "kmsKeyId", "freeformTags", "definedTags", "systemTags" @@ -61,6 +62,7 @@ public Backup( String lastAcceptedRequestToken, String lastCompletedRequestToken, java.util.List copyStatus, + String kmsKeyId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -83,6 +85,7 @@ public Backup( this.lastAcceptedRequestToken = lastAcceptedRequestToken; this.lastCompletedRequestToken = lastCompletedRequestToken; this.copyStatus = copyStatus; + this.kmsKeyId = kmsKeyId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -390,6 +393,22 @@ public Builder copyStatus(java.util.List copyStatus) { this.__explicitlySet__.add("copyStatus"); return this; } + /** + * The OCID of the master encryption key for the backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The OCID of the master encryption key for the backup. + * @param kmsKeyId the value to set + * @return this builder + **/ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -476,6 +495,7 @@ public Backup build() { this.lastAcceptedRequestToken, this.lastCompletedRequestToken, this.copyStatus, + this.kmsKeyId, this.freeformTags, this.definedTags, this.systemTags); @@ -541,6 +561,9 @@ public Builder copy(Backup model) { if (model.wasPropertyExplicitlySet("copyStatus")) { this.copyStatus(model.getCopyStatus()); } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -930,6 +953,20 @@ public java.util.List getCopyStatus() { return copyStatus; } + /** + * The OCID of the master encryption key for the backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The OCID of the master encryption key for the backup. + * @return the value + **/ + public String getKmsKeyId() { + return kmsKeyId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -1018,6 +1055,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lastCompletedRequestToken=") .append(String.valueOf(this.lastCompletedRequestToken)); sb.append(", copyStatus=").append(String.valueOf(this.copyStatus)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1055,6 +1093,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.lastCompletedRequestToken, other.lastCompletedRequestToken) && java.util.Objects.equals(this.copyStatus, other.copyStatus) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1109,6 +1148,7 @@ public int hashCode() { ? 43 : this.lastCompletedRequestToken.hashCode()); result = (result * PRIME) + (this.copyStatus == null ? 43 : this.copyStatus.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java index f71f303ab2d..77cdea16452 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java @@ -21,13 +21,17 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class BackupCopyDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions"}) + @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions", "kmsKeyIds"}) public BackupCopyDetails( - String compartmentId, Integer retentionPeriod, java.util.List regions) { + String compartmentId, + Integer retentionPeriod, + java.util.List regions, + java.util.List kmsKeyIds) { super(); this.compartmentId = compartmentId; this.retentionPeriod = retentionPeriod; this.regions = regions; + this.kmsKeyIds = kmsKeyIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -80,13 +84,30 @@ public Builder regions(java.util.List regions) { this.__explicitlySet__.add("regions"); return this; } + /** + * List of key ids of the remote regions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * @param kmsKeyIds the value to set + * @return this builder + **/ + public Builder kmsKeyIds(java.util.List kmsKeyIds) { + this.kmsKeyIds = kmsKeyIds; + this.__explicitlySet__.add("kmsKeyIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public BackupCopyDetails build() { BackupCopyDetails model = - new BackupCopyDetails(this.compartmentId, this.retentionPeriod, this.regions); + new BackupCopyDetails( + this.compartmentId, this.retentionPeriod, this.regions, this.kmsKeyIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -104,6 +125,9 @@ public Builder copy(BackupCopyDetails model) { if (model.wasPropertyExplicitlySet("regions")) { this.regions(model.getRegions()); } + if (model.wasPropertyExplicitlySet("kmsKeyIds")) { + this.kmsKeyIds(model.getKmsKeyIds()); + } return this; } } @@ -161,6 +185,20 @@ public java.util.List getRegions() { return regions; } + /** + * List of key ids of the remote regions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private final java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * @return the value + **/ + public java.util.List getKmsKeyIds() { + return kmsKeyIds; + } + @Override public String toString() { return this.toString(true); @@ -178,6 +216,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); sb.append(", regions=").append(String.valueOf(this.regions)); + sb.append(", kmsKeyIds=").append(String.valueOf(this.kmsKeyIds)); sb.append(")"); return sb.toString(); } @@ -195,6 +234,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) && java.util.Objects.equals(this.regions, other.regions) + && java.util.Objects.equals(this.kmsKeyIds, other.kmsKeyIds) && super.equals(other); } @@ -209,6 +249,7 @@ public int hashCode() { (result * PRIME) + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); + result = (result * PRIME) + (this.kmsKeyIds == null ? 43 : this.kmsKeyIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java index 4b99669d2dd..565e763dc0e 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyPolicy.java @@ -19,13 +19,17 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class BackupCopyPolicy extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions"}) + @java.beans.ConstructorProperties({"compartmentId", "retentionPeriod", "regions", "kmsKeyIds"}) public BackupCopyPolicy( - String compartmentId, Integer retentionPeriod, java.util.List regions) { + String compartmentId, + Integer retentionPeriod, + java.util.List regions, + java.util.List kmsKeyIds) { super(); this.compartmentId = compartmentId; this.retentionPeriod = retentionPeriod; this.regions = regions; + this.kmsKeyIds = kmsKeyIds; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -78,13 +82,30 @@ public Builder regions(java.util.List regions) { this.__explicitlySet__.add("regions"); return this; } + /** + * List of key ids of the remote regions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * @param kmsKeyIds the value to set + * @return this builder + **/ + public Builder kmsKeyIds(java.util.List kmsKeyIds) { + this.kmsKeyIds = kmsKeyIds; + this.__explicitlySet__.add("kmsKeyIds"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public BackupCopyPolicy build() { BackupCopyPolicy model = - new BackupCopyPolicy(this.compartmentId, this.retentionPeriod, this.regions); + new BackupCopyPolicy( + this.compartmentId, this.retentionPeriod, this.regions, this.kmsKeyIds); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -102,6 +123,9 @@ public Builder copy(BackupCopyPolicy model) { if (model.wasPropertyExplicitlySet("regions")) { this.regions(model.getRegions()); } + if (model.wasPropertyExplicitlySet("kmsKeyIds")) { + this.kmsKeyIds(model.getKmsKeyIds()); + } return this; } } @@ -159,6 +183,20 @@ public java.util.List getRegions() { return regions; } + /** + * List of key ids of the remote regions + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyIds") + private final java.util.List kmsKeyIds; + + /** + * List of key ids of the remote regions + * @return the value + **/ + public java.util.List getKmsKeyIds() { + return kmsKeyIds; + } + @Override public String toString() { return this.toString(true); @@ -176,6 +214,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); sb.append(", regions=").append(String.valueOf(this.regions)); + sb.append(", kmsKeyIds=").append(String.valueOf(this.kmsKeyIds)); sb.append(")"); return sb.toString(); } @@ -193,6 +232,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) && java.util.Objects.equals(this.regions, other.regions) + && java.util.Objects.equals(this.kmsKeyIds, other.kmsKeyIds) && super.equals(other); } @@ -207,6 +247,7 @@ public int hashCode() { (result * PRIME) + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); result = (result * PRIME) + (this.regions == null ? 43 : this.regions.hashCode()); + result = (result * PRIME) + (this.kmsKeyIds == null ? 43 : this.kmsKeyIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java index ccf2aedd15d..225678aecdf 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OciOptimizedStorageDetails.java @@ -44,6 +44,15 @@ public Builder availabilityDomain(String availabilityDomain) { this.__explicitlySet__.add("availabilityDomain"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } /** * Guaranteed input/output storage requests per second (IOPS) available to the database system. **/ @@ -67,7 +76,10 @@ public Builder iops(Long iops) { public OciOptimizedStorageDetails build() { OciOptimizedStorageDetails model = new OciOptimizedStorageDetails( - this.isRegionallyDurable, this.availabilityDomain, this.iops); + this.isRegionallyDurable, + this.availabilityDomain, + this.kmsKeyId, + this.iops); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -82,6 +94,9 @@ public Builder copy(OciOptimizedStorageDetails model) { if (model.wasPropertyExplicitlySet("availabilityDomain")) { this.availabilityDomain(model.getAvailabilityDomain()); } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } if (model.wasPropertyExplicitlySet("iops")) { this.iops(model.getIops()); } @@ -102,8 +117,8 @@ public Builder toBuilder() { @Deprecated public OciOptimizedStorageDetails( - Boolean isRegionallyDurable, String availabilityDomain, Long iops) { - super(isRegionallyDurable, availabilityDomain); + Boolean isRegionallyDurable, String availabilityDomain, String kmsKeyId, Long iops) { + super(isRegionallyDurable, availabilityDomain, kmsKeyId); this.iops = iops; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java index 3aca4702777..a73ec46ea90 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StorageDetails.java @@ -30,11 +30,13 @@ @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public class StorageDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"isRegionallyDurable", "availabilityDomain"}) - protected StorageDetails(Boolean isRegionallyDurable, String availabilityDomain) { + @java.beans.ConstructorProperties({"isRegionallyDurable", "availabilityDomain", "kmsKeyId"}) + protected StorageDetails( + Boolean isRegionallyDurable, String availabilityDomain, String kmsKeyId) { super(); this.isRegionallyDurable = isRegionallyDurable; this.availabilityDomain = availabilityDomain; + this.kmsKeyId = kmsKeyId; } /** @@ -79,6 +81,20 @@ public String getAvailabilityDomain() { return availabilityDomain; } + /** + * The OCID of the Vault service key to assign as the master encryption key for the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The OCID of the Vault service key to assign as the master encryption key for the database system. + * @return the value + **/ + public String getKmsKeyId() { + return kmsKeyId; + } + @Override public String toString() { return this.toString(true); @@ -95,6 +111,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("isRegionallyDurable=").append(String.valueOf(this.isRegionallyDurable)); sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(")"); return sb.toString(); } @@ -111,6 +128,7 @@ public boolean equals(Object o) { StorageDetails other = (StorageDetails) o; return java.util.Objects.equals(this.isRegionallyDurable, other.isRegionallyDurable) && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && super.equals(other); } @@ -128,6 +146,7 @@ public int hashCode() { + (this.availabilityDomain == null ? 43 : this.availabilityDomain.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java index b26f83f99ae..f6d84ac45b5 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateStorageDetailsParams.java @@ -22,10 +22,11 @@ public final class UpdateStorageDetailsParams extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"iops"}) - public UpdateStorageDetailsParams(Long iops) { + @java.beans.ConstructorProperties({"iops", "kmsKeyId"}) + public UpdateStorageDetailsParams(Long iops, String kmsKeyId) { super(); this.iops = iops; + this.kmsKeyId = kmsKeyId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -50,12 +51,29 @@ public Builder iops(Long iops) { this.__explicitlySet__.add("iops"); return this; } + /** + * The OCID of the Vault service key to assign as the master encryption key for the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private String kmsKeyId; + + /** + * The OCID of the Vault service key to assign as the master encryption key for the database system. + * @param kmsKeyId the value to set + * @return this builder + **/ + public Builder kmsKeyId(String kmsKeyId) { + this.kmsKeyId = kmsKeyId; + this.__explicitlySet__.add("kmsKeyId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateStorageDetailsParams build() { - UpdateStorageDetailsParams model = new UpdateStorageDetailsParams(this.iops); + UpdateStorageDetailsParams model = + new UpdateStorageDetailsParams(this.iops, this.kmsKeyId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -67,6 +85,9 @@ public Builder copy(UpdateStorageDetailsParams model) { if (model.wasPropertyExplicitlySet("iops")) { this.iops(model.getIops()); } + if (model.wasPropertyExplicitlySet("kmsKeyId")) { + this.kmsKeyId(model.getKmsKeyId()); + } return this; } } @@ -100,6 +121,20 @@ public Long getIops() { return iops; } + /** + * The OCID of the Vault service key to assign as the master encryption key for the database system. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") + private final String kmsKeyId; + + /** + * The OCID of the Vault service key to assign as the master encryption key for the database system. + * @return the value + **/ + public String getKmsKeyId() { + return kmsKeyId; + } + @Override public String toString() { return this.toString(true); @@ -115,6 +150,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateStorageDetailsParams("); sb.append("super=").append(super.toString()); sb.append("iops=").append(String.valueOf(this.iops)); + sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(")"); return sb.toString(); } @@ -129,7 +165,9 @@ public boolean equals(Object o) { } UpdateStorageDetailsParams other = (UpdateStorageDetailsParams) o; - return java.util.Objects.equals(this.iops, other.iops) && super.equals(other); + return java.util.Objects.equals(this.iops, other.iops) + && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && super.equals(other); } @Override @@ -137,6 +175,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.iops == null ? 43 : this.iops.hashCode()); + result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 4aa9675e8bb..7552c0f19a6 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-queue @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 7fdb3e2712c..0a0c5fdf694 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-recovery @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java index c0d8fbf8b26..e8391fb7519 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java @@ -59,6 +59,18 @@ public interface DatabaseRecovery extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancels a long-term backup that is being created or scheduled to be created. You must specify the unique identifier or OCID of the long-term backup that you want to cancel. You can cancel a long-term backup only if the current state of the backup resource is WAITING_FOR_BACKUP_FROM_DB, or SCHEDULED_FOR_ARCHIVAL, or ARCHIVAL_IN_PROGRESS. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CancelLongTermBackup API. + */ + CancelLongTermBackupResponse cancelLongTermBackup(CancelLongTermBackupRequest request); + /** * Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state. * @param request The request object containing the details to send @@ -124,6 +136,19 @@ ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartment( ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubnetCompartment( ChangeRecoveryServiceSubnetCompartmentRequest request); + /** + * Creates a long-term backup of a specified protected database. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use CreateLongTermBackup API. + */ + CreateLongTermBackupResponse createLongTermBackup(CreateLongTermBackupRequest request); + /** * Creates a new Protected Database. * @@ -164,8 +189,23 @@ ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubnetCompar CreateRecoveryServiceSubnetResponse createRecoveryServiceSubnet( CreateRecoveryServiceSubnetRequest request); + /** + * Deletes a long-term backup. You can delete a long-term backup only if the current state of the backup is ACTIVE, FAILED, or CANCELED. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use DeleteLongTermBackup API. + */ + DeleteLongTermBackupResponse deleteLongTermBackup(DeleteLongTermBackupRequest request); + /** * Deletes a protected database based on the specified protected database ID. + * Only the user or the Oracle Database service that created the protected database is allowed to modify or delete it. + * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. @@ -216,6 +256,18 @@ DeleteRecoveryServiceSubnetResponse deleteRecoveryServiceSubnet( FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfiguration( FetchProtectedDatabaseConfigurationRequest request); + /** + * Retrieves information regarding a long-term backup. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use GetLongTermBackup API. + */ + GetLongTermBackupResponse getLongTermBackup(GetLongTermBackupRequest request); + /** * Gets information about a specified protected database. * @param request The request object containing the details to send @@ -265,6 +317,19 @@ GetRecoveryServiceSubnetResponse getRecoveryServiceSubnet( */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); + /** + * Lists the long-term backups associated with a protected database. You can filter the results using the unique identifier (OCID) of a specific compartment, a protected database, or a long-term backup. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListLongTermBackups API. + */ + ListLongTermBackupsResponse listLongTermBackups(ListLongTermBackupsRequest request); + /** * Lists the protected databases based on the specified parameters. * @@ -346,6 +411,8 @@ ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( /** * Defines a preferred schedule to delete a protected database after you terminate the source database. + * Only the user or the Oracle Database service that created the protected database is allowed to modify or delete it. + *

        * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. * The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires. * @@ -360,6 +427,18 @@ ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeletion( ScheduleProtectedDatabaseDeletionRequest request); + /** + * Updates the specified long term backup. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use UpdateLongTermBackup API. + */ + UpdateLongTermBackupResponse updateLongTermBackup(UpdateLongTermBackupRequest request); + /** * Updates the Protected Database * @param request The request object containing the details to send diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java index 54ec3570fcf..5c8eb46c411 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java @@ -58,6 +58,22 @@ public interface DatabaseRecoveryAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancels a long-term backup that is being created or scheduled to be created. You must specify the unique identifier or OCID of the long-term backup that you want to cancel. You can cancel a long-term backup only if the current state of the backup resource is WAITING_FOR_BACKUP_FROM_DB, or SCHEDULED_FOR_ARCHIVAL, or ARCHIVAL_IN_PROGRESS. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future cancelLongTermBackup( + CancelLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelLongTermBackupRequest, CancelLongTermBackupResponse> + handler); + /** * Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state. * @@ -148,6 +164,23 @@ public interface DatabaseRecoveryAsync extends AutoCloseable { ChangeRecoveryServiceSubnetCompartmentResponse> handler); + /** + * Creates a long-term backup of a specified protected database. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future createLongTermBackup( + CreateLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateLongTermBackupRequest, CreateLongTermBackupResponse> + handler); + /** * Creates a new Protected Database. * @@ -199,8 +232,27 @@ java.util.concurrent.Future createRecoveryS CreateRecoveryServiceSubnetRequest, CreateRecoveryServiceSubnetResponse> handler); + /** + * Deletes a long-term backup. You can delete a long-term backup only if the current state of the backup is ACTIVE, FAILED, or CANCELED. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future deleteLongTermBackup( + DeleteLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse> + handler); + /** * Deletes a protected database based on the specified protected database ID. + * Only the user or the Oracle Database service that created the protected database is allowed to modify or delete it. + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -267,6 +319,22 @@ java.util.concurrent.Future deleteRecoveryS FetchProtectedDatabaseConfigurationResponse> handler); + /** + * Retrieves information regarding a long-term backup. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future getLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetLongTermBackupRequest, GetLongTermBackupResponse> + handler); + /** * Gets information about a specified protected database. * @@ -330,6 +398,23 @@ java.util.concurrent.Future getWorkRequest( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists the long-term backups associated with a protected database. You can filter the results using the unique identifier (OCID) of a specific compartment, a protected database, or a long-term backup. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future listLongTermBackups( + ListLongTermBackupsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListLongTermBackupsRequest, ListLongTermBackupsResponse> + handler); + /** * Lists the protected databases based on the specified parameters. * @@ -433,6 +518,8 @@ java.util.concurrent.Future listWorkRequests( /** * Defines a preferred schedule to delete a protected database after you terminate the source database. + * Only the user or the Oracle Database service that created the protected database is allowed to modify or delete it. + *

        * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. * The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires. * @@ -452,6 +539,22 @@ java.util.concurrent.Future listWorkRequests( ScheduleProtectedDatabaseDeletionResponse> handler); + /** + * Updates the specified long term backup. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future updateLongTermBackup( + UpdateLongTermBackupRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse> + handler); + /** * Updates the Protected Database * diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java index 3227c57be96..e54c866bfde 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsyncClient.java @@ -475,6 +475,54 @@ public void close() { client.close(); } + @Override + public java.util.concurrent.Future cancelLongTermBackup( + CancelLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelLongTermBackupRequest, CancelLongTermBackupResponse> + handler) { + LOG.trace("Called async cancelLongTermBackup"); + final CancelLongTermBackupRequest interceptedRequest = + CancelLongTermBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelLongTermBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "CancelLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CancelLongTermBackup"); + final java.util.function.Function + transformer = + CancelLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CancelLongTermBackupRequest, CancelLongTermBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CancelLongTermBackupRequest, CancelLongTermBackupResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CancelLongTermBackupRequest, CancelLongTermBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future cancelProtectedDatabaseDeletion( @@ -488,6 +536,7 @@ public void close() { CancelProtectedDatabaseDeletionConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = CancelProtectedDatabaseDeletionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -541,6 +590,7 @@ protected void beforeRetryAction() {} ChangeProtectedDatabaseCompartmentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ChangeProtectedDatabaseCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -600,6 +650,7 @@ protected void beforeRetryAction() {} final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ChangeProtectedDatabaseSubscriptionConverter.fromRequest( client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -658,6 +709,7 @@ protected void beforeRetryAction() {} ChangeProtectionPolicyCompartmentConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ChangeProtectionPolicyCompartmentConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -717,6 +769,7 @@ protected void beforeRetryAction() {} final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ChangeRecoveryServiceSubnetCompartmentConverter.fromRequest( client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -763,6 +816,59 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createLongTermBackup( + CreateLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateLongTermBackupRequest, CreateLongTermBackupResponse> + handler) { + LOG.trace("Called async createLongTermBackup"); + final CreateLongTermBackupRequest interceptedRequest = + CreateLongTermBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateLongTermBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "CreateLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CreateLongTermBackup"); + final java.util.function.Function + transformer = + CreateLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + CreateLongTermBackupRequest, CreateLongTermBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateLongTermBackupRequest, CreateLongTermBackupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getCreateLongTermBackupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateLongTermBackupRequest, CreateLongTermBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createProtectedDatabase( CreateProtectedDatabaseRequest request, @@ -927,6 +1033,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteLongTermBackup( + DeleteLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse> + handler) { + LOG.trace("Called async deleteLongTermBackup"); + final DeleteLongTermBackupRequest interceptedRequest = + DeleteLongTermBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteLongTermBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "DeleteLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/DeleteLongTermBackup"); + final java.util.function.Function + transformer = + DeleteLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteLongTermBackupRequest, DeleteLongTermBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteProtectedDatabase( DeleteProtectedDatabaseRequest request, @@ -1087,6 +1240,7 @@ protected void beforeRetryAction() {} final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = FetchProtectedDatabaseConfigurationConverter.fromRequest( client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -1132,6 +1286,52 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getLongTermBackup( + GetLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetLongTermBackupRequest, GetLongTermBackupResponse> + handler) { + LOG.trace("Called async getLongTermBackup"); + final GetLongTermBackupRequest interceptedRequest = + GetLongTermBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetLongTermBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "GetLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/GetLongTermBackup"); + final java.util.function.Function + transformer = + GetLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetLongTermBackupRequest, GetLongTermBackupResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetLongTermBackupRequest, GetLongTermBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getProtectedDatabase( GetProtectedDatabaseRequest request, @@ -1319,6 +1519,53 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listLongTermBackups( + ListLongTermBackupsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListLongTermBackupsRequest, ListLongTermBackupsResponse> + handler) { + LOG.trace("Called async listLongTermBackups"); + final ListLongTermBackupsRequest interceptedRequest = + ListLongTermBackupsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListLongTermBackupsConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "ListLongTermBackups", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackupCollection/ListLongTermBackups"); + final java.util.function.Function + transformer = + ListLongTermBackupsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListLongTermBackupsRequest, ListLongTermBackupsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListLongTermBackupsRequest, ListLongTermBackupsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListLongTermBackupsRequest, ListLongTermBackupsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listProtectedDatabases( ListProtectedDatabasesRequest request, @@ -1617,6 +1864,7 @@ protected void beforeRetryAction() {} ScheduleProtectedDatabaseDeletionConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = ScheduleProtectedDatabaseDeletionConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( "DatabaseRecovery", @@ -1662,6 +1910,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateLongTermBackup( + UpdateLongTermBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse> + handler) { + LOG.trace("Called async updateLongTermBackup"); + final UpdateLongTermBackupRequest interceptedRequest = + UpdateLongTermBackupConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateLongTermBackupConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "UpdateLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/UpdateLongTermBackup"); + final java.util.function.Function + transformer = + UpdateLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse>, + java.util.concurrent.Future> + futureSupplier = + client.putFutureSupplier( + interceptedRequest, + interceptedRequest.getUpdateLongTermBackupDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateLongTermBackupRequest, UpdateLongTermBackupResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateProtectedDatabase( UpdateProtectedDatabaseRequest request, diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java index ecba48a23b8..67c81513400 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java @@ -563,6 +563,45 @@ public void close() { client.close(); } + @Override + public CancelLongTermBackupResponse cancelLongTermBackup(CancelLongTermBackupRequest request) { + LOG.trace("Called cancelLongTermBackup"); + final CancelLongTermBackupRequest interceptedRequest = + CancelLongTermBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CancelLongTermBackupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "CancelLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CancelLongTermBackup"); + java.util.function.Function + transformer = + CancelLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( CancelProtectedDatabaseDeletionRequest request) { @@ -575,6 +614,7 @@ public CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -615,6 +655,7 @@ public ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompart final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -660,6 +701,7 @@ public ChangeProtectedDatabaseSubscriptionResponse changeProtectedDatabaseSubscr final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -704,6 +746,7 @@ public ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartme final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -749,6 +792,7 @@ public ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubne final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -781,6 +825,48 @@ public ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubne }); } + @Override + public CreateLongTermBackupResponse createLongTermBackup(CreateLongTermBackupRequest request) { + LOG.trace("Called createLongTermBackup"); + final CreateLongTermBackupRequest interceptedRequest = + CreateLongTermBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateLongTermBackupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "CreateLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/CreateLongTermBackup"); + java.util.function.Function + transformer = + CreateLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getCreateLongTermBackupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateProtectedDatabaseResponse createProtectedDatabase( CreateProtectedDatabaseRequest request) { @@ -911,6 +997,44 @@ public CreateRecoveryServiceSubnetResponse createRecoveryServiceSubnet( }); } + @Override + public DeleteLongTermBackupResponse deleteLongTermBackup(DeleteLongTermBackupRequest request) { + LOG.trace("Called deleteLongTermBackup"); + final DeleteLongTermBackupRequest interceptedRequest = + DeleteLongTermBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteLongTermBackupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "DeleteLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/DeleteLongTermBackup"); + java.util.function.Function + transformer = + DeleteLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteProtectedDatabaseResponse deleteProtectedDatabase( DeleteProtectedDatabaseRequest request) { @@ -1041,6 +1165,7 @@ public FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfigu final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -1073,6 +1198,43 @@ public FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfigu }); } + @Override + public GetLongTermBackupResponse getLongTermBackup(GetLongTermBackupRequest request) { + LOG.trace("Called getLongTermBackup"); + final GetLongTermBackupRequest interceptedRequest = + GetLongTermBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetLongTermBackupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "GetLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/GetLongTermBackup"); + java.util.function.Function + transformer = + GetLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public GetProtectedDatabaseResponse getProtectedDatabase(GetProtectedDatabaseRequest request) { LOG.trace("Called getProtectedDatabase"); @@ -1220,6 +1382,43 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { }); } + @Override + public ListLongTermBackupsResponse listLongTermBackups(ListLongTermBackupsRequest request) { + LOG.trace("Called listLongTermBackups"); + final ListLongTermBackupsRequest interceptedRequest = + ListLongTermBackupsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListLongTermBackupsConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "ListLongTermBackups", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackupCollection/ListLongTermBackups"); + java.util.function.Function + transformer = + ListLongTermBackupsConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListProtectedDatabasesResponse listProtectedDatabases( ListProtectedDatabasesRequest request) { @@ -1458,6 +1657,7 @@ public ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeleti final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); com.oracle.bmc.ServiceDetails serviceDetails = new com.oracle.bmc.ServiceDetails( @@ -1490,6 +1690,47 @@ public ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeleti }); } + @Override + public UpdateLongTermBackupResponse updateLongTermBackup(UpdateLongTermBackupRequest request) { + LOG.trace("Called updateLongTermBackup"); + final UpdateLongTermBackupRequest interceptedRequest = + UpdateLongTermBackupConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateLongTermBackupConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "DatabaseRecovery", + "UpdateLongTermBackup", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/LongTermBackup/UpdateLongTermBackup"); + java.util.function.Function + transformer = + UpdateLongTermBackupConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.put( + ib, + retriedRequest.getUpdateLongTermBackupDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateProtectedDatabaseResponse updateProtectedDatabase( UpdateProtectedDatabaseRequest request) { diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java index 67028e7123e..7d3b5b5c917 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryPaginators.java @@ -33,6 +33,119 @@ public DatabaseRecoveryPaginators(DatabaseRecovery client) { this.client = client; } + /** + * Creates a new iterable which will iterate over the responses received from the listLongTermBackups operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable listLongTermBackupsResponseIterator( + final ListLongTermBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListLongTermBackupsRequest.Builder, ListLongTermBackupsRequest, + ListLongTermBackupsResponse>( + new java.util.function.Supplier() { + @Override + public ListLongTermBackupsRequest.Builder get() { + return ListLongTermBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListLongTermBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.Builder>, + ListLongTermBackupsRequest>() { + @Override + public ListLongTermBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListLongTermBackupsRequest, ListLongTermBackupsResponse>() { + @Override + public ListLongTermBackupsResponse apply(ListLongTermBackupsRequest request) { + return client.listLongTermBackups(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.recovery.model.LongTermBackupSummary} objects + * contained in responses from the listLongTermBackups operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.recovery.model.LongTermBackupSummary} objects + * contained in responses received from the service. + */ + public Iterable + listLongTermBackupsRecordIterator(final ListLongTermBackupsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListLongTermBackupsRequest.Builder, ListLongTermBackupsRequest, + ListLongTermBackupsResponse, com.oracle.bmc.recovery.model.LongTermBackupSummary>( + new java.util.function.Supplier() { + @Override + public ListLongTermBackupsRequest.Builder get() { + return ListLongTermBackupsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListLongTermBackupsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.Builder>, + ListLongTermBackupsRequest>() { + @Override + public ListLongTermBackupsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListLongTermBackupsRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListLongTermBackupsRequest, ListLongTermBackupsResponse>() { + @Override + public ListLongTermBackupsResponse apply(ListLongTermBackupsRequest request) { + return client.listLongTermBackups(request); + } + }, + new java.util.function.Function< + ListLongTermBackupsResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListLongTermBackupsResponse response) { + return response.getLongTermBackupCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listProtectedDatabases operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java index 126fe0c01b0..682a691e4df 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryWaiters.java @@ -24,6 +24,111 @@ public DatabaseRecoveryWaiters( this.client = client; } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.recovery.model.LongTermBackup.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forLongTermBackup( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.recovery.model.LongTermBackup.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forLongTermBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forLongTermBackup( + GetLongTermBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.recovery.model.LongTermBackup.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forLongTermBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for LongTermBackup. + private com.oracle.bmc.waiter.Waiter + forLongTermBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetLongTermBackupRequest request, + final com.oracle.bmc.recovery.model.LongTermBackup.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetLongTermBackupRequest, GetLongTermBackupResponse>() { + @Override + public GetLongTermBackupResponse apply( + GetLongTermBackupRequest request) { + return client.getLongTermBackup(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetLongTermBackupResponse response) { + return targetStatesSet.contains( + response.getLongTermBackup().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.recovery.model.LongTermBackup.LifecycleState + .Deleted)), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelLongTermBackupConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelLongTermBackupConverter.java new file mode 100644 index 00000000000..4621712b9ed --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelLongTermBackupConverter.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.recovery.model.*; +import com.oracle.bmc.recovery.requests.*; +import com.oracle.bmc.recovery.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelLongTermBackupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CancelLongTermBackupConverter.class); + + public static com.oracle.bmc.recovery.requests.CancelLongTermBackupRequest interceptRequest( + com.oracle.bmc.recovery.requests.CancelLongTermBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.recovery.requests.CancelLongTermBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210216") + .path("longTermBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLongTermBackupId())) + .path("actions") + .path("cancel"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse>() { + @Override + public com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse + .Builder + builder = + com.oracle.bmc.recovery.responses + .CancelLongTermBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.recovery.responses.CancelLongTermBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelProtectedDatabaseDeletionConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelProtectedDatabaseDeletionConverter.java index 531340f4756..1b49d68bacb 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelProtectedDatabaseDeletionConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CancelProtectedDatabaseDeletionConverter.java @@ -48,6 +48,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseCompartmentConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseCompartmentConverter.java index d56d01872c8..e0b672fdf8d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseCompartmentConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseCompartmentConverter.java @@ -51,6 +51,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseSubscriptionConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseSubscriptionConverter.java index 3b1b883997c..4d9a2cdb656 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseSubscriptionConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectedDatabaseSubscriptionConverter.java @@ -51,6 +51,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectionPolicyCompartmentConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectionPolicyCompartmentConverter.java index ecef8b962ca..550a85056d2 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectionPolicyCompartmentConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeProtectionPolicyCompartmentConverter.java @@ -50,6 +50,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeRecoveryServiceSubnetCompartmentConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeRecoveryServiceSubnetCompartmentConverter.java index 4309cf771ce..614f191430f 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeRecoveryServiceSubnetCompartmentConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ChangeRecoveryServiceSubnetCompartmentConverter.java @@ -53,6 +53,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CreateLongTermBackupConverter.java similarity index 66% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java rename to bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CreateLongTermBackupConverter.java index 8d156956c91..26c06e6067c 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/CreateLongTermBackupConverter.java @@ -2,48 +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.internal.http; +package com.oracle.bmc.recovery.internal.http; import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; +import com.oracle.bmc.recovery.model.*; +import com.oracle.bmc.recovery.requests.*; +import com.oracle.bmc.recovery.responses.*; import com.oracle.bmc.util.internal.Validate; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabasePrivateEndpointConverter { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CreateLongTermBackupConverter { private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 RESPONSE_CONVERSION_FACTORY = new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - CreateDistributedDatabasePrivateEndpointConverter.class); + org.slf4j.LoggerFactory.getLogger(CreateLongTermBackupConverter.class); - public static com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedDatabasePrivateEndpointRequest - request) { + public static com.oracle.bmc.recovery.requests.CreateLongTermBackupRequest interceptRequest( + com.oracle.bmc.recovery.requests.CreateLongTermBackupRequest request) { return request; } public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedDatabasePrivateEndpointRequest - request) { + com.oracle.bmc.recovery.requests.CreateLongTermBackupRequest request) { Validate.notNull(request, "request instance is required"); Validate.notNull( - request.getCreateDistributedDatabasePrivateEndpointDetails(), - "createDistributedDatabasePrivateEndpointDetails is required"); + request.getCreateLongTermBackupDetails(), + "createLongTermBackupDetails is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints"); + client.getBaseTarget().path("/20210216").path("longTermBackups"); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); @@ -65,71 +56,81 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse> fromResponse() { return fromResponse(java.util.Optional.empty()); } public static java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse> fromResponse(java.util.Optional serviceDetails) { final java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse> + com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse> transformer = new java.util.function.Function< javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse>() { + com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse>() { @Override - public com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse + public com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse apply(javax.ws.rs.core.Response rawResponse) { LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.CreateDistributedDatabasePrivateEndpointResponse"); + "Transform function invoked for com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse"); final java.util.function.Function< javax.ws.rs.core.Response, com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint>> + com.oracle.bmc.recovery.model + .LongTermBackup>> responseFn; if (serviceDetails.isPresent()) { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint + com.oracle.bmc.recovery.model.LongTermBackup .class, serviceDetails.get()); } else { responseFn = RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint + com.oracle.bmc.recovery.model.LongTermBackup .class); } com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint> + com.oracle.bmc.recovery.model.LongTermBackup> response = responseFn.apply(rawResponse); javax.ws.rs.core.MultivaluedMap headers = response.getHeaders(); - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse .Builder builder = - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse - .builder() + com.oracle.bmc.recovery.responses + .CreateLongTermBackupResponse.builder() .__httpStatusCode__(rawResponse.getStatus()) .headers(headers); - builder.distributedDatabasePrivateEndpoint(response.getItem()); + builder.longTermBackup(response.getItem()); + + java.util.Optional> locationHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "location"); + if (locationHeader.isPresent()) { + builder.location( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "location", + locationHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } java.util.Optional> opcWorkRequestIdHeader = com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( @@ -153,17 +154,7 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( String.class)); } - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse + com.oracle.bmc.recovery.responses.CreateLongTermBackupResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/DeleteLongTermBackupConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/DeleteLongTermBackupConverter.java new file mode 100644 index 00000000000..59a5c910df9 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/DeleteLongTermBackupConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.recovery.model.*; +import com.oracle.bmc.recovery.requests.*; +import com.oracle.bmc.recovery.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class DeleteLongTermBackupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(DeleteLongTermBackupConverter.class); + + public static com.oracle.bmc.recovery.requests.DeleteLongTermBackupRequest interceptRequest( + com.oracle.bmc.recovery.requests.DeleteLongTermBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.recovery.requests.DeleteLongTermBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210216") + .path("longTermBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLongTermBackupId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse>() { + @Override + public com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse + .Builder + builder = + com.oracle.bmc.recovery.responses + .DeleteLongTermBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.recovery.responses.DeleteLongTermBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/FetchProtectedDatabaseConfigurationConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/FetchProtectedDatabaseConfigurationConverter.java index cc344398b89..9e9303d5d51 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/FetchProtectedDatabaseConfigurationConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/FetchProtectedDatabaseConfigurationConverter.java @@ -47,6 +47,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getOpcRequestId() != null) { ib.header("opc-request-id", request.getOpcRequestId()); } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/GetLongTermBackupConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/GetLongTermBackupConverter.java new file mode 100644 index 00000000000..e09ea4319c3 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/GetLongTermBackupConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.recovery.model.*; +import com.oracle.bmc.recovery.requests.*; +import com.oracle.bmc.recovery.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class GetLongTermBackupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(GetLongTermBackupConverter.class); + + public static com.oracle.bmc.recovery.requests.GetLongTermBackupRequest interceptRequest( + com.oracle.bmc.recovery.requests.GetLongTermBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.recovery.requests.GetLongTermBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210216") + .path("longTermBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLongTermBackupId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.GetLongTermBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.GetLongTermBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.GetLongTermBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.GetLongTermBackupResponse>() { + @Override + public com.oracle.bmc.recovery.responses.GetLongTermBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.recovery.responses.GetLongTermBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.recovery.model + .LongTermBackup>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.recovery.model.LongTermBackup + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.recovery.model.LongTermBackup + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.recovery.model.LongTermBackup> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.recovery.responses.GetLongTermBackupResponse.Builder + builder = + com.oracle.bmc.recovery.responses + .GetLongTermBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.longTermBackup(response.getItem()); + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.recovery.responses.GetLongTermBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListLongTermBackupsConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListLongTermBackupsConverter.java new file mode 100644 index 00000000000..84a140b78e9 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListLongTermBackupsConverter.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.recovery.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.recovery.model.*; +import com.oracle.bmc.recovery.requests.*; +import com.oracle.bmc.recovery.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ListLongTermBackupsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListLongTermBackupsConverter.class); + + public static com.oracle.bmc.recovery.requests.ListLongTermBackupsRequest interceptRequest( + com.oracle.bmc.recovery.requests.ListLongTermBackupsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.recovery.requests.ListLongTermBackupsRequest request) { + Validate.notNull(request, "request instance is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20210216").path("longTermBackups"); + + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } + + if (request.getId() != null) { + target = + target.queryParam( + "id", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getId())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getProtectedDatabaseId() != null) { + target = + target.queryParam( + "protectedDatabaseId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getProtectedDatabaseId())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse>() { + @Override + public com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.recovery.model + .LongTermBackupCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.recovery.model + .LongTermBackupCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.recovery.model + .LongTermBackupCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.recovery.model + .LongTermBackupCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse + .Builder + builder = + com.oracle.bmc.recovery.responses + .ListLongTermBackupsResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.longTermBackupCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.recovery.responses.ListLongTermBackupsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectedDatabasesConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectedDatabasesConverter.java index 3ee82b098ca..ed3d978f0c0 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectedDatabasesConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectedDatabasesConverter.java @@ -29,16 +29,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.recovery.requests.ListProtectedDatabasesRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20210216").path("protectedDatabases"); - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } if (request.getLifecycleState() != null) { target = @@ -80,6 +81,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getRecoveryServiceSubnetId())); } + if (request.getBackupCloudLocation() != null) { + target = + target.queryParam( + "backupCloudLocation", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getBackupCloudLocation().getValue())); + } + if (request.getLimit() != null) { target = target.queryParam( diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectionPoliciesConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectionPoliciesConverter.java index 67bb593b29a..68b9513e8e5 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectionPoliciesConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListProtectionPoliciesConverter.java @@ -29,16 +29,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.recovery.requests.ListProtectionPoliciesRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20210216").path("protectionPolicies"); - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } if (request.getLifecycleState() != null) { target = @@ -72,6 +73,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getOwner().getValue())); } + if (request.getMustEnforceCloudLocality() != null) { + target = + target.queryParam( + "mustEnforceCloudLocality", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getMustEnforceCloudLocality())); + } + if (request.getLimit() != null) { target = target.queryParam( diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListRecoveryServiceSubnetsConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListRecoveryServiceSubnetsConverter.java index 9929df55493..80b4503da2e 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListRecoveryServiceSubnetsConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListRecoveryServiceSubnetsConverter.java @@ -30,16 +30,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.recovery.requests.ListRecoveryServiceSubnetsRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20210216").path("recoveryServiceSubnets"); - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } if (request.getLifecycleState() != null) { target = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListWorkRequestsConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListWorkRequestsConverter.java index 7778def333c..c32a11b4904 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListWorkRequestsConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ListWorkRequestsConverter.java @@ -29,16 +29,17 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( com.oracle.bmc.http.internal.RestClient client, com.oracle.bmc.recovery.requests.ListWorkRequestsRequest request) { Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); com.oracle.bmc.http.internal.WrappedWebTarget target = client.getBaseTarget().path("/20210216").path("workRequests"); - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); + if (request.getCompartmentId() != null) { + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + } if (request.getWorkRequestId() != null) { target = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ScheduleProtectedDatabaseDeletionConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ScheduleProtectedDatabaseDeletionConverter.java index 2f1f9024fef..e50fb3a330c 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ScheduleProtectedDatabaseDeletionConverter.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/ScheduleProtectedDatabaseDeletionConverter.java @@ -48,6 +48,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + if (request.getIfMatch() != null) { ib.header("if-match", request.getIfMatch()); } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/UpdateLongTermBackupConverter.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/UpdateLongTermBackupConverter.java new file mode 100644 index 00000000000..b0bcdafab86 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/internal/http/UpdateLongTermBackupConverter.java @@ -0,0 +1,142 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.recovery.model.*; +import com.oracle.bmc.recovery.requests.*; +import com.oracle.bmc.recovery.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class UpdateLongTermBackupConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(UpdateLongTermBackupConverter.class); + + public static com.oracle.bmc.recovery.requests.UpdateLongTermBackupRequest interceptRequest( + com.oracle.bmc.recovery.requests.UpdateLongTermBackupRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.recovery.requests.UpdateLongTermBackupRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getLongTermBackupId(), "longTermBackupId must not be blank"); + Validate.notNull( + request.getUpdateLongTermBackupDetails(), + "updateLongTermBackupDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20210216") + .path("longTermBackups") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getLongTermBackupId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse>() { + @Override + public com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse + .Builder + builder = + com.oracle.bmc.recovery.responses + .UpdateLongTermBackupResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.recovery.responses.UpdateLongTermBackupResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.java new file mode 100644 index 00000000000..4eda4bf0112 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/BackupCloudLocation.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.recovery.model; + +/** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public enum BackupCloudLocation { + Azure("AZURE"), + Oci("OCI"), + Gcp("GCP"), + Aws("AWS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(BackupCloudLocation.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (BackupCloudLocation v : BackupCloudLocation.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + BackupCloudLocation(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static BackupCloudLocation create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'BackupCloudLocation', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java new file mode 100644 index 00000000000..daea3930941 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateLongTermBackupDetails.java @@ -0,0 +1,408 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.model; + +/** + * Describes the parameters required to create an on demand long term backup. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateLongTermBackupDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class CreateLongTermBackupDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "displayName", + "protectedDatabaseId", + "retentionScn", + "retentionPointInTime", + "retentionPeriod", + "freeformTags", + "definedTags" + }) + public CreateLongTermBackupDetails( + String displayName, + String protectedDatabaseId, + Integer retentionScn, + java.util.Date retentionPointInTime, + java.util.List retentionPeriod, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.displayName = displayName; + this.protectedDatabaseId = protectedDatabaseId; + this.retentionScn = retentionScn; + this.retentionPointInTime = retentionPointInTime; + this.retentionPeriod = retentionPeriod; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the protected database for which you want to create the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private String protectedDatabaseId; + + /** + * The OCID of the protected database for which you want to create the long-term backup. + * @param protectedDatabaseId the value to set + * @return this builder + **/ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + this.__explicitlySet__.add("protectedDatabaseId"); + return this; + } + /** + * The desired target point (SCN) at which you want to create the long-term backup of the database.For example, specify the value as 1000 if you want to create the long-term backup until SCN 1000. If you want to specify the target point as a time expression instead of the SCN value, then use the longTermRetentionPointInTime parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private Integer retentionScn; + + /** + * The desired target point (SCN) at which you want to create the long-term backup of the database.For example, specify the value as 1000 if you want to create the long-term backup until SCN 1000. If you want to specify the target point as a time expression instead of the SCN value, then use the longTermRetentionPointInTime parameter. + * @param retentionScn the value to set + * @return this builder + **/ + public Builder retentionScn(Integer retentionScn) { + this.retentionScn = retentionScn; + this.__explicitlySet__.add("retentionScn"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in the database at which you want to create the long-term backup. For example, if you want the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN value instead of the target time, then use the databaseSCN parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in the database at which you want to create the long-term backup. For example, if you want the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN value instead of the target time, then use the databaseSCN parameter. + * @param retentionPointInTime the value to set + * @return this builder + **/ + public Builder retentionPointInTime(java.util.Date retentionPointInTime) { + this.retentionPointInTime = retentionPointInTime; + this.__explicitlySet__.add("retentionPointInTime"); + return this; + } + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the duration for the long-term backup. If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the duration for the long-term backup. If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + * @param retentionPeriod the value to set + * @return this builder + **/ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateLongTermBackupDetails build() { + CreateLongTermBackupDetails model = + new CreateLongTermBackupDetails( + this.displayName, + this.protectedDatabaseId, + this.retentionScn, + this.retentionPointInTime, + this.retentionPeriod, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateLongTermBackupDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("protectedDatabaseId")) { + this.protectedDatabaseId(model.getProtectedDatabaseId()); + } + if (model.wasPropertyExplicitlySet("retentionScn")) { + this.retentionScn(model.getRetentionScn()); + } + if (model.wasPropertyExplicitlySet("retentionPointInTime")) { + this.retentionPointInTime(model.getRetentionPointInTime()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the protected database for which you want to create the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private final String protectedDatabaseId; + + /** + * The OCID of the protected database for which you want to create the long-term backup. + * @return the value + **/ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + + /** + * The desired target point (SCN) at which you want to create the long-term backup of the database.For example, specify the value as 1000 if you want to create the long-term backup until SCN 1000. If you want to specify the target point as a time expression instead of the SCN value, then use the longTermRetentionPointInTime parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private final Integer retentionScn; + + /** + * The desired target point (SCN) at which you want to create the long-term backup of the database.For example, specify the value as 1000 if you want to create the long-term backup until SCN 1000. If you want to specify the target point as a time expression instead of the SCN value, then use the longTermRetentionPointInTime parameter. + * @return the value + **/ + public Integer getRetentionScn() { + return retentionScn; + } + + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in the database at which you want to create the long-term backup. For example, if you want the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN value instead of the target time, then use the databaseSCN parameter. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private final java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the desired target point in time in the database at which you want to create the long-term backup. For example, if you want the long-term backup to include all the changes until May 22 at 9:10 PM, then specify the value as, '2020-05-22T21:10:00.000Z'. If you want to specify the target point as an SCN value instead of the target time, then use the databaseSCN parameter. + * @return the value + **/ + public java.util.Date getRetentionPointInTime() { + return retentionPointInTime; + } + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the duration for the long-term backup. If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * The maximum period to retain the long-term backup. Specify the retention period type and the duration for the long-term backup. If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. + * @return the value + **/ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateLongTermBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(", retentionScn=").append(String.valueOf(this.retentionScn)); + sb.append(", retentionPointInTime=").append(String.valueOf(this.retentionPointInTime)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateLongTermBackupDetails)) { + return false; + } + + CreateLongTermBackupDetails other = (CreateLongTermBackupDetails) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.retentionScn, other.retentionScn) + && java.util.Objects.equals(this.retentionPointInTime, other.retentionPointInTime) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = (result * PRIME) + (this.retentionScn == null ? 43 : this.retentionScn.hashCode()); + result = + (result * PRIME) + + (this.retentionPointInTime == null + ? 43 + : this.retentionPointInTime.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java index f50c7197582..5bfb2e7191b 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java @@ -27,6 +27,7 @@ public final class CreateRecoveryServiceSubnetDetails "subnetId", "subnets", "nsgIds", + "securityAttributes", "vcnId", "compartmentId", "freeformTags", @@ -37,6 +38,7 @@ public CreateRecoveryServiceSubnetDetails( String subnetId, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, String vcnId, String compartmentId, java.util.Map freeformTags, @@ -46,6 +48,7 @@ public CreateRecoveryServiceSubnetDetails( this.subnetId = subnetId; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.vcnId = vcnId; this.compartmentId = compartmentId; this.freeformTags = freeformTags; @@ -128,6 +131,31 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

        + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You can create a single recovery service subnet per VCN. **/ @@ -411,6 +465,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -433,6 +488,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -448,6 +504,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java new file mode 100644 index 00000000000..849816913c2 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackup.java @@ -0,0 +1,1122 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.model; + +/** + * The details of a Long Term Backup. + * + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = LongTermBackup.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LongTermBackup extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "protectedDatabaseId", + "retentionScn", + "retentionPointInTime", + "timeBackupInitiated", + "timeBackupCompleted", + "retentionPeriod", + "retentionUntilDateTime", + "databaseIdentifier", + "databaseSizeInGBs", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "rmanTag", + "freeformTags", + "definedTags", + "systemTags" + }) + public LongTermBackup( + String id, + String displayName, + String compartmentId, + String protectedDatabaseId, + Integer retentionScn, + java.util.Date retentionPointInTime, + java.util.Date timeBackupInitiated, + java.util.Date timeBackupCompleted, + java.util.List retentionPeriod, + java.util.Date retentionUntilDateTime, + String databaseIdentifier, + Integer databaseSizeInGBs, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + String rmanTag, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.protectedDatabaseId = protectedDatabaseId; + this.retentionScn = retentionScn; + this.retentionPointInTime = retentionPointInTime; + this.timeBackupInitiated = timeBackupInitiated; + this.timeBackupCompleted = timeBackupCompleted; + this.retentionPeriod = retentionPeriod; + this.retentionUntilDateTime = retentionUntilDateTime; + this.databaseIdentifier = databaseIdentifier; + this.databaseSizeInGBs = databaseSizeInGBs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.rmanTag = rmanTag; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the long-term backup. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the compartment containing the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment containing the long-term backup. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The OCID of the protected database associated with the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private String protectedDatabaseId; + + /** + * The OCID of the protected database associated with the long-term backup. + * @param protectedDatabaseId the value to set + * @return this builder + **/ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + this.__explicitlySet__.add("protectedDatabaseId"); + return this; + } + /** + * The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private Integer retentionScn; + + /** + * The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent. + * @param retentionScn the value to set + * @return this builder + **/ + public Builder retentionScn(Integer retentionScn) { + this.retentionScn = retentionScn; + this.__explicitlySet__.add("retentionScn"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + * @param retentionPointInTime the value to set + * @return this builder + **/ + public Builder retentionPointInTime(java.util.Date retentionPointInTime) { + this.retentionPointInTime = retentionPointInTime; + this.__explicitlySet__.add("retentionPointInTime"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example, '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example, '2020-05-22T21:10:29.600Z'. + * @param timeBackupInitiated the value to set + * @return this builder + **/ + public Builder timeBackupInitiated(java.util.Date timeBackupInitiated) { + this.timeBackupInitiated = timeBackupInitiated; + this.__explicitlySet__.add("timeBackupInitiated"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup completed. For example, '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup completed. For example, '2020-05-22T21:10:29.600Z'. + * @param timeBackupCompleted the value to set + * @return this builder + **/ + public Builder timeBackupCompleted(java.util.Date timeBackupCompleted) { + this.timeBackupCompleted = timeBackupCompleted; + this.__explicitlySet__.add("timeBackupCompleted"); + return this; + } + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a long-term backup for a period ranging from 90-3650 days or 1-10 years. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a long-term backup for a period ranging from 90-3650 days or 1-10 years. + * @param retentionPeriod the value to set + * @return this builder + **/ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * Indicates that Recovery Service must retain the backup for the specified long-term retention period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private java.util.Date retentionUntilDateTime; + + /** + * Indicates that Recovery Service must retain the backup for the specified long-term retention period. + * @param retentionUntilDateTime the value to set + * @return this builder + **/ + public Builder retentionUntilDateTime(java.util.Date retentionUntilDateTime) { + this.retentionUntilDateTime = retentionUntilDateTime; + this.__explicitlySet__.add("retentionUntilDateTime"); + return this; + } + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * @param databaseIdentifier the value to set + * @return this builder + **/ + public Builder databaseIdentifier(String databaseIdentifier) { + this.databaseIdentifier = databaseIdentifier; + this.__explicitlySet__.add("databaseIdentifier"); + return this; + } + /** + * The size of the database, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private Integer databaseSizeInGBs; + + /** + * The size of the database, in gigabytes. + * @param databaseSizeInGBs the value to set + * @return this builder + **/ + public Builder databaseSizeInGBs(Integer databaseSizeInGBs) { + this.databaseSizeInGBs = databaseSizeInGBs; + this.__explicitlySet__.add("databaseSizeInGBs"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example: '2020-05-22T21:10:29.600Z'. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated. For example: '2020-05-22T21:10:29.600Z'. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the long term backup. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @param lifecycleSubstate the value to set + * @return this builder + **/ + public Builder lifecycleSubstate(LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** + * A detailed message about the current lifecycle state of the long-term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * A detailed message about the current lifecycle state of the long-term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * @param rmanTag the value to set + * @return this builder + **/ + public Builder rmanTag(String rmanTag) { + this.rmanTag = rmanTag; + this.__explicitlySet__.add("rmanTag"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LongTermBackup build() { + LongTermBackup model = + new LongTermBackup( + this.id, + this.displayName, + this.compartmentId, + this.protectedDatabaseId, + this.retentionScn, + this.retentionPointInTime, + this.timeBackupInitiated, + this.timeBackupCompleted, + this.retentionPeriod, + this.retentionUntilDateTime, + this.databaseIdentifier, + this.databaseSizeInGBs, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.rmanTag, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LongTermBackup model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("protectedDatabaseId")) { + this.protectedDatabaseId(model.getProtectedDatabaseId()); + } + if (model.wasPropertyExplicitlySet("retentionScn")) { + this.retentionScn(model.getRetentionScn()); + } + if (model.wasPropertyExplicitlySet("retentionPointInTime")) { + this.retentionPointInTime(model.getRetentionPointInTime()); + } + if (model.wasPropertyExplicitlySet("timeBackupInitiated")) { + this.timeBackupInitiated(model.getTimeBackupInitiated()); + } + if (model.wasPropertyExplicitlySet("timeBackupCompleted")) { + this.timeBackupCompleted(model.getTimeBackupCompleted()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("retentionUntilDateTime")) { + this.retentionUntilDateTime(model.getRetentionUntilDateTime()); + } + if (model.wasPropertyExplicitlySet("databaseIdentifier")) { + this.databaseIdentifier(model.getDatabaseIdentifier()); + } + if (model.wasPropertyExplicitlySet("databaseSizeInGBs")) { + this.databaseSizeInGBs(model.getDatabaseSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("rmanTag")) { + this.rmanTag(model.getRmanTag()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The OCID of the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the long-term backup. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-provided name for the long-term backup. You can change the displayName. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the compartment containing the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment containing the long-term backup. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The OCID of the protected database associated with the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private final String protectedDatabaseId; + + /** + * The OCID of the protected database associated with the long-term backup. + * @return the value + **/ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + + /** + * The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private final Integer retentionScn; + + /** + * The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent. + * @return the value + **/ + public Integer getRetentionScn() { + return retentionScn; + } + + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private final java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent. For example, '2020-05-22T21:10:29.600Z'. + * @return the value + **/ + public java.util.Date getRetentionPointInTime() { + return retentionPointInTime; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example, '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private final java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example, '2020-05-22T21:10:29.600Z'. + * @return the value + **/ + public java.util.Date getTimeBackupInitiated() { + return timeBackupInitiated; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup completed. For example, '2020-05-22T21:10:29.600Z'. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private final java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup completed. For example, '2020-05-22T21:10:29.600Z'. + * @return the value + **/ + public java.util.Date getTimeBackupCompleted() { + return timeBackupCompleted; + } + + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a long-term backup for a period ranging from 90-3650 days or 1-10 years. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * The maximum number of DAYS or YEARS to store the long-term backup. You can retain a long-term backup for a period ranging from 90-3650 days or 1-10 years. + * @return the value + **/ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * Indicates that Recovery Service must retain the backup for the specified long-term retention period. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private final java.util.Date retentionUntilDateTime; + + /** + * Indicates that Recovery Service must retain the backup for the specified long-term retention period. + * @return the value + **/ + public java.util.Date getRetentionUntilDateTime() { + return retentionUntilDateTime; + } + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private final String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * @return the value + **/ + public String getDatabaseIdentifier() { + return databaseIdentifier; + } + + /** + * The size of the database, in gigabytes. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private final Integer databaseSizeInGBs; + + /** + * The size of the database, in gigabytes. + * @return the value + **/ + public Integer getDatabaseSizeInGBs() { + return databaseSizeInGBs; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long-term backup was created. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the long term backup. + * + **/ + public enum LifecycleState { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), + Canceling("CANCELING"), + Canceled("CANCELED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the long term backup. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @return the value + **/ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + **/ + public enum LifecycleSubstate { + WaitingForBackupFromDb("WAITING_FOR_BACKUP_FROM_DB"), + ScheduledForArchival("SCHEDULED_FOR_ARCHIVAL"), + ArchivalInProgress("ARCHIVAL_IN_PROGRESS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleSubstate.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleSubstate v : LifecycleSubstate.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleSubstate(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleSubstate create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleSubstate', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @return the value + **/ + public LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** + * A detailed message about the current lifecycle state of the long-term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * A detailed message about the current lifecycle state of the long-term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private final String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * @return the value + **/ + public String getRmanTag() { + return rmanTag; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LongTermBackup("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(", retentionScn=").append(String.valueOf(this.retentionScn)); + sb.append(", retentionPointInTime=").append(String.valueOf(this.retentionPointInTime)); + sb.append(", timeBackupInitiated=").append(String.valueOf(this.timeBackupInitiated)); + sb.append(", timeBackupCompleted=").append(String.valueOf(this.timeBackupCompleted)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", retentionUntilDateTime=").append(String.valueOf(this.retentionUntilDateTime)); + sb.append(", databaseIdentifier=").append(String.valueOf(this.databaseIdentifier)); + sb.append(", databaseSizeInGBs=").append(String.valueOf(this.databaseSizeInGBs)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", rmanTag=").append(String.valueOf(this.rmanTag)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LongTermBackup)) { + return false; + } + + LongTermBackup other = (LongTermBackup) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.retentionScn, other.retentionScn) + && java.util.Objects.equals(this.retentionPointInTime, other.retentionPointInTime) + && java.util.Objects.equals(this.timeBackupInitiated, other.timeBackupInitiated) + && java.util.Objects.equals(this.timeBackupCompleted, other.timeBackupCompleted) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.retentionUntilDateTime, other.retentionUntilDateTime) + && java.util.Objects.equals(this.databaseIdentifier, other.databaseIdentifier) + && java.util.Objects.equals(this.databaseSizeInGBs, other.databaseSizeInGBs) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.rmanTag, other.rmanTag) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = (result * PRIME) + (this.retentionScn == null ? 43 : this.retentionScn.hashCode()); + result = + (result * PRIME) + + (this.retentionPointInTime == null + ? 43 + : this.retentionPointInTime.hashCode()); + result = + (result * PRIME) + + (this.timeBackupInitiated == null + ? 43 + : this.timeBackupInitiated.hashCode()); + result = + (result * PRIME) + + (this.timeBackupCompleted == null + ? 43 + : this.timeBackupCompleted.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.retentionUntilDateTime == null + ? 43 + : this.retentionUntilDateTime.hashCode()); + result = + (result * PRIME) + + (this.databaseIdentifier == null + ? 43 + : this.databaseIdentifier.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeInGBs == null ? 43 : this.databaseSizeInGBs.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.rmanTag == null ? 43 : this.rmanTag.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.java new file mode 100644 index 00000000000..c6fed089032 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupCollection.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.recovery.model; + +/** + * Results of a long term backup search. Contains both long term backup Summary items and other information, such as metadata. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LongTermBackupCollection.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LongTermBackupCollection + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public LongTermBackupCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of LongTermBackups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of LongTermBackups. + * @param items the value to set + * @return this builder + **/ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LongTermBackupCollection build() { + LongTermBackupCollection model = new LongTermBackupCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LongTermBackupCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * List of LongTermBackups. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of LongTermBackups. + * @return the value + **/ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LongTermBackupCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LongTermBackupCollection)) { + return false; + } + + LongTermBackupCollection other = (LongTermBackupCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java new file mode 100644 index 00000000000..1b3f23c619c --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LongTermBackupSummary.java @@ -0,0 +1,1020 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.model; + +/** + * Generate an on-demand backup and retain it long-term as per the LTR backup retention period specified. + * + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LongTermBackupSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class LongTermBackupSummary + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "displayName", + "compartmentId", + "protectedDatabaseId", + "retentionScn", + "retentionPointInTime", + "timeBackupInitiated", + "timeBackupCompleted", + "retentionPeriod", + "retentionUntilDateTime", + "databaseIdentifier", + "databaseSizeInGBs", + "timeCreated", + "timeUpdated", + "lifecycleState", + "lifecycleSubstate", + "lifecycleDetails", + "rmanTag", + "freeformTags", + "definedTags", + "systemTags" + }) + public LongTermBackupSummary( + String id, + String displayName, + String compartmentId, + String protectedDatabaseId, + Integer retentionScn, + java.util.Date retentionPointInTime, + java.util.Date timeBackupInitiated, + java.util.Date timeBackupCompleted, + java.util.List retentionPeriod, + java.util.Date retentionUntilDateTime, + String databaseIdentifier, + Integer databaseSizeInGBs, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LongTermBackup.LifecycleState lifecycleState, + LongTermBackup.LifecycleSubstate lifecycleSubstate, + String lifecycleDetails, + String rmanTag, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super(); + this.id = id; + this.displayName = displayName; + this.compartmentId = compartmentId; + this.protectedDatabaseId = protectedDatabaseId; + this.retentionScn = retentionScn; + this.retentionPointInTime = retentionPointInTime; + this.timeBackupInitiated = timeBackupInitiated; + this.timeBackupCompleted = timeBackupCompleted; + this.retentionPeriod = retentionPeriod; + this.retentionUntilDateTime = retentionUntilDateTime; + this.databaseIdentifier = databaseIdentifier; + this.databaseSizeInGBs = databaseSizeInGBs; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.lifecycleSubstate = lifecycleSubstate; + this.lifecycleDetails = lifecycleDetails; + this.rmanTag = rmanTag; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The Long Term Backup OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The Long Term Backup OCID. + * @param id the value to set + * @return this builder + **/ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The long term backup name. You can change the displayName. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The long term backup name. You can change the displayName. Avoid entering confidential information. + * @param displayName the value to set + * @return this builder + **/ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The OCID of the compartment that contains the long term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the long term backup. + * @param compartmentId the value to set + * @return this builder + **/ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * The protected database ocid. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private String protectedDatabaseId; + + /** + * The protected database ocid. + * @param protectedDatabaseId the value to set + * @return this builder + **/ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + this.__explicitlySet__.add("protectedDatabaseId"); + return this; + } + /** + * System Change Number (SCN) to which backup is consistent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private Integer retentionScn; + + /** + * System Change Number (SCN) to which backup is consistent. + * @param retentionScn the value to set + * @return this builder + **/ + public Builder retentionScn(Integer retentionScn) { + this.retentionScn = retentionScn; + this.__explicitlySet__.add("retentionScn"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be initiated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be initiated. + * @param retentionPointInTime the value to set + * @return this builder + **/ + public Builder retentionPointInTime(java.util.Date retentionPointInTime) { + this.retentionPointInTime = retentionPointInTime; + this.__explicitlySet__.add("retentionPointInTime"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually taken. For example '2020-05-22T21:10:29.600Z' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually taken. For example '2020-05-22T21:10:29.600Z' + * @param timeBackupInitiated the value to set + * @return this builder + **/ + public Builder timeBackupInitiated(java.util.Date timeBackupInitiated) { + this.timeBackupInitiated = timeBackupInitiated; + this.__explicitlySet__.add("timeBackupInitiated"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually completed. For example '2020-05-22T21:10:29.600Z' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually completed. For example '2020-05-22T21:10:29.600Z' + * @param timeBackupCompleted the value to set + * @return this builder + **/ + public Builder timeBackupCompleted(java.util.Date timeBackupCompleted) { + this.timeBackupCompleted = timeBackupCompleted; + this.__explicitlySet__.add("timeBackupCompleted"); + return this; + } + /** + * Retain the long-term backup as per the backup retention period specified + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; + + /** + * Retain the long-term backup as per the backup retention period specified + * @param retentionPeriod the value to set + * @return this builder + **/ + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term backup will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be 95 days-10 years from the current timestamp + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private java.util.Date retentionUntilDateTime; + + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term backup will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be 95 days-10 years from the current timestamp + * @param retentionUntilDateTime the value to set + * @return this builder + **/ + public Builder retentionUntilDateTime(java.util.Date retentionUntilDateTime) { + this.retentionUntilDateTime = retentionUntilDateTime; + this.__explicitlySet__.add("retentionUntilDateTime"); + return this; + } + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * @param databaseIdentifier the value to set + * @return this builder + **/ + public Builder databaseIdentifier(String databaseIdentifier) { + this.databaseIdentifier = databaseIdentifier; + this.__explicitlySet__.add("databaseIdentifier"); + return this; + } + /** + * Database size + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private Integer databaseSizeInGBs; + + /** + * Database size + * @param databaseSizeInGBs the value to set + * @return this builder + **/ + public Builder databaseSizeInGBs(Integer databaseSizeInGBs) { + this.databaseSizeInGBs = databaseSizeInGBs; + this.__explicitlySet__.add("databaseSizeInGBs"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @param timeCreated the value to set + * @return this builder + **/ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @param timeUpdated the value to set + * @return this builder + **/ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** + * The current state of the long term backup. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LongTermBackup.LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @param lifecycleState the value to set + * @return this builder + **/ + public Builder lifecycleState(LongTermBackup.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private LongTermBackup.LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @param lifecycleSubstate the value to set + * @return this builder + **/ + public Builder lifecycleSubstate(LongTermBackup.LifecycleSubstate lifecycleSubstate) { + this.lifecycleSubstate = lifecycleSubstate; + this.__explicitlySet__.add("lifecycleSubstate"); + return this; + } + /** + * Detailed description about the current lifecycle state of the long term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + /** + * Detailed description about the current lifecycle state of the long term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + * @param lifecycleDetails the value to set + * @return this builder + **/ + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * @param rmanTag the value to set + * @return this builder + **/ + public Builder rmanTag(String rmanTag) { + this.rmanTag = rmanTag; + this.__explicitlySet__.add("rmanTag"); + return this; + } + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @param freeformTags the value to set + * @return this builder + **/ + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @param definedTags the value to set + * @return this builder + **/ + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @param systemTags the value to set + * @return this builder + **/ + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LongTermBackupSummary build() { + LongTermBackupSummary model = + new LongTermBackupSummary( + this.id, + this.displayName, + this.compartmentId, + this.protectedDatabaseId, + this.retentionScn, + this.retentionPointInTime, + this.timeBackupInitiated, + this.timeBackupCompleted, + this.retentionPeriod, + this.retentionUntilDateTime, + this.databaseIdentifier, + this.databaseSizeInGBs, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.lifecycleSubstate, + this.lifecycleDetails, + this.rmanTag, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LongTermBackupSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("protectedDatabaseId")) { + this.protectedDatabaseId(model.getProtectedDatabaseId()); + } + if (model.wasPropertyExplicitlySet("retentionScn")) { + this.retentionScn(model.getRetentionScn()); + } + if (model.wasPropertyExplicitlySet("retentionPointInTime")) { + this.retentionPointInTime(model.getRetentionPointInTime()); + } + if (model.wasPropertyExplicitlySet("timeBackupInitiated")) { + this.timeBackupInitiated(model.getTimeBackupInitiated()); + } + if (model.wasPropertyExplicitlySet("timeBackupCompleted")) { + this.timeBackupCompleted(model.getTimeBackupCompleted()); + } + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); + } + if (model.wasPropertyExplicitlySet("retentionUntilDateTime")) { + this.retentionUntilDateTime(model.getRetentionUntilDateTime()); + } + if (model.wasPropertyExplicitlySet("databaseIdentifier")) { + this.databaseIdentifier(model.getDatabaseIdentifier()); + } + if (model.wasPropertyExplicitlySet("databaseSizeInGBs")) { + this.databaseSizeInGBs(model.getDatabaseSizeInGBs()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleSubstate")) { + this.lifecycleSubstate(model.getLifecycleSubstate()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("rmanTag")) { + this.rmanTag(model.getRmanTag()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * The Long Term Backup OCID. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The Long Term Backup OCID. + * @return the value + **/ + public String getId() { + return id; + } + + /** + * The long term backup name. You can change the displayName. Avoid entering confidential information. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The long term backup name. You can change the displayName. Avoid entering confidential information. + * @return the value + **/ + public String getDisplayName() { + return displayName; + } + + /** + * The OCID of the compartment that contains the long term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the long term backup. + * @return the value + **/ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The protected database ocid. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protectedDatabaseId") + private final String protectedDatabaseId; + + /** + * The protected database ocid. + * @return the value + **/ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + + /** + * System Change Number (SCN) to which backup is consistent. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionScn") + private final Integer retentionScn; + + /** + * System Change Number (SCN) to which backup is consistent. + * @return the value + **/ + public Integer getRetentionScn() { + return retentionScn; + } + + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be initiated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPointInTime") + private final java.util.Date retentionPointInTime; + + /** + * An RFC3339 formatted datetime string that indicates the time for a long term backup to be initiated. + * @return the value + **/ + public java.util.Date getRetentionPointInTime() { + return retentionPointInTime; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually taken. For example '2020-05-22T21:10:29.600Z' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupInitiated") + private final java.util.Date timeBackupInitiated; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually taken. For example '2020-05-22T21:10:29.600Z' + * @return the value + **/ + public java.util.Date getTimeBackupInitiated() { + return timeBackupInitiated; + } + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually completed. For example '2020-05-22T21:10:29.600Z' + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeBackupCompleted") + private final java.util.Date timeBackupCompleted; + + /** + * An RFC3339 formatted datetime string that indicates the time when the backup was actually completed. For example '2020-05-22T21:10:29.600Z' + * @return the value + **/ + public java.util.Date getTimeBackupCompleted() { + return timeBackupCompleted; + } + + /** + * Retain the long-term backup as per the backup retention period specified + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; + + /** + * Retain the long-term backup as per the backup retention period specified + * @return the value + **/ + public java.util.List getRetentionPeriod() { + return retentionPeriod; + } + + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term backup will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be 95 days-10 years from the current timestamp + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionUntilDateTime") + private final java.util.Date retentionUntilDateTime; + + /** + * An RFC3339 formatted datetime string that indicates the time after which the long term backup will be deleted. For example '2020-05-22T21:10:29.600Z'. This timestamp has to be 95 days-10 years from the current timestamp + * @return the value + **/ + public java.util.Date getRetentionUntilDateTime() { + return retentionUntilDateTime; + } + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseIdentifier") + private final String databaseIdentifier; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * @return the value + **/ + public String getDatabaseIdentifier() { + return databaseIdentifier; + } + + /** + * Database size + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseSizeInGBs") + private final Integer databaseSizeInGBs; + + /** + * Database size + * @return the value + **/ + public Integer getDatabaseSizeInGBs() { + return databaseSizeInGBs; + } + + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * An RFC3339 formatted datetime string that indicates the created time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + **/ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * An RFC3339 formatted datetime string that indicates the updated time for the long term backup. For example: '2020-05-22T21:10:29.600Z'. + * + * @return the value + **/ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** + * The current state of the long term backup. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LongTermBackup.LifecycleState lifecycleState; + + /** + * The current state of the long term backup. + * + * @return the value + **/ + public LongTermBackup.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleSubstate") + private final LongTermBackup.LifecycleSubstate lifecycleSubstate; + + /** + * More details on the state of the backup when it is in Creating lifecycleState. + * + * @return the value + **/ + public LongTermBackup.LifecycleSubstate getLifecycleSubstate() { + return lifecycleSubstate; + } + + /** + * Detailed description about the current lifecycle state of the long term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; + + /** + * Detailed description about the current lifecycle state of the long term backup. For example, it can be used to provide actionable information for a resource in a Failed state. + * @return the value + **/ + public String getLifecycleDetails() { + return lifecycleDetails; + } + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("rmanTag") + private final String rmanTag; + + /** + * Recovery Manager (RMAN) assigned unique identifier for the long-term backup. + * @return the value + **/ + public String getRmanTag() { + return rmanTag; + } + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; + + /** + * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + * Example: {@code {"bar-key": "value"}} + * + * @return the value + **/ + public java.util.Map getFreeformTags() { + return freeformTags; + } + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + **/ + public java.util.Map> getDefinedTags() { + return definedTags; + } + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; + + /** + * Usage of system tag keys. These predefined keys are scoped to namespaces. + * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) + * + * @return the value + **/ + public java.util.Map> getSystemTags() { + return systemTags; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LongTermBackupSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(", retentionScn=").append(String.valueOf(this.retentionScn)); + sb.append(", retentionPointInTime=").append(String.valueOf(this.retentionPointInTime)); + sb.append(", timeBackupInitiated=").append(String.valueOf(this.timeBackupInitiated)); + sb.append(", timeBackupCompleted=").append(String.valueOf(this.timeBackupCompleted)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); + sb.append(", retentionUntilDateTime=").append(String.valueOf(this.retentionUntilDateTime)); + sb.append(", databaseIdentifier=").append(String.valueOf(this.databaseIdentifier)); + sb.append(", databaseSizeInGBs=").append(String.valueOf(this.databaseSizeInGBs)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleSubstate=").append(String.valueOf(this.lifecycleSubstate)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", rmanTag=").append(String.valueOf(this.rmanTag)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LongTermBackupSummary)) { + return false; + } + + LongTermBackupSummary other = (LongTermBackupSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.retentionScn, other.retentionScn) + && java.util.Objects.equals(this.retentionPointInTime, other.retentionPointInTime) + && java.util.Objects.equals(this.timeBackupInitiated, other.timeBackupInitiated) + && java.util.Objects.equals(this.timeBackupCompleted, other.timeBackupCompleted) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) + && java.util.Objects.equals( + this.retentionUntilDateTime, other.retentionUntilDateTime) + && java.util.Objects.equals(this.databaseIdentifier, other.databaseIdentifier) + && java.util.Objects.equals(this.databaseSizeInGBs, other.databaseSizeInGBs) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleSubstate, other.lifecycleSubstate) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.rmanTag, other.rmanTag) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = (result * PRIME) + (this.retentionScn == null ? 43 : this.retentionScn.hashCode()); + result = + (result * PRIME) + + (this.retentionPointInTime == null + ? 43 + : this.retentionPointInTime.hashCode()); + result = + (result * PRIME) + + (this.timeBackupInitiated == null + ? 43 + : this.timeBackupInitiated.hashCode()); + result = + (result * PRIME) + + (this.timeBackupCompleted == null + ? 43 + : this.timeBackupCompleted.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); + result = + (result * PRIME) + + (this.retentionUntilDateTime == null + ? 43 + : this.retentionUntilDateTime.hashCode()); + result = + (result * PRIME) + + (this.databaseIdentifier == null + ? 43 + : this.databaseIdentifier.hashCode()); + result = + (result * PRIME) + + (this.databaseSizeInGBs == null ? 43 : this.databaseSizeInGBs.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.lifecycleSubstate == null ? 43 : this.lifecycleSubstate.hashCode()); + result = + (result * PRIME) + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); + result = (result * PRIME) + (this.rmanTag == null ? 43 : this.rmanTag.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java index b2786772ad2..cf63ffb92b8 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationType.java @@ -21,6 +21,10 @@ public enum OperationType { UpdateRecoveryServiceSubnet("UPDATE_RECOVERY_SERVICE_SUBNET"), DeleteRecoveryServiceSubnet("DELETE_RECOVERY_SERVICE_SUBNET"), MoveRecoveryServiceSubnet("MOVE_RECOVERY_SERVICE_SUBNET"), + CreateLongTermBackup("CREATE_LONG_TERM_BACKUP"), + DeleteLongTermBackup("DELETE_LONG_TERM_BACKUP"), + UpdateLongTermBackup("UPDATE_LONG_TERM_BACKUP"), + CancelLongTermBackup("CANCEL_LONG_TERM_BACKUP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java index 734652f7e96..b2aa35f5df8 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabase.java @@ -48,6 +48,7 @@ public final class ProtectedDatabase extends com.oracle.bmc.http.internal.Explic "lifecycleDetails", "healthDetails", "metrics", + "backupCloudLocation", "subscriptionId", "freeformTags", "definedTags", @@ -76,6 +77,7 @@ public ProtectedDatabase( String lifecycleDetails, String healthDetails, Metrics metrics, + BackupCloudLocation backupCloudLocation, String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -103,6 +105,7 @@ public ProtectedDatabase( this.lifecycleDetails = lifecycleDetails; this.healthDetails = healthDetails; this.metrics = metrics; + this.backupCloudLocation = backupCloudLocation; this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -503,6 +506,22 @@ public Builder metrics(Metrics metrics) { this.__explicitlySet__.add("metrics"); return this; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + * @param backupCloudLocation the value to set + * @return this builder + **/ + public Builder backupCloudLocation(BackupCloudLocation backupCloudLocation) { + this.backupCloudLocation = backupCloudLocation; + this.__explicitlySet__.add("backupCloudLocation"); + return this; + } /** * The OCID of the cloud service subscription to which the protected database is linked. **/ @@ -609,6 +628,7 @@ public ProtectedDatabase build() { this.lifecycleDetails, this.healthDetails, this.metrics, + this.backupCloudLocation, this.subscriptionId, this.freeformTags, this.definedTags, @@ -687,6 +707,9 @@ public Builder copy(ProtectedDatabase model) { if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } + if (model.wasPropertyExplicitlySet("backupCloudLocation")) { + this.backupCloudLocation(model.getBackupCloudLocation()); + } if (model.wasPropertyExplicitlySet("subscriptionId")) { this.subscriptionId(model.getSubscriptionId()); } @@ -1061,6 +1084,20 @@ public Metrics getMetrics() { return metrics; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private final BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + * @return the value + **/ + public BackupCloudLocation getBackupCloudLocation() { + return backupCloudLocation; + } + /** * The OCID of the cloud service subscription to which the protected database is linked. **/ @@ -1165,6 +1202,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", healthDetails=").append(String.valueOf(this.healthDetails)); sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", backupCloudLocation=").append(String.valueOf(this.backupCloudLocation)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -1206,6 +1244,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.healthDetails, other.healthDetails) && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.backupCloudLocation, other.backupCloudLocation) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1269,6 +1308,11 @@ public int hashCode() { (result * PRIME) + (this.healthDetails == null ? 43 : this.healthDetails.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.backupCloudLocation == null + ? 43 + : this.backupCloudLocation.hashCode()); result = (result * PRIME) + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java index 732a869a828..008eb2badc1 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectedDatabaseSummary.java @@ -48,6 +48,7 @@ public final class ProtectedDatabaseSummary "healthDetails", "isReadOnlyResource", "metrics", + "backupCloudLocation", "subscriptionId", "freeformTags", "definedTags", @@ -72,6 +73,7 @@ public ProtectedDatabaseSummary( String healthDetails, Boolean isReadOnlyResource, MetricsSummary metrics, + BackupCloudLocation backupCloudLocation, String subscriptionId, java.util.Map freeformTags, java.util.Map> definedTags, @@ -95,6 +97,7 @@ public ProtectedDatabaseSummary( this.healthDetails = healthDetails; this.isReadOnlyResource = isReadOnlyResource; this.metrics = metrics; + this.backupCloudLocation = backupCloudLocation; this.subscriptionId = subscriptionId; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -403,6 +406,22 @@ public Builder metrics(MetricsSummary metrics) { this.__explicitlySet__.add("metrics"); return this; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + * @param backupCloudLocation the value to set + * @return this builder + **/ + public Builder backupCloudLocation(BackupCloudLocation backupCloudLocation) { + this.backupCloudLocation = backupCloudLocation; + this.__explicitlySet__.add("backupCloudLocation"); + return this; + } /** * The OCID of the cloud service subscription to which the protected database is linked. **/ @@ -505,6 +524,7 @@ public ProtectedDatabaseSummary build() { this.healthDetails, this.isReadOnlyResource, this.metrics, + this.backupCloudLocation, this.subscriptionId, this.freeformTags, this.definedTags, @@ -571,6 +591,9 @@ public Builder copy(ProtectedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("metrics")) { this.metrics(model.getMetrics()); } + if (model.wasPropertyExplicitlySet("backupCloudLocation")) { + this.backupCloudLocation(model.getBackupCloudLocation()); + } if (model.wasPropertyExplicitlySet("subscriptionId")) { this.subscriptionId(model.getSubscriptionId()); } @@ -861,6 +884,20 @@ public MetricsSummary getMetrics() { return metrics; } + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backupCloudLocation") + private final BackupCloudLocation backupCloudLocation; + + /** + * Indicates the cloud service environment where the protected database is provisioned. For example, Oracle Cloud or Microsoft Azure. + * @return the value + **/ + public BackupCloudLocation getBackupCloudLocation() { + return backupCloudLocation; + } + /** * The OCID of the cloud service subscription to which the protected database is linked. **/ @@ -961,6 +998,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", healthDetails=").append(String.valueOf(this.healthDetails)); sb.append(", isReadOnlyResource=").append(String.valueOf(this.isReadOnlyResource)); sb.append(", metrics=").append(String.valueOf(this.metrics)); + sb.append(", backupCloudLocation=").append(String.valueOf(this.backupCloudLocation)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -998,6 +1036,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.healthDetails, other.healthDetails) && java.util.Objects.equals(this.isReadOnlyResource, other.isReadOnlyResource) && java.util.Objects.equals(this.metrics, other.metrics) + && java.util.Objects.equals(this.backupCloudLocation, other.backupCloudLocation) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -1051,6 +1090,11 @@ public int hashCode() { ? 43 : this.isReadOnlyResource.hashCode()); result = (result * PRIME) + (this.metrics == null ? 43 : this.metrics.hashCode()); + result = + (result * PRIME) + + (this.backupCloudLocation == null + ? 43 + : this.backupCloudLocation.hashCode()); result = (result * PRIME) + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java index baa6d4fa33e..88954da0ed4 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java @@ -33,6 +33,7 @@ public final class RecoveryServiceSubnet "subnetId", "subnets", "nsgIds", + "securityAttributes", "timeCreated", "timeUpdated", "lifecycleState", @@ -49,6 +50,7 @@ public RecoveryServiceSubnet( String subnetId, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -64,6 +66,7 @@ public RecoveryServiceSubnet( this.subnetId = subnetId; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -197,6 +200,31 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

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

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

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

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

        + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery service subnet. For example: '2020-05-22T21:10:29.600Z'. * @@ -661,6 +715,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -689,6 +744,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -712,6 +768,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.java new file mode 100644 index 00000000000..dcf2ebc68ba --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RetentionPeriodValue.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.recovery.model; + +/** + * Specifies the retention period for the long-term backup. + * + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RetentionPeriodValue.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class RetentionPeriodValue extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"retentionPeriodType", "retentionCount"}) + public RetentionPeriodValue(RetentionPeriodType retentionPeriodType, Integer retentionCount) { + super(); + this.retentionPeriodType = retentionPeriodType; + this.retentionCount = retentionCount; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or YEARS. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodType") + private RetentionPeriodType retentionPeriodType; + + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or YEARS. + * @param retentionPeriodType the value to set + * @return this builder + **/ + public Builder retentionPeriodType(RetentionPeriodType retentionPeriodType) { + this.retentionPeriodType = retentionPeriodType; + this.__explicitlySet__.add("retentionPeriodType"); + return this; + } + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have chosen the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retentionPeriodType as 'YEARS', then specify a duration ranging from 1 year to 10 years. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionCount") + private Integer retentionCount; + + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have chosen the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retentionPeriodType as 'YEARS', then specify a duration ranging from 1 year to 10 years. + * @param retentionCount the value to set + * @return this builder + **/ + public Builder retentionCount(Integer retentionCount) { + this.retentionCount = retentionCount; + this.__explicitlySet__.add("retentionCount"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RetentionPeriodValue build() { + RetentionPeriodValue model = + new RetentionPeriodValue(this.retentionPeriodType, this.retentionCount); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RetentionPeriodValue model) { + if (model.wasPropertyExplicitlySet("retentionPeriodType")) { + this.retentionPeriodType(model.getRetentionPeriodType()); + } + if (model.wasPropertyExplicitlySet("retentionCount")) { + this.retentionCount(model.getRetentionCount()); + } + return this; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or YEARS. + **/ + public enum RetentionPeriodType { + Year("YEAR"), + Day("DAY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(RetentionPeriodType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (RetentionPeriodType v : RetentionPeriodType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + RetentionPeriodType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static RetentionPeriodType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'RetentionPeriodType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or YEARS. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodType") + private final RetentionPeriodType retentionPeriodType; + + /** + * Specifies the retention period type for the long-term backup. Allowed values are DAYS or YEARS. + * @return the value + **/ + public RetentionPeriodType getRetentionPeriodType() { + return retentionPeriodType; + } + + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have chosen the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retentionPeriodType as 'YEARS', then specify a duration ranging from 1 year to 10 years. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("retentionCount") + private final Integer retentionCount; + + /** + * Specifies the duration (in days or years) to retain the long-term backup. If you have chosen the retentionPeriodType as 'DAYS', then specify a duration ranging from 90 days to 3650 days. If you have chosen the retentionPeriodType as 'YEARS', then specify a duration ranging from 1 year to 10 years. + * @return the value + **/ + public Integer getRetentionCount() { + return retentionCount; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RetentionPeriodValue("); + sb.append("super=").append(super.toString()); + sb.append("retentionPeriodType=").append(String.valueOf(this.retentionPeriodType)); + sb.append(", retentionCount=").append(String.valueOf(this.retentionCount)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RetentionPeriodValue)) { + return false; + } + + RetentionPeriodValue other = (RetentionPeriodValue) o; + return java.util.Objects.equals(this.retentionPeriodType, other.retentionPeriodType) + && java.util.Objects.equals(this.retentionCount, other.retentionCount) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.retentionPeriodType == null + ? 43 + : this.retentionPeriodType.hashCode()); + result = + (result * PRIME) + + (this.retentionCount == null ? 43 : this.retentionCount.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java similarity index 64% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java rename to bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.java index 3df8d1fcbda..192f6970499 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateLongTermBackupDetails.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.recovery.model; /** - * The details of Globally distributed autonomous database to be updated. + * The information to be updated. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,28 +14,28 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDistributedAutonomousDatabaseDetails.Builder.class + builder = UpdateLongTermBackupDetails.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateDistributedAutonomousDatabaseDetails +public final class UpdateLongTermBackupDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "displayName", - "notificationTopicIds", + "retentionPeriod", "freeformTags", "definedTags" }) - public UpdateDistributedAutonomousDatabaseDetails( + public UpdateLongTermBackupDetails( String displayName, - java.util.List notificationTopicIds, + java.util.List retentionPeriod, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; - this.notificationTopicIds = notificationTopicIds; + this.retentionPeriod = retentionPeriod; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -43,13 +43,13 @@ public UpdateDistributedAutonomousDatabaseDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Display name of the Globally distributed autonomous database. + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** - * Display name of the Globally distributed autonomous database. + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. * @param displayName the value to set * @return this builder **/ @@ -59,23 +59,27 @@ public Builder displayName(String 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). + * The maximum period to retain the long-term backup. + * Specify the retention period type and the duration for the long-term backup. + * If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. + * If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private java.util.List retentionPeriod; /** - * 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). + * The maximum period to retain the long-term backup. + * Specify the retention period type and the duration for the long-term backup. + * If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. + * If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. * - * @param notificationTopicIds the value to set + * @param retentionPeriod the value to set * @return this builder **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); + public Builder retentionPeriod(java.util.List retentionPeriod) { + this.retentionPeriod = retentionPeriod; + this.__explicitlySet__.add("retentionPeriod"); return this; } /** @@ -100,7 +104,7 @@ public Builder freeformTags(java.util.Map freeformTags) { } /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") @@ -108,7 +112,7 @@ public Builder freeformTags(java.util.Map freeformTags) { /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) * * @param definedTags the value to set * @return this builder @@ -123,11 +127,11 @@ public Builder definedTags( @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateDistributedAutonomousDatabaseDetails build() { - UpdateDistributedAutonomousDatabaseDetails model = - new UpdateDistributedAutonomousDatabaseDetails( + public UpdateLongTermBackupDetails build() { + UpdateLongTermBackupDetails model = + new UpdateLongTermBackupDetails( this.displayName, - this.notificationTopicIds, + this.retentionPeriod, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -137,12 +141,12 @@ public UpdateDistributedAutonomousDatabaseDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDistributedAutonomousDatabaseDetails model) { + public Builder copy(UpdateLongTermBackupDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); + if (model.wasPropertyExplicitlySet("retentionPeriod")) { + this.retentionPeriod(model.getRetentionPeriod()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); @@ -166,13 +170,13 @@ public Builder toBuilder() { } /** - * Display name of the Globally distributed autonomous database. + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Display name of the Globally distributed autonomous database. + * A user provided name for the long term backup. The 'displayName' does not have to be unique, and it can be modified. Avoid entering confidential information. * @return the value **/ public String getDisplayName() { @@ -180,21 +184,25 @@ public String getDisplayName() { } /** - * 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). + * The maximum period to retain the long-term backup. + * Specify the retention period type and the duration for the long-term backup. + * If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. + * If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. * **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriod") + private final java.util.List retentionPeriod; /** - * 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). + * The maximum period to retain the long-term backup. + * Specify the retention period type and the duration for the long-term backup. + * If you have chosen the retention period type as 'DAYS', then specify a duration ranging from 90 days to 3650 days. + * If you have chosen the retention period type as 'YEARS', then specify a duration ranging from 1 year to 10 years. * * @return the value **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; + public java.util.List getRetentionPeriod() { + return retentionPeriod; } /** @@ -217,7 +225,7 @@ 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"}}} + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) * **/ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") @@ -225,7 +233,7 @@ 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"}}} + * Example: {@code {"foo-namespace": {"bar-key": "value"}}}. For more information, see [Resource Tags](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/resourcetags.htm) * * @return the value **/ @@ -245,10 +253,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDistributedAutonomousDatabaseDetails("); + sb.append("UpdateLongTermBackupDetails("); sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); + sb.append(", retentionPeriod=").append(String.valueOf(this.retentionPeriod)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -260,14 +268,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDistributedAutonomousDatabaseDetails)) { + if (!(o instanceof UpdateLongTermBackupDetails)) { return false; } - UpdateDistributedAutonomousDatabaseDetails other = - (UpdateDistributedAutonomousDatabaseDetails) o; + UpdateLongTermBackupDetails other = (UpdateLongTermBackupDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) + && java.util.Objects.equals(this.retentionPeriod, other.retentionPeriod) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -280,9 +287,7 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); + + (this.retentionPeriod == null ? 43 : this.retentionPeriod.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java index f40c616660a..fdffd3448f2 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateRecoveryServiceSubnetDetails.java @@ -26,6 +26,7 @@ public final class UpdateRecoveryServiceSubnetDetails "displayName", "subnets", "nsgIds", + "securityAttributes", "freeformTags", "definedTags" }) @@ -33,12 +34,14 @@ public UpdateRecoveryServiceSubnetDetails( String displayName, java.util.List subnets, java.util.List nsgIds, + java.util.Map> securityAttributes, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.subnets = subnets; this.nsgIds = nsgIds; + this.securityAttributes = securityAttributes; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -101,6 +104,31 @@ public Builder nsgIds(java.util.List nsgIds) { this.__explicitlySet__.add("nsgIds"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + *

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

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

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

        + * Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + **/ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -295,6 +349,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", subnets=").append(String.valueOf(this.subnets)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -314,6 +369,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.subnets, other.subnets) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -326,6 +382,11 @@ public int hashCode() { result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.subnets == null ? 43 : this.subnets.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java similarity index 77% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java rename to bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java index e70b345b1c4..fe8bea4c3a6 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelLongTermBackupRequest.java @@ -2,37 +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.recovery.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.recovery.model.*; /** - * Example: Click here to see how to use DeleteDistributedDatabaseRequest. + * Example: Click here to see how to use CancelLongTermBackupRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabaseRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelLongTermBackupRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier. + * The long term backup OCID. */ - private String distributedDatabaseId; + private String longTermBackupId; /** - * Globally distributed database identifier. + * The long term backup OCID. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; + public String getLongTermBackupId() { + return longTermBackupId; } /** * A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -76,41 +65,37 @@ public String getOpcRetryToken() { 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< - DeleteDistributedDatabaseRequest, java.lang.Void> { + CancelLongTermBackupRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer 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. + * The long term backup OCID. */ - private String opcRequestId = null; + private String longTermBackupId = null; /** - * The client request ID for tracing. - * @param opcRequestId the value to set + * The long term backup OCID. + * @param longTermBackupId the value to set * @return this builder instance */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; return this; } @@ -164,6 +149,21 @@ public Builder ifMatch(String 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 @@ -191,49 +191,49 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(DeleteDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRequestId(o.getOpcRequestId()); + public Builder copy(CancelLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of DeleteDistributedDatabaseRequest as configured by this builder + * Build the instance of CancelLongTermBackupRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of DeleteDistributedDatabaseRequest + * @return instance of CancelLongTermBackupRequest */ - public DeleteDistributedDatabaseRequest build() { - DeleteDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public CancelLongTermBackupRequest build() { + CancelLongTermBackupRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of DeleteDistributedDatabaseRequest as configured by this builder + * Build the instance of CancelLongTermBackupRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of DeleteDistributedDatabaseRequest + * @return instance of CancelLongTermBackupRequest */ - public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { - DeleteDistributedDatabaseRequest request = new DeleteDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRequestId = opcRequestId; + public CancelLongTermBackupRequest buildWithoutInvocationCallback() { + CancelLongTermBackupRequest request = new CancelLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; return request; - // new DeleteDistributedDatabaseRequest(distributedDatabaseId, opcRequestId, opcRetryToken, ifMatch); + // new CancelLongTermBackupRequest(longTermBackupId, opcRetryToken, ifMatch, opcRequestId); } } @@ -243,10 +243,10 @@ public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRequestId(opcRequestId) + .longTermBackupId(longTermBackupId) .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); } /** @@ -262,10 +262,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(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); } @@ -275,16 +275,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteDistributedDatabaseRequest)) { + if (!(o instanceof CancelLongTermBackupRequest)) { return false; } - DeleteDistributedDatabaseRequest other = (DeleteDistributedDatabaseRequest) o; + CancelLongTermBackupRequest other = (CancelLongTermBackupRequest) 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.longTermBackupId, other.longTermBackupId) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @Override @@ -293,14 +293,12 @@ 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()); + + (this.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java index 12f38d45402..6270f9520cd 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java @@ -23,6 +23,27 @@ public class CancelProtectedDatabaseDeletionRequest public String getProtectedDatabaseId() { return protectedDatabaseId; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -78,6 +99,31 @@ public Builder protectedDatabaseId(String protectedDatabaseId) { return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -147,6 +193,7 @@ public Builder retryConfiguration( */ public Builder copy(CancelProtectedDatabaseDeletionRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -183,10 +230,11 @@ public CancelProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() { CancelProtectedDatabaseDeletionRequest request = new CancelProtectedDatabaseDeletionRequest(); request.protectedDatabaseId = protectedDatabaseId; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new CancelProtectedDatabaseDeletionRequest(protectedDatabaseId, ifMatch, opcRequestId); + // new CancelProtectedDatabaseDeletionRequest(protectedDatabaseId, opcRetryToken, ifMatch, opcRequestId); } } @@ -197,6 +245,7 @@ public CancelProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .protectedDatabaseId(protectedDatabaseId) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -215,6 +264,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -233,6 +283,7 @@ public boolean equals(Object o) { CancelProtectedDatabaseDeletionRequest other = (CancelProtectedDatabaseDeletionRequest) o; return super.equals(o) && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -246,6 +297,9 @@ public int hashCode() { + (this.protectedDatabaseId == null ? 43 : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java index f67db0b722f..14ad7f4d705 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseCompartmentRequest.java @@ -37,6 +37,27 @@ public String getProtectedDatabaseId() { getChangeProtectedDatabaseCompartmentDetails() { return changeProtectedDatabaseCompartmentDetails; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -122,6 +143,31 @@ public Builder changeProtectedDatabaseCompartmentDetails( return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -193,6 +239,7 @@ public Builder copy(ChangeProtectedDatabaseCompartmentRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); changeProtectedDatabaseCompartmentDetails( o.getChangeProtectedDatabaseCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -243,10 +290,11 @@ public ChangeProtectedDatabaseCompartmentRequest buildWithoutInvocationCallback( request.protectedDatabaseId = protectedDatabaseId; request.changeProtectedDatabaseCompartmentDetails = changeProtectedDatabaseCompartmentDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new ChangeProtectedDatabaseCompartmentRequest(protectedDatabaseId, changeProtectedDatabaseCompartmentDetails, ifMatch, opcRequestId); + // new ChangeProtectedDatabaseCompartmentRequest(protectedDatabaseId, changeProtectedDatabaseCompartmentDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -259,6 +307,7 @@ public Builder toBuilder() { .protectedDatabaseId(protectedDatabaseId) .changeProtectedDatabaseCompartmentDetails( changeProtectedDatabaseCompartmentDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -279,6 +328,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",changeProtectedDatabaseCompartmentDetails=") .append(String.valueOf(this.changeProtectedDatabaseCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -301,6 +351,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProtectedDatabaseCompartmentDetails, other.changeProtectedDatabaseCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -319,6 +370,9 @@ public int hashCode() { + (this.changeProtectedDatabaseCompartmentDetails == null ? 43 : this.changeProtectedDatabaseCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java index 8b8fd7469c8..59f6d95301d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectedDatabaseSubscriptionRequest.java @@ -37,6 +37,27 @@ public String getProtectedDatabaseId() { getChangeProtectedDatabaseSubscriptionDetails() { return changeProtectedDatabaseSubscriptionDetails; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * Unique identifier for the request. */ @@ -122,6 +143,31 @@ public Builder changeProtectedDatabaseSubscriptionDetails( return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * Unique identifier for the request. */ @@ -193,6 +239,7 @@ public Builder copy(ChangeProtectedDatabaseSubscriptionRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); changeProtectedDatabaseSubscriptionDetails( o.getChangeProtectedDatabaseSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); @@ -243,10 +290,11 @@ public ChangeProtectedDatabaseSubscriptionRequest buildWithoutInvocationCallback request.protectedDatabaseId = protectedDatabaseId; request.changeProtectedDatabaseSubscriptionDetails = changeProtectedDatabaseSubscriptionDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; return request; - // new ChangeProtectedDatabaseSubscriptionRequest(protectedDatabaseId, changeProtectedDatabaseSubscriptionDetails, opcRequestId, ifMatch); + // new ChangeProtectedDatabaseSubscriptionRequest(protectedDatabaseId, changeProtectedDatabaseSubscriptionDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -259,6 +307,7 @@ public Builder toBuilder() { .protectedDatabaseId(protectedDatabaseId) .changeProtectedDatabaseSubscriptionDetails( changeProtectedDatabaseSubscriptionDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) .ifMatch(ifMatch); } @@ -279,6 +328,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",changeProtectedDatabaseSubscriptionDetails=") .append(String.valueOf(this.changeProtectedDatabaseSubscriptionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); @@ -301,6 +351,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProtectedDatabaseSubscriptionDetails, other.changeProtectedDatabaseSubscriptionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @@ -319,6 +370,9 @@ public int hashCode() { + (this.changeProtectedDatabaseSubscriptionDetails == null ? 43 : this.changeProtectedDatabaseSubscriptionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java index 04283addbfd..27605073e7e 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeProtectionPolicyCompartmentRequest.java @@ -37,6 +37,27 @@ public String getProtectionPolicyId() { getChangeProtectionPolicyCompartmentDetails() { return changeProtectionPolicyCompartmentDetails; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -122,6 +143,31 @@ public Builder changeProtectionPolicyCompartmentDetails( return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -193,6 +239,7 @@ public Builder copy(ChangeProtectionPolicyCompartmentRequest o) { protectionPolicyId(o.getProtectionPolicyId()); changeProtectionPolicyCompartmentDetails( o.getChangeProtectionPolicyCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -243,10 +290,11 @@ public ChangeProtectionPolicyCompartmentRequest buildWithoutInvocationCallback() request.protectionPolicyId = protectionPolicyId; request.changeProtectionPolicyCompartmentDetails = changeProtectionPolicyCompartmentDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new ChangeProtectionPolicyCompartmentRequest(protectionPolicyId, changeProtectionPolicyCompartmentDetails, ifMatch, opcRequestId); + // new ChangeProtectionPolicyCompartmentRequest(protectionPolicyId, changeProtectionPolicyCompartmentDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -258,6 +306,7 @@ public Builder toBuilder() { return new Builder() .protectionPolicyId(protectionPolicyId) .changeProtectionPolicyCompartmentDetails(changeProtectionPolicyCompartmentDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -278,6 +327,7 @@ public String toString() { sb.append(",protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); sb.append(",changeProtectionPolicyCompartmentDetails=") .append(String.valueOf(this.changeProtectionPolicyCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -300,6 +350,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeProtectionPolicyCompartmentDetails, other.changeProtectionPolicyCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -318,6 +369,9 @@ public int hashCode() { + (this.changeProtectionPolicyCompartmentDetails == null ? 43 : this.changeProtectionPolicyCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java index 982c8780529..e462bc5cfef 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ChangeRecoveryServiceSubnetCompartmentRequest.java @@ -37,6 +37,27 @@ public String getRecoveryServiceSubnetId() { getChangeRecoveryServiceSubnetCompartmentDetails() { return changeRecoveryServiceSubnetCompartmentDetails; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -122,6 +143,31 @@ public Builder changeRecoveryServiceSubnetCompartmentDetails( return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -193,6 +239,7 @@ public Builder copy(ChangeRecoveryServiceSubnetCompartmentRequest o) { recoveryServiceSubnetId(o.getRecoveryServiceSubnetId()); changeRecoveryServiceSubnetCompartmentDetails( o.getChangeRecoveryServiceSubnetCompartmentDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -244,10 +291,11 @@ public ChangeRecoveryServiceSubnetCompartmentRequest buildWithoutInvocationCallb request.recoveryServiceSubnetId = recoveryServiceSubnetId; request.changeRecoveryServiceSubnetCompartmentDetails = changeRecoveryServiceSubnetCompartmentDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new ChangeRecoveryServiceSubnetCompartmentRequest(recoveryServiceSubnetId, changeRecoveryServiceSubnetCompartmentDetails, ifMatch, opcRequestId); + // new ChangeRecoveryServiceSubnetCompartmentRequest(recoveryServiceSubnetId, changeRecoveryServiceSubnetCompartmentDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -260,6 +308,7 @@ public Builder toBuilder() { .recoveryServiceSubnetId(recoveryServiceSubnetId) .changeRecoveryServiceSubnetCompartmentDetails( changeRecoveryServiceSubnetCompartmentDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -280,6 +329,7 @@ public String toString() { sb.append(",recoveryServiceSubnetId=").append(String.valueOf(this.recoveryServiceSubnetId)); sb.append(",changeRecoveryServiceSubnetCompartmentDetails=") .append(String.valueOf(this.changeRecoveryServiceSubnetCompartmentDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -303,6 +353,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.changeRecoveryServiceSubnetCompartmentDetails, other.changeRecoveryServiceSubnetCompartmentDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -321,6 +372,9 @@ public int hashCode() { + (this.changeRecoveryServiceSubnetCompartmentDetails == null ? 43 : this.changeRecoveryServiceSubnetCompartmentDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.java new file mode 100644 index 00000000000..f18b66ae3fa --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateLongTermBackupRequest.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.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use CreateLongTermBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CreateLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.recovery.model.CreateLongTermBackupDetails> { + + /** + * Describes the parameters required to create a long term backup for a protected database. + */ + private com.oracle.bmc.recovery.model.CreateLongTermBackupDetails createLongTermBackupDetails; + + /** + * Describes the parameters required to create a long term backup for a protected database. + */ + public com.oracle.bmc.recovery.model.CreateLongTermBackupDetails + getCreateLongTermBackupDetails() { + return createLongTermBackupDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.recovery.model.CreateLongTermBackupDetails getBody$() { + return createLongTermBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateLongTermBackupRequest, + com.oracle.bmc.recovery.model.CreateLongTermBackupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Describes the parameters required to create a long term backup for a protected database. + */ + private com.oracle.bmc.recovery.model.CreateLongTermBackupDetails + createLongTermBackupDetails = null; + + /** + * Describes the parameters required to create a long term backup for a protected database. + * @param createLongTermBackupDetails the value to set + * @return this builder instance + */ + public Builder createLongTermBackupDetails( + com.oracle.bmc.recovery.model.CreateLongTermBackupDetails + createLongTermBackupDetails) { + this.createLongTermBackupDetails = createLongTermBackupDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateLongTermBackupRequest o) { + createLongTermBackupDetails(o.getCreateLongTermBackupDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateLongTermBackupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of CreateLongTermBackupRequest + */ + public CreateLongTermBackupRequest build() { + CreateLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.recovery.model.CreateLongTermBackupDetails body) { + createLongTermBackupDetails(body); + return this; + } + + /** + * Build the instance of CreateLongTermBackupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CreateLongTermBackupRequest + */ + public CreateLongTermBackupRequest buildWithoutInvocationCallback() { + CreateLongTermBackupRequest request = new CreateLongTermBackupRequest(); + request.createLongTermBackupDetails = createLongTermBackupDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new CreateLongTermBackupRequest(createLongTermBackupDetails, opcRetryToken, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .createLongTermBackupDetails(createLongTermBackupDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",createLongTermBackupDetails=") + .append(String.valueOf(this.createLongTermBackupDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateLongTermBackupRequest)) { + return false; + } + + CreateLongTermBackupRequest other = (CreateLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.createLongTermBackupDetails, other.createLongTermBackupDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.createLongTermBackupDetails == null + ? 43 + : this.createLongTermBackupDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java new file mode 100644 index 00000000000..55a2869863c --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteLongTermBackupRequest.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use DeleteLongTermBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class DeleteLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The long term backup OCID. + */ + private String longTermBackupId; + + /** + * The long term backup OCID. + */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteLongTermBackupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The long term backup OCID. + */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteLongTermBackupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of DeleteLongTermBackupRequest + */ + public DeleteLongTermBackupRequest build() { + DeleteLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteLongTermBackupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteLongTermBackupRequest + */ + public DeleteLongTermBackupRequest buildWithoutInvocationCallback() { + DeleteLongTermBackupRequest request = new DeleteLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteLongTermBackupRequest(longTermBackupId, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .longTermBackupId(longTermBackupId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteLongTermBackupRequest)) { + return false; + } + + DeleteLongTermBackupRequest other = (DeleteLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java index eb06a30b954..8df972e0f73 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/FetchProtectedDatabaseConfigurationRequest.java @@ -37,6 +37,27 @@ public String getProtectedDatabaseId() { getFetchProtectedDatabaseConfigurationDetails() { return fetchProtectedDatabaseConfigurationDetails; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * Unique identifier for the request. */ @@ -122,6 +143,31 @@ public Builder fetchProtectedDatabaseConfigurationDetails( return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * Unique identifier for the request. */ @@ -193,6 +239,7 @@ public Builder copy(FetchProtectedDatabaseConfigurationRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); fetchProtectedDatabaseConfigurationDetails( o.getFetchProtectedDatabaseConfigurationDetails()); + opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); @@ -243,10 +290,11 @@ public FetchProtectedDatabaseConfigurationRequest buildWithoutInvocationCallback request.protectedDatabaseId = protectedDatabaseId; request.fetchProtectedDatabaseConfigurationDetails = fetchProtectedDatabaseConfigurationDetails; + request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; request.ifMatch = ifMatch; return request; - // new FetchProtectedDatabaseConfigurationRequest(protectedDatabaseId, fetchProtectedDatabaseConfigurationDetails, opcRequestId, ifMatch); + // new FetchProtectedDatabaseConfigurationRequest(protectedDatabaseId, fetchProtectedDatabaseConfigurationDetails, opcRetryToken, opcRequestId, ifMatch); } } @@ -259,6 +307,7 @@ public Builder toBuilder() { .protectedDatabaseId(protectedDatabaseId) .fetchProtectedDatabaseConfigurationDetails( fetchProtectedDatabaseConfigurationDetails) + .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId) .ifMatch(ifMatch); } @@ -279,6 +328,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",fetchProtectedDatabaseConfigurationDetails=") .append(String.valueOf(this.fetchProtectedDatabaseConfigurationDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); @@ -301,6 +351,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.fetchProtectedDatabaseConfigurationDetails, other.fetchProtectedDatabaseConfigurationDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.ifMatch, other.ifMatch); } @@ -319,6 +370,9 @@ public int hashCode() { + (this.fetchProtectedDatabaseConfigurationDetails == null ? 43 : this.fetchProtectedDatabaseConfigurationDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java new file mode 100644 index 00000000000..9fe816eb0ea --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/GetLongTermBackupRequest.java @@ -0,0 +1,195 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use GetLongTermBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class GetLongTermBackupRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The long term backup OCID. + */ + private String longTermBackupId; + + /** + * The long term backup OCID. + */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetLongTermBackupRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The long term backup OCID. + */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetLongTermBackupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of GetLongTermBackupRequest + */ + public GetLongTermBackupRequest build() { + GetLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetLongTermBackupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetLongTermBackupRequest + */ + public GetLongTermBackupRequest buildWithoutInvocationCallback() { + GetLongTermBackupRequest request = new GetLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.opcRequestId = opcRequestId; + return request; + // new GetLongTermBackupRequest(longTermBackupId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().longTermBackupId(longTermBackupId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLongTermBackupRequest)) { + return false; + } + + GetLongTermBackupRequest other = (GetLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java new file mode 100644 index 00000000000..f6c488fcefe --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListLongTermBackupsRequest.java @@ -0,0 +1,527 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use ListLongTermBackupsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ListLongTermBackupsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment OCID. + */ + private String compartmentId; + + /** + * The compartment OCID. + */ + public String getCompartmentId() { + return compartmentId; + } + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its unique identifier. + */ + private String id; + + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its unique identifier. + */ + public String getId() { + return id; + } + /** + * A filter to return only resources that match the entire 'displayname' given. + */ + private String displayName; + + /** + * A filter to return only resources that match the entire 'displayname' given. + */ + public String getDisplayName() { + return displayName; + } + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a specific protected database. + */ + private String protectedDatabaseId; + + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a specific protected database. + */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + /** + * A filter to return only the resources that match the specified lifecycle state. + */ + private com.oracle.bmc.recovery.model.LifecycleState lifecycleState; + + /** + * A filter to return only the resources that match the specified lifecycle state. + */ + public com.oracle.bmc.recovery.model.LifecycleState getLifecycleState() { + return lifecycleState; + } + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The maximum number of items to return per page. + */ + public Integer getLimit() { + return limit; + } + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * Allowed values are: + * - ASC + * - DESC + */ + private com.oracle.bmc.recovery.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * Allowed values are: + * - ASC + * - DESC + */ + public com.oracle.bmc.recovery.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. + * Allowed values are: + * - TIMECREATED + * - DISPLAYNAME + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. + * Allowed values are: + * - TIMECREATED + * - DISPLAYNAME + * + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. + * Allowed values are: + * - TIMECREATED + * - DISPLAYNAME + * + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListLongTermBackupsRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The compartment OCID. + */ + private String compartmentId = null; + + /** + * The compartment OCID. + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its unique identifier. + */ + private String id = null; + + /** + * The long-term backup OCID. Use longTermBackupId to filter a long-term backup based on its unique identifier. + * @param id the value to set + * @return this builder instance + */ + public Builder id(String id) { + this.id = id; + return this; + } + + /** + * A filter to return only resources that match the entire 'displayname' given. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the entire 'displayname' given. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a specific protected database. + */ + private String protectedDatabaseId = null; + + /** + * The protected database OCID. Use protectedDatabaseId to list the long-term backups of a specific protected database. + * @param protectedDatabaseId the value to set + * @return this builder instance + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + return this; + } + + /** + * A filter to return only the resources that match the specified lifecycle state. + */ + private com.oracle.bmc.recovery.model.LifecycleState lifecycleState = null; + + /** + * A filter to return only the resources that match the specified lifecycle state. + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState(com.oracle.bmc.recovery.model.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * The maximum number of items to return per page. + */ + private Integer limit = null; + + /** + * The maximum number of items to return per page. + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + */ + private String page = null; + + /** + * The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * Allowed values are: + * - ASC + * - DESC + */ + private com.oracle.bmc.recovery.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending (ASC) or descending (DESC). + * Allowed values are: + * - ASC + * - DESC + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.recovery.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. + * Allowed values are: + * - TIMECREATED + * - DISPLAYNAME + * + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one sort order (sortOrder). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. If you do not specify a value, then TIMECREATED is used as the default sort order. + * Allowed values are: + * - TIMECREATED + * - DISPLAYNAME + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListLongTermBackupsRequest o) { + compartmentId(o.getCompartmentId()); + id(o.getId()); + displayName(o.getDisplayName()); + protectedDatabaseId(o.getProtectedDatabaseId()); + lifecycleState(o.getLifecycleState()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListLongTermBackupsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListLongTermBackupsRequest + */ + public ListLongTermBackupsRequest build() { + ListLongTermBackupsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListLongTermBackupsRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListLongTermBackupsRequest + */ + public ListLongTermBackupsRequest buildWithoutInvocationCallback() { + ListLongTermBackupsRequest request = new ListLongTermBackupsRequest(); + request.compartmentId = compartmentId; + request.id = id; + request.displayName = displayName; + request.protectedDatabaseId = protectedDatabaseId; + request.lifecycleState = lifecycleState; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.opcRequestId = opcRequestId; + return request; + // new ListLongTermBackupsRequest(compartmentId, id, displayName, protectedDatabaseId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .compartmentId(compartmentId) + .id(id) + .displayName(displayName) + .protectedDatabaseId(protectedDatabaseId) + .lifecycleState(lifecycleState) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",id=").append(String.valueOf(this.id)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLongTermBackupsRequest)) { + return false; + } + + ListLongTermBackupsRequest other = (ListLongTermBackupsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java index 7de468cc851..1523eb8aa1a 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectedDatabasesRequest.java @@ -78,6 +78,17 @@ public String getProtectionPolicyId() { public String getRecoveryServiceSubnetId() { return recoveryServiceSubnetId; } + /** + * Filter for cloud location of protected database. + */ + private com.oracle.bmc.recovery.model.BackupCloudLocation backupCloudLocation; + + /** + * Filter for cloud location of protected database. + */ + public com.oracle.bmc.recovery.model.BackupCloudLocation getBackupCloudLocation() { + return backupCloudLocation; + } /** * The maximum number of items to return per page. */ @@ -285,6 +296,22 @@ public Builder recoveryServiceSubnetId(String recoveryServiceSubnetId) { return this; } + /** + * Filter for cloud location of protected database. + */ + private com.oracle.bmc.recovery.model.BackupCloudLocation backupCloudLocation = null; + + /** + * Filter for cloud location of protected database. + * @param backupCloudLocation the value to set + * @return this builder instance + */ + public Builder backupCloudLocation( + com.oracle.bmc.recovery.model.BackupCloudLocation backupCloudLocation) { + this.backupCloudLocation = backupCloudLocation; + return this; + } + /** * The maximum number of items to return per page. */ @@ -408,6 +435,7 @@ public Builder copy(ListProtectedDatabasesRequest o) { id(o.getId()); protectionPolicyId(o.getProtectionPolicyId()); recoveryServiceSubnetId(o.getRecoveryServiceSubnetId()); + backupCloudLocation(o.getBackupCloudLocation()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -451,13 +479,14 @@ public ListProtectedDatabasesRequest buildWithoutInvocationCallback() { request.id = id; request.protectionPolicyId = protectionPolicyId; request.recoveryServiceSubnetId = recoveryServiceSubnetId; + request.backupCloudLocation = backupCloudLocation; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListProtectedDatabasesRequest(compartmentId, lifecycleState, displayName, id, protectionPolicyId, recoveryServiceSubnetId, limit, page, sortOrder, sortBy, opcRequestId); + // new ListProtectedDatabasesRequest(compartmentId, lifecycleState, displayName, id, protectionPolicyId, recoveryServiceSubnetId, backupCloudLocation, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -473,6 +502,7 @@ public Builder toBuilder() { .id(id) .protectionPolicyId(protectionPolicyId) .recoveryServiceSubnetId(recoveryServiceSubnetId) + .backupCloudLocation(backupCloudLocation) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -499,6 +529,7 @@ public String toString() { sb.append(",id=").append(String.valueOf(this.id)); sb.append(",protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); sb.append(",recoveryServiceSubnetId=").append(String.valueOf(this.recoveryServiceSubnetId)); + sb.append(",backupCloudLocation=").append(String.valueOf(this.backupCloudLocation)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -526,6 +557,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.protectionPolicyId, other.protectionPolicyId) && java.util.Objects.equals( this.recoveryServiceSubnetId, other.recoveryServiceSubnetId) + && java.util.Objects.equals(this.backupCloudLocation, other.backupCloudLocation) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -555,6 +587,11 @@ public int hashCode() { + (this.recoveryServiceSubnetId == null ? 43 : this.recoveryServiceSubnetId.hashCode()); + result = + (result * PRIME) + + (this.backupCloudLocation == null + ? 43 + : this.backupCloudLocation.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java index fa0e04c0605..02344a9287f 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListProtectionPoliciesRequest.java @@ -103,6 +103,17 @@ public static Owner create(String key) { public Owner getOwner() { return owner; } + /** + * A filter to return only the protection policies that enforce backup colocation (mustEnforceCloudLocality is set to TRUE). + */ + private Boolean mustEnforceCloudLocality; + + /** + * A filter to return only the protection policies that enforce backup colocation (mustEnforceCloudLocality is set to TRUE). + */ + public Boolean getMustEnforceCloudLocality() { + return mustEnforceCloudLocality; + } /** * The maximum number of items to return. Specify a value greater than 4. */ @@ -295,6 +306,21 @@ public Builder owner(Owner owner) { return this; } + /** + * A filter to return only the protection policies that enforce backup colocation (mustEnforceCloudLocality is set to TRUE). + */ + private Boolean mustEnforceCloudLocality = null; + + /** + * A filter to return only the protection policies that enforce backup colocation (mustEnforceCloudLocality is set to TRUE). + * @param mustEnforceCloudLocality the value to set + * @return this builder instance + */ + public Builder mustEnforceCloudLocality(Boolean mustEnforceCloudLocality) { + this.mustEnforceCloudLocality = mustEnforceCloudLocality; + return this; + } + /** * The maximum number of items to return. Specify a value greater than 4. */ @@ -417,6 +443,7 @@ public Builder copy(ListProtectionPoliciesRequest o) { displayName(o.getDisplayName()); protectionPolicyId(o.getProtectionPolicyId()); owner(o.getOwner()); + mustEnforceCloudLocality(o.getMustEnforceCloudLocality()); limit(o.getLimit()); page(o.getPage()); sortOrder(o.getSortOrder()); @@ -459,13 +486,14 @@ public ListProtectionPoliciesRequest buildWithoutInvocationCallback() { request.displayName = displayName; request.protectionPolicyId = protectionPolicyId; request.owner = owner; + request.mustEnforceCloudLocality = mustEnforceCloudLocality; request.limit = limit; request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; request.opcRequestId = opcRequestId; return request; - // new ListProtectionPoliciesRequest(compartmentId, lifecycleState, displayName, protectionPolicyId, owner, limit, page, sortOrder, sortBy, opcRequestId); + // new ListProtectionPoliciesRequest(compartmentId, lifecycleState, displayName, protectionPolicyId, owner, mustEnforceCloudLocality, limit, page, sortOrder, sortBy, opcRequestId); } } @@ -480,6 +508,7 @@ public Builder toBuilder() { .displayName(displayName) .protectionPolicyId(protectionPolicyId) .owner(owner) + .mustEnforceCloudLocality(mustEnforceCloudLocality) .limit(limit) .page(page) .sortOrder(sortOrder) @@ -505,6 +534,8 @@ public String toString() { sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); sb.append(",owner=").append(String.valueOf(this.owner)); + sb.append(",mustEnforceCloudLocality=") + .append(String.valueOf(this.mustEnforceCloudLocality)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -530,6 +561,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.protectionPolicyId, other.protectionPolicyId) && java.util.Objects.equals(this.owner, other.owner) + && java.util.Objects.equals( + this.mustEnforceCloudLocality, other.mustEnforceCloudLocality) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -554,6 +587,11 @@ public int hashCode() { ? 43 : this.protectionPolicyId.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); + result = + (result * PRIME) + + (this.mustEnforceCloudLocality == null + ? 43 + : this.mustEnforceCloudLocality.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java index cdc285d2b23..d14803a585a 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java @@ -37,6 +37,27 @@ public String getProtectedDatabaseId() { getScheduleProtectedDatabaseDeletionDetails() { return scheduleProtectedDatabaseDeletionDetails; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -122,6 +143,31 @@ public Builder scheduleProtectedDatabaseDeletionDetails( return this; } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call * for a resource, set the {@code if-match} parameter to the value of the @@ -193,6 +239,7 @@ public Builder copy(ScheduleProtectedDatabaseDeletionRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); scheduleProtectedDatabaseDeletionDetails( o.getScheduleProtectedDatabaseDeletionDetails()); + opcRetryToken(o.getOpcRetryToken()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -243,10 +290,11 @@ public ScheduleProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() request.protectedDatabaseId = protectedDatabaseId; request.scheduleProtectedDatabaseDeletionDetails = scheduleProtectedDatabaseDeletionDetails; + request.opcRetryToken = opcRetryToken; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new ScheduleProtectedDatabaseDeletionRequest(protectedDatabaseId, scheduleProtectedDatabaseDeletionDetails, ifMatch, opcRequestId); + // new ScheduleProtectedDatabaseDeletionRequest(protectedDatabaseId, scheduleProtectedDatabaseDeletionDetails, opcRetryToken, ifMatch, opcRequestId); } } @@ -258,6 +306,7 @@ public Builder toBuilder() { return new Builder() .protectedDatabaseId(protectedDatabaseId) .scheduleProtectedDatabaseDeletionDetails(scheduleProtectedDatabaseDeletionDetails) + .opcRetryToken(opcRetryToken) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -278,6 +327,7 @@ public String toString() { sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); sb.append(",scheduleProtectedDatabaseDeletionDetails=") .append(String.valueOf(this.scheduleProtectedDatabaseDeletionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -300,6 +350,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.scheduleProtectedDatabaseDeletionDetails, other.scheduleProtectedDatabaseDeletionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -318,6 +369,9 @@ public int hashCode() { + (this.scheduleProtectedDatabaseDeletionDetails == null ? 43 : this.scheduleProtectedDatabaseDeletionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java new file mode 100644 index 00000000000..789cabaea45 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/UpdateLongTermBackupRequest.java @@ -0,0 +1,315 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.requests; + +import com.oracle.bmc.recovery.model.*; +/** + * Example: Click here to see how to use UpdateLongTermBackupRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class UpdateLongTermBackupRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails> { + + /** + * The long term backup OCID. + */ + private String longTermBackupId; + + /** + * The long term backup OCID. + */ + public String getLongTermBackupId() { + return longTermBackupId; + } + /** + * The information to be updated. + */ + private com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails updateLongTermBackupDetails; + + /** + * The information to be updated. + */ + public com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails + getUpdateLongTermBackupDetails() { + return updateLongTermBackupDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + /** + * Unique identifier for the request. + */ + private String opcRequestId; + + /** + * Unique identifier for the request. + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails getBody$() { + return updateLongTermBackupDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateLongTermBackupRequest, + com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The long term backup OCID. + */ + private String longTermBackupId = null; + + /** + * The long term backup OCID. + * @param longTermBackupId the value to set + * @return this builder instance + */ + public Builder longTermBackupId(String longTermBackupId) { + this.longTermBackupId = longTermBackupId; + return this; + } + + /** + * The information to be updated. + */ + private com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails + updateLongTermBackupDetails = null; + + /** + * The information to be updated. + * @param updateLongTermBackupDetails the value to set + * @return this builder instance + */ + public Builder updateLongTermBackupDetails( + com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails + updateLongTermBackupDetails) { + this.updateLongTermBackupDetails = updateLongTermBackupDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST response for that resource. + * The resource will be updated or deleted only if the etag you + * provide matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Unique identifier for the request. + */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateLongTermBackupRequest o) { + longTermBackupId(o.getLongTermBackupId()); + updateLongTermBackupDetails(o.getUpdateLongTermBackupDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateLongTermBackupRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of UpdateLongTermBackupRequest + */ + public UpdateLongTermBackupRequest build() { + UpdateLongTermBackupRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.recovery.model.UpdateLongTermBackupDetails body) { + updateLongTermBackupDetails(body); + return this; + } + + /** + * Build the instance of UpdateLongTermBackupRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of UpdateLongTermBackupRequest + */ + public UpdateLongTermBackupRequest buildWithoutInvocationCallback() { + UpdateLongTermBackupRequest request = new UpdateLongTermBackupRequest(); + request.longTermBackupId = longTermBackupId; + request.updateLongTermBackupDetails = updateLongTermBackupDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new UpdateLongTermBackupRequest(longTermBackupId, updateLongTermBackupDetails, ifMatch, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .longTermBackupId(longTermBackupId) + .updateLongTermBackupDetails(updateLongTermBackupDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",longTermBackupId=").append(String.valueOf(this.longTermBackupId)); + sb.append(",updateLongTermBackupDetails=") + .append(String.valueOf(this.updateLongTermBackupDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateLongTermBackupRequest)) { + return false; + } + + UpdateLongTermBackupRequest other = (UpdateLongTermBackupRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.longTermBackupId, other.longTermBackupId) + && java.util.Objects.equals( + this.updateLongTermBackupDetails, other.updateLongTermBackupDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.longTermBackupId == null ? 43 : this.longTermBackupId.hashCode()); + result = + (result * PRIME) + + (this.updateLongTermBackupDetails == null + ? 43 + : this.updateLongTermBackupDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java similarity index 82% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java rename to bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java index dc8247b93f8..15abceedab7 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelLongTermBackupResponse.java @@ -2,20 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.recovery.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.recovery.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier of the work request. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier of the work request. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private StartDistributedDatabaseResponse( + private CancelLongTermBackupResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -72,13 +72,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier of the work request. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier of the work request. * * @param opcWorkRequestId the value to set * @return this builder @@ -111,7 +111,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(StartDistributedDatabaseResponse o) { + public Builder copy(CancelLongTermBackupResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -124,8 +124,8 @@ public Builder copy(StartDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public StartDistributedDatabaseResponse build() { - return new StartDistributedDatabaseResponse( + public CancelLongTermBackupResponse build() { + return new CancelLongTermBackupResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -154,11 +154,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StartDistributedDatabaseResponse)) { + if (!(o instanceof CancelLongTermBackupResponse)) { return false; } - StartDistributedDatabaseResponse other = (StartDistributedDatabaseResponse) o; + CancelLongTermBackupResponse other = (CancelLongTermBackupResponse) 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/CreateDistributedDatabasePrivateEndpointResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java similarity index 65% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java rename to bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java index 3e84284c478..44fa2b8ff93 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CreateLongTermBackupResponse.java @@ -2,96 +2,110 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.recovery.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.recovery.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabasePrivateEndpointResponse - extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CreateLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Relative URL of the newly created resource. * */ - private String opcWorkRequestId; + private String location; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Relative URL of the newly created resource. * * @return the value */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; + public String getLocation() { + return location; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * For optimistic concurrency control. See {@code if-match}. * */ - private String opcRequestId; + private String etag; /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. + * For optimistic concurrency control. See {@code if-match}. * * @return the value */ - public String getOpcRequestId() { - return opcRequestId; + public String getEtag() { + return etag; } /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier of the work request. * */ - private String etag; + private String opcWorkRequestId; /** - * For optimistic concurrency control. See {@code if-match}. + * Unique Oracle-assigned identifier of the work request. * * @return the value */ - public String getEtag() { - return etag; + public String getOpcWorkRequestId() { + return opcWorkRequestId; } /** - * The returned DistributedDatabasePrivateEndpoint instance. + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + private String opcRequestId; /** - * The returned DistributedDatabasePrivateEndpoint instance. + * 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 com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - getDistributedDatabasePrivateEndpoint() { - return distributedDatabasePrivateEndpoint; + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned LongTermBackup instance. + */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned LongTermBackup instance. + * @return the value + */ + public com.oracle.bmc.recovery.model.LongTermBackup getLongTermBackup() { + return longTermBackup; } @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", + "location", + "etag", "opcWorkRequestId", "opcRequestId", - "etag", - "distributedDatabasePrivateEndpoint" + "longTermBackup" }) - private CreateDistributedDatabasePrivateEndpointResponse( + private CreateLongTermBackupResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, + String location, + String etag, String opcWorkRequestId, String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint) { + com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { super(__httpStatusCode__, headers); + this.location = location; + this.etag = etag; this.opcWorkRequestId = opcWorkRequestId; this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + this.longTermBackup = longTermBackup; } public static class Builder { @@ -110,13 +124,47 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Relative URL of the newly created resource. + * + */ + private String location; + + /** + * Relative URL of the newly created resource. + * + * @param location the value to set + * @return this builder + */ + public Builder location(String location) { + this.location = location; + return this; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier of the work request. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier of the work request. * * @param opcWorkRequestId the value to set * @return this builder @@ -146,37 +194,17 @@ public Builder opcRequestId(String opcRequestId) { } /** - * 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 DistributedDatabasePrivateEndpoint instance. + * The returned LongTermBackup instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; /** - * The returned DistributedDatabasePrivateEndpoint instance. - * @param distributedDatabasePrivateEndpoint the value to set + * The returned LongTermBackup instance. + * @param longTermBackup the value to set * @return this builder */ - public Builder distributedDatabasePrivateEndpoint( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint) { - this.distributedDatabasePrivateEndpoint = distributedDatabasePrivateEndpoint; + public Builder longTermBackup(com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + this.longTermBackup = longTermBackup; return this; } @@ -184,13 +212,14 @@ public Builder distributedDatabasePrivateEndpoint( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(CreateDistributedDatabasePrivateEndpointResponse o) { + public Builder copy(CreateLongTermBackupResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + location(o.getLocation()); + etag(o.getEtag()); opcWorkRequestId(o.getOpcWorkRequestId()); opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); + longTermBackup(o.getLongTermBackup()); return this; } @@ -199,14 +228,15 @@ public Builder copy(CreateDistributedDatabasePrivateEndpointResponse o) { * Build the response object. * @return the response object */ - public CreateDistributedDatabasePrivateEndpointResponse build() { - return new CreateDistributedDatabasePrivateEndpointResponse( + public CreateLongTermBackupResponse build() { + return new CreateLongTermBackupResponse( __httpStatusCode__, headers, + location, + etag, opcWorkRequestId, opcRequestId, - etag, - distributedDatabasePrivateEndpoint); + longTermBackup); } } @@ -223,11 +253,11 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",location=").append(String.valueOf(location)); + sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedDatabasePrivateEndpoint=") - .append(String.valueOf(distributedDatabasePrivateEndpoint)); + sb.append(",longTermBackup=").append(String.valueOf(longTermBackup)); sb.append(")"); return sb.toString(); } @@ -237,35 +267,32 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointResponse)) { + if (!(o instanceof CreateLongTermBackupResponse)) { return false; } - CreateDistributedDatabasePrivateEndpointResponse other = - (CreateDistributedDatabasePrivateEndpointResponse) o; + CreateLongTermBackupResponse other = (CreateLongTermBackupResponse) o; return super.equals(o) + && java.util.Objects.equals(this.location, other.location) + && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpoint, - other.distributedDatabasePrivateEndpoint); + && java.util.Objects.equals(this.longTermBackup, other.longTermBackup); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.location == null ? 43 : this.location.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabasePrivateEndpoint == null - ? 43 - : this.distributedDatabasePrivateEndpoint.hashCode()); + + (this.longTermBackup == null ? 43 : this.longTermBackup.hashCode()); return result; } } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java new file mode 100644 index 00000000000..94e5267ed38 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/DeleteLongTermBackupResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class DeleteLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier of the work request. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private DeleteLongTermBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier of the work request. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public DeleteLongTermBackupResponse build() { + return new DeleteLongTermBackupResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteLongTermBackupResponse)) { + return false; + } + + DeleteLongTermBackupResponse other = (DeleteLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java new file mode 100644 index 00000000000..4d487bdcaef --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/GetLongTermBackupResponse.java @@ -0,0 +1,212 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class GetLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * The returned LongTermBackup instance. + */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned LongTermBackup instance. + * @return the value + */ + public com.oracle.bmc.recovery.model.LongTermBackup getLongTermBackup() { + return longTermBackup; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "longTermBackup" + }) + private GetLongTermBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String etag, + String opcRequestId, + com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.longTermBackup = longTermBackup; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 LongTermBackup instance. + */ + private com.oracle.bmc.recovery.model.LongTermBackup longTermBackup; + + /** + * The returned LongTermBackup instance. + * @param longTermBackup the value to set + * @return this builder + */ + public Builder longTermBackup(com.oracle.bmc.recovery.model.LongTermBackup longTermBackup) { + this.longTermBackup = longTermBackup; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + longTermBackup(o.getLongTermBackup()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public GetLongTermBackupResponse build() { + return new GetLongTermBackupResponse( + __httpStatusCode__, headers, etag, opcRequestId, longTermBackup); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",longTermBackup=").append(String.valueOf(longTermBackup)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLongTermBackupResponse)) { + return false; + } + + GetLongTermBackupResponse other = (GetLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.longTermBackup, other.longTermBackup); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.longTermBackup == null ? 43 : this.longTermBackup.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.java new file mode 100644 index 00000000000..6e349b20381 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ListLongTermBackupsResponse.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.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ListLongTermBackupsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then a partial list might have been returned. Include this value as the {@code page} parameter for the + * subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned LongTermBackupCollection instance. + */ + private com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection; + + /** + * The returned LongTermBackupCollection instance. + * @return the value + */ + public com.oracle.bmc.recovery.model.LongTermBackupCollection getLongTermBackupCollection() { + return longTermBackupCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "longTermBackupCollection" + }) + private ListLongTermBackupsResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.longTermBackupCollection = longTermBackupCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 LongTermBackupCollection instance. + */ + private com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection; + + /** + * The returned LongTermBackupCollection instance. + * @param longTermBackupCollection the value to set + * @return this builder + */ + public Builder longTermBackupCollection( + com.oracle.bmc.recovery.model.LongTermBackupCollection longTermBackupCollection) { + this.longTermBackupCollection = longTermBackupCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListLongTermBackupsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + longTermBackupCollection(o.getLongTermBackupCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListLongTermBackupsResponse build() { + return new ListLongTermBackupsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + longTermBackupCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",longTermBackupCollection=").append(String.valueOf(longTermBackupCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLongTermBackupsResponse)) { + return false; + } + + ListLongTermBackupsResponse other = (ListLongTermBackupsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.longTermBackupCollection, other.longTermBackupCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.longTermBackupCollection == null + ? 43 + : this.longTermBackupCollection.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java new file mode 100644 index 00000000000..5bfccf90f1d --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/UpdateLongTermBackupResponse.java @@ -0,0 +1,177 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class UpdateLongTermBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier of the work request. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private UpdateLongTermBackupResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier of the work request. + * + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateLongTermBackupResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public UpdateLongTermBackupResponse build() { + return new UpdateLongTermBackupResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateLongTermBackupResponse)) { + return false; + } + + UpdateLongTermBackupResponse other = (UpdateLongTermBackupResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index b79b56027d2..97193dfe948 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java index 2f481e48002..06500ab3d64 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisCluster.java @@ -96,6 +96,32 @@ public interface RedisCluster extends AutoCloseable { ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( ChangeRedisClusterCompartmentRequest request); + /** + * Converts an existing cluster into a secondary cluster by transforming it into a replica cache that replicates data from the specified primary cluster. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation 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 ConvertToSecondaryCluster API. + */ + ConvertToSecondaryClusterResponse convertToSecondaryCluster( + ConvertToSecondaryClusterRequest request); + + /** + * Converts a secondary cluster into a standalone cluster so that it operates as an independent cluster. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation 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 ConvertToStandaloneCluster API. + */ + ConvertToStandaloneClusterResponse convertToStandaloneCluster( + ConvertToStandaloneClusterRequest request); + /** * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. * You can optionally initialize the cluster data by restoring from an OCI Cache Backup (backupId) or by importing from Object Storage RDB file(s) (importFromObjectStorageDetails). @@ -237,6 +263,18 @@ ListAttachedOciCacheUsersResponse listAttachedOciCacheUsers( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Switchover the roles between a secondary cluster and its primary cluster, making the secondary cluster the new primary and the original primary its secondary. + * @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 Switchover API. + */ + SwitchoverResponse switchover(SwitchoverRequest request); + /** * Updates the specified OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). * @param request The request object containing the details to send diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java index 8dec9c56c4b..71a34076be4 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsync.java @@ -108,6 +108,38 @@ java.util.concurrent.Future cancelWorkRequest( ChangeRedisClusterCompartmentResponse> handler); + /** + * Converts an existing cluster into a secondary cluster by transforming it into a replica cache that replicates data from the specified primary cluster. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future convertToSecondaryCluster( + ConvertToSecondaryClusterRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConvertToSecondaryClusterRequest, ConvertToSecondaryClusterResponse> + handler); + + /** + * Converts a secondary cluster into a standalone cluster so that it operates as an independent cluster. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future convertToStandaloneCluster( + ConvertToStandaloneClusterRequest request, + com.oracle.bmc.responses.AsyncHandler< + ConvertToStandaloneClusterRequest, ConvertToStandaloneClusterResponse> + handler); + /** * Creates a new OCI Cache cluster. A cluster is a memory-based storage solution. * You can optionally initialize the cluster data by restoring from an OCI Cache Backup (backupId) or by importing from Object Storage RDB file(s) (importFromObjectStorageDetails). @@ -289,6 +321,20 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Switchover the roles between a secondary cluster and its primary cluster, making the secondary cluster the new primary and the original primary its secondary. + * + * @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 switchover( + SwitchoverRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Updates the specified OCI Cache cluster. A cluster is a memory-based storage solution. For more information, see [OCI Cache](https://docs.oracle.com/iaas/Content/ocicache/home.htm). * diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java index 7d6b67078be..3693e4a2299 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterAsyncClient.java @@ -625,6 +625,113 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future convertToSecondaryCluster( + ConvertToSecondaryClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConvertToSecondaryClusterRequest, ConvertToSecondaryClusterResponse> + handler) { + LOG.trace("Called async convertToSecondaryCluster"); + final ConvertToSecondaryClusterRequest interceptedRequest = + ConvertToSecondaryClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConvertToSecondaryClusterConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "RedisCluster", + "ConvertToSecondaryCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/ConvertToSecondaryCluster"); + final java.util.function.Function< + javax.ws.rs.core.Response, ConvertToSecondaryClusterResponse> + transformer = + ConvertToSecondaryClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ConvertToSecondaryClusterRequest, ConvertToSecondaryClusterResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ConvertToSecondaryClusterRequest, + ConvertToSecondaryClusterResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getConvertToSecondaryClusterDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ConvertToSecondaryClusterRequest, ConvertToSecondaryClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + convertToStandaloneCluster( + ConvertToStandaloneClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ConvertToStandaloneClusterRequest, + ConvertToStandaloneClusterResponse> + handler) { + LOG.trace("Called async convertToStandaloneCluster"); + final ConvertToStandaloneClusterRequest interceptedRequest = + ConvertToStandaloneClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConvertToStandaloneClusterConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "RedisCluster", + "ConvertToStandaloneCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/ConvertToStandaloneCluster"); + final java.util.function.Function< + javax.ws.rs.core.Response, ConvertToStandaloneClusterResponse> + transformer = + ConvertToStandaloneClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ConvertToStandaloneClusterRequest, ConvertToStandaloneClusterResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ConvertToStandaloneClusterRequest, + ConvertToStandaloneClusterResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ConvertToStandaloneClusterRequest, ConvertToStandaloneClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createRedisCluster( CreateRedisClusterRequest request, @@ -1149,6 +1256,50 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future switchover( + SwitchoverRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async switchover"); + final SwitchoverRequest interceptedRequest = SwitchoverConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SwitchoverConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "RedisCluster", + "Switchover", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/Switchover"); + final java.util.function.Function + transformer = + SwitchoverConverter.fromResponse(java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler handlerToUse = + handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + SwitchoverRequest, SwitchoverResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + SwitchoverRequest, SwitchoverResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateRedisCluster( UpdateRedisClusterRequest request, diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java index 7effcb05cae..42604560859 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/RedisClusterClient.java @@ -683,6 +683,90 @@ public ChangeRedisClusterCompartmentResponse changeRedisClusterCompartment( }); } + @Override + public ConvertToSecondaryClusterResponse convertToSecondaryCluster( + ConvertToSecondaryClusterRequest request) { + LOG.trace("Called convertToSecondaryCluster"); + final ConvertToSecondaryClusterRequest interceptedRequest = + ConvertToSecondaryClusterConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConvertToSecondaryClusterConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "RedisCluster", + "ConvertToSecondaryCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/ConvertToSecondaryCluster"); + java.util.function.Function + transformer = + ConvertToSecondaryClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest + .getConvertToSecondaryClusterDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ConvertToStandaloneClusterResponse convertToStandaloneCluster( + ConvertToStandaloneClusterRequest request) { + LOG.trace("Called convertToStandaloneCluster"); + final ConvertToStandaloneClusterRequest interceptedRequest = + ConvertToStandaloneClusterConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ConvertToStandaloneClusterConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "RedisCluster", + "ConvertToStandaloneCluster", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/ConvertToStandaloneCluster"); + java.util.function.Function + transformer = + ConvertToStandaloneClusterConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateRedisClusterResponse createRedisCluster(CreateRedisClusterRequest request) { LOG.trace("Called createRedisCluster"); @@ -1103,6 +1187,42 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request }); } + @Override + public SwitchoverResponse switchover(SwitchoverRequest request) { + LOG.trace("Called switchover"); + final SwitchoverRequest interceptedRequest = SwitchoverConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + SwitchoverConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "RedisCluster", + "Switchover", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/ocicache/20220315/RedisCluster/Switchover"); + java.util.function.Function transformer = + SwitchoverConverter.fromResponse(java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateRedisClusterResponse updateRedisCluster(UpdateRedisClusterRequest request) { LOG.trace("Called updateRedisCluster"); diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToSecondaryClusterConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToSecondaryClusterConverter.java new file mode 100644 index 00000000000..5256d8c9a03 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToSecondaryClusterConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ConvertToSecondaryClusterConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ConvertToSecondaryClusterConverter.class); + + public static com.oracle.bmc.redis.requests.ConvertToSecondaryClusterRequest interceptRequest( + com.oracle.bmc.redis.requests.ConvertToSecondaryClusterRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.ConvertToSecondaryClusterRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getConvertToSecondaryClusterDetails(), + "convertToSecondaryClusterDetails is required"); + Validate.notBlank(request.getRedisClusterId(), "redisClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("redisClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRedisClusterId())) + .path("actions") + .path("convertToSecondaryCluster"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses + .ConvertToSecondaryClusterResponse>() { + @Override + public com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse + .Builder + builder = + com.oracle.bmc.redis.responses + .ConvertToSecondaryClusterResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.ConvertToSecondaryClusterResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToStandaloneClusterConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToStandaloneClusterConverter.java new file mode 100644 index 00000000000..6da686f009d --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/ConvertToStandaloneClusterConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ConvertToStandaloneClusterConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ConvertToStandaloneClusterConverter.class); + + public static com.oracle.bmc.redis.requests.ConvertToStandaloneClusterRequest interceptRequest( + com.oracle.bmc.redis.requests.ConvertToStandaloneClusterRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.ConvertToStandaloneClusterRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRedisClusterId(), "redisClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("redisClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRedisClusterId())) + .path("actions") + .path("convertToStandaloneCluster"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses + .ConvertToStandaloneClusterResponse>() { + @Override + public com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse + .Builder + builder = + com.oracle.bmc.redis.responses + .ConvertToStandaloneClusterResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.ConvertToStandaloneClusterResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/SwitchoverConverter.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/SwitchoverConverter.java new file mode 100644 index 00000000000..03605c5e889 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/internal/http/SwitchoverConverter.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.redis.model.*; +import com.oracle.bmc.redis.requests.*; +import com.oracle.bmc.redis.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class SwitchoverConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SwitchoverConverter.class); + + public static com.oracle.bmc.redis.requests.SwitchoverRequest interceptRequest( + com.oracle.bmc.redis.requests.SwitchoverRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.redis.requests.SwitchoverRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getRedisClusterId(), "redisClusterId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20220315") + .path("redisClusters") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getRedisClusterId())) + .path("actions") + .path("switchover"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.redis.responses.SwitchoverResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, com.oracle.bmc.redis.responses.SwitchoverResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.SwitchoverResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.redis.responses.SwitchoverResponse>() { + @Override + public com.oracle.bmc.redis.responses.SwitchoverResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.redis.responses.SwitchoverResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + serviceDetails.get()); + } else { + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + } + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.redis.responses.SwitchoverResponse.Builder builder = + com.oracle.bmc.redis.responses.SwitchoverResponse.builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + java.util.Optional> opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.redis.responses.SwitchoverResponse responseWrapper = + builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ClusterReplicationTopology.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ClusterReplicationTopology.java new file mode 100644 index 00000000000..54f001a522b --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ClusterReplicationTopology.java @@ -0,0 +1,165 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * Defines the replication topology of an OCI cache cluster, including the primary cluster and associated secondary clusters participating in replication. + *
        + * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called + * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ClusterReplicationTopology.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ClusterReplicationTopology + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"primaryCluster", "secondaryClusters"}) + public ClusterReplicationTopology( + MemberCluster primaryCluster, java.util.List secondaryClusters) { + super(); + this.primaryCluster = primaryCluster; + this.secondaryClusters = secondaryClusters; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("primaryCluster") + private MemberCluster primaryCluster; + + public Builder primaryCluster(MemberCluster primaryCluster) { + this.primaryCluster = primaryCluster; + this.__explicitlySet__.add("primaryCluster"); + return this; + } + /** + * The list of secondary clusters that replicate data from the primary cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryClusters") + private java.util.List secondaryClusters; + + /** + * The list of secondary clusters that replicate data from the primary cluster. + * @param secondaryClusters the value to set + * @return this builder + **/ + public Builder secondaryClusters(java.util.List secondaryClusters) { + this.secondaryClusters = secondaryClusters; + this.__explicitlySet__.add("secondaryClusters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ClusterReplicationTopology build() { + ClusterReplicationTopology model = + new ClusterReplicationTopology(this.primaryCluster, this.secondaryClusters); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ClusterReplicationTopology model) { + if (model.wasPropertyExplicitlySet("primaryCluster")) { + this.primaryCluster(model.getPrimaryCluster()); + } + if (model.wasPropertyExplicitlySet("secondaryClusters")) { + this.secondaryClusters(model.getSecondaryClusters()); + } + 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("primaryCluster") + private final MemberCluster primaryCluster; + + public MemberCluster getPrimaryCluster() { + return primaryCluster; + } + + /** + * The list of secondary clusters that replicate data from the primary cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("secondaryClusters") + private final java.util.List secondaryClusters; + + /** + * The list of secondary clusters that replicate data from the primary cluster. + * @return the value + **/ + public java.util.List getSecondaryClusters() { + return secondaryClusters; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ClusterReplicationTopology("); + sb.append("super=").append(super.toString()); + sb.append("primaryCluster=").append(String.valueOf(this.primaryCluster)); + sb.append(", secondaryClusters=").append(String.valueOf(this.secondaryClusters)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ClusterReplicationTopology)) { + return false; + } + + ClusterReplicationTopology other = (ClusterReplicationTopology) o; + return java.util.Objects.equals(this.primaryCluster, other.primaryCluster) + && java.util.Objects.equals(this.secondaryClusters, other.secondaryClusters) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.primaryCluster == null ? 43 : this.primaryCluster.hashCode()); + result = + (result * PRIME) + + (this.secondaryClusters == null ? 43 : this.secondaryClusters.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ConvertToSecondaryClusterDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ConvertToSecondaryClusterDetails.java new file mode 100644 index 00000000000..f57789813e9 --- /dev/null +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/ConvertToSecondaryClusterDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.redis.model; + +/** + * The information required to convert a cluster into a secondary 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ConvertToSecondaryClusterDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public final class ConvertToSecondaryClusterDetails + extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"primaryClusterId"}) + public ConvertToSecondaryClusterDetails(String primaryClusterId) { + super(); + this.primaryClusterId = primaryClusterId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster. + * @param primaryClusterId the value to set + * @return this builder + **/ + public Builder primaryClusterId(String primaryClusterId) { + this.primaryClusterId = primaryClusterId; + this.__explicitlySet__.add("primaryClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ConvertToSecondaryClusterDetails build() { + ConvertToSecondaryClusterDetails model = + new ConvertToSecondaryClusterDetails(this.primaryClusterId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ConvertToSecondaryClusterDetails model) { + if (model.wasPropertyExplicitlySet("primaryClusterId")) { + this.primaryClusterId(model.getPrimaryClusterId()); + } + 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#Oracle) of the primary cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private final String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster. + * @return the value + **/ + public String getPrimaryClusterId() { + return primaryClusterId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ConvertToSecondaryClusterDetails("); + sb.append("super=").append(super.toString()); + sb.append("primaryClusterId=").append(String.valueOf(this.primaryClusterId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ConvertToSecondaryClusterDetails)) { + return false; + } + + ConvertToSecondaryClusterDetails other = (ConvertToSecondaryClusterDetails) o; + return java.util.Objects.equals(this.primaryClusterId, other.primaryClusterId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.primaryClusterId == null ? 43 : this.primaryClusterId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java index 4a032c63071..33bcc9a6490 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/CreateRedisClusterDetails.java @@ -36,6 +36,7 @@ public final class CreateRedisClusterDetails "securityAttributes", "backupId", "importFromObjectStorageDetails", + "primaryClusterId", "freeformTags", "definedTags" }) @@ -53,6 +54,7 @@ public CreateRedisClusterDetails( java.util.Map> securityAttributes, String backupId, ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails, + String primaryClusterId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -69,6 +71,7 @@ public CreateRedisClusterDetails( this.securityAttributes = securityAttributes; this.backupId = backupId; this.importFromObjectStorageDetails = importFromObjectStorageDetails; + this.primaryClusterId = primaryClusterId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -292,6 +295,22 @@ public Builder importFromObjectStorageDetails( this.__explicitlySet__.add("importFromObjectStorageDetails"); return this; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster from which data will be replicated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster from which data will be replicated. + * @param primaryClusterId the value to set + * @return this builder + **/ + public Builder primaryClusterId(String primaryClusterId) { + this.primaryClusterId = primaryClusterId; + this.__explicitlySet__.add("primaryClusterId"); + 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"}} @@ -353,6 +372,7 @@ public CreateRedisClusterDetails build() { this.securityAttributes, this.backupId, this.importFromObjectStorageDetails, + this.primaryClusterId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -402,6 +422,9 @@ public Builder copy(CreateRedisClusterDetails model) { if (model.wasPropertyExplicitlySet("importFromObjectStorageDetails")) { this.importFromObjectStorageDetails(model.getImportFromObjectStorageDetails()); } + if (model.wasPropertyExplicitlySet("primaryClusterId")) { + this.primaryClusterId(model.getPrimaryClusterId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -612,6 +635,20 @@ public ImportOciCacheFromObjectStorageDetails getImportFromObjectStorageDetails( return importFromObjectStorageDetails; } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster from which data will be replicated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private final String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster from which data will be replicated. + * @return the value + **/ + public String getPrimaryClusterId() { + return primaryClusterId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -676,6 +713,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupId=").append(String.valueOf(this.backupId)); sb.append(", importFromObjectStorageDetails=") .append(String.valueOf(this.importFromObjectStorageDetails)); + sb.append(", primaryClusterId=").append(String.valueOf(this.primaryClusterId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -706,6 +744,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.backupId, other.backupId) && java.util.Objects.equals( this.importFromObjectStorageDetails, other.importFromObjectStorageDetails) + && java.util.Objects.equals(this.primaryClusterId, other.primaryClusterId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -746,6 +785,9 @@ public int hashCode() { + (this.importFromObjectStorageDetails == null ? 43 : this.importFromObjectStorageDetails.hashCode()); + result = + (result * PRIME) + + (this.primaryClusterId == null ? 43 : this.primaryClusterId.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/DistributedDbGsmImage.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/MemberCluster.java similarity index 53% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/model/MemberCluster.java index 09fd7d0e5c4..dd1689d49c3 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/MemberCluster.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.redis.model; /** - * The Global service manager image details + * The details of a cluster participating in the replication setup. *
        * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in @@ -14,61 +14,58 @@ * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbGsmImage.Builder.class -) +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MemberCluster.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbGsmImage - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { +public final class MemberCluster extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"id", "version"}) - public DistributedDbGsmImage(String id, String version) { + @java.beans.ConstructorProperties({"ociCacheClusterId", "region"}) + public MemberCluster(String ociCacheClusterId, String region) { super(); - this.id = id; - this.version = version; + this.ociCacheClusterId = ociCacheClusterId; + this.region = region; } @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. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache cluster. **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; + @com.fasterxml.jackson.annotation.JsonProperty("ociCacheClusterId") + private String ociCacheClusterId; /** - * 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 + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache cluster. + * @param ociCacheClusterId the value to set * @return this builder **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); + public Builder ociCacheClusterId(String ociCacheClusterId) { + this.ociCacheClusterId = ociCacheClusterId; + this.__explicitlySet__.add("ociCacheClusterId"); return this; } /** - * The version associated with the image identified by id. + * The OCI region to which the cluster belongs. **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; /** - * The version associated with the image identified by id. - * @param version the value to set + * The OCI region to which the cluster belongs. + * @param region the value to set * @return this builder **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); 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 MemberCluster build() { + MemberCluster model = new MemberCluster(this.ociCacheClusterId, this.region); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -76,12 +73,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(MemberCluster model) { + if (model.wasPropertyExplicitlySet("ociCacheClusterId")) { + this.ociCacheClusterId(model.getOciCacheClusterId()); } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); } return this; } @@ -99,31 +96,31 @@ public Builder toBuilder() { } /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache cluster. **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; + @com.fasterxml.jackson.annotation.JsonProperty("ociCacheClusterId") + private final String ociCacheClusterId; /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the OCI Cache cluster. * @return the value **/ - public String getId() { - return id; + public String getOciCacheClusterId() { + return ociCacheClusterId; } /** - * The version associated with the image identified by id. + * The OCI region to which the cluster belongs. **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; /** - * The version associated with the image identified by id. + * The OCI region to which the cluster belongs. * @return the value **/ - public String getVersion() { - return version; + public String getRegion() { + return region; } @Override @@ -138,10 +135,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbGsmImage("); + sb.append("MemberCluster("); sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", version=").append(String.valueOf(this.version)); + sb.append("ociCacheClusterId=").append(String.valueOf(this.ociCacheClusterId)); + sb.append(", region=").append(String.valueOf(this.region)); sb.append(")"); return sb.toString(); } @@ -151,13 +148,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DistributedDbGsmImage)) { + if (!(o instanceof MemberCluster)) { return false; } - DistributedDbGsmImage other = (DistributedDbGsmImage) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.version, other.version) + MemberCluster other = (MemberCluster) o; + return java.util.Objects.equals(this.ociCacheClusterId, other.ociCacheClusterId) + && java.util.Objects.equals(this.region, other.region) && super.equals(other); } @@ -165,8 +162,10 @@ 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.ociCacheClusterId == null ? 43 : this.ociCacheClusterId.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java index c3a4fb154f0..662330e3a9b 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/OperationType.java @@ -37,6 +37,12 @@ public enum OperationType { ExportOciCacheBackupToOs("EXPORT_OCI_CACHE_BACKUP_TO_OS"), PatchOciCacheCluster("PATCH_OCI_CACHE_CLUSTER"), ReplaceOciCacheNode("REPLACE_OCI_CACHE_NODE"), + ConvertToSecondaryCluster("CONVERT_TO_SECONDARY_CLUSTER"), + ConvertToStandaloneCluster("CONVERT_TO_STANDALONE_CLUSTER"), + RollbackCrrSetup("ROLLBACK_CRR_SETUP"), + Switchover("SWITCHOVER"), + SetupCrr("SETUP_CRR"), + ChangeRoleToSecondary("CHANGE_ROLE_TO_SECONDARY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java index fdef49d9c4d..4ce4aeee402 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisCluster.java @@ -45,6 +45,9 @@ public final class RedisCluster extends com.oracle.bmc.http.internal.ExplicitlyS "backupId", "importFromObjectStorageDetails", "securityAttributes", + "clusterRole", + "primaryClusterId", + "clusterReplicationTopology", "freeformTags", "definedTags", "systemTags" @@ -75,6 +78,9 @@ public RedisCluster( String backupId, ImportOciCacheFromObjectStorageDetails importFromObjectStorageDetails, java.util.Map> securityAttributes, + ClusterRole clusterRole, + String primaryClusterId, + ClusterReplicationTopology clusterReplicationTopology, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -104,6 +110,9 @@ public RedisCluster( this.backupId = backupId; this.importFromObjectStorageDetails = importFromObjectStorageDetails; this.securityAttributes = securityAttributes; + this.clusterRole = clusterRole; + this.primaryClusterId = primaryClusterId; + this.clusterReplicationTopology = clusterReplicationTopology; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -513,6 +522,48 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * The current role of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterRole") + private ClusterRole clusterRole; + + /** + * The current role of the cluster. + * @param clusterRole the value to set + * @return this builder + **/ + public Builder clusterRole(ClusterRole clusterRole) { + this.clusterRole = clusterRole; + this.__explicitlySet__.add("clusterRole"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + * @param primaryClusterId the value to set + * @return this builder + **/ + public Builder primaryClusterId(String primaryClusterId) { + this.primaryClusterId = primaryClusterId; + this.__explicitlySet__.add("primaryClusterId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clusterReplicationTopology") + private ClusterReplicationTopology clusterReplicationTopology; + + public Builder clusterReplicationTopology( + ClusterReplicationTopology clusterReplicationTopology) { + this.clusterReplicationTopology = clusterReplicationTopology; + this.__explicitlySet__.add("clusterReplicationTopology"); + 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"}} @@ -606,6 +657,9 @@ public RedisCluster build() { this.backupId, this.importFromObjectStorageDetails, this.securityAttributes, + this.clusterRole, + this.primaryClusterId, + this.clusterReplicationTopology, this.freeformTags, this.definedTags, this.systemTags); @@ -692,6 +746,15 @@ public Builder copy(RedisCluster model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("clusterRole")) { + this.clusterRole(model.getClusterRole()); + } + if (model.wasPropertyExplicitlySet("primaryClusterId")) { + this.primaryClusterId(model.getPrimaryClusterId()); + } + if (model.wasPropertyExplicitlySet("clusterReplicationTopology")) { + this.clusterReplicationTopology(model.getClusterReplicationTopology()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1216,6 +1279,90 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * The current role of the cluster. + **/ + public enum ClusterRole { + Primary("PRIMARY"), + Secondary("SECONDARY"), + Standalone("STANDALONE"), + + /** + * 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(ClusterRole.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ClusterRole v : ClusterRole.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ClusterRole(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ClusterRole create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ClusterRole', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current role of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterRole") + private final ClusterRole clusterRole; + + /** + * The current role of the cluster. + * @return the value + **/ + public ClusterRole getClusterRole() { + return clusterRole; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private final String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + * @return the value + **/ + public String getPrimaryClusterId() { + return primaryClusterId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("clusterReplicationTopology") + private final ClusterReplicationTopology clusterReplicationTopology; + + public ClusterReplicationTopology getClusterReplicationTopology() { + return clusterReplicationTopology; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -1313,6 +1460,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", importFromObjectStorageDetails=") .append(String.valueOf(this.importFromObjectStorageDetails)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", clusterRole=").append(String.valueOf(this.clusterRole)); + sb.append(", primaryClusterId=").append(String.valueOf(this.primaryClusterId)); + sb.append(", clusterReplicationTopology=") + .append(String.valueOf(this.clusterReplicationTopology)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1359,6 +1510,10 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.importFromObjectStorageDetails, other.importFromObjectStorageDetails) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals(this.clusterRole, other.clusterRole) + && java.util.Objects.equals(this.primaryClusterId, other.primaryClusterId) + && java.util.Objects.equals( + this.clusterReplicationTopology, other.clusterReplicationTopology) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1432,6 +1587,15 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = (result * PRIME) + (this.clusterRole == null ? 43 : this.clusterRole.hashCode()); + result = + (result * PRIME) + + (this.primaryClusterId == null ? 43 : this.primaryClusterId.hashCode()); + result = + (result * PRIME) + + (this.clusterReplicationTopology == null + ? 43 + : this.clusterReplicationTopology.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-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java index 8d955129fb9..79090b11375 100644 --- a/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/model/RedisClusterSummary.java @@ -46,6 +46,8 @@ public final class RedisClusterSummary extends com.oracle.bmc.http.internal.Expl "nsgIds", "backupId", "securityAttributes", + "clusterRole", + "primaryClusterId", "freeformTags", "definedTags", "systemTags" @@ -74,6 +76,8 @@ public RedisClusterSummary( java.util.List nsgIds, String backupId, java.util.Map> securityAttributes, + RedisCluster.ClusterRole clusterRole, + String primaryClusterId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -101,6 +105,8 @@ public RedisClusterSummary( this.nsgIds = nsgIds; this.backupId = backupId; this.securityAttributes = securityAttributes; + this.clusterRole = clusterRole; + this.primaryClusterId = primaryClusterId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -491,6 +497,38 @@ public Builder securityAttributes( this.__explicitlySet__.add("securityAttributes"); return this; } + /** + * The current role of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterRole") + private RedisCluster.ClusterRole clusterRole; + + /** + * The current role of the cluster. + * @param clusterRole the value to set + * @return this builder + **/ + public Builder clusterRole(RedisCluster.ClusterRole clusterRole) { + this.clusterRole = clusterRole; + this.__explicitlySet__.add("clusterRole"); + return this; + } + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + * @param primaryClusterId the value to set + * @return this builder + **/ + public Builder primaryClusterId(String primaryClusterId) { + this.primaryClusterId = primaryClusterId; + this.__explicitlySet__.add("primaryClusterId"); + 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"}} @@ -582,6 +620,8 @@ public RedisClusterSummary build() { this.nsgIds, this.backupId, this.securityAttributes, + this.clusterRole, + this.primaryClusterId, this.freeformTags, this.definedTags, this.systemTags); @@ -662,6 +702,12 @@ public Builder copy(RedisClusterSummary model) { if (model.wasPropertyExplicitlySet("securityAttributes")) { this.securityAttributes(model.getSecurityAttributes()); } + if (model.wasPropertyExplicitlySet("clusterRole")) { + this.clusterRole(model.getClusterRole()); + } + if (model.wasPropertyExplicitlySet("primaryClusterId")) { + this.primaryClusterId(model.getPrimaryClusterId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -1022,6 +1068,34 @@ public java.util.Map> getSecurityAttribute return securityAttributes; } + /** + * The current role of the cluster. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("clusterRole") + private final RedisCluster.ClusterRole clusterRole; + + /** + * The current role of the cluster. + * @return the value + **/ + public RedisCluster.ClusterRole getClusterRole() { + return clusterRole; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("primaryClusterId") + private final String primaryClusterId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the primary cluster in CRR. + * @return the value + **/ + public String getPrimaryClusterId() { + return primaryClusterId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. * Example: {@code {"bar-key": "value"}} @@ -1116,6 +1190,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", backupId=").append(String.valueOf(this.backupId)); sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(", clusterRole=").append(String.valueOf(this.clusterRole)); + sb.append(", primaryClusterId=").append(String.valueOf(this.primaryClusterId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -1159,6 +1235,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.backupId, other.backupId) && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && java.util.Objects.equals(this.clusterRole, other.clusterRole) + && java.util.Objects.equals(this.primaryClusterId, other.primaryClusterId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -1224,6 +1302,10 @@ public int hashCode() { + (this.securityAttributes == null ? 43 : this.securityAttributes.hashCode()); + result = (result * PRIME) + (this.clusterRole == null ? 43 : this.clusterRole.hashCode()); + result = + (result * PRIME) + + (this.primaryClusterId == null ? 43 : this.primaryClusterId.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-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToSecondaryClusterRequest.java similarity index 68% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToSecondaryClusterRequest.java index 1eee14978b2..ccb62c21aa6 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToSecondaryClusterRequest.java @@ -2,40 +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.redis.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.redis.model.*; /** - * Example: Click here to see how to use PatchDistributedDatabaseRequest. + * Example: Click here to see how to use ConvertToSecondaryClusterRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ConvertToSecondaryClusterRequest extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { + com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails> { /** - * Globally distributed database identifier. + * The parameter details required to convert an existing cluster into a secondary cluster. */ - private String distributedDatabaseId; + private com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails + convertToSecondaryClusterDetails; /** - * Globally distributed database identifier. + * The parameter details required to convert an existing cluster into a secondary cluster. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails + getConvertToSecondaryClusterDetails() { + return convertToSecondaryClusterDetails; } /** - * The payload containing instructions to patch the Globally distributed database. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails; + private String redisClusterId; /** - * The payload containing instructions to patch the Globally distributed database. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - getPatchDistributedDatabaseDetails() { - return patchDistributedDatabaseDetails; + public String getRedisClusterId() { + return redisClusterId; } /** * For optimistic concurrency control. In the PUT or DELETE call @@ -97,48 +97,48 @@ public String getOpcRequestId() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails getBody$() { - return patchDistributedDatabaseDetails; + public com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails getBody$() { + return convertToSecondaryClusterDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - PatchDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { + ConvertToSecondaryClusterRequest, + com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The parameter details required to convert an existing cluster into a secondary cluster. */ - private String distributedDatabaseId = null; + private com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails + convertToSecondaryClusterDetails = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * The parameter details required to convert an existing cluster into a secondary cluster. + * @param convertToSecondaryClusterDetails the value to set * @return this builder instance */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder convertToSecondaryClusterDetails( + com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails + convertToSecondaryClusterDetails) { + this.convertToSecondaryClusterDetails = convertToSecondaryClusterDetails; return this; } /** - * The payload containing instructions to patch the Globally distributed database. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails = null; + private String redisClusterId = null; /** - * The payload containing instructions to patch the Globally distributed database. - * @param patchDistributedDatabaseDetails the value to set + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + * @param redisClusterId the value to set * @return this builder instance */ - public Builder patchDistributedDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails) { - this.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; return this; } @@ -234,9 +234,9 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(PatchDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - patchDistributedDatabaseDetails(o.getPatchDistributedDatabaseDetails()); + public Builder copy(ConvertToSecondaryClusterRequest o) { + convertToSecondaryClusterDetails(o.getConvertToSecondaryClusterDetails()); + redisClusterId(o.getRedisClusterId()); ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); @@ -246,17 +246,17 @@ public Builder copy(PatchDistributedDatabaseRequest o) { } /** - * Build the instance of PatchDistributedDatabaseRequest as configured by this builder + * Build the instance of ConvertToSecondaryClusterRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of PatchDistributedDatabaseRequest + * @return instance of ConvertToSecondaryClusterRequest */ - public PatchDistributedDatabaseRequest build() { - PatchDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public ConvertToSecondaryClusterRequest build() { + ConvertToSecondaryClusterRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -268,29 +268,28 @@ public PatchDistributedDatabaseRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails body) { - patchDistributedDatabaseDetails(body); + public Builder body$(com.oracle.bmc.redis.model.ConvertToSecondaryClusterDetails body) { + convertToSecondaryClusterDetails(body); return this; } /** - * Build the instance of PatchDistributedDatabaseRequest as configured by this builder + * Build the instance of ConvertToSecondaryClusterRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of PatchDistributedDatabaseRequest + * @return instance of ConvertToSecondaryClusterRequest */ - public PatchDistributedDatabaseRequest buildWithoutInvocationCallback() { - PatchDistributedDatabaseRequest request = new PatchDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; + public ConvertToSecondaryClusterRequest buildWithoutInvocationCallback() { + ConvertToSecondaryClusterRequest request = new ConvertToSecondaryClusterRequest(); + request.convertToSecondaryClusterDetails = convertToSecondaryClusterDetails; + request.redisClusterId = redisClusterId; request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; return request; - // new PatchDistributedDatabaseRequest(distributedDatabaseId, patchDistributedDatabaseDetails, ifMatch, opcRetryToken, opcRequestId); + // new ConvertToSecondaryClusterRequest(convertToSecondaryClusterDetails, redisClusterId, ifMatch, opcRetryToken, opcRequestId); } } @@ -300,8 +299,8 @@ public PatchDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .patchDistributedDatabaseDetails(patchDistributedDatabaseDetails) + .convertToSecondaryClusterDetails(convertToSecondaryClusterDetails) + .redisClusterId(redisClusterId) .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) .opcRequestId(opcRequestId); @@ -320,9 +319,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(",convertToSecondaryClusterDetails=") + .append(String.valueOf(this.convertToSecondaryClusterDetails)); + sb.append(",redisClusterId=").append(String.valueOf(this.redisClusterId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); @@ -335,15 +334,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedDatabaseRequest)) { + if (!(o instanceof ConvertToSecondaryClusterRequest)) { return false; } - PatchDistributedDatabaseRequest other = (PatchDistributedDatabaseRequest) o; + ConvertToSecondaryClusterRequest other = (ConvertToSecondaryClusterRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) && java.util.Objects.equals( - this.patchDistributedDatabaseDetails, other.patchDistributedDatabaseDetails) + this.convertToSecondaryClusterDetails, + other.convertToSecondaryClusterDetails) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); @@ -355,14 +355,12 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null + + (this.convertToSecondaryClusterDetails == null ? 43 - : this.distributedDatabaseId.hashCode()); + : this.convertToSecondaryClusterDetails.hashCode()); result = (result * PRIME) - + (this.patchDistributedDatabaseDetails == null - ? 43 - : this.patchDistributedDatabaseDetails.hashCode()); + + (this.redisClusterId == null ? 43 : this.redisClusterId.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/StartDistributedDatabaseRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToStandaloneClusterRequest.java similarity index 78% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToStandaloneClusterRequest.java index c4c4554af4d..8aad8254ebe 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/ConvertToStandaloneClusterRequest.java @@ -2,26 +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.redis.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.redis.model.*; /** - * Example: Click here to see how to use StartDistributedDatabaseRequest. + * Example: Click here to see how to use ConvertToStandaloneClusterRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseRequest +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ConvertToStandaloneClusterRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - private String distributedDatabaseId; + private String redisClusterId; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getRedisClusterId() { + return redisClusterId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST 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 @@ -55,47 +76,51 @@ 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. - * - */ - public String getIfMatch() { - return ifMatch; - } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StartDistributedDatabaseRequest, java.lang.Void> { + ConvertToStandaloneClusterRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + */ + private String redisClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + * @param redisClusterId the value to set + * @return this builder instance + */ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + 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 distributedDatabaseId = null; + private String ifMatch = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST 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 distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } @@ -139,31 +164,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. * @param invocationCallback the invocation callback to be set for the request @@ -191,49 +191,49 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(StartDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); + public Builder copy(ConvertToStandaloneClusterRequest o) { + redisClusterId(o.getRedisClusterId()); + ifMatch(o.getIfMatch()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of StartDistributedDatabaseRequest as configured by this builder + * Build the instance of ConvertToStandaloneClusterRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of StartDistributedDatabaseRequest + * @return instance of ConvertToStandaloneClusterRequest */ - public StartDistributedDatabaseRequest build() { - StartDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public ConvertToStandaloneClusterRequest build() { + ConvertToStandaloneClusterRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of StartDistributedDatabaseRequest as configured by this builder + * Build the instance of ConvertToStandaloneClusterRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of StartDistributedDatabaseRequest + * @return instance of ConvertToStandaloneClusterRequest */ - public StartDistributedDatabaseRequest buildWithoutInvocationCallback() { - StartDistributedDatabaseRequest request = new StartDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; + public ConvertToStandaloneClusterRequest buildWithoutInvocationCallback() { + ConvertToStandaloneClusterRequest request = new ConvertToStandaloneClusterRequest(); + request.redisClusterId = redisClusterId; + request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; return request; - // new StartDistributedDatabaseRequest(distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); + // new ConvertToStandaloneClusterRequest(redisClusterId, ifMatch, opcRetryToken, opcRequestId); } } @@ -243,10 +243,10 @@ public StartDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) + .redisClusterId(redisClusterId) + .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .opcRequestId(opcRequestId); } /** @@ -262,10 +262,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(",redisClusterId=").append(String.valueOf(this.redisClusterId)); + 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(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); return sb.toString(); } @@ -275,16 +275,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StartDistributedDatabaseRequest)) { + if (!(o instanceof ConvertToStandaloneClusterRequest)) { return false; } - StartDistributedDatabaseRequest other = (StartDistributedDatabaseRequest) o; + ConvertToStandaloneClusterRequest other = (ConvertToStandaloneClusterRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) && 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 @@ -293,14 +293,12 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); + + (this.redisClusterId == null ? 43 : this.redisClusterId.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()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; } } diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/SwitchoverRequest.java similarity index 78% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/requests/SwitchoverRequest.java index 8f2c9b141fd..b32a8f268ba 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/requests/SwitchoverRequest.java @@ -2,26 +2,46 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.redis.requests; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.redis.model.*; /** - * Example: Click here to see how to use StopDistributedDatabaseRequest. + * Example: Click here to see how to use SwitchoverRequest. */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class SwitchoverRequest extends com.oracle.bmc.requests.BmcRequest { /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - private String distributedDatabaseId; + private String redisClusterId; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; + public String getRedisClusterId() { + return redisClusterId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST 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 @@ -55,47 +75,51 @@ 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. - * - */ - public String getIfMatch() { - return ifMatch; - } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StopDistributedDatabaseRequest, java.lang.Void> { + SwitchoverRequest, java.lang.Void> { private com.oracle.bmc.util.internal.Consumer invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; /** - * Globally distributed database identifier. + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + */ + private String redisClusterId = null; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm#Oracle) of the cluster. + * @param redisClusterId the value to set + * @return this builder instance + */ + public Builder redisClusterId(String redisClusterId) { + this.redisClusterId = redisClusterId; + 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 distributedDatabaseId = null; + private String ifMatch = null; /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set + * For optimistic concurrency control. In the PUT or DELETE call + * for a resource, set the {@code if-match} parameter to the value of the + * etag from a previous GET or POST 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 distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } @@ -139,31 +163,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. * @param invocationCallback the invocation callback to be set for the request @@ -191,49 +190,49 @@ public Builder retryConfiguration( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(StopDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); + public Builder copy(SwitchoverRequest o) { + redisClusterId(o.getRedisClusterId()); + ifMatch(o.getIfMatch()); 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 SwitchoverRequest as configured by this builder * * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#buildWithoutInvocationCallback} does not. * * This is the preferred method to build an instance. * - * @return instance of StopDistributedDatabaseRequest + * @return instance of SwitchoverRequest */ - public StopDistributedDatabaseRequest build() { - StopDistributedDatabaseRequest request = buildWithoutInvocationCallback(); + public SwitchoverRequest build() { + SwitchoverRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; } /** - * Build the instance of StopDistributedDatabaseRequest as configured by this builder + * Build the instance of SwitchoverRequest as configured by this builder * * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, * while the method {@link Builder#build} does * - * @return instance of StopDistributedDatabaseRequest + * @return instance of SwitchoverRequest */ - public StopDistributedDatabaseRequest buildWithoutInvocationCallback() { - StopDistributedDatabaseRequest request = new StopDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; + public SwitchoverRequest buildWithoutInvocationCallback() { + SwitchoverRequest request = new SwitchoverRequest(); + request.redisClusterId = redisClusterId; + request.ifMatch = ifMatch; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; return request; - // new StopDistributedDatabaseRequest(distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); + // new SwitchoverRequest(redisClusterId, ifMatch, opcRetryToken, opcRequestId); } } @@ -243,10 +242,10 @@ public StopDistributedDatabaseRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .distributedDatabaseId(distributedDatabaseId) + .redisClusterId(redisClusterId) + .ifMatch(ifMatch) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); + .opcRequestId(opcRequestId); } /** @@ -262,10 +261,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(",redisClusterId=").append(String.valueOf(this.redisClusterId)); + 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(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); return sb.toString(); } @@ -275,16 +274,16 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StopDistributedDatabaseRequest)) { + if (!(o instanceof SwitchoverRequest)) { return false; } - StopDistributedDatabaseRequest other = (StopDistributedDatabaseRequest) o; + SwitchoverRequest other = (SwitchoverRequest) o; return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) + && java.util.Objects.equals(this.redisClusterId, other.redisClusterId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) && 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 @@ -293,14 +292,12 @@ public int hashCode() { int result = super.hashCode(); result = (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); + + (this.redisClusterId == null ? 43 : this.redisClusterId.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()); - 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/DeleteDistributedDatabaseResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToSecondaryClusterResponse.java similarity index 84% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToSecondaryClusterResponse.java index cbe532bd344..88d24eb10cf 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToSecondaryClusterResponse.java @@ -2,20 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.redis.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.redis.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ConvertToSecondaryClusterResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private DeleteDistributedDatabaseResponse( + private ConvertToSecondaryClusterResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -72,13 +72,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @param opcWorkRequestId the value to set * @return this builder @@ -111,7 +111,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(DeleteDistributedDatabaseResponse o) { + public Builder copy(ConvertToSecondaryClusterResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -124,8 +124,8 @@ public Builder copy(DeleteDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public DeleteDistributedDatabaseResponse build() { - return new DeleteDistributedDatabaseResponse( + public ConvertToSecondaryClusterResponse build() { + return new ConvertToSecondaryClusterResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -154,11 +154,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteDistributedDatabaseResponse)) { + if (!(o instanceof ConvertToSecondaryClusterResponse)) { return false; } - DeleteDistributedDatabaseResponse other = (DeleteDistributedDatabaseResponse) o; + ConvertToSecondaryClusterResponse other = (ConvertToSecondaryClusterResponse) 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/PatchDistributedDatabaseResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToStandaloneClusterResponse.java similarity index 84% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToStandaloneClusterResponse.java index 8916e5ff54d..241ac2486f0 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/ConvertToStandaloneClusterResponse.java @@ -2,20 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.redis.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.redis.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class ConvertToStandaloneClusterResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private PatchDistributedDatabaseResponse( + private ConvertToStandaloneClusterResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -72,13 +72,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @param opcWorkRequestId the value to set * @return this builder @@ -111,7 +111,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(PatchDistributedDatabaseResponse o) { + public Builder copy(ConvertToStandaloneClusterResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -124,8 +124,8 @@ public Builder copy(PatchDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public PatchDistributedDatabaseResponse build() { - return new PatchDistributedDatabaseResponse( + public ConvertToStandaloneClusterResponse build() { + return new ConvertToStandaloneClusterResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -154,11 +154,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof PatchDistributedDatabaseResponse)) { + if (!(o instanceof ConvertToStandaloneClusterResponse)) { return false; } - PatchDistributedDatabaseResponse other = (PatchDistributedDatabaseResponse) o; + ConvertToStandaloneClusterResponse other = (ConvertToStandaloneClusterResponse) 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/StopDistributedDatabaseResponse.java b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/SwitchoverResponse.java similarity index 84% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java rename to bmc-redis/src/main/java/com/oracle/bmc/redis/responses/SwitchoverResponse.java index db9738d6214..930b6dca2ce 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java +++ b/bmc-redis/src/main/java/com/oracle/bmc/redis/responses/SwitchoverResponse.java @@ -2,20 +2,20 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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.redis.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.redis.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220315") +public class SwitchoverResponse extends com.oracle.bmc.responses.BmcResponse { /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @return the value */ @@ -46,7 +46,7 @@ public String getOpcRequestId() { "opcWorkRequestId", "opcRequestId" }) - private StopDistributedDatabaseResponse( + private SwitchoverResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcWorkRequestId, @@ -72,13 +72,13 @@ public Builder headers(javax.ws.rs.core.MultivaluedMap headers) } /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * */ private String opcWorkRequestId; /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. * * @param opcWorkRequestId the value to set * @return this builder @@ -111,7 +111,7 @@ public Builder opcRequestId(String opcRequestId) { * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(StopDistributedDatabaseResponse o) { + public Builder copy(SwitchoverResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcWorkRequestId(o.getOpcWorkRequestId()); @@ -124,8 +124,8 @@ public Builder copy(StopDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public StopDistributedDatabaseResponse build() { - return new StopDistributedDatabaseResponse( + public SwitchoverResponse build() { + return new SwitchoverResponse( __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); } } @@ -154,11 +154,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof StopDistributedDatabaseResponse)) { + if (!(o instanceof SwitchoverResponse)) { return false; } - StopDistributedDatabaseResponse other = (StopDistributedDatabaseResponse) o; + SwitchoverResponse other = (SwitchoverResponse) 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-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 6b9c17fd005..f95c016ef6d 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index ed56dbb2b84..a90813a7611 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-resourcemanager @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 9eee88c4585..cbc75ca500b 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index b2e83d197fa..5f6ae20a7b9 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 898068be6e2..eef7fc456ff 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-rover @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index c3f90ca7f74..dbab1a27324 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-sch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index ba2b8251ce5..c45ed399b4f 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-secrets @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 3f93bf9c526..70549f10871 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index acdc4fc6d02..441aa06b8be 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java index f16eb6f3b0e..4acc3a88cd1 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegeration.java @@ -72,6 +72,21 @@ public interface PartnerIntegeration extends AutoCloseable { */ ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionRequest request); + /** + * Deprecated. This endpoint has moved permanently to + * `/partners/subscriptions/{subscriptionId}/actions/activate`. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ActivateSubscriptionDeprecated API. + */ + ActivateSubscriptionDeprecatedResponse activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request); + /** * Lists marketplace publisher partner info for a compartment. * @@ -97,6 +112,19 @@ public interface PartnerIntegeration extends AutoCloseable { */ ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsRequest request); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions`. + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ListingSubscriptionsDeprecated API. + */ + ListingSubscriptionsDeprecatedResponse listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request); + /** * This API returns the subscription details by resolving JWT token to corresponding subscription and move its state to Pending Activation state. * @@ -110,9 +138,24 @@ public interface PartnerIntegeration extends AutoCloseable { */ ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionRequest request); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions/actions/resolve`. + * It returns a 301 response and does not resolve a subscription. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. + * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. + * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + * + * Example: Click here to see how to use ResolveSubscriptionDeprecated API. + */ + ResolveSubscriptionDeprecatedResponse resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request); + /** * Asynchronously submits a UTF-8 CSV usage file for marketplace offers. The file - * must not exceed 50 MB or 10,000 rows and must include required usage columns. + * must not exceed 50 MB or 30,000 rows and must include required usage columns. * * * Note: This operation consumes a stream. diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java index c104192928f..fe29f418916 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsync.java @@ -75,6 +75,26 @@ java.util.concurrent.Future activateSubscription( ActivateSubscriptionRequest, ActivateSubscriptionResponse> handler); + /** + * Deprecated. This endpoint has moved permanently to + * `/partners/subscriptions/{subscriptionId}/actions/activate`. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request, + com.oracle.bmc.responses.AsyncHandler< + ActivateSubscriptionDeprecatedRequest, + ActivateSubscriptionDeprecatedResponse> + handler); + /** * Lists marketplace publisher partner info for a compartment. * @@ -107,6 +127,24 @@ java.util.concurrent.Future listingSubscriptions( ListingSubscriptionsRequest, ListingSubscriptionsResponse> handler); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions`. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse> + handler); + /** * This API returns the subscription details by resolving JWT token to corresponding subscription and move its state to Pending Activation state. * @@ -124,9 +162,29 @@ java.util.concurrent.Future resolveSubscription( ResolveSubscriptionRequest, ResolveSubscriptionResponse> handler); + /** + * Deprecated. This endpoint has moved permanently to `/partners/subscriptions/actions/resolve`. + * It returns a 301 response and does not resolve a subscription. + * + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was + * provided. Note, if you provide an AsyncHandler and use the Future, some + * types of responses (like java.io.InputStream) may not be able to be read in + * both places as the underlying stream may only be consumed once. + */ + java.util.concurrent.Future + resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request, + com.oracle.bmc.responses.AsyncHandler< + ResolveSubscriptionDeprecatedRequest, + ResolveSubscriptionDeprecatedResponse> + handler); + /** * Asynchronously submits a UTF-8 CSV usage file for marketplace offers. The file - * must not exceed 50 MB or 10,000 rows and must include required usage columns. + * must not exceed 50 MB or 30,000 rows and must include required usage columns. * * * @param request The request object containing the details to send diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java index 122d9979e6a..54dcbeafa5e 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationAsyncClient.java @@ -523,6 +523,64 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ActivateSubscriptionDeprecatedRequest, + ActivateSubscriptionDeprecatedResponse> + handler) { + LOG.trace("Called async activateSubscriptionDeprecated"); + final ActivateSubscriptionDeprecatedRequest interceptedRequest = + ActivateSubscriptionDeprecatedConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateSubscriptionDeprecatedConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "PartnerIntegeration", + "ActivateSubscriptionDeprecated", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscriptionDeprecated"); + final java.util.function.Function< + javax.ws.rs.core.Response, ActivateSubscriptionDeprecatedResponse> + transformer = + ActivateSubscriptionDeprecatedConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ActivateSubscriptionDeprecatedRequest, + ActivateSubscriptionDeprecatedResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ActivateSubscriptionDeprecatedRequest, + ActivateSubscriptionDeprecatedResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getActivateSubscriptionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ActivateSubscriptionDeprecatedRequest, ActivateSubscriptionDeprecatedResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listPartners( ListPartnersRequest request, @@ -614,6 +672,58 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse> + handler) { + LOG.trace("Called async listingSubscriptionsDeprecated"); + final ListingSubscriptionsDeprecatedRequest interceptedRequest = + ListingSubscriptionsDeprecatedConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListingSubscriptionsDeprecatedConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "PartnerIntegeration", + "ListingSubscriptionsDeprecated", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptionsDeprecated"); + final java.util.function.Function< + javax.ws.rs.core.Response, ListingSubscriptionsDeprecatedResponse> + transformer = + ListingSubscriptionsDeprecatedConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListingSubscriptionsDeprecatedRequest, ListingSubscriptionsDeprecatedResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future resolveSubscription( ResolveSubscriptionRequest request, @@ -667,6 +777,63 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ResolveSubscriptionDeprecatedRequest, + ResolveSubscriptionDeprecatedResponse> + handler) { + LOG.trace("Called async resolveSubscriptionDeprecated"); + final ResolveSubscriptionDeprecatedRequest interceptedRequest = + ResolveSubscriptionDeprecatedConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ResolveSubscriptionDeprecatedConverter.fromRequest(client, interceptedRequest); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "PartnerIntegeration", + "ResolveSubscriptionDeprecated", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscriptionDeprecated"); + final java.util.function.Function< + javax.ws.rs.core.Response, ResolveSubscriptionDeprecatedResponse> + transformer = + ResolveSubscriptionDeprecatedConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + com.oracle.bmc.responses.AsyncHandler< + ResolveSubscriptionDeprecatedRequest, ResolveSubscriptionDeprecatedResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ResolveSubscriptionDeprecatedRequest, + ResolveSubscriptionDeprecatedResponse>, + java.util.concurrent.Future> + futureSupplier = + client.postFutureSupplier( + interceptedRequest, + interceptedRequest.getResolveSubscriptionDetails(), + ib, + transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ResolveSubscriptionDeprecatedRequest, ResolveSubscriptionDeprecatedResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future submitSubscriptionUsageBatch( diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java index 462eb5a265c..4e0f3992fa2 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationClient.java @@ -527,6 +527,50 @@ public ActivateSubscriptionResponse activateSubscription(ActivateSubscriptionReq }); } + @Override + public ActivateSubscriptionDeprecatedResponse activateSubscriptionDeprecated( + ActivateSubscriptionDeprecatedRequest request) { + LOG.trace("Called activateSubscriptionDeprecated"); + final ActivateSubscriptionDeprecatedRequest interceptedRequest = + ActivateSubscriptionDeprecatedConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ActivateSubscriptionDeprecatedConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "PartnerIntegeration", + "ActivateSubscriptionDeprecated", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ActivateSubscriptionDeprecated"); + java.util.function.Function< + javax.ws.rs.core.Response, ActivateSubscriptionDeprecatedResponse> + transformer = + ActivateSubscriptionDeprecatedConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getActivateSubscriptionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListPartnersResponse listPartners(ListPartnersRequest request) { LOG.trace("Called listPartners"); @@ -599,6 +643,45 @@ public ListingSubscriptionsResponse listingSubscriptions(ListingSubscriptionsReq }); } + @Override + public ListingSubscriptionsDeprecatedResponse listingSubscriptionsDeprecated( + ListingSubscriptionsDeprecatedRequest request) { + LOG.trace("Called listingSubscriptionsDeprecated"); + final ListingSubscriptionsDeprecatedRequest interceptedRequest = + ListingSubscriptionsDeprecatedConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListingSubscriptionsDeprecatedConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "PartnerIntegeration", + "ListingSubscriptionsDeprecated", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/ListingSubscriptionsCollection/ListingSubscriptionsDeprecated"); + java.util.function.Function< + javax.ws.rs.core.Response, ListingSubscriptionsDeprecatedResponse> + transformer = + ListingSubscriptionsDeprecatedConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionRequest request) { LOG.trace("Called resolveSubscription"); @@ -641,6 +724,50 @@ public ResolveSubscriptionResponse resolveSubscription(ResolveSubscriptionReques }); } + @Override + public ResolveSubscriptionDeprecatedResponse resolveSubscriptionDeprecated( + ResolveSubscriptionDeprecatedRequest request) { + LOG.trace("Called resolveSubscriptionDeprecated"); + final ResolveSubscriptionDeprecatedRequest interceptedRequest = + ResolveSubscriptionDeprecatedConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ResolveSubscriptionDeprecatedConverter.fromRequest(client, interceptedRequest); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration, true); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); + com.oracle.bmc.ServiceDetails serviceDetails = + new com.oracle.bmc.ServiceDetails( + "PartnerIntegeration", + "ResolveSubscriptionDeprecated", + ib.getRequestUri().toString(), + "https://docs.oracle.com/iaas/api/#/en/self/20260129/PartnerSubscription/ResolveSubscriptionDeprecated"); + java.util.function.Function< + javax.ws.rs.core.Response, ResolveSubscriptionDeprecatedResponse> + transformer = + ResolveSubscriptionDeprecatedConverter.fromResponse( + java.util.Optional.of(serviceDetails)); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = + client.post( + ib, + retriedRequest.getResolveSubscriptionDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public SubmitSubscriptionUsageBatchResponse submitSubscriptionUsageBatch( SubmitSubscriptionUsageBatchRequest request) { diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java index 47319a043a5..4da23f2acfb 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/PartnerIntegerationPaginators.java @@ -255,4 +255,124 @@ public ListingSubscriptionsResponse apply(ListingSubscriptionsRequest request) { } }); } + + /** + * Creates a new iterable which will iterate over the responses received from the listingSubscriptionsDeprecated operation. This iterable + * will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses received from the service. + */ + public Iterable + listingSubscriptionsDeprecatedResponseIterator( + final ListingSubscriptionsDeprecatedRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListingSubscriptionsDeprecatedRequest.Builder, + ListingSubscriptionsDeprecatedRequest, ListingSubscriptionsDeprecatedResponse>( + new java.util.function.Supplier() { + @Override + public ListingSubscriptionsDeprecatedRequest.Builder get() { + return ListingSubscriptionsDeprecatedRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListingSubscriptionsDeprecatedResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.Builder>, + ListingSubscriptionsDeprecatedRequest>() { + @Override + public ListingSubscriptionsDeprecatedRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse>() { + @Override + public ListingSubscriptionsDeprecatedResponse apply( + ListingSubscriptionsDeprecatedRequest request) { + return client.listingSubscriptionsDeprecated(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.self.model.ListingSubscriptionSummary} objects + * contained in responses from the listingSubscriptionsDeprecated operation. This iterable will fetch more data from the + * server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link com.oracle.bmc.self.model.ListingSubscriptionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listingSubscriptionsDeprecatedRecordIterator( + final ListingSubscriptionsDeprecatedRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListingSubscriptionsDeprecatedRequest.Builder, + ListingSubscriptionsDeprecatedRequest, ListingSubscriptionsDeprecatedResponse, + com.oracle.bmc.self.model.ListingSubscriptionSummary>( + new java.util.function.Supplier() { + @Override + public ListingSubscriptionsDeprecatedRequest.Builder get() { + return ListingSubscriptionsDeprecatedRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListingSubscriptionsDeprecatedResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.Builder>, + ListingSubscriptionsDeprecatedRequest>() { + @Override + public ListingSubscriptionsDeprecatedRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListingSubscriptionsDeprecatedRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListingSubscriptionsDeprecatedRequest, + ListingSubscriptionsDeprecatedResponse>() { + @Override + public ListingSubscriptionsDeprecatedResponse apply( + ListingSubscriptionsDeprecatedRequest request) { + return client.listingSubscriptionsDeprecated(request); + } + }, + new java.util.function.Function< + ListingSubscriptionsDeprecatedResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListingSubscriptionsDeprecatedResponse response) { + return response.getListingSubscriptionsCollection().getItems(); + } + }); + } } diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ActivateSubscriptionDeprecatedConverter.java b/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ActivateSubscriptionDeprecatedConverter.java new file mode 100644 index 00000000000..1ceaf831999 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ActivateSubscriptionDeprecatedConverter.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.self.model.*; +import com.oracle.bmc.self.requests.*; +import com.oracle.bmc.self.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ActivateSubscriptionDeprecatedConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ActivateSubscriptionDeprecatedConverter.class); + + public static com.oracle.bmc.self.requests.ActivateSubscriptionDeprecatedRequest + interceptRequest( + com.oracle.bmc.self.requests.ActivateSubscriptionDeprecatedRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.self.requests.ActivateSubscriptionDeprecatedRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getSubscriptionId(), "subscriptionId must not be blank"); + Validate.notNull( + request.getActivateSubscriptionDetails(), + "activateSubscriptionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260129") + .path("partner") + .path("subscriptions") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getSubscriptionId())) + .path("actions") + .path("activate"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ActivateSubscriptionDeprecatedResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ActivateSubscriptionDeprecatedResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ActivateSubscriptionDeprecatedResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses + .ActivateSubscriptionDeprecatedResponse>() { + @Override + public com.oracle.bmc.self.responses + .ActivateSubscriptionDeprecatedResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.self.responses.ActivateSubscriptionDeprecatedResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.self.model + .ActivateSubscriptionResult>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.self.model + .ActivateSubscriptionResult + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.self.model + .ActivateSubscriptionResult + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.self.model + .ActivateSubscriptionResult> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.self.responses.ActivateSubscriptionDeprecatedResponse + .Builder + builder = + com.oracle.bmc.self.responses + .ActivateSubscriptionDeprecatedResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.activateSubscriptionResult(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.self.responses.ActivateSubscriptionDeprecatedResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ListingSubscriptionsDeprecatedConverter.java b/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ListingSubscriptionsDeprecatedConverter.java new file mode 100644 index 00000000000..97989491e4a --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ListingSubscriptionsDeprecatedConverter.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.self.model.*; +import com.oracle.bmc.self.requests.*; +import com.oracle.bmc.self.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListingSubscriptionsDeprecatedConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ListingSubscriptionsDeprecatedConverter.class); + + public static com.oracle.bmc.self.requests.ListingSubscriptionsDeprecatedRequest + interceptRequest( + com.oracle.bmc.self.requests.ListingSubscriptionsDeprecatedRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.self.requests.ListingSubscriptionsDeprecatedRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getListingId(), "listingId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20260129").path("partner").path("subscriptions"); + + target = + target.queryParam( + "listingId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getListingId())); + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + if (request.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ListingSubscriptionsDeprecatedResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ListingSubscriptionsDeprecatedResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ListingSubscriptionsDeprecatedResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses + .ListingSubscriptionsDeprecatedResponse>() { + @Override + public com.oracle.bmc.self.responses + .ListingSubscriptionsDeprecatedResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.self.responses.ListingSubscriptionsDeprecatedResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.self.model + .ListingSubscriptionsCollection>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.self.model + .ListingSubscriptionsCollection + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.self.model + .ListingSubscriptionsCollection + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.self.model + .ListingSubscriptionsCollection> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.self.responses.ListingSubscriptionsDeprecatedResponse + .Builder + builder = + com.oracle.bmc.self.responses + .ListingSubscriptionsDeprecatedResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.listingSubscriptionsCollection(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + com.oracle.bmc.self.responses.ListingSubscriptionsDeprecatedResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ResolveSubscriptionDeprecatedConverter.java b/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ResolveSubscriptionDeprecatedConverter.java new file mode 100644 index 00000000000..38bc9ff78e3 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/internal/http/ResolveSubscriptionDeprecatedConverter.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.self.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.self.model.*; +import com.oracle.bmc.self.requests.*; +import com.oracle.bmc.self.responses.*; +import com.oracle.bmc.util.internal.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ResolveSubscriptionDeprecatedConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(ResolveSubscriptionDeprecatedConverter.class); + + public static com.oracle.bmc.self.requests.ResolveSubscriptionDeprecatedRequest + interceptRequest( + com.oracle.bmc.self.requests.ResolveSubscriptionDeprecatedRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.self.requests.ResolveSubscriptionDeprecatedRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getResolveSubscriptionDetails(), "resolveSubscriptionDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20260129") + .path("partner") + .path("subscriptions") + .path("actions") + .path("resolve"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (client.getClientConfigurator() != null) { + client.getClientConfigurator().customizeRequest(request, ib); + } + return ib; + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ResolveSubscriptionDeprecatedResponse> + fromResponse() { + return fromResponse(java.util.Optional.empty()); + } + + public static java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ResolveSubscriptionDeprecatedResponse> + fromResponse(java.util.Optional serviceDetails) { + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses.ResolveSubscriptionDeprecatedResponse> + transformer = + new java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.self.responses + .ResolveSubscriptionDeprecatedResponse>() { + @Override + public com.oracle.bmc.self.responses + .ResolveSubscriptionDeprecatedResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.self.responses.ResolveSubscriptionDeprecatedResponse"); + final java.util.function.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.self.model + .PartnerSubscription>> + responseFn; + if (serviceDetails.isPresent()) { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.self.model.PartnerSubscription + .class, + serviceDetails.get()); + } else { + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + com.oracle.bmc.self.model.PartnerSubscription + .class); + } + + com.oracle.bmc.http.internal.WithHeaders< + com.oracle.bmc.self.model.PartnerSubscription> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.self.responses.ResolveSubscriptionDeprecatedResponse + .Builder + builder = + com.oracle.bmc.self.responses + .ResolveSubscriptionDeprecatedResponse + .builder() + .__httpStatusCode__(rawResponse.getStatus()) + .headers(headers); + + builder.partnerSubscription(response.getItem()); + + java.util.Optional> opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + java.util.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.self.responses.ResolveSubscriptionDeprecatedResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java index cb41210b41b..76d90fc0616 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/CreateSubscriptionUsageRecordDetails.java @@ -40,7 +40,6 @@ public final class CreateSubscriptionUsageRecordDetails "productSku", "contractDuration", "additionalMetadata", - "usageRecordId", "timeUsageStarted", "timeUsageEnded" }) @@ -60,7 +59,6 @@ public CreateSubscriptionUsageRecordDetails( String productSku, BillingFrequency contractDuration, java.util.List additionalMetadata, - String usageRecordId, java.util.Date timeUsageStarted, java.util.Date timeUsageEnded) { super(); @@ -79,7 +77,6 @@ public CreateSubscriptionUsageRecordDetails( this.productSku = productSku; this.contractDuration = contractDuration; this.additionalMetadata = additionalMetadata; - this.usageRecordId = usageRecordId; this.timeUsageStarted = timeUsageStarted; this.timeUsageEnded = timeUsageEnded; } @@ -326,22 +323,6 @@ public Builder additionalMetadata(java.util.List additionalMet this.__explicitlySet__.add("additionalMetadata"); return this; } - /** - * Partner-provided usage record identifier for traceability. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("usageRecordId") - private String usageRecordId; - - /** - * Partner-provided usage record identifier for traceability. - * @param usageRecordId the value to set - * @return this builder - **/ - public Builder usageRecordId(String usageRecordId) { - this.usageRecordId = usageRecordId; - this.__explicitlySet__.add("usageRecordId"); - return this; - } /** * The inclusive start timestamp for the usage window. This value must be before {@code timeUsageEnded}. **/ @@ -396,7 +377,6 @@ public CreateSubscriptionUsageRecordDetails build() { this.productSku, this.contractDuration, this.additionalMetadata, - this.usageRecordId, this.timeUsageStarted, this.timeUsageEnded); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -452,9 +432,6 @@ public Builder copy(CreateSubscriptionUsageRecordDetails model) { if (model.wasPropertyExplicitlySet("additionalMetadata")) { this.additionalMetadata(model.getAdditionalMetadata()); } - if (model.wasPropertyExplicitlySet("usageRecordId")) { - this.usageRecordId(model.getUsageRecordId()); - } if (model.wasPropertyExplicitlySet("timeUsageStarted")) { this.timeUsageStarted(model.getTimeUsageStarted()); } @@ -721,20 +698,6 @@ public java.util.List getAdditionalMetadata() { return additionalMetadata; } - /** - * Partner-provided usage record identifier for traceability. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("usageRecordId") - private final String usageRecordId; - - /** - * Partner-provided usage record identifier for traceability. - * @return the value - **/ - public String getUsageRecordId() { - return usageRecordId; - } - /** * The inclusive start timestamp for the usage window. This value must be before {@code timeUsageEnded}. **/ @@ -792,7 +755,6 @@ public String toString(boolean includeByteArrayContents) { sb.append(", productSku=").append(String.valueOf(this.productSku)); sb.append(", contractDuration=").append(String.valueOf(this.contractDuration)); sb.append(", additionalMetadata=").append(String.valueOf(this.additionalMetadata)); - sb.append(", usageRecordId=").append(String.valueOf(this.usageRecordId)); sb.append(", timeUsageStarted=").append(String.valueOf(this.timeUsageStarted)); sb.append(", timeUsageEnded=").append(String.valueOf(this.timeUsageEnded)); sb.append(")"); @@ -824,7 +786,6 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.productSku, other.productSku) && java.util.Objects.equals(this.contractDuration, other.contractDuration) && java.util.Objects.equals(this.additionalMetadata, other.additionalMetadata) - && java.util.Objects.equals(this.usageRecordId, other.usageRecordId) && java.util.Objects.equals(this.timeUsageStarted, other.timeUsageStarted) && java.util.Objects.equals(this.timeUsageEnded, other.timeUsageEnded) && super.equals(other); @@ -873,9 +834,6 @@ public int hashCode() { + (this.additionalMetadata == null ? 43 : this.additionalMetadata.hashCode()); - result = - (result * PRIME) - + (this.usageRecordId == null ? 43 : this.usageRecordId.hashCode()); result = (result * PRIME) + (this.timeUsageStarted == null ? 43 : this.timeUsageStarted.hashCode()); diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java index 1660bd2a785..38c7c6c68ed 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/model/SubmitSubscriptionUsageRecordsDetails.java @@ -33,13 +33,13 @@ public SubmitSubscriptionUsageRecordsDetails( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * The usage records to submit. The array must contain at least one record and no more than 100 records. + * The usage records to submit. The array must contain at least one record and no more than 1,000 records. **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionUsageRecords") private java.util.List subscriptionUsageRecords; /** - * The usage records to submit. The array must contain at least one record and no more than 100 records. + * The usage records to submit. The array must contain at least one record and no more than 1,000 records. * @param subscriptionUsageRecords the value to set * @return this builder **/ @@ -83,13 +83,13 @@ public Builder toBuilder() { } /** - * The usage records to submit. The array must contain at least one record and no more than 100 records. + * The usage records to submit. The array must contain at least one record and no more than 1,000 records. **/ @com.fasterxml.jackson.annotation.JsonProperty("subscriptionUsageRecords") private final java.util.List subscriptionUsageRecords; /** - * The usage records to submit. The array must contain at least one record and no more than 100 records. + * The usage records to submit. The array must contain at least one record and no more than 1,000 records. * @return the value **/ public java.util.List getSubscriptionUsageRecords() { diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java new file mode 100644 index 00000000000..382d36a734b --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ActivateSubscriptionDeprecatedRequest.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use ActivateSubscriptionDeprecatedRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ActivateSubscriptionDeprecatedRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.self.model.ActivateSubscriptionDetails> { + + /** + * The unique identifier for the subscription. + */ + private String subscriptionId; + + /** + * The unique identifier for the subscription. + */ + public String getSubscriptionId() { + return subscriptionId; + } + /** + * The details for activating the subscription. + */ + private com.oracle.bmc.self.model.ActivateSubscriptionDetails activateSubscriptionDetails; + + /** + * The details for activating the subscription. + */ + public com.oracle.bmc.self.model.ActivateSubscriptionDetails getActivateSubscriptionDetails() { + return activateSubscriptionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.self.model.ActivateSubscriptionDetails getBody$() { + return activateSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ActivateSubscriptionDeprecatedRequest, + com.oracle.bmc.self.model.ActivateSubscriptionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique identifier for the subscription. + */ + private String subscriptionId = null; + + /** + * The unique identifier for the subscription. + * @param subscriptionId the value to set + * @return this builder instance + */ + public Builder subscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + + /** + * The details for activating the subscription. + */ + private com.oracle.bmc.self.model.ActivateSubscriptionDetails activateSubscriptionDetails = + null; + + /** + * The details for activating the subscription. + * @param activateSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder activateSubscriptionDetails( + com.oracle.bmc.self.model.ActivateSubscriptionDetails activateSubscriptionDetails) { + this.activateSubscriptionDetails = activateSubscriptionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ActivateSubscriptionDeprecatedRequest o) { + subscriptionId(o.getSubscriptionId()); + activateSubscriptionDetails(o.getActivateSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ActivateSubscriptionDeprecatedRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ActivateSubscriptionDeprecatedRequest + */ + public ActivateSubscriptionDeprecatedRequest build() { + ActivateSubscriptionDeprecatedRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.self.model.ActivateSubscriptionDetails body) { + activateSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of ActivateSubscriptionDeprecatedRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ActivateSubscriptionDeprecatedRequest + */ + public ActivateSubscriptionDeprecatedRequest buildWithoutInvocationCallback() { + ActivateSubscriptionDeprecatedRequest request = + new ActivateSubscriptionDeprecatedRequest(); + request.subscriptionId = subscriptionId; + request.activateSubscriptionDetails = activateSubscriptionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ActivateSubscriptionDeprecatedRequest(subscriptionId, activateSubscriptionDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .subscriptionId(subscriptionId) + .activateSubscriptionDetails(activateSubscriptionDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(",activateSubscriptionDetails=") + .append(String.valueOf(this.activateSubscriptionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateSubscriptionDeprecatedRequest)) { + return false; + } + + ActivateSubscriptionDeprecatedRequest other = (ActivateSubscriptionDeprecatedRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals( + this.activateSubscriptionDetails, other.activateSubscriptionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = + (result * PRIME) + + (this.activateSubscriptionDetails == null + ? 43 + : this.activateSubscriptionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java new file mode 100644 index 00000000000..fc87ac5e3cc --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ListingSubscriptionsDeprecatedRequest.java @@ -0,0 +1,426 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use ListingSubscriptionsDeprecatedRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListingSubscriptionsDeprecatedRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The unique identifier for the listing. + */ + private String listingId; + + /** + * The unique identifier for the listing. + */ + public String getListingId() { + return listingId; + } + /** + * A filter to return only resources that match the given name. + */ + private String displayName; + + /** + * A filter to return only resources that match the given name. + */ + public String getDisplayName() { + return displayName; + } + /** + * The field to sort by. Only one sort order may be provided. + */ + private SortBy sortBy; + + /** + * The field to sort by. Only one sort order may be provided. + **/ + public enum SortBy { + TimeCreated("timeCreated"), + DisplayName("displayName"), + ProductId("productId"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. Only one sort order may be provided. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.self.model.SortOrder sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + public com.oracle.bmc.self.model.SortOrder getSortOrder() { + return sortOrder; + } + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public Integer getLimit() { + return limit; + } + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + public String getPage() { + return page; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListingSubscriptionsDeprecatedRequest, java.lang.Void> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The unique identifier for the listing. + */ + private String listingId = null; + + /** + * The unique identifier for the listing. + * @param listingId the value to set + * @return this builder instance + */ + public Builder listingId(String listingId) { + this.listingId = listingId; + return this; + } + + /** + * A filter to return only resources that match the given name. + */ + private String displayName = null; + + /** + * A filter to return only resources that match the given name. + * @param displayName the value to set + * @return this builder instance + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The field to sort by. Only one sort order may be provided. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. Only one sort order may be provided. + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + */ + private com.oracle.bmc.self.model.SortOrder sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.self.model.SortOrder sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private Integer limit = null; + + /** + * For list pagination. The maximum number of results per page, or items to return in a + * paginated "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String page = null; + + /** + * For list pagination. The value of the opc-next-page response header from the previous + * "List" call. For important details about how pagination works, see + * [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, + * please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListingSubscriptionsDeprecatedRequest o) { + listingId(o.getListingId()); + displayName(o.getDisplayName()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListingSubscriptionsDeprecatedRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListingSubscriptionsDeprecatedRequest + */ + public ListingSubscriptionsDeprecatedRequest build() { + ListingSubscriptionsDeprecatedRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListingSubscriptionsDeprecatedRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListingSubscriptionsDeprecatedRequest + */ + public ListingSubscriptionsDeprecatedRequest buildWithoutInvocationCallback() { + ListingSubscriptionsDeprecatedRequest request = + new ListingSubscriptionsDeprecatedRequest(); + request.listingId = listingId; + request.displayName = displayName; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + return request; + // new ListingSubscriptionsDeprecatedRequest(listingId, displayName, sortBy, sortOrder, limit, page, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .listingId(listingId) + .displayName(displayName) + .sortBy(sortBy) + .sortOrder(sortOrder) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",listingId=").append(String.valueOf(this.listingId)); + sb.append(",displayName=").append(String.valueOf(this.displayName)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListingSubscriptionsDeprecatedRequest)) { + return false; + } + + ListingSubscriptionsDeprecatedRequest other = (ListingSubscriptionsDeprecatedRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.listingId, other.listingId) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.listingId == null ? 43 : this.listingId.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.java new file mode 100644 index 00000000000..d09f48b81d4 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/ResolveSubscriptionDeprecatedRequest.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.self.requests; + +import com.oracle.bmc.self.model.*; +/** + * Example: Click here to see how to use ResolveSubscriptionDeprecatedRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ResolveSubscriptionDeprecatedRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.self.model.ResolveSubscriptionDetails> { + + /** + * Details for the new Subscription. + */ + private com.oracle.bmc.self.model.ResolveSubscriptionDetails resolveSubscriptionDetails; + + /** + * Details for the new Subscription. + */ + public com.oracle.bmc.self.model.ResolveSubscriptionDetails getResolveSubscriptionDetails() { + return resolveSubscriptionDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + public String getIfMatch() { + return ifMatch; + } + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.self.model.ResolveSubscriptionDetails getBody$() { + return resolveSubscriptionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ResolveSubscriptionDeprecatedRequest, + com.oracle.bmc.self.model.ResolveSubscriptionDetails> { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Details for the new Subscription. + */ + private com.oracle.bmc.self.model.ResolveSubscriptionDetails resolveSubscriptionDetails = + null; + + /** + * Details for the new Subscription. + * @param resolveSubscriptionDetails the value to set + * @return this builder instance + */ + public Builder resolveSubscriptionDetails( + com.oracle.bmc.self.model.ResolveSubscriptionDetails resolveSubscriptionDetails) { + this.resolveSubscriptionDetails = resolveSubscriptionDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of running that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a resource + * has been deleted and removed from the system, then a retry of the original creation request + * might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + */ + private String opcRequestId = null; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * The only valid characters for request IDs are letters, numbers, + * underscore, and dash. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ResolveSubscriptionDeprecatedRequest o) { + resolveSubscriptionDetails(o.getResolveSubscriptionDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ResolveSubscriptionDeprecatedRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ResolveSubscriptionDeprecatedRequest + */ + public ResolveSubscriptionDeprecatedRequest build() { + ResolveSubscriptionDeprecatedRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.self.model.ResolveSubscriptionDetails body) { + resolveSubscriptionDetails(body); + return this; + } + + /** + * Build the instance of ResolveSubscriptionDeprecatedRequest as configured by this builder + * + * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ResolveSubscriptionDeprecatedRequest + */ + public ResolveSubscriptionDeprecatedRequest buildWithoutInvocationCallback() { + ResolveSubscriptionDeprecatedRequest request = + new ResolveSubscriptionDeprecatedRequest(); + request.resolveSubscriptionDetails = resolveSubscriptionDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new ResolveSubscriptionDeprecatedRequest(resolveSubscriptionDetails, opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .resolveSubscriptionDetails(resolveSubscriptionDetails) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",resolveSubscriptionDetails=") + .append(String.valueOf(this.resolveSubscriptionDetails)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ResolveSubscriptionDeprecatedRequest)) { + return false; + } + + ResolveSubscriptionDeprecatedRequest other = (ResolveSubscriptionDeprecatedRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.resolveSubscriptionDetails, other.resolveSubscriptionDetails) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.resolveSubscriptionDetails == null + ? 43 + : this.resolveSubscriptionDetails.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java index c929bc35843..529445b85f2 100644 --- a/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/requests/SubmitSubscriptionUsageBatchRequest.java @@ -24,7 +24,7 @@ public String getCompartmentId() { return compartmentId; } /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. * Optional columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, @@ -37,7 +37,7 @@ public String getCompartmentId() { private java.io.InputStream submitSubscriptionUsageBatchDetails; /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. * Optional columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, @@ -124,7 +124,7 @@ public Builder compartmentId(String compartmentId) { } /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. * Optional columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, @@ -137,7 +137,7 @@ public Builder compartmentId(String compartmentId) { private java.io.InputStream submitSubscriptionUsageBatchDetails = null; /** - * UTF-8 CSV file with no more than 10,000 usage records and a maximum size of 50 MB. + * UTF-8 CSV file with no more than 30,000 usage records and a maximum size of 50 MB. * Required columns are {@code MarketplaceOfferId}, {@code Id}, {@code Amount}, {@code CurrencyCode}, * {@code UsageStartTime}, {@code UsageEndTime}, and {@code UsageDimensionName}. * Optional columns are {@code ConsumedQuantity}, {@code CustomerTenancyId}, diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java new file mode 100644 index 00000000000..eba58640f4d --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ActivateSubscriptionDeprecatedResponse.java @@ -0,0 +1,217 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.responses; + +import com.oracle.bmc.self.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ActivateSubscriptionDeprecatedResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For optimistic concurrency control. See {@code if-match}. + * + */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * The returned ActivateSubscriptionResult instance. + */ + private com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult; + + /** + * The returned ActivateSubscriptionResult instance. + * @return the value + */ + public com.oracle.bmc.self.model.ActivateSubscriptionResult getActivateSubscriptionResult() { + return activateSubscriptionResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "etag", + "activateSubscriptionResult" + }) + private ActivateSubscriptionDeprecatedResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String etag, + com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.etag = etag; + this.activateSubscriptionResult = activateSubscriptionResult; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 ActivateSubscriptionResult instance. + */ + private com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult; + + /** + * The returned ActivateSubscriptionResult instance. + * @param activateSubscriptionResult the value to set + * @return this builder + */ + public Builder activateSubscriptionResult( + com.oracle.bmc.self.model.ActivateSubscriptionResult activateSubscriptionResult) { + this.activateSubscriptionResult = activateSubscriptionResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ActivateSubscriptionDeprecatedResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + activateSubscriptionResult(o.getActivateSubscriptionResult()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ActivateSubscriptionDeprecatedResponse build() { + return new ActivateSubscriptionDeprecatedResponse( + __httpStatusCode__, headers, opcRequestId, etag, activateSubscriptionResult); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",activateSubscriptionResult=") + .append(String.valueOf(activateSubscriptionResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ActivateSubscriptionDeprecatedResponse)) { + return false; + } + + ActivateSubscriptionDeprecatedResponse other = (ActivateSubscriptionDeprecatedResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals( + this.activateSubscriptionResult, other.activateSubscriptionResult); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = + (result * PRIME) + + (this.activateSubscriptionResult == null + ? 43 + : this.activateSubscriptionResult.hashCode()); + return result; + } +} diff --git a/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java new file mode 100644 index 00000000000..ea672798c76 --- /dev/null +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ListingSubscriptionsDeprecatedResponse.java @@ -0,0 +1,229 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.self.responses; + +import com.oracle.bmc.self.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ListingSubscriptionsDeprecatedResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact + * Oracle about a particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * For list pagination. When this header appears in the response, additional pages of results remain. For + * important details about how pagination works, see [List Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * The returned ListingSubscriptionsCollection instance. + */ + private com.oracle.bmc.self.model.ListingSubscriptionsCollection listingSubscriptionsCollection; + + /** + * The returned ListingSubscriptionsCollection instance. + * @return the value + */ + public com.oracle.bmc.self.model.ListingSubscriptionsCollection + getListingSubscriptionsCollection() { + return listingSubscriptionsCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "listingSubscriptionsCollection" + }) + private ListingSubscriptionsDeprecatedResponse( + int __httpStatusCode__, + javax.ws.rs.core.MultivaluedMap headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.self.model.ListingSubscriptionsCollection + listingSubscriptionsCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.listingSubscriptionsCollection = listingSubscriptionsCollection; + } + + public static class Builder { + private int __httpStatusCode__; + + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private javax.ws.rs.core.MultivaluedMap headers; + + public Builder headers(javax.ws.rs.core.MultivaluedMap 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 ListingSubscriptionsCollection instance. + */ + private com.oracle.bmc.self.model.ListingSubscriptionsCollection + listingSubscriptionsCollection; + + /** + * The returned ListingSubscriptionsCollection instance. + * @param listingSubscriptionsCollection the value to set + * @return this builder + */ + public Builder listingSubscriptionsCollection( + com.oracle.bmc.self.model.ListingSubscriptionsCollection + listingSubscriptionsCollection) { + this.listingSubscriptionsCollection = listingSubscriptionsCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListingSubscriptionsDeprecatedResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + listingSubscriptionsCollection(o.getListingSubscriptionsCollection()); + + return this; + } + + /** + * Build the response object. + * @return the response object + */ + public ListingSubscriptionsDeprecatedResponse build() { + return new ListingSubscriptionsDeprecatedResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + listingSubscriptionsCollection); + } + } + + /** + * Return a new builder for this response object. + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",listingSubscriptionsCollection=") + .append(String.valueOf(listingSubscriptionsCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListingSubscriptionsDeprecatedResponse)) { + return false; + } + + ListingSubscriptionsDeprecatedResponse other = (ListingSubscriptionsDeprecatedResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.listingSubscriptionsCollection, other.listingSubscriptionsCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.listingSubscriptionsCollection == null + ? 43 + : this.listingSubscriptionsCollection.hashCode()); + return result; + } +} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java similarity index 72% rename from bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java rename to bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.java index b62c60afcad..abab427dfdc 100644 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java +++ b/bmc-self/src/main/java/com/oracle/bmc/self/responses/ResolveSubscriptionDeprecatedResponse.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.self.responses; -import com.oracle.bmc.distributeddatabasev26.model.*; +import com.oracle.bmc.self.model.*; -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260129") +public class ResolveSubscriptionDeprecatedResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact * Oracle about a particular request, please provide the request ID. @@ -41,17 +41,16 @@ public String getEtag() { } /** - * The returned DistributedDatabase instance. + * The returned PartnerSubscription instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + private com.oracle.bmc.self.model.PartnerSubscription partnerSubscription; /** - * The returned DistributedDatabase instance. + * The returned PartnerSubscription instance. * @return the value */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; + public com.oracle.bmc.self.model.PartnerSubscription getPartnerSubscription() { + return partnerSubscription; } @java.beans.ConstructorProperties({ @@ -59,18 +58,18 @@ public String getEtag() { "headers", "opcRequestId", "etag", - "distributedDatabase" + "partnerSubscription" }) - private GetDistributedDatabaseResponse( + private ResolveSubscriptionDeprecatedResponse( int __httpStatusCode__, javax.ws.rs.core.MultivaluedMap headers, String opcRequestId, String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { + com.oracle.bmc.self.model.PartnerSubscription partnerSubscription) { super(__httpStatusCode__, headers); this.opcRequestId = opcRequestId; this.etag = etag; - this.distributedDatabase = distributedDatabase; + this.partnerSubscription = partnerSubscription; } public static class Builder { @@ -125,19 +124,18 @@ public Builder etag(String etag) { } /** - * The returned DistributedDatabase instance. + * The returned PartnerSubscription instance. */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; + private com.oracle.bmc.self.model.PartnerSubscription partnerSubscription; /** - * The returned DistributedDatabase instance. - * @param distributedDatabase the value to set + * The returned PartnerSubscription instance. + * @param partnerSubscription the value to set * @return this builder */ - public Builder distributedDatabase( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - distributedDatabase) { - this.distributedDatabase = distributedDatabase; + public Builder partnerSubscription( + com.oracle.bmc.self.model.PartnerSubscription partnerSubscription) { + this.partnerSubscription = partnerSubscription; return this; } @@ -145,12 +143,12 @@ public Builder distributedDatabase( * Copy method to populate the builder with values from the given instance. * @return this builder instance */ - public Builder copy(GetDistributedDatabaseResponse o) { + public Builder copy(ResolveSubscriptionDeprecatedResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); opcRequestId(o.getOpcRequestId()); etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); + partnerSubscription(o.getPartnerSubscription()); return this; } @@ -159,9 +157,9 @@ public Builder copy(GetDistributedDatabaseResponse o) { * Build the response object. * @return the response object */ - public GetDistributedDatabaseResponse build() { - return new GetDistributedDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); + public ResolveSubscriptionDeprecatedResponse build() { + return new ResolveSubscriptionDeprecatedResponse( + __httpStatusCode__, headers, opcRequestId, etag, partnerSubscription); } } @@ -180,7 +178,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(",partnerSubscription=").append(String.valueOf(partnerSubscription)); sb.append(")"); return sb.toString(); } @@ -190,15 +188,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GetDistributedDatabaseResponse)) { + if (!(o instanceof ResolveSubscriptionDeprecatedResponse)) { return false; } - GetDistributedDatabaseResponse other = (GetDistributedDatabaseResponse) o; + ResolveSubscriptionDeprecatedResponse other = (ResolveSubscriptionDeprecatedResponse) o; return super.equals(o) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.distributedDatabase, other.distributedDatabase); + && java.util.Objects.equals(this.partnerSubscription, other.partnerSubscription); } @Override @@ -209,9 +207,9 @@ public int hashCode() { result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) - + (this.distributedDatabase == null + + (this.partnerSubscription == null ? 43 - : this.distributedDatabase.hashCode()); + : this.partnerSubscription.hashCode()); return result; } } diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 96790c4acc4..b6758f2a7f5 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-servicecatalog @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index db64643b6c0..9b623a46fae 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.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 2ed777715e4..574734713a4 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 - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index aaea781c6b6..d38ba852d71 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 83bd16ae10b..06f2b64a6f2 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index af1c2b75af0..dca51123b96 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-streaming @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 5269eb41dcf..b0dbfefb30c 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 601a5f6603c..cc1dc63fece 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-threatintelligence @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index b6579d7dbde..994e3e78094 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-usage @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 7f75bcc25ff..1c8dd15ceac 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-usageapi @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 25a7dbae5e0..a9bfcea70ec 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-vault @@ -16,12 +16,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 2.97.0 + 2.98.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 8fc992e28b4..7eed5c52974 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-vbsinst @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index bbe662fd91f..e6bb148e91b 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-visualbuilder @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 4ce12493216..33c8c29edd5 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 727665f517b..92dc65ba069 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 57710eca316..e9b06c02e1c 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-waa @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 59bdc3ad8a1..24cb2e30629 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 32793ddbb0c..c60820c56ec 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-waf @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 32ff50bcf0c..7a4283f0d6e 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 4469aed6a66..39a906bf4fb 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-workrequests @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 9056ca9cf5b..cd6e11df78f 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 2.97.0 + 2.98.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 64c918fa649..5a335680376 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 2.97.0 + 2.98.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure @@ -36,8 +36,8 @@ UTF-8 1.3.2 2.21 - 2.21.2 - 2.21.4 + 2.21.5 + 2.21.5 2.47 4.5.13 4.4.13 @@ -871,7 +871,6 @@ bmc-mngdmac bmc-lustrefilestorage bmc-modeldeployment - bmc-distributeddatabase bmc-apiaccesscontrol bmc-wlms bmc-dbmulticloud @@ -895,7 +894,8 @@ bmc-costad bmc-datacc bmc-ddfs - bmc-distributeddatabasev26 + bmc-clusterhealth + bmc-distributeddatabase bmc-full bmc-shaded From f57c166a0bfc86970342fcc01c6c07ed1ba866ad Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 22 Sep 2026 21:36:34 +0000 Subject: [PATCH 2/2] Remove all files deleted in scm --- ...GsmCertificateSigningRequestConverter.java | 187 -- ...GsmCertificateSigningRequestConverter.java | 185 -- ...GsmCertificateSigningRequestConverter.java | 171 -- ...GsmCertificateSigningRequestConverter.java | 168 -- ...CertificateAndGenerateWalletConverter.java | 167 -- ...CertificateAndGenerateWalletConverter.java | 164 -- .../model/CatalogPeerWithDedicatedInfra.java | 670 ------ .../model/CatalogPeerWithExadbXs.java | 553 ----- ...alogPeerWithExadbXsNewVaultAndCluster.java | 616 ----- ...eCatalogPeerWithDedicatedInfraDetails.java | 343 --- .../CreateCatalogPeerWithExadbXsDetails.java | 219 -- ...rWithExadbXsNewVaultAndClusterDetails.java | 288 --- ...butedAutonomousDatabaseCatalogDetails.java | 115 - ...ributedAutonomousDatabaseShardDetails.java | 115 - ...utedDatabaseCatalogWithExadbXsDetails.java | 443 ---- ...CreateDistributedDatabaseShardDetails.java | 122 - ...ibutedDatabaseShardWithExadbXsDetails.java | 442 ---- ...ateShardPeerWithDedicatedInfraDetails.java | 343 --- .../CreateShardPeerWithExadbXsDetails.java | 219 -- ...rWithExadbXsNewVaultAndClusterDetails.java | 288 --- ...DatabaseAssociatedWithPrivateEndpoint.java | 181 -- .../DistributedAutonomousDatabaseShard.java | 181 -- ...DatabaseAssociatedWithPrivateEndpoint.java | 180 -- ...DistributedDatabaseCatalogWithExadbXs.java | 626 ----- ...eCatalogWithExadbXsNewVaultAndCluster.java | 689 ------ .../model/DistributedDatabaseShard.java | 188 -- .../DistributedDatabaseShardWithExadbXs.java | 673 ------ ...aseShardWithExadbXsNewVaultAndCluster.java | 736 ------ .../model/ShardPeerWithDedicatedInfra.java | 670 ------ .../model/ShardPeerWithExadbXs.java | 552 ----- ...hardPeerWithExadbXsNewVaultAndCluster.java | 615 ----- ...edCertificateAndGenerateWalletDetails.java | 153 -- ...edCertificateAndGenerateWalletDetails.java | 147 -- ...seGsmCertificateSigningRequestRequest.java | 316 --- ...seGsmCertificateSigningRequestRequest.java | 311 --- ...seGsmCertificateSigningRequestRequest.java | 348 --- ...seGsmCertificateSigningRequestRequest.java | 343 --- ...edCertificateAndGenerateWalletRequest.java | 412 ---- ...edCertificateAndGenerateWalletRequest.java | 405 ---- ...eGsmCertificateSigningRequestResponse.java | 293 --- ...eGsmCertificateSigningRequestResponse.java | 290 --- ...eGsmCertificateSigningRequestResponse.java | 182 -- ...eGsmCertificateSigningRequestResponse.java | 179 -- ...dCertificateAndGenerateWalletResponse.java | 183 -- ...dCertificateAndGenerateWalletResponse.java | 179 -- bmc-distributeddatabasev26/pom.xml | 21 - .../DistributedAutonomousDbService.java | 428 ---- .../DistributedAutonomousDbServiceAsync.java | 522 ----- ...ributedAutonomousDbServiceAsyncClient.java | 1898 ---------------- .../DistributedAutonomousDbServiceClient.java | 1656 -------------- ...tributedAutonomousDbServicePaginators.java | 167 -- ...DistributedAutonomousDbServiceWaiters.java | 152 -- .../DistributedDbPrivateEndpointService.java | 189 -- ...tributedDbPrivateEndpointServiceAsync.java | 210 -- ...edDbPrivateEndpointServiceAsyncClient.java | 936 -------- ...ributedDbPrivateEndpointServiceClient.java | 924 -------- ...tedDbPrivateEndpointServicePaginators.java | 172 -- ...ibutedDbPrivateEndpointServiceWaiters.java | 154 -- .../DistributedDbService.java | 389 ---- .../DistributedDbServiceAsync.java | 466 ---- .../DistributedDbServiceAsyncClient.java | 1694 -------------- .../DistributedDbServiceClient.java | 1518 ------------- .../DistributedDbServicePaginators.java | 155 -- .../DistributedDbServiceWaiters.java | 143 -- .../DistributedDbWorkRequestService.java | 128 -- .../DistributedDbWorkRequestServiceAsync.java | 125 - ...ibutedDbWorkRequestServiceAsyncClient.java | 658 ------ ...DistributedDbWorkRequestServiceClient.java | 718 ------ ...ributedDbWorkRequestServicePaginators.java | 384 ---- ...istributedDbWorkRequestServiceWaiters.java | 83 - .../SdkClientsMetadata.java | 20 - ...nomousDatabaseGdsControlNodeConverter.java | 165 -- ...ibutedDatabaseGdsControlNodeConverter.java | 163 -- ...utonomousDatabaseCompartmentConverter.java | 165 -- ...utedAutonomousDbBackupConfigConverter.java | 165 -- ...stributedDatabaseCompartmentConverter.java | 163 -- ...sePrivateEndpointCompartmentConverter.java | 165 -- ...ngeDistributedDbBackupConfigConverter.java | 161 -- ...tabaseAutoResourceManagementConverter.java | 177 -- ...dAutonomousDatabaseGsmWalletConverter.java | 165 -- ...ibutedAutonomousDatabaseGsmsConverter.java | 165 -- ...edAutonomousDatabaseShardingConverter.java | 186 -- ...tabaseAutoResourceManagementConverter.java | 176 -- ...igureDistributedDatabaseGsmsConverter.java | 161 -- ...eDistributedDatabaseShardingConverter.java | 168 -- ...istributedAutonomousDatabaseConverter.java | 171 -- .../CreateDistributedDatabaseConverter.java | 167 -- ...butedDatabasePrivateEndpointConverter.java | 175 -- ...istributedAutonomousDatabaseConverter.java | 158 -- .../DeleteDistributedDatabaseConverter.java | 153 -- ...butedDatabasePrivateEndpointConverter.java | 160 -- ...utedAutonomousDatabaseWalletConverter.java | 189 -- ...ateDistributedDatabaseWalletConverter.java | 185 -- ...istributedAutonomousDatabaseConverter.java | 172 -- ...AutonomousDatabaseRaftMetricConverter.java | 155 -- ...utonomousDatabaseRuChangeLogConverter.java | 164 -- .../http/GetDistributedDatabaseConverter.java | 165 -- ...butedDatabasePrivateEndpointConverter.java | 166 -- ...istributedDatabaseRaftMetricConverter.java | 151 -- ...stributedDatabaseRuChangeLogConverter.java | 159 -- .../http/GetWorkRequestConverter.java | 152 -- ...stributedAutonomousDatabasesConverter.java | 249 -- ...utedDatabasePrivateEndpointsConverter.java | 223 -- .../ListDistributedDatabasesConverter.java | 246 -- .../http/ListWorkRequestErrorsConverter.java | 187 -- .../http/ListWorkRequestLogsConverter.java | 186 -- .../http/ListWorkRequestsConverter.java | 210 -- ...omousDatabaseReplicationUnitConverter.java | 165 -- ...butedDatabaseReplicationUnitConverter.java | 164 -- ...istributedAutonomousDatabaseConverter.java | 160 -- .../PatchDistributedDatabaseConverter.java | 156 -- ...butedDatabasePrivateEndpointConverter.java | 163 -- ...edAutonomousDatabaseResourceConverter.java | 169 -- ...dDistributedDatabaseResourceConverter.java | 168 -- .../http/ReinstateProxyInstanceConverter.java | 153 -- ...dAutonomousDatabasePasswordsConverter.java | 165 -- ...DistributedDatabasePasswordsConverter.java | 161 -- ...ibutedAutonomousDatabaseGsmsConverter.java | 165 -- ...ScaleDistributedDatabaseGsmsConverter.java | 160 -- ...istributedAutonomousDatabaseConverter.java | 159 -- .../StartDistributedDatabaseConverter.java | 155 -- ...istributedAutonomousDatabaseConverter.java | 159 -- .../StopDistributedDatabaseConverter.java | 152 -- ...istributedAutonomousDatabaseConverter.java | 168 -- .../UpdateDistributedDatabaseConverter.java | 163 -- ...butedDatabasePrivateEndpointConverter.java | 174 -- ...edAutonomousDatabaseCaBundleConverter.java | 162 -- ...tedAutonomousDatabaseNetworkConverter.java | 170 -- ...teDistributedDatabaseNetworkConverter.java | 166 -- .../model/ActionType.java | 58 - ...tonomousDatabaseGdsControlNodeDetails.java | 178 -- ...tributedDatabaseGdsControlNodeDetails.java | 177 -- ...esourceManagementConfigurationDetails.java | 577 ----- ...utonomousCompositeDataGuardShardSpace.java | 265 --- ...usCompositeDataGuardShardSpaceReplica.java | 189 -- .../AutonomousCompositeRaftShardSpace.java | 278 --- ...onomousCompositeShardSpaceRaftCluster.java | 364 --- .../AutonomousSystemDataGuardDatabase.java | 168 -- .../AutonomousSystemDataGuardReplica.java | 188 -- .../model/AutonomousSystemRaftCluster.java | 363 --- .../model/AutonomousUserShardSpace.java | 218 -- .../AutonomousUserShardSpaceReplica.java | 173 -- ...dAutonomousDatabaseCompartmentDetails.java | 145 -- ...ibutedAutonomousDbBackupConfigDetails.java | 127 -- ...DistributedDatabaseCompartmentDetails.java | 145 -- ...basePrivateEndpointCompartmentDetails.java | 146 -- ...hangeDistributedDbBackupConfigDetails.java | 125 - .../model/CompositeDataGuardShardSpace.java | 264 --- .../CompositeDataGuardShardSpaceReplica.java | 187 -- .../model/CompositeRaftShardSpace.java | 277 --- .../model/CompositeShardSpaceRaftCluster.java | 362 --- ...DatabaseAutoResourceManagementDetails.java | 541 ----- ...tedAutonomousDatabaseGsmWalletDetails.java | 180 -- ...tributedAutonomousDatabaseGsmsDetails.java | 188 -- ...DatabaseAutoResourceManagementDetails.java | 540 ----- ...nfigureDistributedDatabaseGsmsDetails.java | 187 -- ...reateAutonomousCatalogDatabaseDetails.java | 114 - .../model/CreateAutonomousCatalogDetails.java | 168 -- ...CreateAutonomousCatalogReplicaDetails.java | 173 -- ...usCompositeDataGuardShardSpaceDetails.java | 271 --- ...siteDataGuardShardSpaceReplicaDetails.java | 191 -- ...onomousCompositeRaftShardSpaceDetails.java | 281 --- ...CompositeShardSpaceRaftClusterDetails.java | 352 --- ...onomousSystemDataGuardDatabaseDetails.java | 170 -- ...tonomousSystemDataGuardReplicaDetails.java | 190 -- ...ateAutonomousSystemRaftClusterDetails.java | 352 --- ...CreateAutonomousUserShardSpaceDetails.java | 219 -- ...utonomousUserShardSpaceReplicaDetails.java | 174 -- ...teCompositeDataGuardShardSpaceDetails.java | 268 --- ...siteDataGuardShardSpaceReplicaDetails.java | 189 -- .../CreateCompositeRaftShardSpaceDetails.java | 278 --- ...CompositeShardSpaceRaftClusterDetails.java | 352 --- ...abaseCatalogWithDedicatedInfraDetails.java | 732 ------ ...eDistributedAutonomousDatabaseDetails.java | 1257 ---------- ...utonomousDatabaseShardDatabaseDetails.java | 115 - ...atabaseShardWithDedicatedInfraDetails.java | 775 ------- ...ributedDatabaseCatalogDatabaseDetails.java | 139 -- ...abaseCatalogDatabaseWithDbHomeDetails.java | 436 ---- ...baseCatalogDatabaseWithExadbXdDetails.java | 440 ---- ...baseCatalogDatabaseWithExadbXsDetails.java | 436 ---- ...eateDistributedDatabaseCatalogDetails.java | 169 -- ...tributedDatabaseCatalogReplicaDetails.java | 174 -- ...seCatalogWithExadbXsNewClusterDetails.java | 516 ----- ...gWithExadbXsNewVaultAndClusterDetails.java | 505 ----- .../CreateDistributedDatabaseDetails.java | 1270 ----------- ...ributedDatabasePrivateEndpointDetails.java | 401 ---- ...stributedDatabaseShardDatabaseDetails.java | 139 -- ...atabaseShardDatabaseWithDbHomeDetails.java | 440 ---- ...tabaseShardDatabaseWithExadbXdDetails.java | 440 ---- ...tabaseShardDatabaseWithExadbXsDetails.java | 440 ---- ...baseShardWithExadbXsNewClusterDetails.java | 516 ----- ...dWithExadbXsNewVaultAndClusterDetails.java | 505 ----- .../CreateSystemDataGuardDatabaseDetails.java | 168 -- .../CreateSystemDataGuardReplicaDetails.java | 188 -- .../model/CreateSystemRaftClusterDetails.java | 351 --- .../model/CreateUserShardSpaceDetails.java | 218 -- .../CreateUserShardSpaceReplicaDetails.java | 173 -- .../model/DbStorageVaultDetails.java | 366 --- .../model/DistributedAutonomousDatabase.java | 2013 ----------------- ...DatabaseAutoResourceManagementDetails.java | 577 ----- .../DistributedAutonomousDatabaseCatalog.java | 169 -- ...utedAutonomousDatabaseCatalogDatabase.java | 196 -- ...butedAutonomousDatabaseCatalogReplica.java | 174 -- ...mousDatabaseCatalogWithDedicatedInfra.java | 865 ------- ...stributedAutonomousDatabaseCollection.java | 137 -- ...tedAutonomousDatabaseConnectionString.java | 143 -- ...butedAutonomousDatabaseGdsControlNode.java | 453 ---- ...AutonomousDatabaseGdsControlNodeImage.java | 175 -- .../DistributedAutonomousDatabaseGsm.java | 543 ----- ...DistributedAutonomousDatabaseGsmImage.java | 174 -- ...stributedAutonomousDatabaseRaftMetric.java | 175 -- ...tributedAutonomousDatabaseRuChangeLog.java | 139 -- ...dAutonomousDatabaseRuChangeLogSummary.java | 435 ---- ...ibutedAutonomousDatabaseShardDatabase.java | 196 -- ...nomousDatabaseShardWithDedicatedInfra.java | 861 ------- .../DistributedAutonomousDatabaseSummary.java | 1440 ------------ .../DistributedAutonomousDbBackupConfig.java | 201 -- ...tributedAutonomousDbBackupDestination.java | 404 ---- .../DistributedAutonomousDbMetadata.java | 135 -- ...DistributedAutonomousDbProtectionMode.java | 59 - .../model/DistributedDatabase.java | 2000 ---------------- ...DatabaseAutoResourceManagementDetails.java | 577 ----- .../model/DistributedDatabaseCatalog.java | 167 -- .../DistributedDatabaseCatalogDatabase.java | 219 -- ...utedDatabaseCatalogDatabaseWithDbHome.java | 633 ------ ...tedDatabaseCatalogDatabaseWithExadbXd.java | 633 ------ ...tedDatabaseCatalogDatabaseWithExadbXs.java | 633 ------ ...eCatalogDatabaseWithExadbXsNewCluster.java | 709 ------ ...DatabaseWithExadbXsNewVaultAndCluster.java | 693 ------ ...tributedDatabaseCatalogReplicaDetails.java | 174 -- .../model/DistributedDatabaseCollection.java | 135 -- .../DistributedDatabaseGdsControlNode.java | 452 ---- .../model/DistributedDatabaseGsm.java | 543 ----- .../DistributedDatabasePrivateEndpoint.java | 830 ------- ...utedDatabasePrivateEndpointCollection.java | 138 -- ...ributedDatabasePrivateEndpointSummary.java | 694 ------ .../model/DistributedDatabaseRaftMetric.java | 175 -- .../model/DistributedDatabaseRuChangeLog.java | 138 -- ...DistributedDatabaseRuChangeLogSummary.java | 434 ---- .../DistributedDatabaseShardDatabase.java | 219 -- ...ibutedDatabaseShardDatabaseWithDbHome.java | 629 ----- ...butedDatabaseShardDatabaseWithExadbXd.java | 633 ------ ...butedDatabaseShardDatabaseWithExadbXs.java | 629 ----- ...aseShardDatabaseWithExadbXsNewCluster.java | 709 ------ ...DatabaseWithExadbXsNewVaultAndCluster.java | 693 ------ .../model/DistributedDatabaseSummary.java | 1398 ------------ .../model/DistributedDbBackupConfig.java | 813 ------- .../model/DistributedDbBackupDestination.java | 403 ---- .../model/DistributedDbConnectionString.java | 141 -- .../DistributedDbGdsControlNodeImage.java | 174 -- .../model/DistributedDbGsmImage.java | 173 -- .../model/DistributedDbMetadata.java | 135 -- .../model/DistributedDbProtectionMode.java | 56 - .../model/DistributedDbStorageVault.java | 447 ---- .../model/DistributedDbTransportType.java | 56 - .../model/DistributedDbVmCluster.java | 1022 --------- ...ibutedAutonomousDatabaseWalletDetails.java | 163 -- ...erateDistributedDatabaseWalletDetails.java | 163 -- ...onomousDatabaseReplicationUnitDetails.java | 229 -- ...ributedDatabaseReplicationUnitDetails.java | 229 -- .../model/OperationStatus.java | 61 - .../model/OperationType.java | 91 - ...hDistributedAutonomousDatabaseDetails.java | 141 -- .../PatchDistributedDatabaseDetails.java | 139 -- ...ributedDatabasePrivateEndpointDetails.java | 140 -- .../model/PatchInsertInstruction.java | 149 -- .../model/PatchInstruction.java | 145 -- .../model/PatchMergeInstruction.java | 155 -- .../model/PatchRemoveInstruction.java | 114 - ...eDistributedAutonomousDatabaseDetails.java | 204 -- ...tedAutonomousDatabasePasswordsDetails.java | 143 -- .../RotateDistributedDatabaseDetails.java | 203 -- ...teDistributedDatabasePasswordsDetails.java | 143 -- ...tributedAutonomousDatabaseGsmsDetails.java | 102 - .../ScaleDistributedDatabaseGsmsDetails.java | 100 - .../model/SortOrder.java | 42 - .../model/SystemDataGuardDatabase.java | 166 -- .../model/SystemDataGuardReplica.java | 186 -- .../model/SystemRaftCluster.java | 361 --- ...eDistributedAutonomousDatabaseDetails.java | 291 --- .../UpdateDistributedDatabaseDetails.java | 290 --- ...ributedDatabasePrivateEndpointDetails.java | 274 --- .../model/UserShardSpace.java | 213 -- .../model/UserShardSpaceReplica.java | 171 -- .../model/VcnNsgIdsDetails.java | 185 -- .../model/VmClusterDetails.java | 927 -------- .../model/WorkRequest.java | 500 ---- .../model/WorkRequestError.java | 215 -- .../model/WorkRequestErrorCollection.java | 135 -- .../model/WorkRequestLogEntry.java | 172 -- .../model/WorkRequestLogEntryCollection.java | 135 -- .../model/WorkRequestResource.java | 316 --- .../model/WorkRequestResourceMetadataKey.java | 54 - .../model/WorkRequestSummary.java | 502 ---- .../model/WorkRequestSummaryCollection.java | 135 -- ...tonomousDatabaseGdsControlNodeRequest.java | 399 ---- ...tributedDatabaseGdsControlNodeRequest.java | 391 ---- ...dAutonomousDatabaseCompartmentRequest.java | 395 ---- ...ibutedAutonomousDbBackupConfigRequest.java | 393 ---- ...DistributedDatabaseCompartmentRequest.java | 387 ---- ...basePrivateEndpointCompartmentRequest.java | 399 ---- ...hangeDistributedDbBackupConfigRequest.java | 379 ---- ...DatabaseAutoResourceManagementRequest.java | 399 ---- ...tedAutonomousDatabaseGsmWalletRequest.java | 397 ---- ...tributedAutonomousDatabaseGsmsRequest.java | 394 ---- ...utedAutonomousDatabaseShardingRequest.java | 422 ---- ...DatabaseAutoResourceManagementRequest.java | 395 ---- ...nfigureDistributedDatabaseGsmsRequest.java | 380 ---- ...ureDistributedDatabaseShardingRequest.java | 352 --- ...eDistributedAutonomousDatabaseRequest.java | 299 --- ...ributedDatabasePrivateEndpointRequest.java | 303 --- .../CreateDistributedDatabaseRequest.java | 286 --- ...eDistributedAutonomousDatabaseRequest.java | 310 --- ...ributedDatabasePrivateEndpointRequest.java | 313 --- .../DeleteDistributedDatabaseRequest.java | 306 --- ...ibutedAutonomousDatabaseWalletRequest.java | 394 ---- ...erateDistributedDatabaseWalletRequest.java | 383 ---- ...edAutonomousDatabaseRaftMetricRequest.java | 205 -- ...tDistributedAutonomousDatabaseRequest.java | 291 --- ...dAutonomousDatabaseRuChangeLogRequest.java | 243 -- ...ributedDatabasePrivateEndpointRequest.java | 258 --- ...tDistributedDatabaseRaftMetricRequest.java | 201 -- .../GetDistributedDatabaseRequest.java | 288 --- ...DistributedDatabaseRuChangeLogRequest.java | 240 -- .../requests/GetWorkRequestRequest.java | 195 -- ...DistributedAutonomousDatabasesRequest.java | 621 ----- ...ibutedDatabasePrivateEndpointsRequest.java | 482 ---- .../ListDistributedDatabasesRequest.java | 617 ----- .../ListWorkRequestErrorsRequest.java | 366 --- .../requests/ListWorkRequestLogsRequest.java | 365 --- .../requests/ListWorkRequestsRequest.java | 463 ---- ...onomousDatabaseReplicationUnitRequest.java | 401 ---- ...ributedDatabaseReplicationUnitRequest.java | 393 ---- ...hDistributedAutonomousDatabaseRequest.java | 389 ---- ...ributedDatabasePrivateEndpointRequest.java | 395 ---- .../PatchDistributedDatabaseRequest.java | 373 --- ...utedAutonomousDatabaseResourceRequest.java | 348 --- ...ledDistributedDatabaseResourceRequest.java | 345 --- .../ReinstateProxyInstanceRequest.java | 310 --- ...tedAutonomousDatabasePasswordsRequest.java | 395 ---- ...teDistributedDatabasePasswordsRequest.java | 387 ---- ...tributedAutonomousDatabaseGsmsRequest.java | 391 ---- .../ScaleDistributedDatabaseGsmsRequest.java | 377 --- ...tDistributedAutonomousDatabaseRequest.java | 310 --- .../StartDistributedDatabaseRequest.java | 306 --- ...pDistributedAutonomousDatabaseRequest.java | 310 --- .../StopDistributedDatabaseRequest.java | 306 --- ...eDistributedAutonomousDatabaseRequest.java | 335 --- ...ributedDatabasePrivateEndpointRequest.java | 395 ---- .../UpdateDistributedDatabaseRequest.java | 320 --- ...utedAutonomousDatabaseCaBundleRequest.java | 312 --- ...butedAutonomousDatabaseNetworkRequest.java | 344 --- ...dateDistributedDatabaseNetworkRequest.java | 340 --- ...onomousDatabaseGdsControlNodeResponse.java | 179 -- ...ributedDatabaseGdsControlNodeResponse.java | 179 -- ...AutonomousDatabaseCompartmentResponse.java | 179 -- ...butedAutonomousDbBackupConfigResponse.java | 179 -- ...istributedDatabaseCompartmentResponse.java | 179 -- ...asePrivateEndpointCompartmentResponse.java | 179 -- ...angeDistributedDbBackupConfigResponse.java | 177 -- ...atabaseAutoResourceManagementResponse.java | 239 -- ...edAutonomousDatabaseGsmWalletResponse.java | 179 -- ...ributedAutonomousDatabaseGsmsResponse.java | 179 -- ...tedAutonomousDatabaseShardingResponse.java | 179 -- ...atabaseAutoResourceManagementResponse.java | 237 -- ...figureDistributedDatabaseGsmsResponse.java | 178 -- ...reDistributedDatabaseShardingResponse.java | 179 -- ...DistributedAutonomousDatabaseResponse.java | 270 --- ...ibutedDatabasePrivateEndpointResponse.java | 271 --- .../CreateDistributedDatabaseResponse.java | 263 --- ...DistributedAutonomousDatabaseResponse.java | 179 -- ...ibutedDatabasePrivateEndpointResponse.java | 179 -- .../DeleteDistributedDatabaseResponse.java | 177 -- ...butedAutonomousDatabaseWalletResponse.java | 290 --- ...rateDistributedDatabaseWalletResponse.java | 290 --- ...dAutonomousDatabaseRaftMetricResponse.java | 189 -- ...DistributedAutonomousDatabaseResponse.java | 223 -- ...AutonomousDatabaseRuChangeLogResponse.java | 191 -- ...ibutedDatabasePrivateEndpointResponse.java | 229 -- ...DistributedDatabaseRaftMetricResponse.java | 184 -- .../GetDistributedDatabaseResponse.java | 217 -- ...istributedDatabaseRuChangeLogResponse.java | 185 -- .../responses/GetWorkRequestResponse.java | 207 -- ...istributedAutonomousDatabasesResponse.java | 237 -- ...butedDatabasePrivateEndpointsResponse.java | 242 -- .../ListDistributedDatabasesResponse.java | 234 -- .../ListWorkRequestErrorsResponse.java | 234 -- .../ListWorkRequestLogsResponse.java | 234 -- .../responses/ListWorkRequestsResponse.java | 234 -- ...nomousDatabaseReplicationUnitResponse.java | 179 -- ...ibutedDatabaseReplicationUnitResponse.java | 179 -- ...DistributedAutonomousDatabaseResponse.java | 179 -- ...ibutedDatabasePrivateEndpointResponse.java | 179 -- .../PatchDistributedDatabaseResponse.java | 177 -- ...tedAutonomousDatabaseResourceResponse.java | 179 -- ...edDistributedDatabaseResourceResponse.java | 179 -- .../ReinstateProxyInstanceResponse.java | 177 -- ...edAutonomousDatabasePasswordsResponse.java | 179 -- ...eDistributedDatabasePasswordsResponse.java | 179 -- ...ributedAutonomousDatabaseGsmsResponse.java | 179 -- .../ScaleDistributedDatabaseGsmsResponse.java | 177 -- ...DistributedAutonomousDatabaseResponse.java | 179 -- .../StartDistributedDatabaseResponse.java | 177 -- ...DistributedAutonomousDatabaseResponse.java | 179 -- .../StopDistributedDatabaseResponse.java | 177 -- ...DistributedAutonomousDatabaseResponse.java | 224 -- ...ibutedDatabasePrivateEndpointResponse.java | 229 -- .../UpdateDistributedDatabaseResponse.java | 217 -- ...tedAutonomousDatabaseCaBundleResponse.java | 179 -- ...utedAutonomousDatabaseNetworkResponse.java | 179 -- ...ateDistributedDatabaseNetworkResponse.java | 179 -- .../generativeaidata/CancelEnrichmentJob.java | 74 - .../CancelEnrichmentJobAsync.java | 77 - .../CancelEnrichmentJobAsyncClient.java | 521 ----- .../CancelEnrichmentJobClient.java | 524 ----- .../GenerateEnrichmentJob.java | 74 - .../GenerateEnrichmentJobAsync.java | 77 - .../GenerateEnrichmentJobAsyncClient.java | 526 ----- .../GenerateEnrichmentJobClient.java | 528 ----- .../GenerateSqlFromNlJob.java | 74 - .../GenerateSqlFromNlJobAsync.java | 77 - .../GenerateSqlFromNlJobAsyncClient.java | 525 ----- .../GenerateSqlFromNlJobClient.java | 527 ----- .../generativeaidata/GetEnrichmentJob.java | 81 - .../GetEnrichmentJobAsync.java | 76 - .../GetEnrichmentJobAsyncClient.java | 519 ----- .../GetEnrichmentJobClient.java | 599 ----- .../GetEnrichmentJobWaiters.java | 127 -- .../generativeaidata/ListEnrichmentJobs.java | 83 - .../ListEnrichmentJobsAsync.java | 77 - .../ListEnrichmentJobsAsyncClient.java | 519 ----- .../ListEnrichmentJobsClient.java | 529 ----- .../ListEnrichmentJobsPaginators.java | 151 -- 433 files changed, 135040 deletions(-) delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java 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 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 delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java 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 delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.java 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 delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.java 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 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 delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java delete mode 100644 bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java 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 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 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 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/DistributedDbService.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/DistributedDbWorkRequestService.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceWaiters.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.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/AutoResourceManagementConfigurationDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.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/ChangeDistributedDatabaseCompartmentDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.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/CompositeDataGuardShardSpace.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.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/ConfigureDistributedDatabaseAutoResourceManagementDetails.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/CreateAutonomousCatalogDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.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/CreateDistributedAutonomousDatabaseShardDatabaseDetails.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/CreateDistributedDatabaseCatalogDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.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/CreateDistributedDatabaseCatalogReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.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/CreateDistributedDatabasePrivateEndpointDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.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/CreateSystemDataGuardDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.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/DistributedAutonomousDatabaseAutoResourceManagementDetails.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/DistributedAutonomousDatabaseCatalogDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.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/DistributedAutonomousDatabaseCollection.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.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/DistributedAutonomousDatabaseRuChangeLog.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.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/DistributedAutonomousDbMetadata.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.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/DistributedDatabaseAutoResourceManagementDetails.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/DistributedDatabaseCatalogDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.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/DistributedDatabasePrivateEndpoint.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.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/DistributedDatabaseRuChangeLog.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.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/DistributedDbConnectionString.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.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/DistributedDbTransportType.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/OperationStatus.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/PatchDistributedDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.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/PatchMergeInstruction.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.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/SystemDataGuardDatabase.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.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/UpdateDistributedDatabasePrivateEndpointDetails.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.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/model/WorkRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.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/AddDistributedDatabaseGdsControlNodeRequest.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/ChangeDistributedDbBackupConfigRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.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/ConfigureDistributedDatabaseAutoResourceManagementRequest.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/ConfigureDistributedDatabaseShardingRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.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/DeleteDistributedDatabaseRequest.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/GenerateDistributedDatabaseWalletRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.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/GetDistributedAutonomousDatabaseRuChangeLogRequest.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/GetDistributedDatabaseRaftMetricRequest.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/GetDistributedDatabaseRuChangeLogRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.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/ListDistributedDatabasePrivateEndpointsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.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/PatchDistributedDatabasePrivateEndpointRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.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/ReinstateProxyInstanceRequest.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/ScaleDistributedAutonomousDatabaseGsmsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.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/StopDistributedDatabaseRequest.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/UpdateDistributedDatabaseRequest.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.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/AddDistributedDatabaseGdsControlNodeResponse.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/ChangeDistributedAutonomousDbBackupConfigResponse.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/ChangeDistributedDbBackupConfigResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.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/ConfigureDistributedDatabaseAutoResourceManagementResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.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/GenerateDistributedDatabaseWalletResponse.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/GetDistributedAutonomousDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.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/MoveDistributedDatabaseReplicationUnitResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.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/ReinstateProxyInstanceResponse.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/ScaleDistributedAutonomousDatabaseGsmsResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.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/StartDistributedDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java delete mode 100644 bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.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/UpdateDistributedDatabaseResponse.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-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java delete mode 100644 bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index 6c98d048fa2..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java +++ /dev/null @@ -1,187 +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.internal.http; - -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .class); - - public static com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("downloadGsmCertificateSigningRequest"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index b5cb38c5b1e..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.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.internal.http; - -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class DownloadDistributedDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - DownloadDistributedDatabaseGsmCertificateSigningRequestConverter.class); - - public static com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .DownloadDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("downloadGsmCertificateSigningRequest"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.DownloadDistributedDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .DownloadDistributedDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index 38c4d68a213..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter.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.distributeddatabase.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestConverter - .class); - - public static com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("generateGsmCertificateSigningRequest"); - - if (request.getCaBundleId() != null) { - target = - target.queryParam( - "caBundleId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCaBundleId())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java deleted file mode 100644 index 7ea6823ce83..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class GenerateDistributedDatabaseGsmCertificateSigningRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GenerateDistributedDatabaseGsmCertificateSigningRequestConverter.class); - - public static com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .GenerateDistributedDatabaseGsmCertificateSigningRequestRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull(request.getCaBundleId(), "caBundleId is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("generateGsmCertificateSigningRequest"); - - target = - target.queryParam( - "caBundleId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCaBundleId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.GenerateDistributedDatabaseGsmCertificateSigningRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .GenerateDistributedDatabaseGsmCertificateSigningRequestResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.java deleted file mode 100644 index 5135d9850e1..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter.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.distributeddatabase.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletConverter - .class); - - public static com.oracle.bmc.distributeddatabase.requests - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request - .getUploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("uploadSignedCertificateAndGenerateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java deleted file mode 100644 index b95eef6408b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/internal/http/UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.java +++ /dev/null @@ -1,164 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabase.model.*; -import com.oracle.bmc.distributeddatabase.requests.*; -import com.oracle.bmc.distributeddatabase.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -public class UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletConverter.class); - - public static com.oracle.bmc.distributeddatabase.requests - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabase.requests - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getUploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails(), - "uploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20250101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("uploadSignedCertificateAndGenerateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabase.responses.UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabase.responses - .UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} 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 efd96c8bfa9..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithDedicatedInfra.java +++ /dev/null @@ -1,670 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CatalogPeerWithDedicatedInfra - extends com.oracle.bmc.http.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 { - 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 af7084972b3..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXs.java +++ /dev/null @@ -1,553 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CatalogPeerWithExadbXs - extends com.oracle.bmc.http.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 { - 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 1ae7165db63..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CatalogPeerWithExadbXsNewVaultAndCluster.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CatalogPeerWithExadbXsNewVaultAndCluster - extends com.oracle.bmc.http.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 { - 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/CreateCatalogPeerWithDedicatedInfraDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java deleted file mode 100644 index fb2d289ad95..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithDedicatedInfraDetails.java +++ /dev/null @@ -1,343 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateCatalogPeerWithDedicatedInfraDetails - extends com.oracle.bmc.http.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 4a97915fb68..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateCatalogPeerWithExadbXsDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateCatalogPeerWithExadbXsDetails - extends com.oracle.bmc.http.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 d255688d857..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateCatalogPeerWithExadbXsNewVaultAndClusterDetails - extends com.oracle.bmc.http.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java deleted file mode 100644 index 3444a41d5c6..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseCatalogDetails.java +++ /dev/null @@ -1,115 +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 Globally distributed autonomous database catalog. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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 = CreateDistributedAutonomousDatabaseCatalogDetails.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.class, - name = "ADB_D" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedAutonomousDatabaseCatalogDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseCatalogDetails() { - 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("CreateDistributedAutonomousDatabaseCatalogDetails("); - 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 CreateDistributedAutonomousDatabaseCatalogDetails)) { - return false; - } - - CreateDistributedAutonomousDatabaseCatalogDetails other = - (CreateDistributedAutonomousDatabaseCatalogDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally distributed autonomous database with - * autonomous dedicated cloudautonomousvmclusters. - * - **/ - public enum Source { - AdbD("ADB_D"), - ; - - 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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java deleted file mode 100644 index 2c7317af037..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedAutonomousDatabaseShardDetails.java +++ /dev/null @@ -1,115 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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 = CreateDistributedAutonomousDatabaseShardDetails.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.class, - name = "ADB_D" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedAutonomousDatabaseShardDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseShardDetails() { - 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("CreateDistributedAutonomousDatabaseShardDetails("); - 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 CreateDistributedAutonomousDatabaseShardDetails)) { - return false; - } - - CreateDistributedAutonomousDatabaseShardDetails other = - (CreateDistributedAutonomousDatabaseShardDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of Globally distributed autonomous database type: Use ADB_D for the Globally distributed autonomous database with - * autonomous dedicated cloudautonomousvmclusters. - * - **/ - public enum Source { - AdbD("ADB_D"), - ; - - 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-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 8c39e8abf27..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseCatalogWithExadbXsDetails.java +++ /dev/null @@ -1,443 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java deleted file mode 100644 index 2a9b84a0288..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardDetails.java +++ /dev/null @@ -1,122 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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 = CreateDistributedDatabaseShardDetails.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.class, - name = "NEW_VAULT_AND_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseShardWithExadbXsDetails.class, - name = "EXADB_XS" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedDatabaseShardDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseShardDetails() { - 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("CreateDistributedDatabaseShardDetails("); - 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 CreateDistributedDatabaseShardDetails)) { - return false; - } - - CreateDistributedDatabaseShardDetails other = (CreateDistributedDatabaseShardDetails) 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 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 { - 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-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 d5ad724845d..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateDistributedDatabaseShardWithExadbXsDetails.java +++ /dev/null @@ -1,442 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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-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 2342df5fe73..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithDedicatedInfraDetails.java +++ /dev/null @@ -1,343 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateShardPeerWithDedicatedInfraDetails - extends com.oracle.bmc.http.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 eeb4fd2d554..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/CreateShardPeerWithExadbXsDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateShardPeerWithExadbXsDetails - extends com.oracle.bmc.http.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 324d06ab07b..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateShardPeerWithExadbXsNewVaultAndClusterDetails - extends com.oracle.bmc.http.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-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 0c656c2597d..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseAssociatedWithPrivateEndpoint - extends com.oracle.bmc.http.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-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 6e0664ee63b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedAutonomousDatabaseShard.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class DistributedAutonomousDatabaseShard - extends com.oracle.bmc.http.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 { - 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-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 dbfbdf6bd17..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseAssociatedWithPrivateEndpoint.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseAssociatedWithPrivateEndpoint - extends com.oracle.bmc.http.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-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 7a71c49da01..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXs.java +++ /dev/null @@ -1,626 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 1c76c5c254b..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseCatalogWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,689 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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/DistributedDatabaseShard.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.java deleted file mode 100644 index 13ee2e046c9..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShard.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class DistributedDatabaseShard extends com.oracle.bmc.http.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 { - 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-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 ecf6154a7a3..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXs.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 1898c36b953..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/DistributedDatabaseShardWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,736 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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/ShardPeerWithDedicatedInfra.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java deleted file mode 100644 index 6011b6d27af..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithDedicatedInfra.java +++ /dev/null @@ -1,670 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ShardPeerWithDedicatedInfra - extends com.oracle.bmc.http.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 { - 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 858b4852a7c..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXs.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ShardPeerWithExadbXs extends com.oracle.bmc.http.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 { - 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 0f0546ea36a..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/ShardPeerWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,615 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ShardPeerWithExadbXsNewVaultAndCluster - extends com.oracle.bmc.http.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 { - 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/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java deleted file mode 100644 index e6a4f80fec9..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails.java +++ /dev/null @@ -1,153 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletDetails - extends com.oracle.bmc.http.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-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.java deleted file mode 100644 index 148f38d2dcc..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/model/UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.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.distributeddatabase.model; - -/** - * Details of the request to upload the CA signed certificates to GSMs and generate wallets for - * GSMs 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"caSignedCertificate"}) - public UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails build() { - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails model = - new UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails( - this.caSignedCertificate); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy( - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails 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("UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails("); - 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 UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails)) { - return false; - } - - UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails other = - (UploadDistributedDatabaseSignedCertificateAndGenerateWalletDetails) 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-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 fe59eccf0c4..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,316 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 fe987ffbe5c..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/DownloadDistributedDatabaseGsmCertificateSigningRequestRequest.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 DownloadDistributedDatabaseGsmCertificateSigningRequestRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 c575dfc4ddb..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,348 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java deleted file mode 100644 index 63fb4cc1bf7..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/GenerateDistributedDatabaseGsmCertificateSigningRequestRequest.java +++ /dev/null @@ -1,343 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java deleted file mode 100644 index bb7191b79db..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletRequest.java +++ /dev/null @@ -1,412 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 d92f973448c..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/requests/UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest.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.distributeddatabase.requests; - -import com.oracle.bmc.distributeddatabase.model.*; -/** - * Example: Click here to see how to use UploadDistributedDatabaseSignedCertificateAndGenerateWalletRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 654d006a679..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,293 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@javax.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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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 - */ - 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 - */ - 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 8ae2b00efcc..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/DownloadDistributedDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,290 +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.*; - -@javax.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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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 - */ - 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 - */ - 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 0e60442e6c8..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedAutonomousDatabaseGsmCertificateSigningRequestResponse.java +++ /dev/null @@ -1,182 +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.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.java deleted file mode 100644 index 0348c2e4ae3..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/GenerateDistributedDatabaseGsmCertificateSigningRequestResponse.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.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java b/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java deleted file mode 100644 index 544f8813eb7..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedAutonomousDatabaseSignedCertificateAndGenerateWalletResponse.java +++ /dev/null @@ -1,183 +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.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 81ae7f8e818..00000000000 --- a/bmc-distributeddatabase/src/main/java/com/oracle/bmc/distributeddatabase/responses/UploadDistributedDatabaseSignedCertificateAndGenerateWalletResponse.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.distributeddatabase.responses; - -import com.oracle.bmc.distributeddatabase.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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-distributeddatabasev26/pom.xml b/bmc-distributeddatabasev26/pom.xml deleted file mode 100644 index 5fd36bcbf1f..00000000000 --- a/bmc-distributeddatabasev26/pom.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - 4.0.0 - - com.oracle.oci.sdk - oci-java-sdk - 2.97.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 - 2.97.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 818549921e0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbService.java +++ /dev/null @@ -1,428 +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. - */ -@javax.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 96d7d56715a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsync.java +++ /dev/null @@ -1,522 +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. - */ -@javax.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 0a87a307805..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceAsyncClient.java +++ /dev/null @@ -1,1898 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedAutonomousDbServiceAsyncClient - 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); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedAutonomousDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedAutonomousDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedAutonomousDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedAutonomousDbServiceAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedAutonomousDbServiceAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future - addDistributedAutonomousDatabaseGdsControlNode( - AddDistributedAutonomousDatabaseGdsControlNodeRequest request, - final com.oracle.bmc.responses.AsyncHandler< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - handler) { - LOG.trace("Called async addDistributedAutonomousDatabaseGdsControlNode"); - final AddDistributedAutonomousDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "AddDistributedAutonomousDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/AddDistributedAutonomousDatabaseGdsControlNode"); - final java.util.function.Function< - javax.ws.rs.core.Response, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - transformer = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse>, - java.util.concurrent.Future< - AddDistributedAutonomousDatabaseGdsControlNodeResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - AddDistributedAutonomousDatabaseGdsControlNodeRequest, - AddDistributedAutonomousDatabaseGdsControlNodeResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedAutonomousDatabaseCompartment( - ChangeDistributedAutonomousDatabaseCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - handler) { - LOG.trace("Called async changeDistributedAutonomousDatabaseCompartment"); - final ChangeDistributedAutonomousDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedAutonomousDatabaseCompartmentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDatabaseCompartment"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - transformer = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse>, - java.util.concurrent.Future< - ChangeDistributedAutonomousDatabaseCompartmentResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getChangeDistributedAutonomousDatabaseCompartmentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedAutonomousDatabaseCompartmentRequest, - ChangeDistributedAutonomousDatabaseCompartmentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedAutonomousDbBackupConfig( - ChangeDistributedAutonomousDbBackupConfigRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse> - handler) { - LOG.trace("Called async changeDistributedAutonomousDbBackupConfig"); - final ChangeDistributedAutonomousDbBackupConfigRequest interceptedRequest = - ChangeDistributedAutonomousDbBackupConfigConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDbBackupConfigConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDbBackupConfig"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDbBackupConfigResponse> - transformer = - ChangeDistributedAutonomousDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse>, - java.util.concurrent.Future< - ChangeDistributedAutonomousDbBackupConfigResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getChangeDistributedAutonomousDbBackupConfigDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedAutonomousDbBackupConfigRequest, - ChangeDistributedAutonomousDbBackupConfigResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - configureDistributedAutonomousDatabaseAutoResourceManagement( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseAutoResourceManagement"); - final ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - interceptedRequest = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedAutonomousDatabaseGsmWallet( - ConfigureDistributedAutonomousDatabaseGsmWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseGsmWallet"); - final ConfigureDistributedAutonomousDatabaseGsmWalletRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsmWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsmWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseGsmWalletResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseGsmWalletRequest, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedAutonomousDatabaseGsms( - ConfigureDistributedAutonomousDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseGsms"); - final ConfigureDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseGsmsResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedAutonomousDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseGsmsRequest, - ConfigureDistributedAutonomousDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedAutonomousDatabaseSharding( - ConfigureDistributedAutonomousDatabaseShardingRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse> - handler) { - LOG.trace("Called async configureDistributedAutonomousDatabaseSharding"); - final ConfigureDistributedAutonomousDatabaseShardingRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseShardingConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseSharding"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseShardingResponse> - transformer = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse>, - java.util.concurrent.Future< - ConfigureDistributedAutonomousDatabaseShardingResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedAutonomousDatabaseShardingRequest, - ConfigureDistributedAutonomousDatabaseShardingResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - createDistributedAutonomousDatabase( - CreateDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async createDistributedAutonomousDatabase"); - final CreateDistributedAutonomousDatabaseRequest interceptedRequest = - CreateDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "CreateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - ""); - final java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedAutonomousDatabaseResponse> - transformer = - CreateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getCreateDistributedAutonomousDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDistributedAutonomousDatabaseRequest, - CreateDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - deleteDistributedAutonomousDatabase( - DeleteDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async deleteDistributedAutonomousDatabase"); - final DeleteDistributedAutonomousDatabaseRequest interceptedRequest = - DeleteDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "DeleteDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/DeleteDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedAutonomousDatabaseResponse> - transformer = - DeleteDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteDistributedAutonomousDatabaseRequest, - DeleteDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - generateDistributedAutonomousDatabaseWallet( - GenerateDistributedAutonomousDatabaseWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse> - handler) { - LOG.trace("Called async generateDistributedAutonomousDatabaseWallet"); - final GenerateDistributedAutonomousDatabaseWalletRequest interceptedRequest = - GenerateDistributedAutonomousDatabaseWalletConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedAutonomousDatabaseWalletConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedAutonomousDatabaseWalletResponse> - transformer = - GenerateDistributedAutonomousDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse>, - java.util.concurrent.Future< - GenerateDistributedAutonomousDatabaseWalletResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getGenerateDistributedAutonomousDatabaseWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateDistributedAutonomousDatabaseWalletRequest, - GenerateDistributedAutonomousDatabaseWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedAutonomousDatabase( - GetDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async getDistributedAutonomousDatabase"); - final GetDistributedAutonomousDatabaseRequest interceptedRequest = - GetDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GetDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseResponse> - transformer = - GetDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedAutonomousDatabaseRequest, - GetDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedAutonomousDatabaseRaftMetric( - GetDistributedAutonomousDatabaseRaftMetricRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse> - handler) { - LOG.trace("Called async getDistributedAutonomousDatabaseRaftMetric"); - final GetDistributedAutonomousDatabaseRaftMetricRequest interceptedRequest = - GetDistributedAutonomousDatabaseRaftMetricConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRaftMetric"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRaftMetricResponse> - transformer = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse>, - java.util.concurrent.Future< - GetDistributedAutonomousDatabaseRaftMetricResponse>> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedAutonomousDatabaseRaftMetricRequest, - GetDistributedAutonomousDatabaseRaftMetricResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedAutonomousDatabaseRuChangeLog( - GetDistributedAutonomousDatabaseRuChangeLogRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - handler) { - LOG.trace("Called async getDistributedAutonomousDatabaseRuChangeLog"); - final GetDistributedAutonomousDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedAutonomousDatabaseRuChangeLogConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog"); - final java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - transformer = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse>, - java.util.concurrent.Future< - GetDistributedAutonomousDatabaseRuChangeLogResponse>> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedAutonomousDatabaseRuChangeLogRequest, - GetDistributedAutonomousDatabaseRuChangeLogResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - listDistributedAutonomousDatabases( - ListDistributedAutonomousDatabasesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse> - handler) { - LOG.trace("Called async listDistributedAutonomousDatabases"); - final ListDistributedAutonomousDatabasesRequest interceptedRequest = - ListDistributedAutonomousDatabasesConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedAutonomousDatabasesConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ListDistributedAutonomousDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabaseCollection/ListDistributedAutonomousDatabases"); - final java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedAutonomousDatabasesResponse> - transformer = - ListDistributedAutonomousDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDistributedAutonomousDatabasesRequest, - ListDistributedAutonomousDatabasesResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - moveDistributedAutonomousDatabaseReplicationUnit( - MoveDistributedAutonomousDatabaseReplicationUnitRequest request, - final com.oracle.bmc.responses.AsyncHandler< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - handler) { - LOG.trace("Called async moveDistributedAutonomousDatabaseReplicationUnit"); - final MoveDistributedAutonomousDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "MoveDistributedAutonomousDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/MoveDistributedAutonomousDatabaseReplicationUnit"); - final java.util.function.Function< - javax.ws.rs.core.Response, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - transformer = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse>, - java.util.concurrent.Future< - MoveDistributedAutonomousDatabaseReplicationUnitResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - MoveDistributedAutonomousDatabaseReplicationUnitRequest, - MoveDistributedAutonomousDatabaseReplicationUnitResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - patchDistributedAutonomousDatabase( - PatchDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async patchDistributedAutonomousDatabase"); - final PatchDistributedAutonomousDatabaseRequest interceptedRequest = - PatchDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "PatchDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/PatchDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedAutonomousDatabaseResponse> - transformer = - PatchDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.patchFutureSupplier( - interceptedRequest, - interceptedRequest.getPatchDistributedAutonomousDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - PatchDistributedAutonomousDatabaseRequest, - PatchDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - recreateFailedDistributedAutonomousDatabaseResource( - RecreateFailedDistributedAutonomousDatabaseResourceRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - handler) { - LOG.trace("Called async recreateFailedDistributedAutonomousDatabaseResource"); - final RecreateFailedDistributedAutonomousDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RecreateFailedDistributedAutonomousDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RecreateFailedDistributedAutonomousDatabaseResource"); - final java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - transformer = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse>, - java.util.concurrent.Future< - RecreateFailedDistributedAutonomousDatabaseResourceResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RecreateFailedDistributedAutonomousDatabaseResourceRequest, - RecreateFailedDistributedAutonomousDatabaseResourceResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - rotateDistributedAutonomousDatabasePasswords( - RotateDistributedAutonomousDatabasePasswordsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse> - handler) { - LOG.trace("Called async rotateDistributedAutonomousDatabasePasswords"); - final RotateDistributedAutonomousDatabasePasswordsRequest interceptedRequest = - RotateDistributedAutonomousDatabasePasswordsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedAutonomousDatabasePasswordsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RotateDistributedAutonomousDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RotateDistributedAutonomousDatabasePasswords"); - final java.util.function.Function< - javax.ws.rs.core.Response, - RotateDistributedAutonomousDatabasePasswordsResponse> - transformer = - RotateDistributedAutonomousDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse>, - java.util.concurrent.Future< - RotateDistributedAutonomousDatabasePasswordsResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getRotateDistributedAutonomousDatabasePasswordsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RotateDistributedAutonomousDatabasePasswordsRequest, - RotateDistributedAutonomousDatabasePasswordsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - scaleDistributedAutonomousDatabaseGsms( - ScaleDistributedAutonomousDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse> - handler) { - LOG.trace("Called async scaleDistributedAutonomousDatabaseGsms"); - final ScaleDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ScaleDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ScaleDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, ScaleDistributedAutonomousDatabaseGsmsResponse> - transformer = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getScaleDistributedAutonomousDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ScaleDistributedAutonomousDatabaseGsmsRequest, - ScaleDistributedAutonomousDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - startDistributedAutonomousDatabase( - StartDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async startDistributedAutonomousDatabase"); - final StartDistributedAutonomousDatabaseRequest interceptedRequest = - StartDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StartDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StartDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StartDistributedAutonomousDatabaseResponse> - transformer = - StartDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StartDistributedAutonomousDatabaseRequest, - StartDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - stopDistributedAutonomousDatabase( - StopDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async stopDistributedAutonomousDatabase"); - final StopDistributedAutonomousDatabaseRequest interceptedRequest = - StopDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StopDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StopDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StopDistributedAutonomousDatabaseResponse> - transformer = - StopDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StopDistributedAutonomousDatabaseRequest, - StopDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - updateDistributedAutonomousDatabase( - UpdateDistributedAutonomousDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse> - handler) { - LOG.trace("Called async updateDistributedAutonomousDatabase"); - final UpdateDistributedAutonomousDatabaseRequest interceptedRequest = - UpdateDistributedAutonomousDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "UpdateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/UpdateDistributedAutonomousDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedAutonomousDatabaseResponse> - transformer = - UpdateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.putFutureSupplier( - interceptedRequest, - interceptedRequest.getUpdateDistributedAutonomousDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateDistributedAutonomousDatabaseRequest, - UpdateDistributedAutonomousDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - validateDistributedAutonomousDatabaseCaBundle( - ValidateDistributedAutonomousDatabaseCaBundleRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - handler) { - LOG.trace("Called async validateDistributedAutonomousDatabaseCaBundle"); - final ValidateDistributedAutonomousDatabaseCaBundleRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseCaBundleConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseCaBundle", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseCaBundle"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - transformer = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse>, - java.util.concurrent.Future< - ValidateDistributedAutonomousDatabaseCaBundleResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ValidateDistributedAutonomousDatabaseCaBundleRequest, - ValidateDistributedAutonomousDatabaseCaBundleResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - validateDistributedAutonomousDatabaseNetwork( - ValidateDistributedAutonomousDatabaseNetworkRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse> - handler) { - LOG.trace("Called async validateDistributedAutonomousDatabaseNetwork"); - final ValidateDistributedAutonomousDatabaseNetworkRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseNetworkConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseNetwork"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseNetworkResponse> - transformer = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse>, - java.util.concurrent.Future< - ValidateDistributedAutonomousDatabaseNetworkResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ValidateDistributedAutonomousDatabaseNetworkRequest, - ValidateDistributedAutonomousDatabaseNetworkResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} 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 43cae12aab4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceClient.java +++ /dev/null @@ -1,1656 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedAutonomousDbServiceClient 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(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbServiceClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final DistributedAutonomousDbServiceWaiters waiters; - - private final DistributedAutonomousDbServicePaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedAutonomousDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedAutonomousDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedAutonomousDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - 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 (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 java.util.concurrent.ExecutorService executorService; - - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedAutonomousDbServiceClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedAutonomousDbServiceClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public AddDistributedAutonomousDatabaseGdsControlNodeResponse - addDistributedAutonomousDatabaseGdsControlNode( - AddDistributedAutonomousDatabaseGdsControlNodeRequest request) { - LOG.trace("Called addDistributedAutonomousDatabaseGdsControlNode"); - final AddDistributedAutonomousDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "AddDistributedAutonomousDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/AddDistributedAutonomousDatabaseGdsControlNode"); - java.util.function.Function< - javax.ws.rs.core.Response, - AddDistributedAutonomousDatabaseGdsControlNodeResponse> - transformer = - AddDistributedAutonomousDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedAutonomousDatabaseCompartmentResponse - changeDistributedAutonomousDatabaseCompartment( - ChangeDistributedAutonomousDatabaseCompartmentRequest request) { - LOG.trace("Called changeDistributedAutonomousDatabaseCompartment"); - final ChangeDistributedAutonomousDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedAutonomousDatabaseCompartmentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDatabaseCompartment"); - java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDatabaseCompartmentResponse> - transformer = - ChangeDistributedAutonomousDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedAutonomousDatabaseCompartmentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedAutonomousDbBackupConfigResponse - changeDistributedAutonomousDbBackupConfig( - ChangeDistributedAutonomousDbBackupConfigRequest request) { - LOG.trace("Called changeDistributedAutonomousDbBackupConfig"); - final ChangeDistributedAutonomousDbBackupConfigRequest interceptedRequest = - ChangeDistributedAutonomousDbBackupConfigConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedAutonomousDbBackupConfigConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ChangeDistributedAutonomousDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ChangeDistributedAutonomousDbBackupConfig"); - java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedAutonomousDbBackupConfigResponse> - transformer = - ChangeDistributedAutonomousDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedAutonomousDbBackupConfigDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - configureDistributedAutonomousDatabaseAutoResourceManagement( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseAutoResourceManagement"); - final ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - interceptedRequest = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseAutoResourceManagement"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter - .fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseGsmWalletResponse - configureDistributedAutonomousDatabaseGsmWallet( - ConfigureDistributedAutonomousDatabaseGsmWalletRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseGsmWallet"); - final ConfigureDistributedAutonomousDatabaseGsmWalletRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsmWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsmWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseGsmsResponse - configureDistributedAutonomousDatabaseGsms( - ConfigureDistributedAutonomousDatabaseGsmsRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseGsms"); - final ConfigureDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseGsms"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseGsmsResponse> - transformer = - ConfigureDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedAutonomousDatabaseGsmsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedAutonomousDatabaseShardingResponse - configureDistributedAutonomousDatabaseSharding( - ConfigureDistributedAutonomousDatabaseShardingRequest request) { - LOG.trace("Called configureDistributedAutonomousDatabaseSharding"); - final ConfigureDistributedAutonomousDatabaseShardingRequest interceptedRequest = - ConfigureDistributedAutonomousDatabaseShardingConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ConfigureDistributedAutonomousDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ConfigureDistributedAutonomousDatabaseSharding"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedAutonomousDatabaseShardingResponse> - transformer = - ConfigureDistributedAutonomousDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public CreateDistributedAutonomousDatabaseResponse createDistributedAutonomousDatabase( - CreateDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called createDistributedAutonomousDatabase"); - final CreateDistributedAutonomousDatabaseRequest interceptedRequest = - CreateDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "CreateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - ""); - java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedAutonomousDatabaseResponse> - transformer = - CreateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getCreateDistributedAutonomousDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DeleteDistributedAutonomousDatabaseResponse deleteDistributedAutonomousDatabase( - DeleteDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called deleteDistributedAutonomousDatabase"); - final DeleteDistributedAutonomousDatabaseRequest interceptedRequest = - DeleteDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "DeleteDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/DeleteDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedAutonomousDatabaseResponse> - transformer = - DeleteDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GenerateDistributedAutonomousDatabaseWalletResponse - generateDistributedAutonomousDatabaseWallet( - GenerateDistributedAutonomousDatabaseWalletRequest request) { - LOG.trace("Called generateDistributedAutonomousDatabaseWallet"); - final GenerateDistributedAutonomousDatabaseWalletRequest interceptedRequest = - GenerateDistributedAutonomousDatabaseWalletConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedAutonomousDatabaseWalletConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GenerateDistributedAutonomousDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GenerateDistributedAutonomousDatabaseWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, - GenerateDistributedAutonomousDatabaseWalletResponse> - transformer = - GenerateDistributedAutonomousDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getGenerateDistributedAutonomousDatabaseWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedAutonomousDatabaseResponse getDistributedAutonomousDatabase( - GetDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called getDistributedAutonomousDatabase"); - final GetDistributedAutonomousDatabaseRequest interceptedRequest = - GetDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/GetDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedAutonomousDatabaseResponse> - transformer = - GetDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedAutonomousDatabaseRaftMetricResponse - getDistributedAutonomousDatabaseRaftMetric( - GetDistributedAutonomousDatabaseRaftMetricRequest request) { - LOG.trace("Called getDistributedAutonomousDatabaseRaftMetric"); - final GetDistributedAutonomousDatabaseRaftMetricRequest interceptedRequest = - GetDistributedAutonomousDatabaseRaftMetricConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRaftMetric"); - java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRaftMetricResponse> - transformer = - GetDistributedAutonomousDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedAutonomousDatabaseRuChangeLogResponse - getDistributedAutonomousDatabaseRuChangeLog( - GetDistributedAutonomousDatabaseRuChangeLogRequest request) { - LOG.trace("Called getDistributedAutonomousDatabaseRuChangeLog"); - final GetDistributedAutonomousDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedAutonomousDatabaseRuChangeLogConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "GetDistributedAutonomousDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedAutonomousDatabaseRuChangeLog"); - java.util.function.Function< - javax.ws.rs.core.Response, - GetDistributedAutonomousDatabaseRuChangeLogResponse> - transformer = - GetDistributedAutonomousDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListDistributedAutonomousDatabasesResponse listDistributedAutonomousDatabases( - ListDistributedAutonomousDatabasesRequest request) { - LOG.trace("Called listDistributedAutonomousDatabases"); - final ListDistributedAutonomousDatabasesRequest interceptedRequest = - ListDistributedAutonomousDatabasesConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedAutonomousDatabasesConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ListDistributedAutonomousDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabaseCollection/ListDistributedAutonomousDatabases"); - java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedAutonomousDatabasesResponse> - transformer = - ListDistributedAutonomousDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public MoveDistributedAutonomousDatabaseReplicationUnitResponse - moveDistributedAutonomousDatabaseReplicationUnit( - MoveDistributedAutonomousDatabaseReplicationUnitRequest request) { - LOG.trace("Called moveDistributedAutonomousDatabaseReplicationUnit"); - final MoveDistributedAutonomousDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "MoveDistributedAutonomousDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/MoveDistributedAutonomousDatabaseReplicationUnit"); - java.util.function.Function< - javax.ws.rs.core.Response, - MoveDistributedAutonomousDatabaseReplicationUnitResponse> - transformer = - MoveDistributedAutonomousDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public PatchDistributedAutonomousDatabaseResponse patchDistributedAutonomousDatabase( - PatchDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called patchDistributedAutonomousDatabase"); - final PatchDistributedAutonomousDatabaseRequest interceptedRequest = - PatchDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "PatchDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/PatchDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedAutonomousDatabaseResponse> - transformer = - PatchDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.patch( - ib, - retriedRequest - .getPatchDistributedAutonomousDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RecreateFailedDistributedAutonomousDatabaseResourceResponse - recreateFailedDistributedAutonomousDatabaseResource( - RecreateFailedDistributedAutonomousDatabaseResourceRequest request) { - LOG.trace("Called recreateFailedDistributedAutonomousDatabaseResource"); - final RecreateFailedDistributedAutonomousDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.interceptRequest( - request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RecreateFailedDistributedAutonomousDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RecreateFailedDistributedAutonomousDatabaseResource"); - java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedAutonomousDatabaseResourceResponse> - transformer = - RecreateFailedDistributedAutonomousDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RotateDistributedAutonomousDatabasePasswordsResponse - rotateDistributedAutonomousDatabasePasswords( - RotateDistributedAutonomousDatabasePasswordsRequest request) { - LOG.trace("Called rotateDistributedAutonomousDatabasePasswords"); - final RotateDistributedAutonomousDatabasePasswordsRequest interceptedRequest = - RotateDistributedAutonomousDatabasePasswordsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedAutonomousDatabasePasswordsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "RotateDistributedAutonomousDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/RotateDistributedAutonomousDatabasePasswords"); - java.util.function.Function< - javax.ws.rs.core.Response, - RotateDistributedAutonomousDatabasePasswordsResponse> - transformer = - RotateDistributedAutonomousDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getRotateDistributedAutonomousDatabasePasswordsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ScaleDistributedAutonomousDatabaseGsmsResponse scaleDistributedAutonomousDatabaseGsms( - ScaleDistributedAutonomousDatabaseGsmsRequest request) { - LOG.trace("Called scaleDistributedAutonomousDatabaseGsms"); - final ScaleDistributedAutonomousDatabaseGsmsRequest interceptedRequest = - ScaleDistributedAutonomousDatabaseGsmsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ScaleDistributedAutonomousDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ScaleDistributedAutonomousDatabaseGsms"); - java.util.function.Function< - javax.ws.rs.core.Response, ScaleDistributedAutonomousDatabaseGsmsResponse> - transformer = - ScaleDistributedAutonomousDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getScaleDistributedAutonomousDatabaseGsmsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StartDistributedAutonomousDatabaseResponse startDistributedAutonomousDatabase( - StartDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called startDistributedAutonomousDatabase"); - final StartDistributedAutonomousDatabaseRequest interceptedRequest = - StartDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StartDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StartDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, StartDistributedAutonomousDatabaseResponse> - transformer = - StartDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StopDistributedAutonomousDatabaseResponse stopDistributedAutonomousDatabase( - StopDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called stopDistributedAutonomousDatabase"); - final StopDistributedAutonomousDatabaseRequest interceptedRequest = - StopDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "StopDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/StopDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, StopDistributedAutonomousDatabaseResponse> - transformer = - StopDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public UpdateDistributedAutonomousDatabaseResponse updateDistributedAutonomousDatabase( - UpdateDistributedAutonomousDatabaseRequest request) { - LOG.trace("Called updateDistributedAutonomousDatabase"); - final UpdateDistributedAutonomousDatabaseRequest interceptedRequest = - UpdateDistributedAutonomousDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedAutonomousDatabaseConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "UpdateDistributedAutonomousDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/UpdateDistributedAutonomousDatabase"); - java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedAutonomousDatabaseResponse> - transformer = - UpdateDistributedAutonomousDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest - .getUpdateDistributedAutonomousDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ValidateDistributedAutonomousDatabaseCaBundleResponse - validateDistributedAutonomousDatabaseCaBundle( - ValidateDistributedAutonomousDatabaseCaBundleRequest request) { - LOG.trace("Called validateDistributedAutonomousDatabaseCaBundle"); - final ValidateDistributedAutonomousDatabaseCaBundleRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseCaBundleConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseCaBundle", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseCaBundle"); - java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseCaBundleResponse> - transformer = - ValidateDistributedAutonomousDatabaseCaBundleConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ValidateDistributedAutonomousDatabaseNetworkResponse - validateDistributedAutonomousDatabaseNetwork( - ValidateDistributedAutonomousDatabaseNetworkRequest request) { - LOG.trace("Called validateDistributedAutonomousDatabaseNetwork"); - final ValidateDistributedAutonomousDatabaseNetworkRequest interceptedRequest = - ValidateDistributedAutonomousDatabaseNetworkConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedAutonomousDbService", - "ValidateDistributedAutonomousDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedAutonomousDatabase/ValidateDistributedAutonomousDatabaseNetwork"); - java.util.function.Function< - javax.ws.rs.core.Response, - ValidateDistributedAutonomousDatabaseNetworkResponse> - transformer = - ValidateDistributedAutonomousDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DistributedAutonomousDbServiceWaiters getWaiters() { - return waiters; - } - - @Override - public DistributedAutonomousDbServicePaginators getPaginators() { - return paginators; - } -} 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 c1ce590437e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServicePaginators.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; - -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. - */ -@javax.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 a9e1b8f6481..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedAutonomousDbServiceWaiters.java +++ /dev/null @@ -1,152 +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}. - */ -@javax.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 f262cfa3257..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointService.java +++ /dev/null @@ -1,189 +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. - */ -@javax.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 3e4ea24deab..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsync.java +++ /dev/null @@ -1,210 +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. - */ -@javax.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 75fa749a718..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceAsyncClient.java +++ /dev/null @@ -1,936 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbPrivateEndpointServiceAsyncClient - 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); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbPrivateEndpointServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbPrivateEndpointServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbPrivateEndpointServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * 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); - 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( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbPrivateEndpointServiceAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future - changeDistributedDatabasePrivateEndpointCompartment( - ChangeDistributedDatabasePrivateEndpointCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - handler) { - LOG.trace("Called async changeDistributedDatabasePrivateEndpointCompartment"); - final ChangeDistributedDatabasePrivateEndpointCompartmentRequest interceptedRequest = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ChangeDistributedDatabasePrivateEndpointCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - transformer = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse>, - java.util.concurrent.Future< - ChangeDistributedDatabasePrivateEndpointCompartmentResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedDatabasePrivateEndpointCompartmentRequest, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - createDistributedDatabasePrivateEndpoint( - CreateDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async createDistributedDatabasePrivateEndpoint"); - final CreateDistributedDatabasePrivateEndpointRequest interceptedRequest = - CreateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "CreateDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - ""); - final java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedDatabasePrivateEndpointResponse> - transformer = - CreateDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - CreateDistributedDatabasePrivateEndpointResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getCreateDistributedDatabasePrivateEndpointDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDistributedDatabasePrivateEndpointRequest, - CreateDistributedDatabasePrivateEndpointResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - deleteDistributedDatabasePrivateEndpoint( - DeleteDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async deleteDistributedDatabasePrivateEndpoint"); - final DeleteDistributedDatabasePrivateEndpointRequest interceptedRequest = - DeleteDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "DeleteDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint"); - final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedDatabasePrivateEndpointResponse> - transformer = - DeleteDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - DeleteDistributedDatabasePrivateEndpointResponse>> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteDistributedDatabasePrivateEndpointRequest, - DeleteDistributedDatabasePrivateEndpointResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async getDistributedDatabasePrivateEndpoint"); - final GetDistributedDatabasePrivateEndpointRequest interceptedRequest = - GetDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "GetDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabasePrivateEndpointResponse> - transformer = - GetDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - listDistributedDatabasePrivateEndpoints( - ListDistributedDatabasePrivateEndpointsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse> - handler) { - LOG.trace("Called async listDistributedDatabasePrivateEndpoints"); - final ListDistributedDatabasePrivateEndpointsRequest interceptedRequest = - ListDistributedDatabasePrivateEndpointsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasePrivateEndpointsConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ListDistributedDatabasePrivateEndpoints", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints"); - final java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedDatabasePrivateEndpointsResponse> - transformer = - ListDistributedDatabasePrivateEndpointsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse>, - java.util.concurrent.Future< - ListDistributedDatabasePrivateEndpointsResponse>> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDistributedDatabasePrivateEndpointsRequest, - ListDistributedDatabasePrivateEndpointsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - patchDistributedDatabasePrivateEndpoint( - PatchDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async patchDistributedDatabasePrivateEndpoint"); - final PatchDistributedDatabasePrivateEndpointRequest interceptedRequest = - PatchDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "PatchDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint"); - final java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedDatabasePrivateEndpointResponse> - transformer = - PatchDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - PatchDistributedDatabasePrivateEndpointResponse>> - futureSupplier = - client.patchFutureSupplier( - interceptedRequest, - interceptedRequest - .getPatchDistributedDatabasePrivateEndpointDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - PatchDistributedDatabasePrivateEndpointRequest, - PatchDistributedDatabasePrivateEndpointResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future reinstateProxyInstance( - ReinstateProxyInstanceRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> - handler) { - LOG.trace("Called async reinstateProxyInstance"); - final ReinstateProxyInstanceRequest interceptedRequest = - ReinstateProxyInstanceConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ReinstateProxyInstanceConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ReinstateProxyInstance", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance"); - final java.util.function.Function - transformer = - ReinstateProxyInstanceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ReinstateProxyInstanceRequest, ReinstateProxyInstanceResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - updateDistributedDatabasePrivateEndpoint( - UpdateDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse> - handler) { - LOG.trace("Called async updateDistributedDatabasePrivateEndpoint"); - final UpdateDistributedDatabasePrivateEndpointRequest interceptedRequest = - UpdateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "UpdateDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint"); - final java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedDatabasePrivateEndpointResponse> - transformer = - UpdateDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse>, - java.util.concurrent.Future< - UpdateDistributedDatabasePrivateEndpointResponse>> - futureSupplier = - client.putFutureSupplier( - interceptedRequest, - interceptedRequest - .getUpdateDistributedDatabasePrivateEndpointDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateDistributedDatabasePrivateEndpointRequest, - UpdateDistributedDatabasePrivateEndpointResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} 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 46cdd3633a7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceClient.java +++ /dev/null @@ -1,924 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbPrivateEndpointServiceClient - 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(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbPrivateEndpointServiceClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final DistributedDbPrivateEndpointServiceWaiters waiters; - - private final DistributedDbPrivateEndpointServicePaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbPrivateEndpointServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbPrivateEndpointServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbPrivateEndpointServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - 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); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * 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); - 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( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbPrivateEndpointServiceClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public ChangeDistributedDatabasePrivateEndpointCompartmentResponse - changeDistributedDatabasePrivateEndpointCompartment( - ChangeDistributedDatabasePrivateEndpointCompartmentRequest request) { - LOG.trace("Called changeDistributedDatabasePrivateEndpointCompartment"); - final ChangeDistributedDatabasePrivateEndpointCompartmentRequest interceptedRequest = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.interceptRequest( - request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ChangeDistributedDatabasePrivateEndpointCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ChangeDistributedDatabasePrivateEndpointCompartment"); - java.util.function.Function< - javax.ws.rs.core.Response, - ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - transformer = - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public CreateDistributedDatabasePrivateEndpointResponse - createDistributedDatabasePrivateEndpoint( - CreateDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called createDistributedDatabasePrivateEndpoint"); - final CreateDistributedDatabasePrivateEndpointRequest interceptedRequest = - CreateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "CreateDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - ""); - java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedDatabasePrivateEndpointResponse> - transformer = - CreateDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getCreateDistributedDatabasePrivateEndpointDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DeleteDistributedDatabasePrivateEndpointResponse - deleteDistributedDatabasePrivateEndpoint( - DeleteDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called deleteDistributedDatabasePrivateEndpoint"); - final DeleteDistributedDatabasePrivateEndpointRequest interceptedRequest = - DeleteDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "DeleteDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/DeleteDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedDatabasePrivateEndpointResponse> - transformer = - DeleteDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedDatabasePrivateEndpointResponse getDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called getDistributedDatabasePrivateEndpoint"); - final GetDistributedDatabasePrivateEndpointRequest interceptedRequest = - GetDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "GetDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/GetDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabasePrivateEndpointResponse> - transformer = - GetDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListDistributedDatabasePrivateEndpointsResponse listDistributedDatabasePrivateEndpoints( - ListDistributedDatabasePrivateEndpointsRequest request) { - LOG.trace("Called listDistributedDatabasePrivateEndpoints"); - final ListDistributedDatabasePrivateEndpointsRequest interceptedRequest = - ListDistributedDatabasePrivateEndpointsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasePrivateEndpointsConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ListDistributedDatabasePrivateEndpoints", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpointCollection/ListDistributedDatabasePrivateEndpoints"); - java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedDatabasePrivateEndpointsResponse> - transformer = - ListDistributedDatabasePrivateEndpointsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public PatchDistributedDatabasePrivateEndpointResponse patchDistributedDatabasePrivateEndpoint( - PatchDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called patchDistributedDatabasePrivateEndpoint"); - final PatchDistributedDatabasePrivateEndpointRequest interceptedRequest = - PatchDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "PatchDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/PatchDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedDatabasePrivateEndpointResponse> - transformer = - PatchDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.patch( - ib, - retriedRequest - .getPatchDistributedDatabasePrivateEndpointDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ReinstateProxyInstanceResponse reinstateProxyInstance( - ReinstateProxyInstanceRequest request) { - LOG.trace("Called reinstateProxyInstance"); - final ReinstateProxyInstanceRequest interceptedRequest = - ReinstateProxyInstanceConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ReinstateProxyInstanceConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "ReinstateProxyInstance", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/ReinstateProxyInstance"); - java.util.function.Function - transformer = - ReinstateProxyInstanceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public UpdateDistributedDatabasePrivateEndpointResponse - updateDistributedDatabasePrivateEndpoint( - UpdateDistributedDatabasePrivateEndpointRequest request) { - LOG.trace("Called updateDistributedDatabasePrivateEndpoint"); - final UpdateDistributedDatabasePrivateEndpointRequest interceptedRequest = - UpdateDistributedDatabasePrivateEndpointConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabasePrivateEndpointConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbPrivateEndpointService", - "UpdateDistributedDatabasePrivateEndpoint", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabasePrivateEndpoint/UpdateDistributedDatabasePrivateEndpoint"); - java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedDatabasePrivateEndpointResponse> - transformer = - UpdateDistributedDatabasePrivateEndpointConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest - .getUpdateDistributedDatabasePrivateEndpointDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DistributedDbPrivateEndpointServiceWaiters getWaiters() { - return waiters; - } - - @Override - public DistributedDbPrivateEndpointServicePaginators getPaginators() { - return paginators; - } -} 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 8c67f1940ed..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServicePaginators.java +++ /dev/null @@ -1,172 +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. - */ -@javax.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 4a2c83b7ab4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbPrivateEndpointServiceWaiters.java +++ /dev/null @@ -1,154 +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}. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbPrivateEndpointServiceWaiters { - private final java.util.concurrent.ExecutorService executorService; - private final DistributedDbPrivateEndpointService client; - - public DistributedDbPrivateEndpointServiceWaiters( - java.util.concurrent.ExecutorService executorService, - DistributedDbPrivateEndpointService client) { - this.executorService = executorService; - this.client = client; - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. - * - * @param request the request to send - * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states - * @return a new {@code Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState... - targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); - - return forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param targetState the desired state to wait for - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState - targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { - com.oracle.bmc.util.internal.Validate.notNull( - targetState, "The targetState cannot be null"); - - return forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetState); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - GetDistributedDatabasePrivateEndpointRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState... - targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one target state must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null target states are not permitted"); - - return forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for DistributedDatabasePrivateEndpoint. - private com.oracle.bmc.waiter.Waiter< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse> - forDistributedDatabasePrivateEndpoint( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDistributedDatabasePrivateEndpointRequest request, - final com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint.LifecycleState... - targetStates) { - final java.util.Set< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint.LifecycleState> - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); - - return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( - executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetDistributedDatabasePrivateEndpointRequest, - GetDistributedDatabasePrivateEndpointResponse>() { - @Override - public GetDistributedDatabasePrivateEndpointResponse apply( - GetDistributedDatabasePrivateEndpointRequest request) { - return client.getDistributedDatabasePrivateEndpoint(request); - } - }, - new java.util.function.Predicate< - GetDistributedDatabasePrivateEndpointResponse>() { - @Override - public boolean test( - GetDistributedDatabasePrivateEndpointResponse response) { - return targetStatesSet.contains( - response.getDistributedDatabasePrivateEndpoint() - .getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint.LifecycleState - .Deleted)), - request); - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java deleted file mode 100644 index 60ffbc81400..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbService.java +++ /dev/null @@ -1,389 +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. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbService extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Add new Global database services control(GDS CTL) node for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use AddDistributedDatabaseGdsControlNode API. - */ - AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request); - - /** - * Move the Globally distributed database and its dependent resources to the specified compartment. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ChangeDistributedDatabaseCompartment API. - */ - ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCompartment( - ChangeDistributedDatabaseCompartmentRequest request); - - /** - * Change the DbBackupConfig for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ChangeDistributedDbBackupConfig API. - */ - ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( - ChangeDistributedDbBackupConfigRequest request); - - /** - * Configure autoResourceManagement options for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ConfigureDistributedDatabaseAutoResourceManagement API. - */ - ConfigureDistributedDatabaseAutoResourceManagementResponse - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request); - - /** - * Configure new Global Service Manager(GSM aka shard manager) instances for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ConfigureDistributedDatabaseGsms API. - */ - ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request); - - /** - * Once all components of Globally distributed database are provisioned, and signed GSM certificates are successfully uploaded, this - * api shall be invoked to configure sharding on the Globally distributed database. Note that this 'ConfigureSharding' API also needs to be - * invoked after successfully adding a new shard to the Globally distributed database using PATCH api. If this API is not - * invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of - * the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ConfigureDistributedDatabaseSharding API. - */ - ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request); - - /** - * Creates a Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use CreateDistributedDatabase API. - */ - CreateDistributedDatabaseResponse createDistributedDatabase( - CreateDistributedDatabaseRequest request); - - /** - * Terminate the given Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use DeleteDistributedDatabase API. - */ - DeleteDistributedDatabaseResponse deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request); - - /** - * Generate the wallet associated with Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GenerateDistributedDatabaseWallet API. - */ - GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request); - - /** - * Gets the details of the Globally distributed database identified by given id. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetDistributedDatabase API. - */ - GetDistributedDatabaseResponse getDistributedDatabase(GetDistributedDatabaseRequest request); - - /** - * Operation to retrieve RAFT metrics for the Globally distributed database. If the Globally distributed database is not - * RAFT based then empty response is returned from the API. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetDistributedDatabaseRaftMetric API. - */ - GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request); - - /** - * Operation to retrieve move RU invocation history and status for the Globally distributed database. - * Results are ordered by created timestamp in descending order. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetDistributedDatabaseRuChangeLog API. - */ - GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request); - - /** - * List of Globally distributed databases. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ListDistributedDatabases API. - */ - ListDistributedDatabasesResponse listDistributedDatabases( - ListDistributedDatabasesRequest request); - - /** - * Move the replication units for RAFT based globally distributed database from source shard to destination shard. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use MoveDistributedDatabaseReplicationUnit API. - */ - MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request); - - /** - * Patch operation to add, remove or update shards to the Globally distributed database topology. In single patch - * operation, multiple shards can be either added, or removed or updated. Combination of inserts, update - * and remove in single operation is not allowed. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use PatchDistributedDatabase API. - */ - PatchDistributedDatabaseResponse patchDistributedDatabase( - PatchDistributedDatabaseRequest request); - - /** - * Recreate the failed resource for the Globally Distributed Database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use RecreateFailedDistributedDatabaseResource API. - */ - RecreateFailedDistributedDatabaseResourceResponse recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request); - - /** - * Rotate the gsmuser and gsmcatuser passwords for shards and catalog of the Globally distributed database. This operation will also remove GdsCtlNodes if present. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use RotateDistributedDatabasePasswords API. - */ - RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request); - - /** - * Scale global service manager(GSM aka shard manager) instances for the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ScaleDistributedDatabaseGsms API. - */ - ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request); - - /** - * Start the shards, catalog, GSMs and GDSCTL instances of Globally distributed database. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use StartDistributedDatabase API. - */ - StartDistributedDatabaseResponse startDistributedDatabase( - StartDistributedDatabaseRequest request); - - /** - * Stop the shards, catalog, GSMs and GDSCTL instances for the Globally distributed database. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use StopDistributedDatabase API. - */ - StopDistributedDatabaseResponse stopDistributedDatabase(StopDistributedDatabaseRequest request); - - /** - * Updates the configuration of the Globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use UpdateDistributedDatabase API. - */ - UpdateDistributedDatabaseResponse updateDistributedDatabase( - UpdateDistributedDatabaseRequest request); - - /** - * Validate the network connectivity between components of the globally distributed database. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ValidateDistributedDatabaseNetwork API. - */ - ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( - ValidateDistributedDatabaseNetworkRequest request); - - /** - * Gets the pre-configured waiters available for resources for this service. - * - * @return The service waiters. - */ - DistributedDbServiceWaiters getWaiters(); - - /** - * Gets the pre-configured paginators available for list operations in this service which may return multiple - * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or - * resources/records, can be iterated through without having to manually deal with pagination and page tokens. - * - * @return The service paginators. - */ - DistributedDbServicePaginators getPaginators(); -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java deleted file mode 100644 index b2e55ac0f53..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsync.java +++ /dev/null @@ -1,466 +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. - */ -@javax.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 8d9ff79a970..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceAsyncClient.java +++ /dev/null @@ -1,1694 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServiceAsyncClient 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); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedDbServiceAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbServiceAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future - addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request, - final com.oracle.bmc.responses.AsyncHandler< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse> - handler) { - LOG.trace("Called async addDistributedDatabaseGdsControlNode"); - final AddDistributedDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedDatabaseGdsControlNodeConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "AddDistributedDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/AddDistributedDatabaseGdsControlNode"); - final java.util.function.Function< - javax.ws.rs.core.Response, AddDistributedDatabaseGdsControlNodeResponse> - transformer = - AddDistributedDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getAddDistributedDatabaseGdsControlNodeDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - AddDistributedDatabaseGdsControlNodeRequest, - AddDistributedDatabaseGdsControlNodeResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedDatabaseCompartment( - ChangeDistributedDatabaseCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse> - handler) { - LOG.trace("Called async changeDistributedDatabaseCompartment"); - final ChangeDistributedDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedDatabaseCompartmentConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDatabaseCompartment"); - final java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDatabaseCompartmentResponse> - transformer = - ChangeDistributedDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getChangeDistributedDatabaseCompartmentDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedDatabaseCompartmentRequest, - ChangeDistributedDatabaseCompartmentResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - changeDistributedDbBackupConfig( - ChangeDistributedDbBackupConfigRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse> - handler) { - LOG.trace("Called async changeDistributedDbBackupConfig"); - final ChangeDistributedDbBackupConfigRequest interceptedRequest = - ChangeDistributedDbBackupConfigConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDbBackupConfigConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDbBackupConfig"); - final java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDbBackupConfigResponse> - transformer = - ChangeDistributedDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getChangeDistributedDbBackupConfigDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ChangeDistributedDbBackupConfigRequest, - ChangeDistributedDbBackupConfigResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - handler) { - LOG.trace("Called async configureDistributedDatabaseAutoResourceManagement"); - final ConfigureDistributedDatabaseAutoResourceManagementRequest interceptedRequest = - ConfigureDistributedDatabaseAutoResourceManagementConverter.interceptRequest( - request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement"); - final java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse>, - java.util.concurrent.Future< - ConfigureDistributedDatabaseAutoResourceManagementResponse>> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getConfigureDistributedDatabaseAutoResourceManagementDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - ConfigureDistributedDatabaseAutoResourceManagementResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse> - handler) { - LOG.trace("Called async configureDistributedDatabaseGsms"); - final ConfigureDistributedDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseGsmsResponse> - transformer = - ConfigureDistributedDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getConfigureDistributedDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedDatabaseGsmsRequest, - ConfigureDistributedDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse> - handler) { - LOG.trace("Called async configureDistributedDatabaseSharding"); - final ConfigureDistributedDatabaseShardingRequest interceptedRequest = - ConfigureDistributedDatabaseShardingConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseSharding"); - final java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseShardingResponse> - transformer = - ConfigureDistributedDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ConfigureDistributedDatabaseShardingRequest, - ConfigureDistributedDatabaseShardingResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future createDistributedDatabase( - CreateDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse> - handler) { - LOG.trace("Called async createDistributedDatabase"); - final CreateDistributedDatabaseRequest interceptedRequest = - CreateDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "CreateDistributedDatabase", - ib.getRequestUri().toString(), - ""); - final java.util.function.Function< - javax.ws.rs.core.Response, CreateDistributedDatabaseResponse> - transformer = - CreateDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - CreateDistributedDatabaseRequest, - CreateDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getCreateDistributedDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateDistributedDatabaseRequest, CreateDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> - handler) { - LOG.trace("Called async deleteDistributedDatabase"); - final DeleteDistributedDatabaseRequest interceptedRequest = - DeleteDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "DeleteDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/DeleteDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, DeleteDistributedDatabaseResponse> - transformer = - DeleteDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - DeleteDistributedDatabaseRequest, - DeleteDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteDistributedDatabaseRequest, DeleteDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse> - handler) { - LOG.trace("Called async generateDistributedDatabaseWallet"); - final GenerateDistributedDatabaseWalletRequest interceptedRequest = - GenerateDistributedDatabaseWalletConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedDatabaseWalletConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GenerateDistributedDatabaseWallet"); - final java.util.function.Function< - javax.ws.rs.core.Response, GenerateDistributedDatabaseWalletResponse> - transformer = - GenerateDistributedDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getGenerateDistributedDatabaseWalletDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateDistributedDatabaseWalletRequest, - GenerateDistributedDatabaseWalletResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future getDistributedDatabase( - GetDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - handler) { - LOG.trace("Called async getDistributedDatabase"); - final GetDistributedDatabaseRequest interceptedRequest = - GetDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabase"); - final java.util.function.Function - transformer = - GetDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse> - handler) { - LOG.trace("Called async getDistributedDatabaseRaftMetric"); - final GetDistributedDatabaseRaftMetricRequest interceptedRequest = - GetDistributedDatabaseRaftMetricConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRaftMetricConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRaftMetric"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRaftMetricResponse> - transformer = - GetDistributedDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabaseRaftMetricRequest, - GetDistributedDatabaseRaftMetricResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse> - handler) { - LOG.trace("Called async getDistributedDatabaseRuChangeLog"); - final GetDistributedDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedDatabaseRuChangeLogConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRuChangeLogConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog"); - final java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRuChangeLogResponse> - transformer = - GetDistributedDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDistributedDatabaseRuChangeLogRequest, - GetDistributedDatabaseRuChangeLogResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future listDistributedDatabases( - ListDistributedDatabasesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse> - handler) { - LOG.trace("Called async listDistributedDatabases"); - final ListDistributedDatabasesRequest interceptedRequest = - ListDistributedDatabasesConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasesConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ListDistributedDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabaseCollection/ListDistributedDatabases"); - final java.util.function.Function< - javax.ws.rs.core.Response, ListDistributedDatabasesResponse> - transformer = - ListDistributedDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDistributedDatabasesRequest, ListDistributedDatabasesResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request, - final com.oracle.bmc.responses.AsyncHandler< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse> - handler) { - LOG.trace("Called async moveDistributedDatabaseReplicationUnit"); - final MoveDistributedDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedDatabaseReplicationUnitConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "MoveDistributedDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/MoveDistributedDatabaseReplicationUnit"); - final java.util.function.Function< - javax.ws.rs.core.Response, MoveDistributedDatabaseReplicationUnitResponse> - transformer = - MoveDistributedDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest - .getMoveDistributedDatabaseReplicationUnitDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - MoveDistributedDatabaseReplicationUnitRequest, - MoveDistributedDatabaseReplicationUnitResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future patchDistributedDatabase( - PatchDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse> - handler) { - LOG.trace("Called async patchDistributedDatabase"); - final PatchDistributedDatabaseRequest interceptedRequest = - PatchDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "PatchDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/PatchDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, PatchDistributedDatabaseResponse> - transformer = - PatchDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.patchFutureSupplier( - interceptedRequest, - interceptedRequest.getPatchDistributedDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - PatchDistributedDatabaseRequest, PatchDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse> - handler) { - LOG.trace("Called async recreateFailedDistributedDatabaseResource"); - final RecreateFailedDistributedDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedDatabaseResourceConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RecreateFailedDistributedDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RecreateFailedDistributedDatabaseResource"); - final java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedDatabaseResourceResponse> - transformer = - RecreateFailedDistributedDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse>, - java.util.concurrent.Future< - RecreateFailedDistributedDatabaseResourceResponse>> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RecreateFailedDistributedDatabaseResourceRequest, - RecreateFailedDistributedDatabaseResourceResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse> - handler) { - LOG.trace("Called async rotateDistributedDatabasePasswords"); - final RotateDistributedDatabasePasswordsRequest interceptedRequest = - RotateDistributedDatabasePasswordsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedDatabasePasswordsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RotateDistributedDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RotateDistributedDatabasePasswords"); - final java.util.function.Function< - javax.ws.rs.core.Response, RotateDistributedDatabasePasswordsResponse> - transformer = - RotateDistributedDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getRotateDistributedDatabasePasswordsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - RotateDistributedDatabasePasswordsRequest, - RotateDistributedDatabasePasswordsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedDatabaseGsmsRequest, - ScaleDistributedDatabaseGsmsResponse> - handler) { - LOG.trace("Called async scaleDistributedDatabaseGsms"); - final ScaleDistributedDatabaseGsmsRequest interceptedRequest = - ScaleDistributedDatabaseGsmsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ScaleDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms"); - final java.util.function.Function< - javax.ws.rs.core.Response, ScaleDistributedDatabaseGsmsResponse> - transformer = - ScaleDistributedDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedDatabaseGsmsRequest, ScaleDistributedDatabaseGsmsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ScaleDistributedDatabaseGsmsRequest, - ScaleDistributedDatabaseGsmsResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getScaleDistributedDatabaseGsmsDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ScaleDistributedDatabaseGsmsRequest, ScaleDistributedDatabaseGsmsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future startDistributedDatabase( - StartDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> - handler) { - LOG.trace("Called async startDistributedDatabase"); - final StartDistributedDatabaseRequest interceptedRequest = - StartDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StartDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StartDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StartDistributedDatabaseResponse> - transformer = - StartDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StartDistributedDatabaseRequest, StartDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future stopDistributedDatabase( - StopDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> - handler) { - LOG.trace("Called async stopDistributedDatabase"); - final StopDistributedDatabaseRequest interceptedRequest = - StopDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StopDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StopDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, StopDistributedDatabaseResponse> - transformer = - StopDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - StopDistributedDatabaseRequest, StopDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future updateDistributedDatabase( - UpdateDistributedDatabaseRequest request, - final com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> - handler) { - LOG.trace("Called async updateDistributedDatabase"); - final UpdateDistributedDatabaseRequest interceptedRequest = - UpdateDistributedDatabaseConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "UpdateDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/UpdateDistributedDatabase"); - final java.util.function.Function< - javax.ws.rs.core.Response, UpdateDistributedDatabaseResponse> - transformer = - UpdateDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - UpdateDistributedDatabaseRequest, - UpdateDistributedDatabaseResponse>, - java.util.concurrent.Future> - futureSupplier = - client.putFutureSupplier( - interceptedRequest, - interceptedRequest.getUpdateDistributedDatabaseDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - UpdateDistributedDatabaseRequest, UpdateDistributedDatabaseResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future - validateDistributedDatabaseNetwork( - ValidateDistributedDatabaseNetworkRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse> - handler) { - LOG.trace("Called async validateDistributedDatabaseNetwork"); - final ValidateDistributedDatabaseNetworkRequest interceptedRequest = - ValidateDistributedDatabaseNetworkConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedDatabaseNetworkConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ValidateDistributedDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ValidateDistributedDatabaseNetwork"); - final java.util.function.Function< - javax.ws.rs.core.Response, ValidateDistributedDatabaseNetworkResponse> - transformer = - ValidateDistributedDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ValidateDistributedDatabaseNetworkRequest, - ValidateDistributedDatabaseNetworkResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} 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 b402ab81a1f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceClient.java +++ /dev/null @@ -1,1518 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServiceClient 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(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbServiceClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final DistributedDbServiceWaiters waiters; - - private final DistributedDbServicePaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - */ - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - 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 (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - if (com.oracle.bmc.http.ApacheUtils.isExtraStreamLogsEnabled()) { - LOG.warn( - com.oracle.bmc.http.ApacheUtils.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 java.util.concurrent.ExecutorService executorService; - - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 DistributedDbServiceClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbServiceClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public AddDistributedDatabaseGdsControlNodeResponse addDistributedDatabaseGdsControlNode( - AddDistributedDatabaseGdsControlNodeRequest request) { - LOG.trace("Called addDistributedDatabaseGdsControlNode"); - final AddDistributedDatabaseGdsControlNodeRequest interceptedRequest = - AddDistributedDatabaseGdsControlNodeConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - AddDistributedDatabaseGdsControlNodeConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "AddDistributedDatabaseGdsControlNode", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/AddDistributedDatabaseGdsControlNode"); - java.util.function.Function< - javax.ws.rs.core.Response, AddDistributedDatabaseGdsControlNodeResponse> - transformer = - AddDistributedDatabaseGdsControlNodeConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getAddDistributedDatabaseGdsControlNodeDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedDatabaseCompartmentResponse changeDistributedDatabaseCompartment( - ChangeDistributedDatabaseCompartmentRequest request) { - LOG.trace("Called changeDistributedDatabaseCompartment"); - final ChangeDistributedDatabaseCompartmentRequest interceptedRequest = - ChangeDistributedDatabaseCompartmentConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDatabaseCompartmentConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDatabaseCompartment", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDatabaseCompartment"); - java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDatabaseCompartmentResponse> - transformer = - ChangeDistributedDatabaseCompartmentConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedDatabaseCompartmentDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ChangeDistributedDbBackupConfigResponse changeDistributedDbBackupConfig( - ChangeDistributedDbBackupConfigRequest request) { - LOG.trace("Called changeDistributedDbBackupConfig"); - final ChangeDistributedDbBackupConfigRequest interceptedRequest = - ChangeDistributedDbBackupConfigConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ChangeDistributedDbBackupConfigConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ChangeDistributedDbBackupConfig", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ChangeDistributedDbBackupConfig"); - java.util.function.Function< - javax.ws.rs.core.Response, ChangeDistributedDbBackupConfigResponse> - transformer = - ChangeDistributedDbBackupConfigConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getChangeDistributedDbBackupConfigDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedDatabaseAutoResourceManagementResponse - configureDistributedDatabaseAutoResourceManagement( - ConfigureDistributedDatabaseAutoResourceManagementRequest request) { - LOG.trace("Called configureDistributedDatabaseAutoResourceManagement"); - final ConfigureDistributedDatabaseAutoResourceManagementRequest interceptedRequest = - ConfigureDistributedDatabaseAutoResourceManagementConverter.interceptRequest( - request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseAutoResourceManagement", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseAutoResourceManagement"); - java.util.function.Function< - javax.ws.rs.core.Response, - ConfigureDistributedDatabaseAutoResourceManagementResponse> - transformer = - ConfigureDistributedDatabaseAutoResourceManagementConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedDatabaseAutoResourceManagementDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedDatabaseGsmsResponse configureDistributedDatabaseGsms( - ConfigureDistributedDatabaseGsmsRequest request) { - LOG.trace("Called configureDistributedDatabaseGsms"); - final ConfigureDistributedDatabaseGsmsRequest interceptedRequest = - ConfigureDistributedDatabaseGsmsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseGsms"); - java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseGsmsResponse> - transformer = - ConfigureDistributedDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getConfigureDistributedDatabaseGsmsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ConfigureDistributedDatabaseShardingResponse configureDistributedDatabaseSharding( - ConfigureDistributedDatabaseShardingRequest request) { - LOG.trace("Called configureDistributedDatabaseSharding"); - final ConfigureDistributedDatabaseShardingRequest interceptedRequest = - ConfigureDistributedDatabaseShardingConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ConfigureDistributedDatabaseShardingConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ConfigureDistributedDatabaseSharding", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ConfigureDistributedDatabaseSharding"); - java.util.function.Function< - javax.ws.rs.core.Response, ConfigureDistributedDatabaseShardingResponse> - transformer = - ConfigureDistributedDatabaseShardingConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public CreateDistributedDatabaseResponse createDistributedDatabase( - CreateDistributedDatabaseRequest request) { - LOG.trace("Called createDistributedDatabase"); - final CreateDistributedDatabaseRequest interceptedRequest = - CreateDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "CreateDistributedDatabase", - ib.getRequestUri().toString(), - ""); - java.util.function.Function - transformer = - CreateDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getCreateDistributedDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DeleteDistributedDatabaseResponse deleteDistributedDatabase( - DeleteDistributedDatabaseRequest request) { - LOG.trace("Called deleteDistributedDatabase"); - final DeleteDistributedDatabaseRequest interceptedRequest = - DeleteDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "DeleteDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/DeleteDistributedDatabase"); - java.util.function.Function - transformer = - DeleteDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GenerateDistributedDatabaseWalletResponse generateDistributedDatabaseWallet( - GenerateDistributedDatabaseWalletRequest request) { - LOG.trace("Called generateDistributedDatabaseWallet"); - final GenerateDistributedDatabaseWalletRequest interceptedRequest = - GenerateDistributedDatabaseWalletConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateDistributedDatabaseWalletConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GenerateDistributedDatabaseWallet", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GenerateDistributedDatabaseWallet"); - java.util.function.Function< - javax.ws.rs.core.Response, GenerateDistributedDatabaseWalletResponse> - transformer = - GenerateDistributedDatabaseWalletConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getGenerateDistributedDatabaseWalletDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedDatabaseResponse getDistributedDatabase( - GetDistributedDatabaseRequest request) { - LOG.trace("Called getDistributedDatabase"); - final GetDistributedDatabaseRequest interceptedRequest = - GetDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabase"); - java.util.function.Function - transformer = - GetDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedDatabaseRaftMetricResponse getDistributedDatabaseRaftMetric( - GetDistributedDatabaseRaftMetricRequest request) { - LOG.trace("Called getDistributedDatabaseRaftMetric"); - final GetDistributedDatabaseRaftMetricRequest interceptedRequest = - GetDistributedDatabaseRaftMetricConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRaftMetricConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRaftMetric", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRaftMetric"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRaftMetricResponse> - transformer = - GetDistributedDatabaseRaftMetricConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetDistributedDatabaseRuChangeLogResponse getDistributedDatabaseRuChangeLog( - GetDistributedDatabaseRuChangeLogRequest request) { - LOG.trace("Called getDistributedDatabaseRuChangeLog"); - final GetDistributedDatabaseRuChangeLogRequest interceptedRequest = - GetDistributedDatabaseRuChangeLogConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDistributedDatabaseRuChangeLogConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "GetDistributedDatabaseRuChangeLog", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/GetDistributedDatabaseRuChangeLog"); - java.util.function.Function< - javax.ws.rs.core.Response, GetDistributedDatabaseRuChangeLogResponse> - transformer = - GetDistributedDatabaseRuChangeLogConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListDistributedDatabasesResponse listDistributedDatabases( - ListDistributedDatabasesRequest request) { - LOG.trace("Called listDistributedDatabases"); - final ListDistributedDatabasesRequest interceptedRequest = - ListDistributedDatabasesConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDistributedDatabasesConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ListDistributedDatabases", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabaseCollection/ListDistributedDatabases"); - java.util.function.Function - transformer = - ListDistributedDatabasesConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public MoveDistributedDatabaseReplicationUnitResponse moveDistributedDatabaseReplicationUnit( - MoveDistributedDatabaseReplicationUnitRequest request) { - LOG.trace("Called moveDistributedDatabaseReplicationUnit"); - final MoveDistributedDatabaseReplicationUnitRequest interceptedRequest = - MoveDistributedDatabaseReplicationUnitConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - MoveDistributedDatabaseReplicationUnitConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "MoveDistributedDatabaseReplicationUnit", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/MoveDistributedDatabaseReplicationUnit"); - java.util.function.Function< - javax.ws.rs.core.Response, MoveDistributedDatabaseReplicationUnitResponse> - transformer = - MoveDistributedDatabaseReplicationUnitConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getMoveDistributedDatabaseReplicationUnitDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public PatchDistributedDatabaseResponse patchDistributedDatabase( - PatchDistributedDatabaseRequest request) { - LOG.trace("Called patchDistributedDatabase"); - final PatchDistributedDatabaseRequest interceptedRequest = - PatchDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - PatchDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "PatchDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/PatchDistributedDatabase"); - java.util.function.Function - transformer = - PatchDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.patch( - ib, - retriedRequest.getPatchDistributedDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RecreateFailedDistributedDatabaseResourceResponse - recreateFailedDistributedDatabaseResource( - RecreateFailedDistributedDatabaseResourceRequest request) { - LOG.trace("Called recreateFailedDistributedDatabaseResource"); - final RecreateFailedDistributedDatabaseResourceRequest interceptedRequest = - RecreateFailedDistributedDatabaseResourceConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RecreateFailedDistributedDatabaseResourceConverter.fromRequest( - client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RecreateFailedDistributedDatabaseResource", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RecreateFailedDistributedDatabaseResource"); - java.util.function.Function< - javax.ws.rs.core.Response, - RecreateFailedDistributedDatabaseResourceResponse> - transformer = - RecreateFailedDistributedDatabaseResourceConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public RotateDistributedDatabasePasswordsResponse rotateDistributedDatabasePasswords( - RotateDistributedDatabasePasswordsRequest request) { - LOG.trace("Called rotateDistributedDatabasePasswords"); - final RotateDistributedDatabasePasswordsRequest interceptedRequest = - RotateDistributedDatabasePasswordsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - RotateDistributedDatabasePasswordsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "RotateDistributedDatabasePasswords", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/RotateDistributedDatabasePasswords"); - java.util.function.Function< - javax.ws.rs.core.Response, RotateDistributedDatabasePasswordsResponse> - transformer = - RotateDistributedDatabasePasswordsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getRotateDistributedDatabasePasswordsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ScaleDistributedDatabaseGsmsResponse scaleDistributedDatabaseGsms( - ScaleDistributedDatabaseGsmsRequest request) { - LOG.trace("Called scaleDistributedDatabaseGsms"); - final ScaleDistributedDatabaseGsmsRequest interceptedRequest = - ScaleDistributedDatabaseGsmsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ScaleDistributedDatabaseGsmsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ScaleDistributedDatabaseGsms", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ScaleDistributedDatabaseGsms"); - java.util.function.Function - transformer = - ScaleDistributedDatabaseGsmsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getScaleDistributedDatabaseGsmsDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StartDistributedDatabaseResponse startDistributedDatabase( - StartDistributedDatabaseRequest request) { - LOG.trace("Called startDistributedDatabase"); - final StartDistributedDatabaseRequest interceptedRequest = - StartDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StartDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StartDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StartDistributedDatabase"); - java.util.function.Function - transformer = - StartDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public StopDistributedDatabaseResponse stopDistributedDatabase( - StopDistributedDatabaseRequest request) { - LOG.trace("Called stopDistributedDatabase"); - final StopDistributedDatabaseRequest interceptedRequest = - StopDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - StopDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "StopDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/StopDistributedDatabase"); - java.util.function.Function - transformer = - StopDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public UpdateDistributedDatabaseResponse updateDistributedDatabase( - UpdateDistributedDatabaseRequest request) { - LOG.trace("Called updateDistributedDatabase"); - final UpdateDistributedDatabaseRequest interceptedRequest = - UpdateDistributedDatabaseConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - UpdateDistributedDatabaseConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "UpdateDistributedDatabase", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/UpdateDistributedDatabase"); - java.util.function.Function - transformer = - UpdateDistributedDatabaseConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.put( - ib, - retriedRequest - .getUpdateDistributedDatabaseDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ValidateDistributedDatabaseNetworkResponse validateDistributedDatabaseNetwork( - ValidateDistributedDatabaseNetworkRequest request) { - LOG.trace("Called validateDistributedDatabaseNetwork"); - final ValidateDistributedDatabaseNetworkRequest interceptedRequest = - ValidateDistributedDatabaseNetworkConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ValidateDistributedDatabaseNetworkConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbService", - "ValidateDistributedDatabaseNetwork", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/DistributedDatabase/ValidateDistributedDatabaseNetwork"); - java.util.function.Function< - javax.ws.rs.core.Response, ValidateDistributedDatabaseNetworkResponse> - transformer = - ValidateDistributedDatabaseNetworkConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DistributedDbServiceWaiters getWaiters() { - return waiters; - } - - @Override - public DistributedDbServicePaginators getPaginators() { - return paginators; - } -} 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 09e38c765a9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServicePaginators.java +++ /dev/null @@ -1,155 +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. - */ -@javax.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 c5d11d9e6fe..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbServiceWaiters.java +++ /dev/null @@ -1,143 +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}. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbServiceWaiters { - private final java.util.concurrent.ExecutorService executorService; - private final DistributedDbService client; - - public DistributedDbServiceWaiters( - java.util.concurrent.ExecutorService executorService, DistributedDbService client) { - this.executorService = executorService; - this.client = client; - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. - * - * @param request the request to send - * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states - * @return a new {@code Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - forDistributedDatabase( - GetDistributedDatabaseRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState... - targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); - - return forDistributedDatabase( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param targetState the desired state to wait for - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - forDistributedDatabase( - GetDistributedDatabaseRequest request, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { - com.oracle.bmc.util.internal.Validate.notNull( - targetState, "The targetState cannot be null"); - - return forDistributedDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetState); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - forDistributedDatabase( - GetDistributedDatabaseRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState... - targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one target state must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null target states are not permitted"); - - return forDistributedDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for DistributedDatabase. - private com.oracle.bmc.waiter.Waiter< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse> - forDistributedDatabase( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDistributedDatabaseRequest request, - final com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState... - targetStates) { - final java.util.Set< - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState> - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); - - return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( - executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetDistributedDatabaseRequest, GetDistributedDatabaseResponse>() { - @Override - public GetDistributedDatabaseResponse apply( - GetDistributedDatabaseRequest request) { - return client.getDistributedDatabase(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetDistributedDatabaseResponse response) { - return targetStatesSet.contains( - response.getDistributedDatabase().getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - .LifecycleState.Deleted)), - request); - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.java deleted file mode 100644 index c4a8717a8c8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestService.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; - -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. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbWorkRequestService extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets details of the work request with the given ID. - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetWorkRequest API. - */ - GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); - - /** - * Returns a (paginated) list of errors for the work request with the given ID. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ListWorkRequestErrors API. - */ - ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); - - /** - * Returns a (paginated) list of logs for the work request with the given ID. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ListWorkRequestLogs API. - */ - ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); - - /** - * Lists the work requests in a compartment. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use ListWorkRequests API. - */ - ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); - - /** - * Gets the pre-configured waiters available for resources for this service. - * - * @return The service waiters. - */ - DistributedDbWorkRequestServiceWaiters getWaiters(); - - /** - * Gets the pre-configured paginators available for list operations in this service which may return multiple - * pages of data. These paginators provide an {@link java.lang.Iterable} interface so that service responses, or - * resources/records, can be iterated through without having to manually deal with pagination and page tokens. - * - * @return The service paginators. - */ - DistributedDbWorkRequestServicePaginators getPaginators(); -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.java deleted file mode 100644 index 03c3e8aa9d4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsync.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; - -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. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public interface DistributedDbWorkRequestServiceAsync extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets details of the work request with the given ID. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future getWorkRequest( - GetWorkRequestRequest request, - com.oracle.bmc.responses.AsyncHandler - handler); - - /** - * Returns a (paginated) list of errors for the work request with the given ID. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future listWorkRequestErrors( - ListWorkRequestErrorsRequest request, - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> - handler); - - /** - * Returns a (paginated) list of logs for the work request with the given ID. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future listWorkRequestLogs( - ListWorkRequestLogsRequest request, - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> - handler); - - /** - * Lists the work requests in a compartment. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future listWorkRequests( - ListWorkRequestsRequest request, - com.oracle.bmc.responses.AsyncHandler - handler); -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java deleted file mode 100644 index aa29fa7b6c7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceAsyncClient.java +++ /dev/null @@ -1,658 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for DistributedDbWorkRequestService service.
        - * There are two ways to use async client: - * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like - * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, - * because the stream will be closed right after the AsyncHandler is invoked.
        - * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
        - * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, - * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler - * is used, it is still safe to use the Future to determine whether or not the request was completed via - * Future.isDone/isCancelled.
        - * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServiceAsyncClient - implements DistributedDbWorkRequestServiceAsync { - /** - * Service instance for DistributedDbWorkRequestService. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbWorkRequestServiceClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public DistributedDbWorkRequestServiceAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbWorkRequestServiceAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public DistributedDbWorkRequestServiceAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbWorkRequestServiceAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future getWorkRequest( - GetWorkRequestRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetWorkRequestRequest, GetWorkRequestResponse> - handler) { - LOG.trace("Called async getWorkRequest"); - final GetWorkRequestRequest interceptedRequest = - GetWorkRequestConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetWorkRequestConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "GetWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest"); - final java.util.function.Function - transformer = - GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetWorkRequestRequest, GetWorkRequestResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetWorkRequestRequest, GetWorkRequestResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future listWorkRequestErrors( - ListWorkRequestErrorsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> - handler) { - LOG.trace("Called async listWorkRequestErrors"); - final ListWorkRequestErrorsRequest interceptedRequest = - ListWorkRequestErrorsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "ListWorkRequestErrors", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors"); - final java.util.function.Function - transformer = - ListWorkRequestErrorsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future listWorkRequestLogs( - ListWorkRequestLogsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> - handler) { - LOG.trace("Called async listWorkRequestLogs"); - final ListWorkRequestLogsRequest interceptedRequest = - ListWorkRequestLogsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs"); - final java.util.function.Function - transformer = - ListWorkRequestLogsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListWorkRequestLogsRequest, ListWorkRequestLogsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } - - @Override - public java.util.concurrent.Future listWorkRequests( - ListWorkRequestsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestsRequest, ListWorkRequestsResponse> - handler) { - LOG.trace("Called async listWorkRequests"); - final ListWorkRequestsRequest interceptedRequest = - ListWorkRequestsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests"); - final java.util.function.Function - transformer = - ListWorkRequestsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListWorkRequestsRequest, ListWorkRequestsResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListWorkRequestsRequest, ListWorkRequestsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java deleted file mode 100644 index 6f1b2ec5b54..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServiceClient.java +++ /dev/null @@ -1,718 +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.internal.http.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServiceClient implements DistributedDbWorkRequestService { - /** - * Service instance for DistributedDbWorkRequestService. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(DistributedDbWorkRequestServiceClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate("https://globaldb.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbWorkRequestServiceClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final DistributedDbWorkRequestServiceWaiters waiters; - - private final DistributedDbWorkRequestServicePaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - */ - public DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - java.util.concurrent.ExecutorService executorService) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected DistributedDbWorkRequestServiceClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - java.util.concurrent.ExecutorService executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - if (executorService == null) { - // up to 50 (core) threads, time out after 60s idle, all daemon - java.util.concurrent.ThreadPoolExecutor threadPoolExecutor = - new java.util.concurrent.ThreadPoolExecutor( - 50, - 50, - 60L, - java.util.concurrent.TimeUnit.SECONDS, - new java.util.concurrent.LinkedBlockingQueue(), - com.oracle.bmc.internal.ClientThreadFactory.builder() - .isDaemon(true) - .nameFormat("DistributedDbWorkRequestService-waiters-%d") - .build()); - threadPoolExecutor.allowCoreThreadTimeOut(true); - - executorService = threadPoolExecutor; - } - this.waiters = new DistributedDbWorkRequestServiceWaiters(executorService, this); - - this.paginators = new DistributedDbWorkRequestServicePaginators(this); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, DistributedDbWorkRequestServiceClient> { - private java.util.concurrent.ExecutorService executorService; - - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Set the ExecutorService for the client to be created. - * @param executorService executorService - * @return this builder - */ - public Builder executorService(java.util.concurrent.ExecutorService executorService) { - this.executorService = executorService; - return this; - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public DistributedDbWorkRequestServiceClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new DistributedDbWorkRequestServiceClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { - LOG.trace("Called getWorkRequest"); - final GetWorkRequestRequest interceptedRequest = - GetWorkRequestConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetWorkRequestConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "GetWorkRequest", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/GetWorkRequest"); - java.util.function.Function transformer = - GetWorkRequestConverter.fromResponse(java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListWorkRequestErrorsResponse listWorkRequestErrors( - ListWorkRequestErrorsRequest request) { - LOG.trace("Called listWorkRequestErrors"); - final ListWorkRequestErrorsRequest interceptedRequest = - ListWorkRequestErrorsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestErrorsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "ListWorkRequestErrors", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestError/ListWorkRequestErrors"); - java.util.function.Function - transformer = - ListWorkRequestErrorsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) { - LOG.trace("Called listWorkRequestLogs"); - final ListWorkRequestLogsRequest interceptedRequest = - ListWorkRequestLogsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestLogsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "ListWorkRequestLogs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequestLogEntry/ListWorkRequestLogs"); - java.util.function.Function - transformer = - ListWorkRequestLogsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) { - LOG.trace("Called listWorkRequests"); - final ListWorkRequestsRequest interceptedRequest = - ListWorkRequestsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListWorkRequestsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "DistributedDbWorkRequestService", - "ListWorkRequests", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/globally-distributed-database/20260101/WorkRequest/ListWorkRequests"); - java.util.function.Function - transformer = - ListWorkRequestsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public DistributedDbWorkRequestServiceWaiters getWaiters() { - return waiters; - } - - @Override - public DistributedDbWorkRequestServicePaginators getPaginators() { - return paginators; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.java deleted file mode 100644 index 974a55128da..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/DistributedDbWorkRequestServicePaginators.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; - -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; - -/** - * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface - * to any list operations of DistributedDbWorkRequestService where multiple pages of data may be fetched. - * Two styles of iteration are supported: - * - *

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

        - * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DistributedDbWorkRequestServiceWaiters { - private final java.util.concurrent.ExecutorService executorService; - private final DistributedDbWorkRequestService client; - - public DistributedDbWorkRequestServiceWaiters( - java.util.concurrent.ExecutorService executorService, - DistributedDbWorkRequestService client) { - this.executorService = executorService; - this.client = client; - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. - * - * @param request the request to send - * @return a new {@code Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter - forWorkRequest(GetWorkRequestRequest request) { - return forWorkRequest(com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@linkcom.oracle.bmc.waiter. DelayStrategy} to use - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter - forWorkRequest( - GetWorkRequestRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { - return forWorkRequest( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request); - } - - // Helper method to create a new Waiter for WorkRequest. - private com.oracle.bmc.waiter.Waiter - forWorkRequest( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetWorkRequestRequest request) { - return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( - executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetWorkRequestRequest, GetWorkRequestResponse>() { - @Override - public GetWorkRequestResponse apply(GetWorkRequestRequest request) { - return client.getWorkRequest(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetWorkRequestResponse response) { - // work requests are complete once the time finished is available - return response.getWorkRequest().getTimeFinished() != null; - } - }, - false), - request); - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java deleted file mode 100644 index d8d4422f585..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/SdkClientsMetadata.java +++ /dev/null @@ -1,20 +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.SdkClients; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@SdkClients({ - DistributedAutonomousDbServiceAsyncClient.class, - DistributedAutonomousDbServiceClient.class, - DistributedDbPrivateEndpointServiceAsyncClient.class, - DistributedDbPrivateEndpointServiceClient.class, - DistributedDbServiceAsyncClient.class, - DistributedDbServiceClient.class, - DistributedDbWorkRequestServiceAsyncClient.class, - DistributedDbWorkRequestServiceClient.class -}) -public final class SdkClientsMetadata {} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.java deleted file mode 100644 index 6a009de041a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedAutonomousDatabaseGdsControlNodeConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedAutonomousDatabaseGdsControlNodeConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - AddDistributedAutonomousDatabaseGdsControlNodeConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedAutonomousDatabaseGdsControlNodeRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedAutonomousDatabaseGdsControlNodeRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedAutonomousDatabaseGdsControlNodeRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getAddDistributedAutonomousDatabaseGdsControlNodeDetails(), - "addDistributedAutonomousDatabaseGdsControlNodeDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("addGdsControlNode"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.AddDistributedAutonomousDatabaseGdsControlNodeResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedAutonomousDatabaseGdsControlNodeResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java deleted file mode 100644 index 9b69c8bb284..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/AddDistributedDatabaseGdsControlNodeConverter.java +++ /dev/null @@ -1,163 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(AddDistributedDatabaseGdsControlNodeConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedDatabaseGdsControlNodeRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedDatabaseGdsControlNodeRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .AddDistributedDatabaseGdsControlNodeRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getAddDistributedDatabaseGdsControlNodeDetails(), - "addDistributedDatabaseGdsControlNodeDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("addGdsControlNode"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.AddDistributedDatabaseGdsControlNodeResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .AddDistributedDatabaseGdsControlNodeResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.java deleted file mode 100644 index ab09a366bd5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDatabaseCompartmentConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDatabaseCompartmentConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ChangeDistributedAutonomousDatabaseCompartmentConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDatabaseCompartmentRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDatabaseCompartmentRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDatabaseCompartmentRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getChangeDistributedAutonomousDatabaseCompartmentDetails(), - "changeDistributedAutonomousDatabaseCompartmentDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("changeCompartment"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedAutonomousDatabaseCompartmentResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDatabaseCompartmentResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.java deleted file mode 100644 index 806a7b23eaf..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedAutonomousDbBackupConfigConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDbBackupConfigConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ChangeDistributedAutonomousDbBackupConfigConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDbBackupConfigRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDbBackupConfigRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedAutonomousDbBackupConfigRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getChangeDistributedAutonomousDbBackupConfigDetails(), - "changeDistributedAutonomousDbBackupConfigDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("changeDbBackupConfig"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedAutonomousDbBackupConfigResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedAutonomousDbBackupConfigResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java deleted file mode 100644 index 058d16d16e6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabaseCompartmentConverter.java +++ /dev/null @@ -1,163 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDatabaseCompartmentConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ChangeDistributedDatabaseCompartmentConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabaseCompartmentRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabaseCompartmentRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabaseCompartmentRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getChangeDistributedDatabaseCompartmentDetails(), - "changeDistributedDatabaseCompartmentDetails is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("changeCompartment"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedDatabaseCompartmentResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabaseCompartmentResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.java deleted file mode 100644 index 4dc2da85fc1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDatabasePrivateEndpointCompartmentConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDatabasePrivateEndpointCompartmentConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ChangeDistributedDatabasePrivateEndpointCompartmentConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabasePrivateEndpointCompartmentRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabasePrivateEndpointCompartmentRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDatabasePrivateEndpointCompartmentRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getChangeDistributedDatabasePrivateEndpointCompartmentDetails(), - "changeDistributedDatabasePrivateEndpointCompartmentDetails is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())) - .path("actions") - .path("changeCompartment"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedDatabasePrivateEndpointCompartmentResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDatabasePrivateEndpointCompartmentResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java deleted file mode 100644 index 51c36f83c22..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ChangeDistributedDbBackupConfigConverter.java +++ /dev/null @@ -1,161 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ChangeDistributedDbBackupConfigConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDbBackupConfigRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ChangeDistributedDbBackupConfigRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ChangeDistributedDbBackupConfigRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getChangeDistributedDbBackupConfigDetails(), - "changeDistributedDbBackupConfigDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("changeDbBackupConfig"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ChangeDistributedDbBackupConfigResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ChangeDistributedDbBackupConfigResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java deleted file mode 100644 index 2a682b79335..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.java +++ /dev/null @@ -1,177 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails(), - "configureDistributedAutonomousDatabaseAutoResourceManagementDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureAutoResourceManagement"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabaseAutoResourceManagementDetails( - response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.java deleted file mode 100644 index 7a2a6e38a27..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmWalletConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseGsmWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseGsmWalletConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getConfigureDistributedAutonomousDatabaseGsmWalletDetails(), - "configureDistributedAutonomousDatabaseGsmWalletDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureGsmWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseGsmWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmWalletResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.java deleted file mode 100644 index 80b489d4f74..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseGsmsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseGsmsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseGsmsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseGsmsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getConfigureDistributedAutonomousDatabaseGsmsDetails(), - "configureDistributedAutonomousDatabaseGsmsDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureGsms"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseGsmsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseGsmsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.java deleted file mode 100644 index da80c23e017..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedAutonomousDatabaseShardingConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseShardingConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedAutonomousDatabaseShardingConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseShardingRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseShardingRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedAutonomousDatabaseShardingRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("configureSharding"); - - if (request.getIsRebalanceRequired() != null) { - target = - target.queryParam( - "isRebalanceRequired", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsRebalanceRequired())); - } - - if (request.getCertificateId() != null) { - target = - target.queryParam( - "certificateId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCertificateId())); - } - - if (request.getCaBundleId() != null) { - target = - target.queryParam( - "caBundleId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCaBundleId())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedAutonomousDatabaseShardingResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedAutonomousDatabaseShardingResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java deleted file mode 100644 index 67ee1484892..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseAutoResourceManagementConverter.java +++ /dev/null @@ -1,176 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseAutoResourceManagementConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ConfigureDistributedDatabaseAutoResourceManagementConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseAutoResourceManagementRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseAutoResourceManagementRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseAutoResourceManagementRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getConfigureDistributedDatabaseAutoResourceManagementDetails(), - "configureDistributedDatabaseAutoResourceManagementDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("configureAutoResourceManagement"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedDatabaseAutoResourceManagementResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabaseAutoResourceManagementDetails( - response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseAutoResourceManagementResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java deleted file mode 100644 index 940b186c1c5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseGsmsConverter.java +++ /dev/null @@ -1,161 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseGsmsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ConfigureDistributedDatabaseGsmsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseGsmsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseGsmsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ConfigureDistributedDatabaseGsmsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getConfigureDistributedDatabaseGsmsDetails(), - "configureDistributedDatabaseGsmsDetails is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("configureGsms"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedDatabaseGsmsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseGsmsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java deleted file mode 100644 index d11b14b4b65..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ConfigureDistributedDatabaseShardingConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseShardingConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ConfigureDistributedDatabaseShardingConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseShardingRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseShardingRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ConfigureDistributedDatabaseShardingRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("configureSharding"); - - if (request.getIsRebalanceRequired() != null) { - target = - target.queryParam( - "isRebalanceRequired", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsRebalanceRequired())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ConfigureDistributedDatabaseShardingResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ConfigureDistributedDatabaseShardingResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 5a0636f2de4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedAutonomousDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CreateDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getCreateDistributedAutonomousDatabaseDetails(), - "createDistributedAutonomousDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedAutonomousDatabases"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.CreateDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabase(response.getItem()); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.java deleted file mode 100644 index dcfa8c987d8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CreateDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.CreateDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.CreateDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.CreateDistributedDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getCreateDistributedDatabaseDetails(), - "createDistributedDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedDatabases"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.CreateDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabase(response.getItem()); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.java deleted file mode 100644 index 8d156956c91..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/CreateDistributedDatabasePrivateEndpointConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabasePrivateEndpointConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - CreateDistributedDatabasePrivateEndpointConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedDatabasePrivateEndpointRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .CreateDistributedDatabasePrivateEndpointRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getCreateDistributedDatabasePrivateEndpointDetails(), - "createDistributedDatabasePrivateEndpointDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.CreateDistributedDatabasePrivateEndpointResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabasePrivateEndpoint(response.getItem()); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .CreateDistributedDatabasePrivateEndpointResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 6289c0492f4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedAutonomousDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DeleteDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.DeleteDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java deleted file mode 100644 index afd19181a06..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabaseConverter.java +++ /dev/null @@ -1,153 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DeleteDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.DeleteDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.DeleteDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.DeleteDistributedDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.DeleteDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.java deleted file mode 100644 index 59eddc9ed13..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/DeleteDistributedDatabasePrivateEndpointConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabasePrivateEndpointConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - DeleteDistributedDatabasePrivateEndpointConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedDatabasePrivateEndpointRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .DeleteDistributedDatabasePrivateEndpointRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.DeleteDistributedDatabasePrivateEndpointResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .DeleteDistributedDatabasePrivateEndpointResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java deleted file mode 100644 index 5ed6b8cbc62..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedAutonomousDatabaseWalletConverter.java +++ /dev/null @@ -1,189 +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.internal.http; - -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedAutonomousDatabaseWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GenerateDistributedAutonomousDatabaseWalletConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedAutonomousDatabaseWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedAutonomousDatabaseWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedAutonomousDatabaseWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getGenerateDistributedAutonomousDatabaseWalletDetails(), - "generateDistributedAutonomousDatabaseWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("generateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GenerateDistributedAutonomousDatabaseWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedAutonomousDatabaseWalletResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.java deleted file mode 100644 index 232bbbdb05a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GenerateDistributedDatabaseWalletConverter.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.distributeddatabasev26.internal.http; - -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateDistributedDatabaseWalletConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedDatabaseWalletRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GenerateDistributedDatabaseWalletRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GenerateDistributedDatabaseWalletRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getGenerateDistributedDatabaseWalletDetails(), - "generateDistributedDatabaseWalletDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("generateWallet"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept("application/octet-stream"); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GenerateDistributedDatabaseWalletResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - java.io.InputStream>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - java.io.InputStream.class); - } - - com.oracle.bmc.http.internal.WithHeaders - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.inputStream(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - java.util.Optional> contentLengthHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "content-length"); - if (contentLengthHeader.isPresent()) { - builder.contentLength( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "content-length", - contentLengthHeader.get().get(0), - Long.class)); - } - - java.util.Optional> lastModifiedHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "last-modified"); - if (lastModifiedHeader.isPresent()) { - builder.lastModified( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "last-modified", - lastModifiedHeader.get().get(0), - java.util.Date.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GenerateDistributedDatabaseWalletResponse - responseWrapper = builder.build(); - - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 4c877bd20a2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseConverter.java +++ /dev/null @@ -1,172 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); - - if (request.getMetadata() != null) { - target = - target.queryParam( - "metadata", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfNoneMatch() != null) { - ib.header("if-none-match", request.getIfNoneMatch()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabase(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java deleted file mode 100644 index bece5354522..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRaftMetricConverter.java +++ /dev/null @@ -1,155 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRaftMetricConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GetDistributedAutonomousDatabaseRaftMetricConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRaftMetricRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRaftMetricRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRaftMetricRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("raftMetrics"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedAutonomousDatabaseRaftMetricResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRaftMetric> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabaseRaftMetric(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRaftMetricResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java deleted file mode 100644 index b12630c4d3a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedAutonomousDatabaseRuChangeLogConverter.java +++ /dev/null @@ -1,164 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRuChangeLogConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - GetDistributedAutonomousDatabaseRuChangeLogConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRuChangeLogRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRuChangeLogRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedAutonomousDatabaseRuChangeLogRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("ruChangeLog"); - - if (request.getSourceShardName() != null) { - target = - target.queryParam( - "sourceShardName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSourceShardName())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedAutonomousDatabaseRuChangeLogResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRuChangeLog>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRuChangeLog - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRuChangeLog - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseRuChangeLog> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabaseRuChangeLog( - response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedAutonomousDatabaseRuChangeLogResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.java deleted file mode 100644 index fc940cbe436..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); - - if (request.getMetadata() != null) { - target = - target.queryParam( - "metadata", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfNoneMatch() != null) { - ib.header("if-none-match", request.getIfNoneMatch()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabase(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java deleted file mode 100644 index 2ae1694b4d2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabasePrivateEndpointConverter.java +++ /dev/null @@ -1,166 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabasePrivateEndpointConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabasePrivateEndpointConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabasePrivateEndpointRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabasePrivateEndpointRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfNoneMatch() != null) { - ib.header("if-none-match", request.getIfNoneMatch()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabasePrivateEndpointResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabasePrivateEndpoint(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabasePrivateEndpointResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java deleted file mode 100644 index a8ad99dcd3c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRaftMetricConverter.java +++ /dev/null @@ -1,151 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabaseRaftMetricConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabaseRaftMetricRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabaseRaftMetricRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRaftMetricRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("raftMetrics"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseRaftMetricResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRaftMetric> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabaseRaftMetric(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRaftMetricResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java deleted file mode 100644 index 259eb6f6580..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetDistributedDatabaseRuChangeLogConverter.java +++ /dev/null @@ -1,159 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRuChangeLogConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetDistributedDatabaseRuChangeLogConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabaseRuChangeLogRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .GetDistributedDatabaseRuChangeLogRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetDistributedDatabaseRuChangeLogRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("ruChangeLog"); - - if (request.getSourceShardName() != null) { - target = - target.queryParam( - "sourceShardName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSourceShardName())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetDistributedDatabaseRuChangeLogResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRuChangeLog>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRuChangeLog - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRuChangeLog - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseRuChangeLog> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabaseRuChangeLog(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetDistributedDatabaseRuChangeLogResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java deleted file mode 100644 index 726613405e7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/GetWorkRequestConverter.java +++ /dev/null @@ -1,152 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetWorkRequestConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetWorkRequestConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.GetWorkRequestRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.GetWorkRequestRequest request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.GetWorkRequestRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("workRequests") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getWorkRequestId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.GetWorkRequestResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequest> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.workRequest(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> retryAfterHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "retry-after"); - if (retryAfterHeader.isPresent()) { - builder.retryAfter( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "retry-after", - retryAfterHeader.get().get(0), - Integer.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .GetWorkRequestResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java deleted file mode 100644 index d00bb24e090..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedAutonomousDatabasesConverter.java +++ /dev/null @@ -1,249 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedAutonomousDatabasesConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListDistributedAutonomousDatabasesConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedAutonomousDatabasesRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedAutonomousDatabasesRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListDistributedAutonomousDatabasesRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedAutonomousDatabases"); - - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - - if (request.getCompartmentIdInSubtree() != null) { - target = - target.queryParam( - "compartmentIdInSubtree", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentIdInSubtree())); - } - - if (request.getPrivateEndpointId() != null) { - target = - target.queryParam( - "privateEndpointId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPrivateEndpointId())); - } - - if (request.getLifecycleState() != null) { - target = - target.queryParam( - "lifecycleState", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); - } - - if (request.getLimit() != null) { - target = - target.queryParam( - "limit", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); - } - - if (request.getPage() != null) { - target = - target.queryParam( - "page", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); - } - - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - - if (request.getIsAutoResourceManagementEnabled() != null) { - target = - target.queryParam( - "isAutoResourceManagementEnabled", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsAutoResourceManagementEnabled())); - } - - if (request.getDisplayName() != null) { - target = - target.queryParam( - "displayName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDisplayName())); - } - - if (request.getDbDeploymentType() != null) { - target = - target.queryParam( - "dbDeploymentType", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDbDeploymentType())); - } - - if (request.getMetadata() != null) { - target = - target.queryParam( - "metadata", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListDistributedAutonomousDatabasesResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseCollection> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabaseCollection(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcNextPageHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-next-page"); - if (opcNextPageHeader.isPresent()) { - builder.opcNextPage( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-next-page", - opcNextPageHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedAutonomousDatabasesResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java deleted file mode 100644 index fc2a9ecb4a0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasePrivateEndpointsConverter.java +++ /dev/null @@ -1,223 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ListDistributedDatabasePrivateEndpointsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedDatabasePrivateEndpointsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedDatabasePrivateEndpointsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ListDistributedDatabasePrivateEndpointsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints"); - - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - - if (request.getCompartmentIdInSubtree() != null) { - target = - target.queryParam( - "compartmentIdInSubtree", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentIdInSubtree())); - } - - if (request.getLifecycleState() != null) { - target = - target.queryParam( - "lifecycleState", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); - } - - if (request.getLimit() != null) { - target = - target.queryParam( - "limit", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); - } - - if (request.getPage() != null) { - target = - target.queryParam( - "page", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); - } - - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - - if (request.getDisplayName() != null) { - target = - target.queryParam( - "displayName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDisplayName())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListDistributedDatabasePrivateEndpointsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabasePrivateEndpointCollection( - response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcNextPageHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-next-page"); - if (opcNextPageHeader.isPresent()) { - builder.opcNextPage( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-next-page", - opcNextPageHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasePrivateEndpointsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java deleted file mode 100644 index 13580dca07c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListDistributedDatabasesConverter.java +++ /dev/null @@ -1,246 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListDistributedDatabasesConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.ListDistributedDatabasesRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListDistributedDatabasesRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListDistributedDatabasesRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("distributedDatabases"); - - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - - if (request.getCompartmentIdInSubtree() != null) { - target = - target.queryParam( - "compartmentIdInSubtree", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentIdInSubtree())); - } - - if (request.getPrivateEndpointId() != null) { - target = - target.queryParam( - "privateEndpointId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPrivateEndpointId())); - } - - if (request.getLifecycleState() != null) { - target = - target.queryParam( - "lifecycleState", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLifecycleState().getValue())); - } - - if (request.getLimit() != null) { - target = - target.queryParam( - "limit", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); - } - - if (request.getPage() != null) { - target = - target.queryParam( - "page", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); - } - - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - - if (request.getIsAutoResourceManagementEnabled() != null) { - target = - target.queryParam( - "isAutoResourceManagementEnabled", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsAutoResourceManagementEnabled())); - } - - if (request.getDisplayName() != null) { - target = - target.queryParam( - "displayName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDisplayName())); - } - - if (request.getDbDeploymentType() != null) { - target = - target.queryParam( - "dbDeploymentType", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getDbDeploymentType())); - } - - if (request.getMetadata() != null) { - target = - target.queryParam( - "metadata", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getMetadata())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListDistributedDatabasesResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseCollection> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabaseCollection(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcNextPageHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-next-page"); - if (opcNextPageHeader.isPresent()) { - builder.opcNextPage( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-next-page", - opcNextPageHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ListDistributedDatabasesResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java deleted file mode 100644 index aa1e2e337e4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestErrorsConverter.java +++ /dev/null @@ -1,187 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestErrorsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListWorkRequestErrorsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestErrorsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestErrorsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestErrorsRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("workRequests") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getWorkRequestId())) - .path("errors"); - - if (request.getPage() != null) { - target = - target.queryParam( - "page", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); - } - - if (request.getLimit() != null) { - target = - target.queryParam( - "limit", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); - } - - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestErrorsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestErrorsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestErrorsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestErrorCollection>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestErrorCollection - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestErrorCollection - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestErrorCollection> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.workRequestErrorCollection(response.getItem()); - - java.util.Optional> opcNextPageHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-next-page"); - if (opcNextPageHeader.isPresent()) { - builder.opcNextPage( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-next-page", - opcNextPageHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestErrorsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.java deleted file mode 100644 index 63152502fdd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestLogsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestLogsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListWorkRequestLogsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestLogsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestLogsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestLogsRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("workRequests") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getWorkRequestId())) - .path("logs"); - - if (request.getPage() != null) { - target = - target.queryParam( - "page", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); - } - - if (request.getLimit() != null) { - target = - target.queryParam( - "limit", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); - } - - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestLogsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestLogEntryCollection>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestLogEntryCollection - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestLogEntryCollection - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestLogEntryCollection> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.workRequestLogEntryCollection(response.getItem()); - - java.util.Optional> opcNextPageHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-next-page"); - if (opcNextPageHeader.isPresent()) { - builder.opcNextPage( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-next-page", - opcNextPageHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestLogsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java deleted file mode 100644 index 94d7249670f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ListWorkRequestsConverter.java +++ /dev/null @@ -1,210 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListWorkRequestsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ListWorkRequestsRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull(request.getCompartmentId(), "compartmentId is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget().path("/20260101").path("workRequests"); - - target = - target.queryParam( - "compartmentId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getCompartmentId())); - - if (request.getWorkRequestId() != null) { - target = - target.queryParam( - "workRequestId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getWorkRequestId())); - } - - if (request.getStatus() != null) { - target = - target.queryParam( - "status", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getStatus().getValue())); - } - - if (request.getResourceId() != null) { - target = - target.queryParam( - "resourceId", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceId())); - } - - if (request.getPage() != null) { - target = - target.queryParam( - "page", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getPage())); - } - - if (request.getLimit() != null) { - target = - target.queryParam( - "limit", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getLimit())); - } - - if (request.getSortOrder() != null) { - target = - target.queryParam( - "sortOrder", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortOrder().getValue())); - } - - if (request.getSortBy() != null) { - target = - target.queryParam( - "sortBy", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getSortBy().getValue())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ListWorkRequestsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestSummaryCollection>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestSummaryCollection - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestSummaryCollection - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .WorkRequestSummaryCollection> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.workRequestSummaryCollection(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcNextPageHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-next-page"); - if (opcNextPageHeader.isPresent()) { - builder.opcNextPage( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-next-page", - opcNextPageHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ListWorkRequestsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.java deleted file mode 100644 index 5dbbf2e6aa5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedAutonomousDatabaseReplicationUnitConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedAutonomousDatabaseReplicationUnitConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - MoveDistributedAutonomousDatabaseReplicationUnitConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedAutonomousDatabaseReplicationUnitRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedAutonomousDatabaseReplicationUnitRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedAutonomousDatabaseReplicationUnitRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getMoveDistributedAutonomousDatabaseReplicationUnitDetails(), - "moveDistributedAutonomousDatabaseReplicationUnitDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("moveReplicationUnit"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.MoveDistributedAutonomousDatabaseReplicationUnitResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedAutonomousDatabaseReplicationUnitResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java deleted file mode 100644 index 7883724abee..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/MoveDistributedDatabaseReplicationUnitConverter.java +++ /dev/null @@ -1,164 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedDatabaseReplicationUnitConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - MoveDistributedDatabaseReplicationUnitConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedDatabaseReplicationUnitRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedDatabaseReplicationUnitRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .MoveDistributedDatabaseReplicationUnitRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getMoveDistributedDatabaseReplicationUnitDetails(), - "moveDistributedDatabaseReplicationUnitDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("moveReplicationUnit"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.MoveDistributedDatabaseReplicationUnitResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .MoveDistributedDatabaseReplicationUnitResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 72123768714..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedAutonomousDatabaseConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(PatchDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getPatchDistributedAutonomousDatabaseDetails(), - "patchDistributedAutonomousDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.PatchDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java deleted file mode 100644 index 765d198e482..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabaseConverter.java +++ /dev/null @@ -1,156 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(PatchDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.PatchDistributedDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getPatchDistributedDatabaseDetails(), - "patchDistributedDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.PatchDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java deleted file mode 100644 index 46e0ac589cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/PatchDistributedDatabasePrivateEndpointConverter.java +++ /dev/null @@ -1,163 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabasePrivateEndpointConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - PatchDistributedDatabasePrivateEndpointConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedDatabasePrivateEndpointRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .PatchDistributedDatabasePrivateEndpointRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - Validate.notNull( - request.getPatchDistributedDatabasePrivateEndpointDetails(), - "patchDistributedDatabasePrivateEndpointDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.PatchDistributedDatabasePrivateEndpointResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .PatchDistributedDatabasePrivateEndpointResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.java deleted file mode 100644 index 5cefd732950..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedAutonomousDatabaseResourceConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RecreateFailedDistributedAutonomousDatabaseResourceConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - RecreateFailedDistributedAutonomousDatabaseResourceConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedAutonomousDatabaseResourceRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedAutonomousDatabaseResourceRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedAutonomousDatabaseResourceRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull(request.getResourceName(), "resourceName is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("recreateFailedResource"); - - target = - target.queryParam( - "resourceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceName())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RecreateFailedDistributedAutonomousDatabaseResourceResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedAutonomousDatabaseResourceResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java deleted file mode 100644 index cede2d35ffa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RecreateFailedDistributedDatabaseResourceConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RecreateFailedDistributedDatabaseResourceConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - RecreateFailedDistributedDatabaseResourceConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedDatabaseResourceRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedDatabaseResourceRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .RecreateFailedDistributedDatabaseResourceRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull(request.getResourceName(), "resourceName is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("recreateFailedResource"); - - target = - target.queryParam( - "resourceName", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getResourceName())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RecreateFailedDistributedDatabaseResourceResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RecreateFailedDistributedDatabaseResourceResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java deleted file mode 100644 index 04ea03f5585..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ReinstateProxyInstanceConverter.java +++ /dev/null @@ -1,153 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ReinstateProxyInstanceConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.ReinstateProxyInstanceRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.ReinstateProxyInstanceRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ReinstateProxyInstanceRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())) - .path("actions") - .path("reinstateProxyInstance"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ReinstateProxyInstanceResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.ReinstateProxyInstanceResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ReinstateProxyInstanceResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ReinstateProxyInstanceResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.java deleted file mode 100644 index 14027af0d50..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedAutonomousDatabasePasswordsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RotateDistributedAutonomousDatabasePasswordsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - RotateDistributedAutonomousDatabasePasswordsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedAutonomousDatabasePasswordsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedAutonomousDatabasePasswordsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedAutonomousDatabasePasswordsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getRotateDistributedAutonomousDatabasePasswordsDetails(), - "rotateDistributedAutonomousDatabasePasswordsDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("rotateDbPasswords"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RotateDistributedAutonomousDatabasePasswordsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedAutonomousDatabasePasswordsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java deleted file mode 100644 index eb5623127e6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/RotateDistributedDatabasePasswordsConverter.java +++ /dev/null @@ -1,161 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class RotateDistributedDatabasePasswordsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(RotateDistributedDatabasePasswordsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedDatabasePasswordsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .RotateDistributedDatabasePasswordsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.RotateDistributedDatabasePasswordsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getRotateDistributedDatabasePasswordsDetails(), - "rotateDistributedDatabasePasswordsDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("rotateDbPasswords"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.RotateDistributedDatabasePasswordsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .RotateDistributedDatabasePasswordsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.java deleted file mode 100644 index b779f5d31db..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedAutonomousDatabaseGsmsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ScaleDistributedAutonomousDatabaseGsmsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ScaleDistributedAutonomousDatabaseGsmsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ScaleDistributedAutonomousDatabaseGsmsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ScaleDistributedAutonomousDatabaseGsmsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ScaleDistributedAutonomousDatabaseGsmsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getScaleDistributedAutonomousDatabaseGsmsDetails(), - "scaleDistributedAutonomousDatabaseGsmsDetails is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("scaleGsms"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ScaleDistributedAutonomousDatabaseGsmsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedAutonomousDatabaseGsmsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.java deleted file mode 100644 index cfb6e507333..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ScaleDistributedDatabaseGsmsConverter.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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ScaleDistributedDatabaseGsmsConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ScaleDistributedDatabaseGsmsConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.ScaleDistributedDatabaseGsmsRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ScaleDistributedDatabaseGsmsRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ScaleDistributedDatabaseGsmsRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notNull( - request.getScaleDistributedDatabaseGsmsDetails(), - "scaleDistributedDatabaseGsmsDetails is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("scaleGsms"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ScaleDistributedDatabaseGsmsResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ScaleDistributedDatabaseGsmsResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index c48eedbceec..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedAutonomousDatabaseConverter.java +++ /dev/null @@ -1,159 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StartDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .StartDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .StartDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StartDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("startDatabase"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StartDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java deleted file mode 100644 index 66c7f29e4cc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StartDistributedDatabaseConverter.java +++ /dev/null @@ -1,155 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StartDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.StartDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.StartDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StartDistributedDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("startDatabase"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StartDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .StartDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 435bb8ea6c8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedAutonomousDatabaseConverter.java +++ /dev/null @@ -1,159 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StopDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .StopDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .StopDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StopDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("stopDatabase"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StopDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java deleted file mode 100644 index e2160779d6f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/StopDistributedDatabaseConverter.java +++ /dev/null @@ -1,152 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(StopDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.StopDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.StopDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.StopDistributedDatabaseRequest request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("stopDatabase"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.StopDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses.StopDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.StopDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .StopDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java deleted file mode 100644 index 2f4467718bb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedAutonomousDatabaseConverter.java +++ /dev/null @@ -1,168 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedAutonomousDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(UpdateDistributedAutonomousDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedAutonomousDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedAutonomousDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedAutonomousDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - Validate.notNull( - request.getUpdateDistributedAutonomousDatabaseDetails(), - "updateDistributedAutonomousDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.UpdateDistributedAutonomousDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabase> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedAutonomousDatabase(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedAutonomousDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java deleted file mode 100644 index b11e60a336d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabaseConverter.java +++ /dev/null @@ -1,163 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(UpdateDistributedDatabaseConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests.UpdateDistributedDatabaseRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests.UpdateDistributedDatabaseRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.UpdateDistributedDatabaseRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - Validate.notNull( - request.getUpdateDistributedDatabaseDetails(), - "updateDistributedDatabaseDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.UpdateDistributedDatabaseResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabase> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse.builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabase(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabaseResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java deleted file mode 100644 index 01c04816f83..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/UpdateDistributedDatabasePrivateEndpointConverter.java +++ /dev/null @@ -1,174 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabasePrivateEndpointConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - UpdateDistributedDatabasePrivateEndpointConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedDatabasePrivateEndpointRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedDatabasePrivateEndpointRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .UpdateDistributedDatabasePrivateEndpointRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabasePrivateEndpointId(), - "distributedDatabasePrivateEndpointId must not be blank"); - Validate.notNull( - request.getUpdateDistributedDatabasePrivateEndpointDetails(), - "updateDistributedDatabasePrivateEndpointDetails is required"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabasePrivateEndpoints") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabasePrivateEndpointId())); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.UpdateDistributedDatabasePrivateEndpointResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint>> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint - .class, - serviceDetails.get()); - } else { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint - .class); - } - - com.oracle.bmc.http.internal.WithHeaders< - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpoint> - response = responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - builder.distributedDatabasePrivateEndpoint(response.getItem()); - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .UpdateDistributedDatabasePrivateEndpointResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java deleted file mode 100644 index 5c60b08e56a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseCaBundleConverter.java +++ /dev/null @@ -1,162 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseCaBundleConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ValidateDistributedAutonomousDatabaseCaBundleConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseCaBundleRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseCaBundleRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseCaBundleRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("validateCaBundle"); - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ValidateDistributedAutonomousDatabaseCaBundleResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseCaBundleResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java deleted file mode 100644 index 1e43eca8b71..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedAutonomousDatabaseNetworkConverter.java +++ /dev/null @@ -1,170 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseNetworkConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger( - ValidateDistributedAutonomousDatabaseNetworkConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseNetworkRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseNetworkRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedAutonomousDatabaseNetworkRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedAutonomousDatabaseId(), - "distributedAutonomousDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedAutonomousDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedAutonomousDatabaseId())) - .path("actions") - .path("validateNetwork"); - - if (request.getIsSurrogate() != null) { - target = - target.queryParam( - "isSurrogate", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsSurrogate())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ValidateDistributedAutonomousDatabaseNetworkResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - .Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedAutonomousDatabaseNetworkResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java deleted file mode 100644 index ab51065f979..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/internal/http/ValidateDistributedDatabaseNetworkConverter.java +++ /dev/null @@ -1,166 +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.internal.http; - -import com.oracle.bmc.http.internal.ResponseHelper; -import com.oracle.bmc.distributeddatabasev26.model.*; -import com.oracle.bmc.distributeddatabasev26.requests.*; -import com.oracle.bmc.distributeddatabasev26.responses.*; -import com.oracle.bmc.util.internal.Validate; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedDatabaseNetworkConverter { - private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2 - RESPONSE_CONVERSION_FACTORY = - new com.oracle.bmc.http.internal.ResponseConversionFunctionFactoryV2(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ValidateDistributedDatabaseNetworkConverter.class); - - public static com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedDatabaseNetworkRequest - interceptRequest( - com.oracle.bmc.distributeddatabasev26.requests - .ValidateDistributedDatabaseNetworkRequest - request) { - - return request; - } - - public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( - com.oracle.bmc.http.internal.RestClient client, - com.oracle.bmc.distributeddatabasev26.requests.ValidateDistributedDatabaseNetworkRequest - request) { - Validate.notNull(request, "request instance is required"); - Validate.notBlank( - request.getDistributedDatabaseId(), "distributedDatabaseId must not be blank"); - - com.oracle.bmc.http.internal.WrappedWebTarget target = - client.getBaseTarget() - .path("/20260101") - .path("distributedDatabases") - .path( - com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( - request.getDistributedDatabaseId())) - .path("actions") - .path("validateNetwork"); - - if (request.getIsSurrogate() != null) { - target = - target.queryParam( - "isSurrogate", - com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( - request.getIsSurrogate())); - } - - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); - - ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); - - if (request.getIfMatch() != null) { - ib.header("if-match", request.getIfMatch()); - } - - if (request.getOpcRetryToken() != null) { - ib.header("opc-retry-token", request.getOpcRetryToken()); - } - - if (request.getOpcRequestId() != null) { - ib.header("opc-request-id", request.getOpcRequestId()); - } - - if (client.getClientConfigurator() != null) { - client.getClientConfigurator().customizeRequest(request, ib); - } - return ib; - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse> - fromResponse() { - return fromResponse(java.util.Optional.empty()); - } - - public static java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse> - fromResponse(java.util.Optional serviceDetails) { - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse> - transformer = - new java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse>() { - @Override - public com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse - apply(javax.ws.rs.core.Response rawResponse) { - LOG.trace( - "Transform function invoked for com.oracle.bmc.distributeddatabasev26.responses.ValidateDistributedDatabaseNetworkResponse"); - final java.util.function.Function< - javax.ws.rs.core.Response, - com.oracle.bmc.http.internal.WithHeaders> - responseFn; - if (serviceDetails.isPresent()) { - responseFn = - RESPONSE_CONVERSION_FACTORY.create( - serviceDetails.get()); - } else { - responseFn = RESPONSE_CONVERSION_FACTORY.create(); - } - - com.oracle.bmc.http.internal.WithHeaders response = - responseFn.apply(rawResponse); - javax.ws.rs.core.MultivaluedMap headers = - response.getHeaders(); - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse.Builder - builder = - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse - .builder() - .__httpStatusCode__(rawResponse.getStatus()) - .headers(headers); - - java.util.Optional> opcWorkRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-work-request-id"); - if (opcWorkRequestIdHeader.isPresent()) { - builder.opcWorkRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-work-request-id", - opcWorkRequestIdHeader.get().get(0), - String.class)); - } - - java.util.Optional> opcRequestIdHeader = - com.oracle.bmc.http.internal.HeaderUtils.getHeadersWithName( - headers, "opc-request-id"); - if (opcRequestIdHeader.isPresent()) { - builder.opcRequestId( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "opc-request-id", - opcRequestIdHeader.get().get(0), - String.class)); - } - - com.oracle.bmc.distributeddatabasev26.responses - .ValidateDistributedDatabaseNetworkResponse - responseWrapper = builder.build(); - - ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); - return responseWrapper; - } - }; - return transformer; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java deleted file mode 100644 index 87a759e84be..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ActionType.java +++ /dev/null @@ -1,58 +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 types of actions. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum ActionType { - Created("CREATED"), - Updated("UPDATED"), - Deleted("DELETED"), - InProgress("IN_PROGRESS"), - Related("RELATED"), - Failed("FAILED"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(ActionType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ActionType v : ActionType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - ActionType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ActionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.java deleted file mode 100644 index bd6e3e4eaae..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedAutonomousDatabaseGdsControlNodeDetails.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class AddDistributedAutonomousDatabaseGdsControlNodeDetails - extends com.oracle.bmc.http.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 c0aa7bb7c51..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AddDistributedDatabaseGdsControlNodeDetails.java +++ /dev/null @@ -1,177 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class AddDistributedDatabaseGdsControlNodeDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"publicSshKey", "subnetId"}) - public AddDistributedDatabaseGdsControlNodeDetails(String publicSshKey, String subnetId) { - super(); - this.publicSshKey = publicSshKey; - this.subnetId = subnetId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The public sshKey for Global database services control(GDS CTL) node. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("publicSshKey") - private String publicSshKey; - - /** - * The public sshKey for Global database services control(GDS CTL) node. - * @param publicSshKey the value to set - * @return this builder - **/ - public Builder publicSshKey(String publicSshKey) { - this.publicSshKey = publicSshKey; - this.__explicitlySet__.add("publicSshKey"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet on which the Global database services control(GDS CTL) node should be created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet on which the Global database services control(GDS CTL) node should be created. - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AddDistributedDatabaseGdsControlNodeDetails build() { - AddDistributedDatabaseGdsControlNodeDetails model = - new AddDistributedDatabaseGdsControlNodeDetails( - this.publicSshKey, this.subnetId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AddDistributedDatabaseGdsControlNodeDetails model) { - if (model.wasPropertyExplicitlySet("publicSshKey")) { - this.publicSshKey(model.getPublicSshKey()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The public sshKey for Global database services control(GDS CTL) node. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("publicSshKey") - private final String publicSshKey; - - /** - * The public sshKey for Global database services control(GDS CTL) node. - * @return the value - **/ - public String getPublicSshKey() { - return publicSshKey; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet on which the Global database services control(GDS CTL) node should be created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet on which the Global database services control(GDS CTL) node should be created. - * @return the value - **/ - public String getSubnetId() { - return subnetId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AddDistributedDatabaseGdsControlNodeDetails("); - sb.append("super=").append(super.toString()); - sb.append("publicSshKey=").append(String.valueOf(this.publicSshKey)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AddDistributedDatabaseGdsControlNodeDetails)) { - return false; - } - - AddDistributedDatabaseGdsControlNodeDetails other = - (AddDistributedDatabaseGdsControlNodeDetails) o; - return java.util.Objects.equals(this.publicSshKey, other.publicSshKey) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.publicSshKey == null ? 43 : this.publicSshKey.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java deleted file mode 100644 index 7491bd7e0e3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutoResourceManagementConfigurationDetails.java +++ /dev/null @@ -1,577 +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; - -/** - * Automatic resource management configuration details for the Globally distributed database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutoResourceManagementConfigurationDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutoResourceManagementConfigurationDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "isEnabled", - "coolOffPeriodInMinutes", - "maxMoveRuAttempts", - "maxMoveRuUnit", - "mode", - "actionType", - "notificationTopicIds", - "streamIds" - }) - public AutoResourceManagementConfigurationDetails( - Boolean isEnabled, - Integer coolOffPeriodInMinutes, - Integer maxMoveRuAttempts, - MaxMoveRuUnit maxMoveRuUnit, - Mode mode, - ActionType actionType, - java.util.List notificationTopicIds, - java.util.List streamIds) { - super(); - this.isEnabled = isEnabled; - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.maxMoveRuUnit = maxMoveRuUnit; - this.mode = mode; - this.actionType = actionType; - this.notificationTopicIds = notificationTopicIds; - this.streamIds = streamIds; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @param isEnabled the value to set - * @return this builder - **/ - public Builder isEnabled(Boolean isEnabled) { - this.isEnabled = isEnabled; - this.__explicitlySet__.add("isEnabled"); - return this; - } - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @param coolOffPeriodInMinutes the value to set - * @return this builder - **/ - public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.__explicitlySet__.add("coolOffPeriodInMinutes"); - return this; - } - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @param maxMoveRuAttempts the value to set - * @return this builder - **/ - public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.__explicitlySet__.add("maxMoveRuAttempts"); - return this; - } - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @param maxMoveRuUnit the value to set - * @return this builder - **/ - public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { - this.maxMoveRuUnit = maxMoveRuUnit; - this.__explicitlySet__.add("maxMoveRuUnit"); - return this; - } - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @param mode the value to set - * @return this builder - **/ - public Builder mode(Mode mode) { - this.mode = mode; - this.__explicitlySet__.add("mode"); - return this; - } - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @param actionType the value to set - * @return this builder - **/ - public Builder actionType(ActionType actionType) { - this.actionType = actionType; - this.__explicitlySet__.add("actionType"); - return this; - } - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @param streamIds the value to set - * @return this builder - **/ - public Builder streamIds(java.util.List streamIds) { - this.streamIds = streamIds; - this.__explicitlySet__.add("streamIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutoResourceManagementConfigurationDetails build() { - AutoResourceManagementConfigurationDetails model = - new AutoResourceManagementConfigurationDetails( - this.isEnabled, - this.coolOffPeriodInMinutes, - this.maxMoveRuAttempts, - this.maxMoveRuUnit, - this.mode, - this.actionType, - this.notificationTopicIds, - this.streamIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutoResourceManagementConfigurationDetails model) { - if (model.wasPropertyExplicitlySet("isEnabled")) { - this.isEnabled(model.getIsEnabled()); - } - if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { - this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { - this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { - this.maxMoveRuUnit(model.getMaxMoveRuUnit()); - } - if (model.wasPropertyExplicitlySet("mode")) { - this.mode(model.getMode()); - } - if (model.wasPropertyExplicitlySet("actionType")) { - this.actionType(model.getActionType()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("streamIds")) { - this.streamIds(model.getStreamIds()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private final Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @return the value - **/ - public Boolean getIsEnabled() { - return isEnabled; - } - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private final Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @return the value - **/ - public Integer getCoolOffPeriodInMinutes() { - return coolOffPeriodInMinutes; - } - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private final Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @return the value - **/ - public Integer getMaxMoveRuAttempts() { - return maxMoveRuAttempts; - } - - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - public enum MaxMoveRuUnit { - Hour("HOUR"), - Day("DAY"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(MaxMoveRuUnit.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - MaxMoveRuUnit(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static MaxMoveRuUnit create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'MaxMoveRuUnit', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private final MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @return the value - **/ - public MaxMoveRuUnit getMaxMoveRuUnit() { - return maxMoveRuUnit; - } - - /** - * Mode of autoResourceManagement execution. - **/ - public enum Mode { - Automatic("AUTOMATIC"), - Recommendation("RECOMMENDATION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Mode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Mode v : Mode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Mode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Mode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); - return UnknownEnumValue; - } - }; - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private final Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @return the value - **/ - public Mode getMode() { - return mode; - } - - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - public enum ActionType { - Move("MOVE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ActionType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ActionType v : ActionType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - ActionType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ActionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private final ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @return the value - **/ - public ActionType getActionType() { - return actionType; - } - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private final java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @return the value - **/ - public java.util.List getStreamIds() { - return streamIds; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutoResourceManagementConfigurationDetails("); - sb.append("super=").append(super.toString()); - sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); - sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); - sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); - sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); - sb.append(", mode=").append(String.valueOf(this.mode)); - sb.append(", actionType=").append(String.valueOf(this.actionType)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", streamIds=").append(String.valueOf(this.streamIds)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutoResourceManagementConfigurationDetails)) { - return false; - } - - AutoResourceManagementConfigurationDetails other = - (AutoResourceManagementConfigurationDetails) o; - return java.util.Objects.equals(this.isEnabled, other.isEnabled) - && java.util.Objects.equals( - this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) - && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) - && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) - && java.util.Objects.equals(this.mode, other.mode) - && java.util.Objects.equals(this.actionType, other.actionType) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.streamIds, other.streamIds) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); - result = - (result * PRIME) - + (this.coolOffPeriodInMinutes == null - ? 43 - : this.coolOffPeriodInMinutes.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); - result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); - result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java deleted file mode 100644 index 134b04c6577..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpace.java +++ /dev/null @@ -1,265 +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; - -/** - * Composite data guard shard space details for a Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousCompositeDataGuardShardSpace.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousCompositeDataGuardShardSpace - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "originalReplica", - "dataGuardReplicas" - }) - public AutonomousCompositeDataGuardShardSpace( - String name, - Integer chunkCount, - AutonomousCompositeDataGuardShardSpaceReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private AutonomousCompositeDataGuardShardSpaceReplica originalReplica; - - public Builder originalReplica( - AutonomousCompositeDataGuardShardSpaceReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replica associated with the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replica associated with the shard. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousCompositeDataGuardShardSpace build() { - AutonomousCompositeDataGuardShardSpace model = - new AutonomousCompositeDataGuardShardSpace( - this.name, - this.chunkCount, - this.originalReplica, - this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousCompositeDataGuardShardSpace model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final AutonomousCompositeDataGuardShardSpaceReplica originalReplica; - - public AutonomousCompositeDataGuardShardSpaceReplica getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replica associated with the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details of data guard replica associated with the shard. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousCompositeDataGuardShardSpace("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousCompositeDataGuardShardSpace)) { - return false; - } - - AutonomousCompositeDataGuardShardSpace other = (AutonomousCompositeDataGuardShardSpace) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java deleted file mode 100644 index d106b37025e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeDataGuardShardSpaceReplica.java +++ /dev/null @@ -1,189 +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 composite data guard replica details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousCompositeDataGuardShardSpaceReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousCompositeDataGuardShardSpaceReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public AutonomousCompositeDataGuardShardSpaceReplica( - String name, java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousCompositeDataGuardShardSpaceReplica build() { - AutonomousCompositeDataGuardShardSpaceReplica model = - new AutonomousCompositeDataGuardShardSpaceReplica(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousCompositeDataGuardShardSpaceReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousCompositeDataGuardShardSpaceReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousCompositeDataGuardShardSpaceReplica)) { - return false; - } - - AutonomousCompositeDataGuardShardSpaceReplica other = - (AutonomousCompositeDataGuardShardSpaceReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java deleted file mode 100644 index 79e989f2423..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeRaftShardSpace.java +++ /dev/null @@ -1,278 +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; - -/** - * Composite raft shard space details for a Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousCompositeRaftShardSpace.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousCompositeRaftShardSpace - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "replicationUnitCount", - "raftClusters" - }) - public AutonomousCompositeRaftShardSpace( - String name, - Integer chunkCount, - Integer replicationUnitCount, - java.util.List raftClusters) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.replicationUnitCount = replicationUnitCount; - this.raftClusters = raftClusters; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @param replicationUnitCount the value to set - * @return this builder - **/ - public Builder replicationUnitCount(Integer replicationUnitCount) { - this.replicationUnitCount = replicationUnitCount; - this.__explicitlySet__.add("replicationUnitCount"); - return this; - } - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @param raftClusters the value to set - * @return this builder - **/ - public Builder raftClusters( - java.util.List raftClusters) { - this.raftClusters = raftClusters; - this.__explicitlySet__.add("raftClusters"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousCompositeRaftShardSpace build() { - AutonomousCompositeRaftShardSpace model = - new AutonomousCompositeRaftShardSpace( - this.name, - this.chunkCount, - this.replicationUnitCount, - this.raftClusters); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousCompositeRaftShardSpace model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("replicationUnitCount")) { - this.replicationUnitCount(model.getReplicationUnitCount()); - } - if (model.wasPropertyExplicitlySet("raftClusters")) { - this.raftClusters(model.getRaftClusters()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private final Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @return the value - **/ - public Integer getReplicationUnitCount() { - return replicationUnitCount; - } - - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private final java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @return the value - **/ - public java.util.List getRaftClusters() { - return raftClusters; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousCompositeRaftShardSpace("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); - sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousCompositeRaftShardSpace)) { - return false; - } - - AutonomousCompositeRaftShardSpace other = (AutonomousCompositeRaftShardSpace) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) - && java.util.Objects.equals(this.raftClusters, other.raftClusters) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.replicationUnitCount == null - ? 43 - : this.replicationUnitCount.hashCode()); - result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java deleted file mode 100644 index 140c14c3c4c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousCompositeShardSpaceRaftCluster.java +++ /dev/null @@ -1,364 +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 cluster details for composite shard spaces. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousCompositeShardSpaceRaftCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousCompositeShardSpaceRaftCluster - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public AutonomousCompositeShardSpaceRaftCluster( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousCompositeShardSpaceRaftCluster build() { - AutonomousCompositeShardSpaceRaftCluster model = - new AutonomousCompositeShardSpaceRaftCluster( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousCompositeShardSpaceRaftCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(RuMode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousCompositeShardSpaceRaftCluster("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousCompositeShardSpaceRaftCluster)) { - return false; - } - - AutonomousCompositeShardSpaceRaftCluster other = - (AutonomousCompositeShardSpaceRaftCluster) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java deleted file mode 100644 index 1b59b35b25c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardDatabase.java +++ /dev/null @@ -1,168 +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; - -/** - * System data guard shard database details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousSystemDataGuardDatabase.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousSystemDataGuardDatabase - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public AutonomousSystemDataGuardDatabase( - AutonomousSystemDataGuardReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private AutonomousSystemDataGuardReplica originalReplica; - - public Builder originalReplica(AutonomousSystemDataGuardReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The system data guard replica details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The system data guard replica details. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousSystemDataGuardDatabase build() { - AutonomousSystemDataGuardDatabase model = - new AutonomousSystemDataGuardDatabase( - this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousSystemDataGuardDatabase model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final AutonomousSystemDataGuardReplica originalReplica; - - public AutonomousSystemDataGuardReplica getOriginalReplica() { - return originalReplica; - } - - /** - * The system data guard replica details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The system data guard replica details. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousSystemDataGuardDatabase("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousSystemDataGuardDatabase)) { - return false; - } - - AutonomousSystemDataGuardDatabase other = (AutonomousSystemDataGuardDatabase) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.java deleted file mode 100644 index bcbaff08dbc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemDataGuardReplica.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.model; - -/** - * System data guard replica details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousSystemDataGuardReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousSystemDataGuardReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public AutonomousSystemDataGuardReplica( - String name, java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousSystemDataGuardReplica build() { - AutonomousSystemDataGuardReplica model = - new AutonomousSystemDataGuardReplica(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousSystemDataGuardReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousSystemDataGuardReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousSystemDataGuardReplica)) { - return false; - } - - AutonomousSystemDataGuardReplica other = (AutonomousSystemDataGuardReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java deleted file mode 100644 index d3ba243ba69..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousSystemRaftCluster.java +++ /dev/null @@ -1,363 +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 system raft cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousSystemRaftCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousSystemRaftCluster - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public AutonomousSystemRaftCluster( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousSystemRaftCluster build() { - AutonomousSystemRaftCluster model = - new AutonomousSystemRaftCluster( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousSystemRaftCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(RuMode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousSystemRaftCluster("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousSystemRaftCluster)) { - return false; - } - - AutonomousSystemRaftCluster other = (AutonomousSystemRaftCluster) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java deleted file mode 100644 index d6a6b5a717d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpace.java +++ /dev/null @@ -1,218 +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; - -/** - * Distributed autonomous database user shard space details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousUserShardSpace.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousUserShardSpace - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) - public AutonomousUserShardSpace( - String name, - AutonomousUserShardSpaceReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private AutonomousUserShardSpaceReplica originalReplica; - - public Builder originalReplica(AutonomousUserShardSpaceReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * Details of data guard replicas for the user shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * Details of data guard replicas for the user shard space. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousUserShardSpace build() { - AutonomousUserShardSpace model = - new AutonomousUserShardSpace( - this.name, this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousUserShardSpace model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final AutonomousUserShardSpaceReplica originalReplica; - - public AutonomousUserShardSpaceReplica getOriginalReplica() { - return originalReplica; - } - - /** - * Details of data guard replicas for the user shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * Details of data guard replicas for the user shard space. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousUserShardSpace("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousUserShardSpace)) { - return false; - } - - AutonomousUserShardSpace other = (AutonomousUserShardSpace) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java deleted file mode 100644 index b5f16f7a5b5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/AutonomousUserShardSpaceReplica.java +++ /dev/null @@ -1,173 +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; - -/** - * User shard space replica details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AutonomousUserShardSpaceReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class AutonomousUserShardSpaceReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public AutonomousUserShardSpaceReplica( - String name, DistributedAutonomousDatabaseShardDatabase database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private DistributedAutonomousDatabaseShardDatabase database; - - public Builder database(DistributedAutonomousDatabaseShardDatabase database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AutonomousUserShardSpaceReplica build() { - AutonomousUserShardSpaceReplica model = - new AutonomousUserShardSpaceReplica(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AutonomousUserShardSpaceReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final DistributedAutonomousDatabaseShardDatabase database; - - public DistributedAutonomousDatabaseShardDatabase getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AutonomousUserShardSpaceReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AutonomousUserShardSpaceReplica)) { - return false; - } - - AutonomousUserShardSpaceReplica other = (AutonomousUserShardSpaceReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java deleted file mode 100644 index ccab319a946..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDatabaseCompartmentDetails.java +++ /dev/null @@ -1,145 +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 configuration details for moving the resource for Globally distributed autonomous database to other compartment. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedAutonomousDatabaseCompartmentDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedAutonomousDatabaseCompartmentDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedAutonomousDatabaseCompartmentDetails(String compartmentId) { - super(); - this.compartmentId = compartmentId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ChangeDistributedAutonomousDatabaseCompartmentDetails build() { - ChangeDistributedAutonomousDatabaseCompartmentDetails model = - new ChangeDistributedAutonomousDatabaseCompartmentDetails(this.compartmentId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedAutonomousDatabaseCompartmentDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedAutonomousDatabaseCompartmentDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentDetails)) { - return false; - } - - ChangeDistributedAutonomousDatabaseCompartmentDetails other = - (ChangeDistributedAutonomousDatabaseCompartmentDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java deleted file mode 100644 index 31b37a95b5d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedAutonomousDbBackupConfigDetails.java +++ /dev/null @@ -1,127 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedAutonomousDbBackupConfigDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"dbBackupConfig"}) - public ChangeDistributedAutonomousDbBackupConfigDetails( - DistributedAutonomousDbBackupConfig dbBackupConfig) { - super(); - this.dbBackupConfig = dbBackupConfig; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private DistributedAutonomousDbBackupConfig dbBackupConfig; - - public Builder dbBackupConfig(DistributedAutonomousDbBackupConfig dbBackupConfig) { - this.dbBackupConfig = dbBackupConfig; - this.__explicitlySet__.add("dbBackupConfig"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ChangeDistributedAutonomousDbBackupConfigDetails build() { - ChangeDistributedAutonomousDbBackupConfigDetails model = - new ChangeDistributedAutonomousDbBackupConfigDetails(this.dbBackupConfig); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedAutonomousDbBackupConfigDetails model) { - if (model.wasPropertyExplicitlySet("dbBackupConfig")) { - this.dbBackupConfig(model.getDbBackupConfig()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private final DistributedAutonomousDbBackupConfig dbBackupConfig; - - public DistributedAutonomousDbBackupConfig getDbBackupConfig() { - return dbBackupConfig; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedAutonomousDbBackupConfigDetails("); - sb.append("super=").append(super.toString()); - sb.append("dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigDetails)) { - return false; - } - - ChangeDistributedAutonomousDbBackupConfigDetails other = - (ChangeDistributedAutonomousDbBackupConfigDetails) o; - return java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java deleted file mode 100644 index a7c9e8b0e2f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabaseCompartmentDetails.java +++ /dev/null @@ -1,145 +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 configuration details for moving the resource for Globally distributed database to other compartment. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDatabaseCompartmentDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedDatabaseCompartmentDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedDatabaseCompartmentDetails(String compartmentId) { - super(); - this.compartmentId = compartmentId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ChangeDistributedDatabaseCompartmentDetails build() { - ChangeDistributedDatabaseCompartmentDetails model = - new ChangeDistributedDatabaseCompartmentDetails(this.compartmentId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDatabaseCompartmentDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDatabaseCompartmentDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDatabaseCompartmentDetails)) { - return false; - } - - ChangeDistributedDatabaseCompartmentDetails other = - (ChangeDistributedDatabaseCompartmentDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java deleted file mode 100644 index 121635d79e5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDatabasePrivateEndpointCompartmentDetails.java +++ /dev/null @@ -1,146 +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 configuration details for moving the resource for private endpoint to other compartment. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeDistributedDatabasePrivateEndpointCompartmentDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedDatabasePrivateEndpointCompartmentDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeDistributedDatabasePrivateEndpointCompartmentDetails(String compartmentId) { - super(); - this.compartmentId = compartmentId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ChangeDistributedDatabasePrivateEndpointCompartmentDetails build() { - ChangeDistributedDatabasePrivateEndpointCompartmentDetails model = - new ChangeDistributedDatabasePrivateEndpointCompartmentDetails( - this.compartmentId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDatabasePrivateEndpointCompartmentDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the resource to. - * - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDatabasePrivateEndpointCompartmentDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentDetails)) { - return false; - } - - ChangeDistributedDatabasePrivateEndpointCompartmentDetails other = - (ChangeDistributedDatabasePrivateEndpointCompartmentDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ChangeDistributedDbBackupConfigDetails.java deleted file mode 100644 index 3c914c82012..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ChangeDistributedDbBackupConfigDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"dbBackupConfig"}) - public ChangeDistributedDbBackupConfigDetails(DistributedDbBackupConfig dbBackupConfig) { - super(); - this.dbBackupConfig = dbBackupConfig; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private DistributedDbBackupConfig dbBackupConfig; - - public Builder dbBackupConfig(DistributedDbBackupConfig dbBackupConfig) { - this.dbBackupConfig = dbBackupConfig; - this.__explicitlySet__.add("dbBackupConfig"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ChangeDistributedDbBackupConfigDetails build() { - ChangeDistributedDbBackupConfigDetails model = - new ChangeDistributedDbBackupConfigDetails(this.dbBackupConfig); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeDistributedDbBackupConfigDetails model) { - if (model.wasPropertyExplicitlySet("dbBackupConfig")) { - this.dbBackupConfig(model.getDbBackupConfig()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private final DistributedDbBackupConfig dbBackupConfig; - - public DistributedDbBackupConfig getDbBackupConfig() { - return dbBackupConfig; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeDistributedDbBackupConfigDetails("); - sb.append("super=").append(super.toString()); - sb.append("dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDbBackupConfigDetails)) { - return false; - } - - ChangeDistributedDbBackupConfigDetails other = (ChangeDistributedDbBackupConfigDetails) o; - return java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.java deleted file mode 100644 index 861671f71f8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpace.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.model; - -/** - * Globally distributed database composite data guard shard space details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CompositeDataGuardShardSpace.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CompositeDataGuardShardSpace - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "originalReplica", - "dataGuardReplicas" - }) - public CompositeDataGuardShardSpace( - String name, - Integer chunkCount, - CompositeDataGuardShardSpaceReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CompositeDataGuardShardSpaceReplica originalReplica; - - public Builder originalReplica(CompositeDataGuardShardSpaceReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replica associated with the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replica associated with the shard. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CompositeDataGuardShardSpace build() { - CompositeDataGuardShardSpace model = - new CompositeDataGuardShardSpace( - this.name, - this.chunkCount, - this.originalReplica, - this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CompositeDataGuardShardSpace model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CompositeDataGuardShardSpaceReplica originalReplica; - - public CompositeDataGuardShardSpaceReplica getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replica associated with the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details of data guard replica associated with the shard. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CompositeDataGuardShardSpace("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CompositeDataGuardShardSpace)) { - return false; - } - - CompositeDataGuardShardSpace other = (CompositeDataGuardShardSpace) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java deleted file mode 100644 index 294d11aae29..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeDataGuardShardSpaceReplica.java +++ /dev/null @@ -1,187 +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 composite data guard replica details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CompositeDataGuardShardSpaceReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CompositeDataGuardShardSpaceReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public CompositeDataGuardShardSpaceReplica( - String name, java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @param databases the value to set - * @return this builder - **/ - public Builder databases(java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CompositeDataGuardShardSpaceReplica build() { - CompositeDataGuardShardSpaceReplica model = - new CompositeDataGuardShardSpaceReplica(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CompositeDataGuardShardSpaceReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CompositeDataGuardShardSpaceReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CompositeDataGuardShardSpaceReplica)) { - return false; - } - - CompositeDataGuardShardSpaceReplica other = (CompositeDataGuardShardSpaceReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java deleted file mode 100644 index 354633fda5b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeRaftShardSpace.java +++ /dev/null @@ -1,277 +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 composite raft shard space. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CompositeRaftShardSpace.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CompositeRaftShardSpace - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "replicationUnitCount", - "raftClusters" - }) - public CompositeRaftShardSpace( - String name, - Integer chunkCount, - Integer replicationUnitCount, - java.util.List raftClusters) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.replicationUnitCount = replicationUnitCount; - this.raftClusters = raftClusters; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @param replicationUnitCount the value to set - * @return this builder - **/ - public Builder replicationUnitCount(Integer replicationUnitCount) { - this.replicationUnitCount = replicationUnitCount; - this.__explicitlySet__.add("replicationUnitCount"); - return this; - } - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @param raftClusters the value to set - * @return this builder - **/ - public Builder raftClusters(java.util.List raftClusters) { - this.raftClusters = raftClusters; - this.__explicitlySet__.add("raftClusters"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CompositeRaftShardSpace build() { - CompositeRaftShardSpace model = - new CompositeRaftShardSpace( - this.name, - this.chunkCount, - this.replicationUnitCount, - this.raftClusters); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CompositeRaftShardSpace model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("replicationUnitCount")) { - this.replicationUnitCount(model.getReplicationUnitCount()); - } - if (model.wasPropertyExplicitlySet("raftClusters")) { - this.raftClusters(model.getRaftClusters()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private final Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @return the value - **/ - public Integer getReplicationUnitCount() { - return replicationUnitCount; - } - - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private final java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @return the value - **/ - public java.util.List getRaftClusters() { - return raftClusters; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CompositeRaftShardSpace("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); - sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CompositeRaftShardSpace)) { - return false; - } - - CompositeRaftShardSpace other = (CompositeRaftShardSpace) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) - && java.util.Objects.equals(this.raftClusters, other.raftClusters) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.replicationUnitCount == null - ? 43 - : this.replicationUnitCount.hashCode()); - result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java deleted file mode 100644 index 39acdc9efa7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CompositeShardSpaceRaftCluster.java +++ /dev/null @@ -1,362 +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 clusters details for composite shard spaces. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CompositeShardSpaceRaftCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CompositeShardSpaceRaftCluster - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public CompositeShardSpaceRaftCluster( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases(java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CompositeShardSpaceRaftCluster build() { - CompositeShardSpaceRaftCluster model = - new CompositeShardSpaceRaftCluster( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CompositeShardSpaceRaftCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(RuMode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CompositeShardSpaceRaftCluster("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CompositeShardSpaceRaftCluster)) { - return false; - } - - CompositeShardSpaceRaftCluster other = (CompositeShardSpaceRaftCluster) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.java deleted file mode 100644 index 4a4add55ea6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.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.distributeddatabasev26.model; - -/** - * Automatic resource management configuration details for the Globally distributed autonomous database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "isEnabled", - "coolOffPeriodInMinutes", - "maxMoveRuAttempts", - "maxMoveRuUnit", - "mode", - "actionType", - "notificationTopicIds", - "streamIds" - }) - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails( - Boolean isEnabled, - Integer coolOffPeriodInMinutes, - Integer maxMoveRuAttempts, - MaxMoveRuUnit maxMoveRuUnit, - Mode mode, - ActionType actionType, - java.util.List notificationTopicIds, - java.util.List streamIds) { - super(); - this.isEnabled = isEnabled; - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.maxMoveRuUnit = maxMoveRuUnit; - this.mode = mode; - this.actionType = actionType; - this.notificationTopicIds = notificationTopicIds; - this.streamIds = streamIds; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @param isEnabled the value to set - * @return this builder - **/ - public Builder isEnabled(Boolean isEnabled) { - this.isEnabled = isEnabled; - this.__explicitlySet__.add("isEnabled"); - return this; - } - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @param coolOffPeriodInMinutes the value to set - * @return this builder - **/ - public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.__explicitlySet__.add("coolOffPeriodInMinutes"); - return this; - } - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @param maxMoveRuAttempts the value to set - * @return this builder - **/ - public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.__explicitlySet__.add("maxMoveRuAttempts"); - return this; - } - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @param maxMoveRuUnit the value to set - * @return this builder - **/ - public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { - this.maxMoveRuUnit = maxMoveRuUnit; - this.__explicitlySet__.add("maxMoveRuUnit"); - return this; - } - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @param mode the value to set - * @return this builder - **/ - public Builder mode(Mode mode) { - this.mode = mode; - this.__explicitlySet__.add("mode"); - return this; - } - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @param actionType the value to set - * @return this builder - **/ - public Builder actionType(ActionType actionType) { - this.actionType = actionType; - this.__explicitlySet__.add("actionType"); - return this; - } - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @param streamIds the value to set - * @return this builder - **/ - public Builder streamIds(java.util.List streamIds) { - this.streamIds = streamIds; - this.__explicitlySet__.add("streamIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails build() { - ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails model = - new ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails( - this.isEnabled, - this.coolOffPeriodInMinutes, - this.maxMoveRuAttempts, - this.maxMoveRuUnit, - this.mode, - this.actionType, - this.notificationTopicIds, - this.streamIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails model) { - if (model.wasPropertyExplicitlySet("isEnabled")) { - this.isEnabled(model.getIsEnabled()); - } - if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { - this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { - this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { - this.maxMoveRuUnit(model.getMaxMoveRuUnit()); - } - if (model.wasPropertyExplicitlySet("mode")) { - this.mode(model.getMode()); - } - if (model.wasPropertyExplicitlySet("actionType")) { - this.actionType(model.getActionType()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("streamIds")) { - this.streamIds(model.getStreamIds()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private final Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @return the value - **/ - public Boolean getIsEnabled() { - return isEnabled; - } - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private final Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @return the value - **/ - public Integer getCoolOffPeriodInMinutes() { - return coolOffPeriodInMinutes; - } - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private final Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @return the value - **/ - public Integer getMaxMoveRuAttempts() { - return maxMoveRuAttempts; - } - - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - public enum MaxMoveRuUnit { - Hour("HOUR"), - Day("DAY"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { - map.put(v.getValue(), v); - } - } - - MaxMoveRuUnit(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static MaxMoveRuUnit create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid MaxMoveRuUnit: " + key); - } - }; - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private final MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @return the value - **/ - public MaxMoveRuUnit getMaxMoveRuUnit() { - return maxMoveRuUnit; - } - - /** - * Mode of autoResourceManagement execution. - **/ - public enum Mode { - Automatic("AUTOMATIC"), - Recommendation("RECOMMENDATION"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Mode v : Mode.values()) { - map.put(v.getValue(), v); - } - } - - Mode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Mode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Mode: " + key); - } - }; - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private final Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @return the value - **/ - public Mode getMode() { - return mode; - } - - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - public enum ActionType { - Move("MOVE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ActionType v : ActionType.values()) { - map.put(v.getValue(), v); - } - } - - ActionType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ActionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid ActionType: " + key); - } - }; - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private final ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @return the value - **/ - public ActionType getActionType() { - return actionType; - } - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private final java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @return the value - **/ - public java.util.List getStreamIds() { - return streamIds; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails("); - sb.append("super=").append(super.toString()); - sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); - sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); - sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); - sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); - sb.append(", mode=").append(String.valueOf(this.mode)); - sb.append(", actionType=").append(String.valueOf(this.actionType)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", streamIds=").append(String.valueOf(this.streamIds)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails)) { - return false; - } - - ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails other = - (ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails) o; - return java.util.Objects.equals(this.isEnabled, other.isEnabled) - && java.util.Objects.equals( - this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) - && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) - && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) - && java.util.Objects.equals(this.mode, other.mode) - && java.util.Objects.equals(this.actionType, other.actionType) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.streamIds, other.streamIds) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); - result = - (result * PRIME) - + (this.coolOffPeriodInMinutes == null - ? 43 - : this.coolOffPeriodInMinutes.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); - result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); - result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.java deleted file mode 100644 index 70111b57fc4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmWalletDetails.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedAutonomousDatabaseGsmWalletDetails - extends com.oracle.bmc.http.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 f1f255aeb90..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedAutonomousDatabaseGsmsDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedAutonomousDatabaseGsmsDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"oldGsmNames", "isLatestGsmImage"}) - public ConfigureDistributedAutonomousDatabaseGsmsDetails( - java.util.List oldGsmNames, Boolean isLatestGsmImage) { - super(); - this.oldGsmNames = oldGsmNames; - this.isLatestGsmImage = isLatestGsmImage; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") - private java.util.List oldGsmNames; - - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - * @param oldGsmNames the value to set - * @return this builder - **/ - public Builder oldGsmNames(java.util.List oldGsmNames) { - this.oldGsmNames = oldGsmNames; - this.__explicitlySet__.add("oldGsmNames"); - return this; - } - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") - private Boolean isLatestGsmImage; - - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - * @param isLatestGsmImage the value to set - * @return this builder - **/ - public Builder isLatestGsmImage(Boolean isLatestGsmImage) { - this.isLatestGsmImage = isLatestGsmImage; - this.__explicitlySet__.add("isLatestGsmImage"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ConfigureDistributedAutonomousDatabaseGsmsDetails build() { - ConfigureDistributedAutonomousDatabaseGsmsDetails model = - new ConfigureDistributedAutonomousDatabaseGsmsDetails( - this.oldGsmNames, this.isLatestGsmImage); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ConfigureDistributedAutonomousDatabaseGsmsDetails model) { - if (model.wasPropertyExplicitlySet("oldGsmNames")) { - this.oldGsmNames(model.getOldGsmNames()); - } - if (model.wasPropertyExplicitlySet("isLatestGsmImage")) { - this.isLatestGsmImage(model.getIsLatestGsmImage()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") - private final java.util.List oldGsmNames; - - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - * @return the value - **/ - public java.util.List getOldGsmNames() { - return oldGsmNames; - } - - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") - private final Boolean isLatestGsmImage; - - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - * @return the value - **/ - public Boolean getIsLatestGsmImage() { - return isLatestGsmImage; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ConfigureDistributedAutonomousDatabaseGsmsDetails("); - sb.append("super=").append(super.toString()); - sb.append("oldGsmNames=").append(String.valueOf(this.oldGsmNames)); - sb.append(", isLatestGsmImage=").append(String.valueOf(this.isLatestGsmImage)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseGsmsDetails)) { - return false; - } - - ConfigureDistributedAutonomousDatabaseGsmsDetails other = - (ConfigureDistributedAutonomousDatabaseGsmsDetails) o; - return java.util.Objects.equals(this.oldGsmNames, other.oldGsmNames) - && java.util.Objects.equals(this.isLatestGsmImage, other.isLatestGsmImage) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.oldGsmNames == null ? 43 : this.oldGsmNames.hashCode()); - result = - (result * PRIME) - + (this.isLatestGsmImage == null ? 43 : this.isLatestGsmImage.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java deleted file mode 100644 index dadcde7f659..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseAutoResourceManagementDetails.java +++ /dev/null @@ -1,540 +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; - -/** - * AutoResourceManagement configuration details for the Globally distributed database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ConfigureDistributedDatabaseAutoResourceManagementDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedDatabaseAutoResourceManagementDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "isEnabled", - "coolOffPeriodInMinutes", - "maxMoveRuAttempts", - "maxMoveRuUnit", - "mode", - "actionType", - "notificationTopicIds", - "streamIds" - }) - public ConfigureDistributedDatabaseAutoResourceManagementDetails( - Boolean isEnabled, - Integer coolOffPeriodInMinutes, - Integer maxMoveRuAttempts, - MaxMoveRuUnit maxMoveRuUnit, - Mode mode, - ActionType actionType, - java.util.List notificationTopicIds, - java.util.List streamIds) { - super(); - this.isEnabled = isEnabled; - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.maxMoveRuUnit = maxMoveRuUnit; - this.mode = mode; - this.actionType = actionType; - this.notificationTopicIds = notificationTopicIds; - this.streamIds = streamIds; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @param isEnabled the value to set - * @return this builder - **/ - public Builder isEnabled(Boolean isEnabled) { - this.isEnabled = isEnabled; - this.__explicitlySet__.add("isEnabled"); - return this; - } - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @param coolOffPeriodInMinutes the value to set - * @return this builder - **/ - public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.__explicitlySet__.add("coolOffPeriodInMinutes"); - return this; - } - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @param maxMoveRuAttempts the value to set - * @return this builder - **/ - public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.__explicitlySet__.add("maxMoveRuAttempts"); - return this; - } - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @param maxMoveRuUnit the value to set - * @return this builder - **/ - public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { - this.maxMoveRuUnit = maxMoveRuUnit; - this.__explicitlySet__.add("maxMoveRuUnit"); - return this; - } - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @param mode the value to set - * @return this builder - **/ - public Builder mode(Mode mode) { - this.mode = mode; - this.__explicitlySet__.add("mode"); - return this; - } - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @param actionType the value to set - * @return this builder - **/ - public Builder actionType(ActionType actionType) { - this.actionType = actionType; - this.__explicitlySet__.add("actionType"); - return this; - } - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @param streamIds the value to set - * @return this builder - **/ - public Builder streamIds(java.util.List streamIds) { - this.streamIds = streamIds; - this.__explicitlySet__.add("streamIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ConfigureDistributedDatabaseAutoResourceManagementDetails build() { - ConfigureDistributedDatabaseAutoResourceManagementDetails model = - new ConfigureDistributedDatabaseAutoResourceManagementDetails( - this.isEnabled, - this.coolOffPeriodInMinutes, - this.maxMoveRuAttempts, - this.maxMoveRuUnit, - this.mode, - this.actionType, - this.notificationTopicIds, - this.streamIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ConfigureDistributedDatabaseAutoResourceManagementDetails model) { - if (model.wasPropertyExplicitlySet("isEnabled")) { - this.isEnabled(model.getIsEnabled()); - } - if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { - this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { - this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { - this.maxMoveRuUnit(model.getMaxMoveRuUnit()); - } - if (model.wasPropertyExplicitlySet("mode")) { - this.mode(model.getMode()); - } - if (model.wasPropertyExplicitlySet("actionType")) { - this.actionType(model.getActionType()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("streamIds")) { - this.streamIds(model.getStreamIds()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private final Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @return the value - **/ - public Boolean getIsEnabled() { - return isEnabled; - } - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private final Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @return the value - **/ - public Integer getCoolOffPeriodInMinutes() { - return coolOffPeriodInMinutes; - } - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private final Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @return the value - **/ - public Integer getMaxMoveRuAttempts() { - return maxMoveRuAttempts; - } - - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - public enum MaxMoveRuUnit { - Hour("HOUR"), - Day("DAY"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { - map.put(v.getValue(), v); - } - } - - MaxMoveRuUnit(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static MaxMoveRuUnit create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid MaxMoveRuUnit: " + key); - } - }; - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private final MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @return the value - **/ - public MaxMoveRuUnit getMaxMoveRuUnit() { - return maxMoveRuUnit; - } - - /** - * Mode of autoResourceManagement execution. - **/ - public enum Mode { - Automatic("AUTOMATIC"), - Recommendation("RECOMMENDATION"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Mode v : Mode.values()) { - map.put(v.getValue(), v); - } - } - - Mode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Mode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Mode: " + key); - } - }; - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private final Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @return the value - **/ - public Mode getMode() { - return mode; - } - - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - public enum ActionType { - Move("MOVE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ActionType v : ActionType.values()) { - map.put(v.getValue(), v); - } - } - - ActionType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ActionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid ActionType: " + key); - } - }; - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private final ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @return the value - **/ - public ActionType getActionType() { - return actionType; - } - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private final java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @return the value - **/ - public java.util.List getStreamIds() { - return streamIds; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ConfigureDistributedDatabaseAutoResourceManagementDetails("); - sb.append("super=").append(super.toString()); - sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); - sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); - sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); - sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); - sb.append(", mode=").append(String.valueOf(this.mode)); - sb.append(", actionType=").append(String.valueOf(this.actionType)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", streamIds=").append(String.valueOf(this.streamIds)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseAutoResourceManagementDetails)) { - return false; - } - - ConfigureDistributedDatabaseAutoResourceManagementDetails other = - (ConfigureDistributedDatabaseAutoResourceManagementDetails) o; - return java.util.Objects.equals(this.isEnabled, other.isEnabled) - && java.util.Objects.equals( - this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) - && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) - && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) - && java.util.Objects.equals(this.mode, other.mode) - && java.util.Objects.equals(this.actionType, other.actionType) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.streamIds, other.streamIds) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); - result = - (result * PRIME) - + (this.coolOffPeriodInMinutes == null - ? 43 - : this.coolOffPeriodInMinutes.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); - result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); - result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java deleted file mode 100644 index ddd2ffe06f5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ConfigureDistributedDatabaseGsmsDetails.java +++ /dev/null @@ -1,187 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class ConfigureDistributedDatabaseGsmsDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"oldGsmNames", "isLatestGsmImage"}) - public ConfigureDistributedDatabaseGsmsDetails( - java.util.List oldGsmNames, Boolean isLatestGsmImage) { - super(); - this.oldGsmNames = oldGsmNames; - this.isLatestGsmImage = isLatestGsmImage; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") - private java.util.List oldGsmNames; - - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - * @param oldGsmNames the value to set - * @return this builder - **/ - public Builder oldGsmNames(java.util.List oldGsmNames) { - this.oldGsmNames = oldGsmNames; - this.__explicitlySet__.add("oldGsmNames"); - return this; - } - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") - private Boolean isLatestGsmImage; - - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - * @param isLatestGsmImage the value to set - * @return this builder - **/ - public Builder isLatestGsmImage(Boolean isLatestGsmImage) { - this.isLatestGsmImage = isLatestGsmImage; - this.__explicitlySet__.add("isLatestGsmImage"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ConfigureDistributedDatabaseGsmsDetails build() { - ConfigureDistributedDatabaseGsmsDetails model = - new ConfigureDistributedDatabaseGsmsDetails( - this.oldGsmNames, this.isLatestGsmImage); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ConfigureDistributedDatabaseGsmsDetails model) { - if (model.wasPropertyExplicitlySet("oldGsmNames")) { - this.oldGsmNames(model.getOldGsmNames()); - } - if (model.wasPropertyExplicitlySet("isLatestGsmImage")) { - this.isLatestGsmImage(model.getIsLatestGsmImage()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("oldGsmNames") - private final java.util.List oldGsmNames; - - /** - * Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured. - * @return the value - **/ - public java.util.List getOldGsmNames() { - return oldGsmNames; - } - - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isLatestGsmImage") - private final Boolean isLatestGsmImage; - - /** - * Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing - * GSM instances. - * - * @return the value - **/ - public Boolean getIsLatestGsmImage() { - return isLatestGsmImage; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ConfigureDistributedDatabaseGsmsDetails("); - sb.append("super=").append(super.toString()); - sb.append("oldGsmNames=").append(String.valueOf(this.oldGsmNames)); - sb.append(", isLatestGsmImage=").append(String.valueOf(this.isLatestGsmImage)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseGsmsDetails)) { - return false; - } - - ConfigureDistributedDatabaseGsmsDetails other = (ConfigureDistributedDatabaseGsmsDetails) o; - return java.util.Objects.equals(this.oldGsmNames, other.oldGsmNames) - && java.util.Objects.equals(this.isLatestGsmImage, other.isLatestGsmImage) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.oldGsmNames == null ? 43 : this.oldGsmNames.hashCode()); - result = - (result * PRIME) - + (this.isLatestGsmImage == null ? 43 : this.isLatestGsmImage.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java deleted file mode 100644 index b2122904a3b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDatabaseDetails.java +++ /dev/null @@ -1,114 +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 for creating a distributed autonomous database catalog. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateAutonomousCatalogDatabaseDetails.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.class, - name = "ADBD_EXISTING_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateAutonomousCatalogDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateAutonomousCatalogDatabaseDetails() { - super(); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCatalogDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCatalogDatabaseDetails)) { - return false; - } - - CreateAutonomousCatalogDatabaseDetails other = (CreateAutonomousCatalogDatabaseDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed autonomous database type. - * Use ADBD_EXISTING_CLUSTER for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. - * - **/ - public enum Source { - AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - map.put(v.getValue(), v); - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Source: " + key); - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java deleted file mode 100644 index 0c31a23051d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogDetails.java +++ /dev/null @@ -1,168 +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 distributed autonomous database catalog. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousCatalogDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousCatalogDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public CreateAutonomousCatalogDetails( - CreateAutonomousCatalogReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateAutonomousCatalogReplicaDetails originalReplica; - - public Builder originalReplica(CreateAutonomousCatalogReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * Details required to create data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * Details required to create data guard replicas for the catalog. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousCatalogDetails build() { - CreateAutonomousCatalogDetails model = - new CreateAutonomousCatalogDetails( - this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousCatalogDetails model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateAutonomousCatalogReplicaDetails originalReplica; - - public CreateAutonomousCatalogReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * Details required to create data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * Details required to create data guard replicas for the catalog. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCatalogDetails("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCatalogDetails)) { - return false; - } - - CreateAutonomousCatalogDetails other = (CreateAutonomousCatalogDetails) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java deleted file mode 100644 index a972535a7b0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCatalogReplicaDetails.java +++ /dev/null @@ -1,173 +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 catalog replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousCatalogReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousCatalogReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public CreateAutonomousCatalogReplicaDetails( - String name, CreateAutonomousCatalogDatabaseDetails database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private CreateAutonomousCatalogDatabaseDetails database; - - public Builder database(CreateAutonomousCatalogDatabaseDetails database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousCatalogReplicaDetails build() { - CreateAutonomousCatalogReplicaDetails model = - new CreateAutonomousCatalogReplicaDetails(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousCatalogReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final CreateAutonomousCatalogDatabaseDetails database; - - public CreateAutonomousCatalogDatabaseDetails getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCatalogReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCatalogReplicaDetails)) { - return false; - } - - CreateAutonomousCatalogReplicaDetails other = (CreateAutonomousCatalogReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.java deleted file mode 100644 index ddac3d62bb0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceDetails.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.model; - -/** - * Details required to create a composite data guard shard space for a Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousCompositeDataGuardShardSpaceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousCompositeDataGuardShardSpaceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "originalReplica", - "dataGuardReplicas" - }) - public CreateAutonomousCompositeDataGuardShardSpaceDetails( - String name, - Integer chunkCount, - CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica, - java.util.List - dataGuardReplicas) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica; - - public Builder originalReplica( - CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replica for the shard being created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List - dataGuardReplicas; - - /** - * The details of data guard replica for the shard being created. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List - dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousCompositeDataGuardShardSpaceDetails build() { - CreateAutonomousCompositeDataGuardShardSpaceDetails model = - new CreateAutonomousCompositeDataGuardShardSpaceDetails( - this.name, - this.chunkCount, - this.originalReplica, - this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousCompositeDataGuardShardSpaceDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails originalReplica; - - public CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replica for the shard being created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List - dataGuardReplicas; - - /** - * The details of data guard replica for the shard being created. - * @return the value - **/ - public java.util.List - getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCompositeDataGuardShardSpaceDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCompositeDataGuardShardSpaceDetails)) { - return false; - } - - CreateAutonomousCompositeDataGuardShardSpaceDetails other = - (CreateAutonomousCompositeDataGuardShardSpaceDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.java deleted file mode 100644 index 59363c7dd20..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.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 required to create a composite data guard shard space replica for a Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails( - String name, - java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails build() { - CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails model = - new CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails( - this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails)) { - return false; - } - - CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails other = - (CreateAutonomousCompositeDataGuardShardSpaceReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java deleted file mode 100644 index e91be131b55..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeRaftShardSpaceDetails.java +++ /dev/null @@ -1,281 +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 composite raft shard space for a Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousCompositeRaftShardSpaceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousCompositeRaftShardSpaceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "replicationUnitCount", - "raftClusters" - }) - public CreateAutonomousCompositeRaftShardSpaceDetails( - String name, - Integer chunkCount, - Integer replicationUnitCount, - java.util.List raftClusters) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.replicationUnitCount = replicationUnitCount; - this.raftClusters = raftClusters; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @param replicationUnitCount the value to set - * @return this builder - **/ - public Builder replicationUnitCount(Integer replicationUnitCount) { - this.replicationUnitCount = replicationUnitCount; - this.__explicitlySet__.add("replicationUnitCount"); - return this; - } - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @param raftClusters the value to set - * @return this builder - **/ - public Builder raftClusters( - java.util.List - raftClusters) { - this.raftClusters = raftClusters; - this.__explicitlySet__.add("raftClusters"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousCompositeRaftShardSpaceDetails build() { - CreateAutonomousCompositeRaftShardSpaceDetails model = - new CreateAutonomousCompositeRaftShardSpaceDetails( - this.name, - this.chunkCount, - this.replicationUnitCount, - this.raftClusters); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousCompositeRaftShardSpaceDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("replicationUnitCount")) { - this.replicationUnitCount(model.getReplicationUnitCount()); - } - if (model.wasPropertyExplicitlySet("raftClusters")) { - this.raftClusters(model.getRaftClusters()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private final Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @return the value - **/ - public Integer getReplicationUnitCount() { - return replicationUnitCount; - } - - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private final java.util.List - raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @return the value - **/ - public java.util.List getRaftClusters() { - return raftClusters; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCompositeRaftShardSpaceDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); - sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCompositeRaftShardSpaceDetails)) { - return false; - } - - CreateAutonomousCompositeRaftShardSpaceDetails other = - (CreateAutonomousCompositeRaftShardSpaceDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) - && java.util.Objects.equals(this.raftClusters, other.raftClusters) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.replicationUnitCount == null - ? 43 - : this.replicationUnitCount.hashCode()); - result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java deleted file mode 100644 index 2825e419fe6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousCompositeShardSpaceRaftClusterDetails.java +++ /dev/null @@ -1,352 +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 raft clusters for a composite shard space. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousCompositeShardSpaceRaftClusterDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousCompositeShardSpaceRaftClusterDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public CreateAutonomousCompositeShardSpaceRaftClusterDetails( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousCompositeShardSpaceRaftClusterDetails build() { - CreateAutonomousCompositeShardSpaceRaftClusterDetails model = - new CreateAutonomousCompositeShardSpaceRaftClusterDetails( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousCompositeShardSpaceRaftClusterDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - map.put(v.getValue(), v); - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid RuMode: " + key); - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousCompositeShardSpaceRaftClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousCompositeShardSpaceRaftClusterDetails)) { - return false; - } - - CreateAutonomousCompositeShardSpaceRaftClusterDetails other = - (CreateAutonomousCompositeShardSpaceRaftClusterDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java deleted file mode 100644 index 5248a77fcca..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardDatabaseDetails.java +++ /dev/null @@ -1,170 +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 system data guard shard. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousSystemDataGuardDatabaseDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousSystemDataGuardDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public CreateAutonomousSystemDataGuardDatabaseDetails( - CreateAutonomousSystemDataGuardReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateAutonomousSystemDataGuardReplicaDetails originalReplica; - - public Builder originalReplica( - CreateAutonomousSystemDataGuardReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details required to create system data guard replicas. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details required to create system data guard replicas. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousSystemDataGuardDatabaseDetails build() { - CreateAutonomousSystemDataGuardDatabaseDetails model = - new CreateAutonomousSystemDataGuardDatabaseDetails( - this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousSystemDataGuardDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateAutonomousSystemDataGuardReplicaDetails originalReplica; - - public CreateAutonomousSystemDataGuardReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * The details required to create system data guard replicas. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details required to create system data guard replicas. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousSystemDataGuardDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousSystemDataGuardDatabaseDetails)) { - return false; - } - - CreateAutonomousSystemDataGuardDatabaseDetails other = - (CreateAutonomousSystemDataGuardDatabaseDetails) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java deleted file mode 100644 index 174466a65d7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemDataGuardReplicaDetails.java +++ /dev/null @@ -1,190 +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 system data guard replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousSystemDataGuardReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousSystemDataGuardReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public CreateAutonomousSystemDataGuardReplicaDetails( - String name, - java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousSystemDataGuardReplicaDetails build() { - CreateAutonomousSystemDataGuardReplicaDetails model = - new CreateAutonomousSystemDataGuardReplicaDetails(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousSystemDataGuardReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousSystemDataGuardReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousSystemDataGuardReplicaDetails)) { - return false; - } - - CreateAutonomousSystemDataGuardReplicaDetails other = - (CreateAutonomousSystemDataGuardReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java deleted file mode 100644 index fa3c5938c09..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousSystemRaftClusterDetails.java +++ /dev/null @@ -1,352 +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 system raft cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousSystemRaftClusterDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousSystemRaftClusterDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public CreateAutonomousSystemRaftClusterDetails( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousSystemRaftClusterDetails build() { - CreateAutonomousSystemRaftClusterDetails model = - new CreateAutonomousSystemRaftClusterDetails( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousSystemRaftClusterDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - map.put(v.getValue(), v); - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid RuMode: " + key); - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousSystemRaftClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousSystemRaftClusterDetails)) { - return false; - } - - CreateAutonomousSystemRaftClusterDetails other = - (CreateAutonomousSystemRaftClusterDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.java deleted file mode 100644 index a179b4f938e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceDetails.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.model; - -/** - * Details required to create a user shard space. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousUserShardSpaceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousUserShardSpaceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) - public CreateAutonomousUserShardSpaceDetails( - String name, - CreateAutonomousUserShardSpaceReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateAutonomousUserShardSpaceReplicaDetails originalReplica; - - public Builder originalReplica( - CreateAutonomousUserShardSpaceReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * Details required to create data guard replicas for the user shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * Details required to create data guard replicas for the user shard space. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousUserShardSpaceDetails build() { - CreateAutonomousUserShardSpaceDetails model = - new CreateAutonomousUserShardSpaceDetails( - this.name, this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousUserShardSpaceDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateAutonomousUserShardSpaceReplicaDetails originalReplica; - - public CreateAutonomousUserShardSpaceReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * Details required to create data guard replicas for the user shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * Details required to create data guard replicas for the user shard space. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousUserShardSpaceDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousUserShardSpaceDetails)) { - return false; - } - - CreateAutonomousUserShardSpaceDetails other = (CreateAutonomousUserShardSpaceDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java deleted file mode 100644 index f56d2af9b73..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateAutonomousUserShardSpaceReplicaDetails.java +++ /dev/null @@ -1,174 +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 user shard space replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAutonomousUserShardSpaceReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateAutonomousUserShardSpaceReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public CreateAutonomousUserShardSpaceReplicaDetails( - String name, CreateDistributedAutonomousDatabaseShardDatabaseDetails database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private CreateDistributedAutonomousDatabaseShardDatabaseDetails database; - - public Builder database(CreateDistributedAutonomousDatabaseShardDatabaseDetails database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateAutonomousUserShardSpaceReplicaDetails build() { - CreateAutonomousUserShardSpaceReplicaDetails model = - new CreateAutonomousUserShardSpaceReplicaDetails(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAutonomousUserShardSpaceReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final CreateDistributedAutonomousDatabaseShardDatabaseDetails database; - - public CreateDistributedAutonomousDatabaseShardDatabaseDetails getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAutonomousUserShardSpaceReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateAutonomousUserShardSpaceReplicaDetails)) { - return false; - } - - CreateAutonomousUserShardSpaceReplicaDetails other = - (CreateAutonomousUserShardSpaceReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java deleted file mode 100644 index c8dbc7d5faa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceDetails.java +++ /dev/null @@ -1,268 +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 composite data guard shard space creation details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCompositeDataGuardShardSpaceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateCompositeDataGuardShardSpaceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "originalReplica", - "dataGuardReplicas" - }) - public CreateCompositeDataGuardShardSpaceDetails( - String name, - Integer chunkCount, - CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica; - - public Builder originalReplica( - CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replica for the shard being created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replica for the shard being created. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List - dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateCompositeDataGuardShardSpaceDetails build() { - CreateCompositeDataGuardShardSpaceDetails model = - new CreateCompositeDataGuardShardSpaceDetails( - this.name, - this.chunkCount, - this.originalReplica, - this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCompositeDataGuardShardSpaceDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateCompositeDataGuardShardSpaceReplicaDetails originalReplica; - - public CreateCompositeDataGuardShardSpaceReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replica for the shard being created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List - dataGuardReplicas; - - /** - * The details of data guard replica for the shard being created. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateCompositeDataGuardShardSpaceDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateCompositeDataGuardShardSpaceDetails)) { - return false; - } - - CreateCompositeDataGuardShardSpaceDetails other = - (CreateCompositeDataGuardShardSpaceDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java deleted file mode 100644 index 64203f78ed7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeDataGuardShardSpaceReplicaDetails.java +++ /dev/null @@ -1,189 +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 composite data guard shard space replica creation details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCompositeDataGuardShardSpaceReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateCompositeDataGuardShardSpaceReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public CreateCompositeDataGuardShardSpaceReplicaDetails( - String name, java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateCompositeDataGuardShardSpaceReplicaDetails build() { - CreateCompositeDataGuardShardSpaceReplicaDetails model = - new CreateCompositeDataGuardShardSpaceReplicaDetails(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCompositeDataGuardShardSpaceReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The details of composite data guard shard space replica databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of composite data guard shard space replica databases. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateCompositeDataGuardShardSpaceReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateCompositeDataGuardShardSpaceReplicaDetails)) { - return false; - } - - CreateCompositeDataGuardShardSpaceReplicaDetails other = - (CreateCompositeDataGuardShardSpaceReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java deleted file mode 100644 index ae521160a5f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeRaftShardSpaceDetails.java +++ /dev/null @@ -1,278 +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 composite raft shard space creation details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCompositeRaftShardSpaceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateCompositeRaftShardSpaceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "chunkCount", - "replicationUnitCount", - "raftClusters" - }) - public CreateCompositeRaftShardSpaceDetails( - String name, - Integer chunkCount, - Integer replicationUnitCount, - java.util.List raftClusters) { - super(); - this.name = name; - this.chunkCount = chunkCount; - this.replicationUnitCount = replicationUnitCount; - this.raftClusters = raftClusters; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @param chunkCount the value to set - * @return this builder - **/ - public Builder chunkCount(Integer chunkCount) { - this.chunkCount = chunkCount; - this.__explicitlySet__.add("chunkCount"); - return this; - } - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @param replicationUnitCount the value to set - * @return this builder - **/ - public Builder replicationUnitCount(Integer replicationUnitCount) { - this.replicationUnitCount = replicationUnitCount; - this.__explicitlySet__.add("replicationUnitCount"); - return this; - } - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @param raftClusters the value to set - * @return this builder - **/ - public Builder raftClusters( - java.util.List raftClusters) { - this.raftClusters = raftClusters; - this.__explicitlySet__.add("raftClusters"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateCompositeRaftShardSpaceDetails build() { - CreateCompositeRaftShardSpaceDetails model = - new CreateCompositeRaftShardSpaceDetails( - this.name, - this.chunkCount, - this.replicationUnitCount, - this.raftClusters); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCompositeRaftShardSpaceDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("chunkCount")) { - this.chunkCount(model.getChunkCount()); - } - if (model.wasPropertyExplicitlySet("replicationUnitCount")) { - this.replicationUnitCount(model.getReplicationUnitCount()); - } - if (model.wasPropertyExplicitlySet("raftClusters")) { - this.raftClusters(model.getRaftClusters()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Count of chunks associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("chunkCount") - private final Integer chunkCount; - - /** - * Count of chunks associated with the shard space. - * @return the value - **/ - public Integer getChunkCount() { - return chunkCount; - } - - /** - * Number of replication units in the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnitCount") - private final Integer replicationUnitCount; - - /** - * Number of replication units in the shard space. - * @return the value - **/ - public Integer getReplicationUnitCount() { - return replicationUnitCount; - } - - /** - * The details of raft clusters associated with the shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftClusters") - private final java.util.List raftClusters; - - /** - * The details of raft clusters associated with the shard space. - * @return the value - **/ - public java.util.List getRaftClusters() { - return raftClusters; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateCompositeRaftShardSpaceDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", chunkCount=").append(String.valueOf(this.chunkCount)); - sb.append(", replicationUnitCount=").append(String.valueOf(this.replicationUnitCount)); - sb.append(", raftClusters=").append(String.valueOf(this.raftClusters)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateCompositeRaftShardSpaceDetails)) { - return false; - } - - CreateCompositeRaftShardSpaceDetails other = (CreateCompositeRaftShardSpaceDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.chunkCount, other.chunkCount) - && java.util.Objects.equals(this.replicationUnitCount, other.replicationUnitCount) - && java.util.Objects.equals(this.raftClusters, other.raftClusters) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.chunkCount == null ? 43 : this.chunkCount.hashCode()); - result = - (result * PRIME) - + (this.replicationUnitCount == null - ? 43 - : this.replicationUnitCount.hashCode()); - result = (result * PRIME) + (this.raftClusters == null ? 43 : this.raftClusters.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java deleted file mode 100644 index 4cd21bda64e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateCompositeShardSpaceRaftClusterDetails.java +++ /dev/null @@ -1,352 +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 clusters details required for creation of composite shard spaces. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateCompositeShardSpaceRaftClusterDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateCompositeShardSpaceRaftClusterDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public CreateCompositeShardSpaceRaftClusterDetails( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateCompositeShardSpaceRaftClusterDetails build() { - CreateCompositeShardSpaceRaftClusterDetails model = - new CreateCompositeShardSpaceRaftClusterDetails( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateCompositeShardSpaceRaftClusterDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - map.put(v.getValue(), v); - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid RuMode: " + key); - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * The details of databases associated with the composite shard space raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * The details of databases associated with the composite shard space raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateCompositeShardSpaceRaftClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateCompositeShardSpaceRaftClusterDetails)) { - return false; - } - - CreateCompositeShardSpaceRaftClusterDetails other = - (CreateCompositeShardSpaceRaftClusterDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java deleted file mode 100644 index 8932f4f90ac..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseCatalogWithDedicatedInfraDetails.java +++ /dev/null @@ -1,732 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] 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; - 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 6b9f76731e4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,1257 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedAutonomousDatabaseDetails - extends com.oracle.bmc.http.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 { - Oltp("OLTP"), - Dw("DW"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DbWorkloadType v : DbWorkloadType.values()) { - map.put(v.getValue(), v); - } - } - - DbWorkloadType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DbWorkloadType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid DbWorkloadType: " + key); - } - }; - /** - * Possible workload types. Currently only OLTP workload type is supported. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") - private final DbWorkloadType dbWorkloadType; - - /** - * Possible workload types. Currently only OLTP workload type is supported. - * @return the value - **/ - public DbWorkloadType getDbWorkloadType() { - return dbWorkloadType; - } - - /** - * The character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private final String characterSet; - - /** - * The character set for the database. - * @return the value - **/ - public String getCharacterSet() { - return characterSet; - } - - /** - * The national character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; - - /** - * The national character set for the database. - * @return the value - **/ - public String getNcharacterSet() { - return ncharacterSet; - } - - /** - * The listener port number for the Globally distributed autonomous database. The listener port number - * has to be unique for a customer tenancy across all distributed autonomous databases. Same port number - * should not be re-used for any other distributed autonomous database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private final Integer listenerPort; - - /** - * The listener port number for the Globally distributed autonomous database. The listener port number - * has to be unique for a customer tenancy across all distributed autonomous databases. Same port number - * should not be re-used for any other distributed autonomous database. - * - * @return the value - **/ - public Integer getListenerPort() { - return listenerPort; - } - - /** - * The TLS listener port number for Globally distributed autonomous database. The TLS listener port number - * has to be unique for a customer tenancy across all distributed autonomous databases. Same port number - * should not be re-used for any other distributed autonomous database. The listenerPortTls is mandatory - * for dedicated infrastructure based distributed autonomous databases. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private final Integer listenerPortTls; - - /** - * The TLS listener port number for Globally distributed autonomous database. The TLS listener port number - * has to be unique for a customer tenancy across all distributed autonomous databases. Same port number - * should not be re-used for any other distributed autonomous database. The listenerPortTls is mandatory - * for dedicated infrastructure based distributed autonomous databases. - * - * @return the value - **/ - public Integer getListenerPortTls() { - return listenerPortTls; - } - - /** - * Ons local port number for Globally distributed autonomous database. The onsPortLocal has to be unique for - * a customer tenancy across all distributed autonomous databases. Same port number should not be re-used for - * any other distributed autonomous database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") - private final Integer onsPortLocal; - - /** - * Ons local port number for Globally distributed autonomous database. The onsPortLocal has to be unique for - * a customer tenancy across all distributed autonomous databases. Same port number should not be re-used for - * any other distributed autonomous database. - * - * @return the value - **/ - public Integer getOnsPortLocal() { - return onsPortLocal; - } - - /** - * Ons remote port number for Globally distributed autonomous database. The onsPortRemote has to be unique for - * a customer tenancy across all distributed autonomous databases. Same port number should not be re-used for - * any other distributed autonomous database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") - private final Integer onsPortRemote; - - /** - * Ons remote port number for Globally distributed autonomous database. The onsPortRemote has to be unique for - * a customer tenancy across all distributed autonomous databases. Same port number should not be re-used for - * any other distributed autonomous database. - * - * @return the value - **/ - public Integer getOnsPortRemote() { - return onsPortRemote; - } - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") - private final Integer systemChunkCount; - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - * @return the value - **/ - public Integer getSystemChunkCount() { - return systemChunkCount; - } - - /** - * Number of replication units associated with system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") - private final Integer systemRaftReplicationUnitCount; - - /** - * Number of replication units associated with system raft clusters. - * @return the value - **/ - public Integer getSystemRaftReplicationUnitCount() { - return systemRaftReplicationUnitCount; - } - - /** - * Collection of composite raft shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") - private final java.util.List - compositeRaftShardSpaces; - - /** - * Collection of composite raft shards. - * @return the value - **/ - public java.util.List - getCompositeRaftShardSpaces() { - return compositeRaftShardSpaces; - } - - /** - * Collection of composite data guard shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") - private final java.util.List - compositeDataGuardShardSpaces; - - /** - * Collection of composite data guard shard spaces. - * @return the value - **/ - public java.util.List - getCompositeDataGuardShardSpaces() { - return compositeDataGuardShardSpaces; - } - - /** - * Collection of system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") - private final java.util.List systemRaftClusters; - - /** - * Collection of system raft clusters. - * @return the value - **/ - public java.util.List getSystemRaftClusters() { - return systemRaftClusters; - } - - @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") - private final CreateAutonomousSystemDataGuardDatabaseDetails systemDataGuardDatabases; - - public CreateAutonomousSystemDataGuardDatabaseDetails getSystemDataGuardDatabases() { - return systemDataGuardDatabases; - } - - /** - * Collection of user defined shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") - private final java.util.List userShardSpaces; - - /** - * Collection of user defined shard spaces. - * @return the value - **/ - public java.util.List getUserShardSpaces() { - return userShardSpaces; - } - - /** - * Collection of catalog for the Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") - private final java.util.List catalogDetails; - - /** - * Collection of catalog for the Globally distributed autonomous database. - * @return the value - **/ - public java.util.List getCatalogDetails() { - return catalogDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private final DistributedAutonomousDbBackupConfig dbBackupConfig; - - public DistributedAutonomousDbBackupConfig getDbBackupConfig() { - return dbBackupConfig; - } - - /** - * The list of network security group (NSG) details to be associated with the distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details to be associated with the distributed autonomous database. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedAutonomousDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); - sb.append(", prefix=").append(String.valueOf(this.prefix)); - sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", dbWorkloadType=").append(String.valueOf(this.dbWorkloadType)); - sb.append(", characterSet=").append(String.valueOf(this.characterSet)); - sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); - sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); - sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); - sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); - sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); - sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); - sb.append(", systemRaftReplicationUnitCount=") - .append(String.valueOf(this.systemRaftReplicationUnitCount)); - sb.append(", compositeRaftShardSpaces=") - .append(String.valueOf(this.compositeRaftShardSpaces)); - sb.append(", compositeDataGuardShardSpaces=") - .append(String.valueOf(this.compositeDataGuardShardSpaces)); - sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); - sb.append(", systemDataGuardDatabases=") - .append(String.valueOf(this.systemDataGuardDatabases)); - sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); - sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); - sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedAutonomousDatabaseDetails)) { - return false; - } - - CreateDistributedAutonomousDatabaseDetails other = - (CreateDistributedAutonomousDatabaseDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) - && java.util.Objects.equals(this.prefix, other.prefix) - && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.dbWorkloadType, other.dbWorkloadType) - && java.util.Objects.equals(this.characterSet, other.characterSet) - && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) - && java.util.Objects.equals(this.listenerPort, other.listenerPort) - && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) - && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) - && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) - && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) - && java.util.Objects.equals( - this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) - && java.util.Objects.equals( - this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) - && java.util.Objects.equals( - this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) - && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) - && java.util.Objects.equals( - this.systemDataGuardDatabases, other.systemDataGuardDatabases) - && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) - && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) - && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); - result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); - result = - (result * PRIME) - + (this.privateEndpointIds == null - ? 43 - : this.privateEndpointIds.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = - (result * PRIME) - + (this.dbWorkloadType == null ? 43 : this.dbWorkloadType.hashCode()); - result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); - result = - (result * PRIME) - + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); - result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); - result = - (result * PRIME) - + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); - result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); - result = - (result * PRIME) - + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); - result = - (result * PRIME) - + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); - result = - (result * PRIME) - + (this.systemRaftReplicationUnitCount == null - ? 43 - : this.systemRaftReplicationUnitCount.hashCode()); - result = - (result * PRIME) - + (this.compositeRaftShardSpaces == null - ? 43 - : this.compositeRaftShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.compositeDataGuardShardSpaces == null - ? 43 - : this.compositeDataGuardShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.systemRaftClusters == null - ? 43 - : this.systemRaftClusters.hashCode()); - result = - (result * PRIME) - + (this.systemDataGuardDatabases == null - ? 43 - : this.systemDataGuardDatabases.hashCode()); - result = - (result * PRIME) - + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); - result = - (result * PRIME) - + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java deleted file mode 100644 index e9cc9242c19..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardDatabaseDetails.java +++ /dev/null @@ -1,115 +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 for creating a distributed autonomous database shard. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedAutonomousDatabaseShardDatabaseDetails.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.class, - name = "ADBD_EXISTING_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedAutonomousDatabaseShardDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedAutonomousDatabaseShardDatabaseDetails() { - super(); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedAutonomousDatabaseShardDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedAutonomousDatabaseShardDatabaseDetails)) { - return false; - } - - CreateDistributedAutonomousDatabaseShardDatabaseDetails other = - (CreateDistributedAutonomousDatabaseShardDatabaseDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed autonomous database type. - * Use ADBD_EXISTING_CLUSTER for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. - * - **/ - public enum Source { - AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - map.put(v.getValue(), v); - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Source: " + key); - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java deleted file mode 100644 index 2a4ed8ad9b9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails.java +++ /dev/null @@ -1,775 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] 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; - this.computeCount = computeCount; - this.dataStorageSizeInGbs = dataStorageSizeInGbs; - this.shardSpaceName = shardSpaceName; - this.isAutoScalingEnabled = isAutoScalingEnabled; - this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.okvKeyStoreId = okvKeyStoreId; - this.okvEndPointGroupName = okvEndPointGroupName; - this.protectionMode = protectionMode; - this.fastStartFailOverLagLimitInSeconds = fastStartFailOverLagLimitInSeconds; - this.standbyMaintenanceBufferInDays = standbyMaintenanceBufferInDays; - } - - /** - * Admin password for shard database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * Admin password for shard database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * Admin password for shard database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The compute count for the shard database. It has to be in multiples of 2. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("computeCount") - private final Float computeCount; - - /** - * The compute count for the shard database. It has to be in multiples of 2. - * @return the value - **/ - public Float getComputeCount() { - return computeCount; - } - - /** - * The data disk group size to be allocated in GBs for the shard database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataStorageSizeInGbs") - private final Double dataStorageSizeInGbs; - - /** - * The data disk group size to be allocated in GBs for the shard database. - * @return the value - **/ - public Double getDataStorageSizeInGbs() { - return dataStorageSizeInGbs; - } - - /** - * The shard space name for the shard database. Shard space for an existing shard cannot be changed once the shard is created. - * The shard space name is used when creating new shards. For user-defined sharding, every shard must have a unique - * shard space name. For system-defined sharding, a shard space name is not required. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("shardSpaceName") - private final String shardSpaceName; - - /** - * The shard space name for the shard database. Shard space for an existing shard cannot be changed once the shard is created. - * The shard space name is used when creating new shards. For user-defined sharding, every shard must have a unique - * shard space name. For system-defined sharding, a shard space name is not required. - * - * @return the value - **/ - public String getShardSpaceName() { - return shardSpaceName; - } - - /** - * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. - * The default value is {@code FALSE}. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") - private final Boolean isAutoScalingEnabled; - - /** - * Indicates if vertical auto scaling is enabled for the Autonomous AI Database CPU core count. - * The default value is {@code FALSE}. - * - * @return the value - **/ - public Boolean getIsAutoScalingEnabled() { - return isAutoScalingEnabled; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud Autonomous Exadata VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("cloudAutonomousVmClusterId") - private final String cloudAutonomousVmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cloud Autonomous Exadata VM Cluster. - * @return the value - **/ - public String getCloudAutonomousVmClusterId() { - return cloudAutonomousVmClusterId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key store used to create the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("okvKeyStoreId") - private final String okvKeyStoreId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key store used to create the shard. - * @return the value - **/ - public String getOkvKeyStoreId() { - return okvKeyStoreId; - } - - /** - * The OKV endpoint name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("okvEndPointGroupName") - private final String okvEndPointGroupName; - - /** - * The OKV endpoint name. - * @return the value - **/ - public String getOkvEndPointGroupName() { - return okvEndPointGroupName; - } - - /** - * The protection mode for the shard peer. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedAutonomousDbProtectionMode protectionMode; - - /** - * The protection mode for the shard peer. - * @return the value - **/ - public DistributedAutonomousDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The lag time preference based on data loss tolerance in seconds. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("fastStartFailOverLagLimitInSeconds") - private final Integer fastStartFailOverLagLimitInSeconds; - - /** - * The lag time preference based on data loss tolerance in seconds. - * @return the value - **/ - public Integer getFastStartFailOverLagLimitInSeconds() { - return fastStartFailOverLagLimitInSeconds; - } - - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("standbyMaintenanceBufferInDays") - private final Integer standbyMaintenanceBufferInDays; - - /** - * The scheduling detail for the quarterly maintenance window of the standby Autonomous Container Database. - * - * @return the value - **/ - public Integer getStandbyMaintenanceBufferInDays() { - return standbyMaintenanceBufferInDays; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", adminPassword=").append(""); - sb.append(", computeCount=").append(String.valueOf(this.computeCount)); - sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); - sb.append(", shardSpaceName=").append(String.valueOf(this.shardSpaceName)); - sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); - sb.append(", cloudAutonomousVmClusterId=") - .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); - sb.append(", okvEndPointGroupName=").append(String.valueOf(this.okvEndPointGroupName)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", fastStartFailOverLagLimitInSeconds=") - .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); - sb.append(", standbyMaintenanceBufferInDays=") - .append(String.valueOf(this.standbyMaintenanceBufferInDays)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails)) { - return false; - } - - CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails other = - (CreateDistributedAutonomousDatabaseShardWithDedicatedInfraDetails) o; - return java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.computeCount, other.computeCount) - && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) - && java.util.Objects.equals(this.shardSpaceName, other.shardSpaceName) - && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) - && java.util.Objects.equals( - this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) - && java.util.Objects.equals(this.okvEndPointGroupName, other.okvEndPointGroupName) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals( - this.fastStartFailOverLagLimitInSeconds, - other.fastStartFailOverLagLimitInSeconds) - && java.util.Objects.equals( - this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); - result = - (result * PRIME) - + (this.dataStorageSizeInGbs == null - ? 43 - : this.dataStorageSizeInGbs.hashCode()); - result = - (result * PRIME) - + (this.shardSpaceName == null ? 43 : this.shardSpaceName.hashCode()); - result = - (result * PRIME) - + (this.isAutoScalingEnabled == null - ? 43 - : this.isAutoScalingEnabled.hashCode()); - result = - (result * PRIME) - + (this.cloudAutonomousVmClusterId == null - ? 43 - : this.cloudAutonomousVmClusterId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); - result = - (result * PRIME) - + (this.okvEndPointGroupName == null - ? 43 - : this.okvEndPointGroupName.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.fastStartFailOverLagLimitInSeconds == null - ? 43 - : this.fastStartFailOverLagLimitInSeconds.hashCode()); - result = - (result * PRIME) - + (this.standbyMaintenanceBufferInDays == null - ? 43 - : this.standbyMaintenanceBufferInDays.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java deleted file mode 100644 index df11f12f4b4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseDetails.java +++ /dev/null @@ -1,139 +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 for creating a distributed database catalog. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = CreateDistributedDatabaseCatalogDatabaseDetails.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.class, - name = "XS_NEW_VAULT_AND_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.class, - name = "EXISTING_DB_HOME" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.class, - name = "XS_EXISTING_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.class, - name = "XD_EXISTING_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.class, - name = "XS_NEW_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedDatabaseCatalogDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseCatalogDatabaseDetails() { - super(); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogDatabaseDetails other = - (CreateDistributedDatabaseCatalogDatabaseDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed database type. - * Use XS_EXISTING_CLUSTER for a database on Exascale Infrastructure that uses a pre-existing cluster. - * Use XS_NEW_CLUSTER for a database on Exascale Infrastructure that requires a new cluster created from scratch. - * Use XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault and cluster created from scratch. - * Use XD_EXISTING_CLUSTER for a database on Dedicated Infrastructure that uses a pre-existing cluster. - * Use EXISTING_DB_HOME for a database on a pre-existing database home. - * - **/ - public enum Source { - XsExistingCluster("XS_EXISTING_CLUSTER"), - XsNewCluster("XS_NEW_CLUSTER"), - XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), - XdExistingCluster("XD_EXISTING_CLUSTER"), - ExistingDbHome("EXISTING_DB_HOME"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - map.put(v.getValue(), v); - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Source: " + key); - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java deleted file mode 100644 index 43d4c1cf395..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.java +++ /dev/null @@ -1,436 +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 using a pre-existing Database Home. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails - extends CreateDistributedDatabaseCatalogDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The admin password for the catalog associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the catalog associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails build() { - CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails model = - new CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( - this.dbHomeId, - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails model) { - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( - String dbHomeId, - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.dbHomeId = dbHomeId; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails( - String dbHomeId, - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.dbHomeId = dbHomeId; - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The admin password for the catalog associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the catalog associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the catalog associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails other = - (CreateDistributedDatabaseCatalogDatabaseWithDbHomeDetails) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java deleted file mode 100644 index 2c4b3482120..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.java +++ /dev/null @@ -1,440 +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 using an existing ExaDB-D VM cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails - extends CreateDistributedDatabaseCatalogDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * The admin password for the catalog associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the catalog associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails build() { - CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails model = - new CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( - this.vmClusterId, - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( - String vmClusterId, - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails( - String vmClusterId, - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * The admin password for the catalog associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the catalog associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the catalog associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails other = - (CreateDistributedDatabaseCatalogDatabaseWithExadbXdDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java deleted file mode 100644 index 421de8d7521..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.java +++ /dev/null @@ -1,436 +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 using an existing ExaDB-XS VM cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails - extends CreateDistributedDatabaseCatalogDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * The admin password for the catalog associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the catalog associated with the distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails build() { - CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails model = - new CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( - this.vmClusterId, - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( - String vmClusterId, - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails( - String vmClusterId, - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * The admin password for the catalog associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the catalog associated with the distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the catalog associated with the distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails other = - (CreateDistributedDatabaseCatalogDatabaseWithExadbXsDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.java deleted file mode 100644 index c586ee580c7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogDetails.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public CreateDistributedDatabaseCatalogDetails( - CreateDistributedDatabaseCatalogReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateDistributedDatabaseCatalogReplicaDetails originalReplica; - - public Builder originalReplica( - CreateDistributedDatabaseCatalogReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * Details required to create data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * Details required to create data guard replicas for the catalog. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogDetails build() { - CreateDistributedDatabaseCatalogDetails model = - new CreateDistributedDatabaseCatalogDetails( - this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogDetails model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateDistributedDatabaseCatalogReplicaDetails originalReplica; - - public CreateDistributedDatabaseCatalogReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * Details required to create data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * Details required to create data guard replicas for the catalog. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogDetails("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogDetails other = (CreateDistributedDatabaseCatalogDetails) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java deleted file mode 100644 index 46c74806450..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogReplicaDetails.java +++ /dev/null @@ -1,174 +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 catalog replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseCatalogReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public CreateDistributedDatabaseCatalogReplicaDetails( - String name, CreateDistributedDatabaseCatalogDatabaseDetails database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private CreateDistributedDatabaseCatalogDatabaseDetails database; - - public Builder database(CreateDistributedDatabaseCatalogDatabaseDetails database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogReplicaDetails build() { - CreateDistributedDatabaseCatalogReplicaDetails model = - new CreateDistributedDatabaseCatalogReplicaDetails(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final CreateDistributedDatabaseCatalogDatabaseDetails database; - - public CreateDistributedDatabaseCatalogDatabaseDetails getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogReplicaDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogReplicaDetails other = - (CreateDistributedDatabaseCatalogReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java deleted file mode 100644 index e5d0a3bc3b2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.java +++ /dev/null @@ -1,516 +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. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails - extends CreateDistributedDatabaseCatalogDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The admin password for the catalog associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the catalog associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The name of the availability domain that the distributed database catalog will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain that the distributed database catalog will be located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @param exascaleDbStorageVaultId the value to set - * @return this builder - **/ - public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.__explicitlySet__.add("exascaleDbStorageVaultId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private VmClusterDetails vmClusterDetails; - - public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { - this.vmClusterDetails = vmClusterDetails; - this.__explicitlySet__.add("vmClusterDetails"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails build() { - CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails model = - new CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.availabilityDomain, - this.exascaleDbStorageVaultId, - this.vmClusterDetails, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails model) { - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { - this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - String exascaleDbStorageVaultId, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.availabilityDomain = availabilityDomain; - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails( - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - String exascaleDbStorageVaultId, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.availabilityDomain = availabilityDomain; - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The admin password for the catalog associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the catalog associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the catalog associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The name of the availability domain that the distributed database catalog will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database catalog will be located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private final String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @return the value - **/ - public String getExascaleDbStorageVaultId() { - return exascaleDbStorageVaultId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final VmClusterDetails vmClusterDetails; - - public VmClusterDetails getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", exascaleDbStorageVaultId=") - .append(String.valueOf(this.exascaleDbStorageVaultId)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails)) { - return false; - } - - CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails other = - (CreateDistributedDatabaseCatalogWithExadbXsNewClusterDetails) o; - return java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals( - this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.exascaleDbStorageVaultId == null - ? 43 - : this.exascaleDbStorageVaultId.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java deleted file mode 100644 index 3ee990b1db4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseCatalogWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,505 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - 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 70e1e39141d..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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "compartmentId", - "displayName", - "databaseVersion", - "prefix", - "privateEndpointIds", - "notificationTopicIds", - "characterSet", - "ncharacterSet", - "listenerPort", - "listenerPortTls", - "onsPortLocal", - "onsPortRemote", - "scanListenerPort", - "systemChunkCount", - "systemRaftReplicationUnitCount", - "compositeRaftShardSpaces", - "compositeDataGuardShardSpaces", - "systemRaftClusters", - "systemDataGuardDatabases", - "userShardSpaces", - "catalogDetails", - "gsmSshPublicKey", - "dbBackupConfig", - "vcnNsgIds", - "freeformTags", - "definedTags" - }) - public CreateDistributedDatabaseDetails( - String compartmentId, - String displayName, - String databaseVersion, - String prefix, - java.util.List privateEndpointIds, - java.util.List notificationTopicIds, - String characterSet, - String ncharacterSet, - Integer listenerPort, - Integer listenerPortTls, - Integer onsPortLocal, - Integer onsPortRemote, - Integer scanListenerPort, - Integer systemChunkCount, - Integer systemRaftReplicationUnitCount, - java.util.List compositeRaftShardSpaces, - java.util.List compositeDataGuardShardSpaces, - java.util.List systemRaftClusters, - CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases, - java.util.List userShardSpaces, - java.util.List catalogDetails, - String gsmSshPublicKey, - DistributedDbBackupConfig dbBackupConfig, - java.util.List vcnNsgIds, - java.util.Map freeformTags, - java.util.Map> definedTags) { - super(); - this.compartmentId = compartmentId; - this.displayName = displayName; - this.databaseVersion = databaseVersion; - this.prefix = prefix; - this.privateEndpointIds = privateEndpointIds; - this.notificationTopicIds = notificationTopicIds; - this.characterSet = characterSet; - this.ncharacterSet = ncharacterSet; - this.listenerPort = listenerPort; - this.listenerPortTls = listenerPortTls; - this.onsPortLocal = onsPortLocal; - this.onsPortRemote = onsPortRemote; - this.scanListenerPort = scanListenerPort; - this.systemChunkCount = systemChunkCount; - this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; - this.compositeRaftShardSpaces = compositeRaftShardSpaces; - this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; - this.systemRaftClusters = systemRaftClusters; - this.systemDataGuardDatabases = systemDataGuardDatabases; - this.userShardSpaces = userShardSpaces; - this.catalogDetails = catalogDetails; - this.gsmSshPublicKey = gsmSshPublicKey; - this.dbBackupConfig = dbBackupConfig; - this.vcnNsgIds = vcnNsgIds; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Globally distributed database compartment. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Globally distributed database compartment. - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The display name of the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * The display name of the Globally distributed database. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * Oracle Database version for the shards and catalog used in Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") - private String databaseVersion; - - /** - * Oracle Database version for the shards and catalog used in Globally distributed database. - * @param databaseVersion the value to set - * @return this builder - **/ - public Builder databaseVersion(String databaseVersion) { - this.databaseVersion = databaseVersion; - this.__explicitlySet__.add("databaseVersion"); - return this; - } - /** - * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are allowed. First character - * has to be a letter followed by any combination of letter and number. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("prefix") - private String prefix; - - /** - * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are allowed. First character - * has to be a letter followed by any combination of letter and number. - * - * @param prefix the value to set - * @return this builder - **/ - public Builder prefix(String prefix) { - this.prefix = prefix; - this.__explicitlySet__.add("prefix"); - return this; - } - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoints associated with the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") - private java.util.List privateEndpointIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoints associated with the Globally distributed database. - * @param privateEndpointIds the value to set - * @return this builder - **/ - public Builder privateEndpointIds(java.util.List privateEndpointIds) { - this.privateEndpointIds = privateEndpointIds; - this.__explicitlySet__.add("privateEndpointIds"); - return this; - } - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * The character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private String characterSet; - - /** - * The character set for the database. - * @param characterSet the value to set - * @return this builder - **/ - public Builder characterSet(String characterSet) { - this.characterSet = characterSet; - this.__explicitlySet__.add("characterSet"); - return this; - } - /** - * The national character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private String ncharacterSet; - - /** - * The national character set for the database. - * @param ncharacterSet the value to set - * @return this builder - **/ - public Builder ncharacterSet(String ncharacterSet) { - this.ncharacterSet = ncharacterSet; - this.__explicitlySet__.add("ncharacterSet"); - return this; - } - /** - * The listener port number for the Globally distributed database. The listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private Integer listenerPort; - - /** - * The listener port number for the Globally distributed database. The listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. - * - * @param listenerPort the value to set - * @return this builder - **/ - public Builder listenerPort(Integer listenerPort) { - this.listenerPort = listenerPort; - this.__explicitlySet__.add("listenerPort"); - return this; - } - /** - * The TLS listener port number for the Globally distributed database. The TLS listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. For EXADB based distributed databases, - * tls is not supported hence the listenerPortTls is not needed to be provided in create payload. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private Integer listenerPortTls; - - /** - * The TLS listener port number for the Globally distributed database. The TLS listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. For EXADB based distributed databases, - * tls is not supported hence the listenerPortTls is not needed to be provided in create payload. - * - * @param listenerPortTls the value to set - * @return this builder - **/ - public Builder listenerPortTls(Integer listenerPortTls) { - this.listenerPortTls = listenerPortTls; - this.__explicitlySet__.add("listenerPortTls"); - return this; - } - /** - * The ons local port number for the Globally distributed database. The onsPortLocal has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") - private Integer onsPortLocal; - - /** - * The ons local port number for the Globally distributed database. The onsPortLocal has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - * @param onsPortLocal the value to set - * @return this builder - **/ - public Builder onsPortLocal(Integer onsPortLocal) { - this.onsPortLocal = onsPortLocal; - this.__explicitlySet__.add("onsPortLocal"); - return this; - } - /** - * The ons remote port number for the Globally distributed database. The onsPortRemote has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") - private Integer onsPortRemote; - - /** - * The ons remote port number for the Globally distributed database. The onsPortRemote has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - * @param onsPortRemote the value to set - * @return this builder - **/ - public Builder onsPortRemote(Integer onsPortRemote) { - this.onsPortRemote = onsPortRemote; - this.__explicitlySet__.add("onsPortRemote"); - return this; - } - /** - * TCP SCAN listener port for new clusters to be created. - * Applicable only when shard and catalog source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. - * Defaults to 1521 when not provided. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") - private Integer scanListenerPort; - - /** - * TCP SCAN listener port for new clusters to be created. - * Applicable only when shard and catalog source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. - * Defaults to 1521 when not provided. - * - * @param scanListenerPort the value to set - * @return this builder - **/ - public Builder scanListenerPort(Integer scanListenerPort) { - this.scanListenerPort = scanListenerPort; - this.__explicitlySet__.add("scanListenerPort"); - return this; - } - /** - * Count of chunks associated with system raft clusters or system data guard databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") - private Integer systemChunkCount; - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - * @param systemChunkCount the value to set - * @return this builder - **/ - public Builder systemChunkCount(Integer systemChunkCount) { - this.systemChunkCount = systemChunkCount; - this.__explicitlySet__.add("systemChunkCount"); - return this; - } - /** - * Number of replication units associated with system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") - private Integer systemRaftReplicationUnitCount; - - /** - * Number of replication units associated with system raft clusters. - * @param systemRaftReplicationUnitCount the value to set - * @return this builder - **/ - public Builder systemRaftReplicationUnitCount(Integer systemRaftReplicationUnitCount) { - this.systemRaftReplicationUnitCount = systemRaftReplicationUnitCount; - this.__explicitlySet__.add("systemRaftReplicationUnitCount"); - return this; - } - /** - * Collection of composite raft shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") - private java.util.List compositeRaftShardSpaces; - - /** - * Collection of composite raft shards. - * @param compositeRaftShardSpaces the value to set - * @return this builder - **/ - public Builder compositeRaftShardSpaces( - java.util.List compositeRaftShardSpaces) { - this.compositeRaftShardSpaces = compositeRaftShardSpaces; - this.__explicitlySet__.add("compositeRaftShardSpaces"); - return this; - } - /** - * Collection of composite data guard shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") - private java.util.List - compositeDataGuardShardSpaces; - - /** - * Collection of composite data guard shard spaces. - * @param compositeDataGuardShardSpaces the value to set - * @return this builder - **/ - public Builder compositeDataGuardShardSpaces( - java.util.List - compositeDataGuardShardSpaces) { - this.compositeDataGuardShardSpaces = compositeDataGuardShardSpaces; - this.__explicitlySet__.add("compositeDataGuardShardSpaces"); - return this; - } - /** - * Collection of system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") - private java.util.List systemRaftClusters; - - /** - * Collection of system raft clusters. - * @param systemRaftClusters the value to set - * @return this builder - **/ - public Builder systemRaftClusters( - java.util.List systemRaftClusters) { - this.systemRaftClusters = systemRaftClusters; - this.__explicitlySet__.add("systemRaftClusters"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") - private CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases; - - public Builder systemDataGuardDatabases( - CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases) { - this.systemDataGuardDatabases = systemDataGuardDatabases; - this.__explicitlySet__.add("systemDataGuardDatabases"); - return this; - } - /** - * Collection of user defined shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") - private java.util.List userShardSpaces; - - /** - * Collection of user defined shard spaces. - * @param userShardSpaces the value to set - * @return this builder - **/ - public Builder userShardSpaces( - java.util.List userShardSpaces) { - this.userShardSpaces = userShardSpaces; - this.__explicitlySet__.add("userShardSpaces"); - return this; - } - /** - * Collection of catalog details for the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") - private java.util.List catalogDetails; - - /** - * Collection of catalog details for the Globally distributed database. - * @param catalogDetails the value to set - * @return this builder - **/ - public Builder catalogDetails( - java.util.List catalogDetails) { - this.catalogDetails = catalogDetails; - this.__explicitlySet__.add("catalogDetails"); - return this; - } - /** - * The SSH public key for Global service manager instances. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") - private String gsmSshPublicKey; - - /** - * The SSH public key for Global service manager instances. - * @param gsmSshPublicKey the value to set - * @return this builder - **/ - public Builder gsmSshPublicKey(String gsmSshPublicKey) { - this.gsmSshPublicKey = gsmSshPublicKey; - this.__explicitlySet__.add("gsmSshPublicKey"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private DistributedDbBackupConfig dbBackupConfig; - - public Builder dbBackupConfig(DistributedDbBackupConfig dbBackupConfig) { - this.dbBackupConfig = dbBackupConfig; - this.__explicitlySet__.add("dbBackupConfig"); - return this; - } - /** - * The list of network security group (NSG) details to be associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details to be associated with the distributed database. - * @param vcnNsgIds the value to set - * @return this builder - **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseDetails build() { - CreateDistributedDatabaseDetails model = - new CreateDistributedDatabaseDetails( - this.compartmentId, - this.displayName, - this.databaseVersion, - this.prefix, - this.privateEndpointIds, - this.notificationTopicIds, - this.characterSet, - this.ncharacterSet, - this.listenerPort, - this.listenerPortTls, - this.onsPortLocal, - this.onsPortRemote, - this.scanListenerPort, - this.systemChunkCount, - this.systemRaftReplicationUnitCount, - this.compositeRaftShardSpaces, - this.compositeDataGuardShardSpaces, - this.systemRaftClusters, - this.systemDataGuardDatabases, - this.userShardSpaces, - this.catalogDetails, - this.gsmSshPublicKey, - this.dbBackupConfig, - this.vcnNsgIds, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("databaseVersion")) { - this.databaseVersion(model.getDatabaseVersion()); - } - if (model.wasPropertyExplicitlySet("prefix")) { - this.prefix(model.getPrefix()); - } - if (model.wasPropertyExplicitlySet("privateEndpointIds")) { - this.privateEndpointIds(model.getPrivateEndpointIds()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("characterSet")) { - this.characterSet(model.getCharacterSet()); - } - if (model.wasPropertyExplicitlySet("ncharacterSet")) { - this.ncharacterSet(model.getNcharacterSet()); - } - if (model.wasPropertyExplicitlySet("listenerPort")) { - this.listenerPort(model.getListenerPort()); - } - if (model.wasPropertyExplicitlySet("listenerPortTls")) { - this.listenerPortTls(model.getListenerPortTls()); - } - if (model.wasPropertyExplicitlySet("onsPortLocal")) { - this.onsPortLocal(model.getOnsPortLocal()); - } - if (model.wasPropertyExplicitlySet("onsPortRemote")) { - this.onsPortRemote(model.getOnsPortRemote()); - } - if (model.wasPropertyExplicitlySet("scanListenerPort")) { - this.scanListenerPort(model.getScanListenerPort()); - } - if (model.wasPropertyExplicitlySet("systemChunkCount")) { - this.systemChunkCount(model.getSystemChunkCount()); - } - if (model.wasPropertyExplicitlySet("systemRaftReplicationUnitCount")) { - this.systemRaftReplicationUnitCount(model.getSystemRaftReplicationUnitCount()); - } - if (model.wasPropertyExplicitlySet("compositeRaftShardSpaces")) { - this.compositeRaftShardSpaces(model.getCompositeRaftShardSpaces()); - } - if (model.wasPropertyExplicitlySet("compositeDataGuardShardSpaces")) { - this.compositeDataGuardShardSpaces(model.getCompositeDataGuardShardSpaces()); - } - if (model.wasPropertyExplicitlySet("systemRaftClusters")) { - this.systemRaftClusters(model.getSystemRaftClusters()); - } - if (model.wasPropertyExplicitlySet("systemDataGuardDatabases")) { - this.systemDataGuardDatabases(model.getSystemDataGuardDatabases()); - } - if (model.wasPropertyExplicitlySet("userShardSpaces")) { - this.userShardSpaces(model.getUserShardSpaces()); - } - if (model.wasPropertyExplicitlySet("catalogDetails")) { - this.catalogDetails(model.getCatalogDetails()); - } - if (model.wasPropertyExplicitlySet("gsmSshPublicKey")) { - this.gsmSshPublicKey(model.getGsmSshPublicKey()); - } - if (model.wasPropertyExplicitlySet("dbBackupConfig")) { - this.dbBackupConfig(model.getDbBackupConfig()); - } - if (model.wasPropertyExplicitlySet("vcnNsgIds")) { - this.vcnNsgIds(model.getVcnNsgIds()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Globally distributed database compartment. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Globally distributed database compartment. - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The display name of the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * The display name of the Globally distributed database. - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * Oracle Database version for the shards and catalog used in Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") - private final String databaseVersion; - - /** - * Oracle Database version for the shards and catalog used in Globally distributed database. - * @return the value - **/ - public String getDatabaseVersion() { - return databaseVersion; - } - - /** - * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are allowed. First character - * has to be a letter followed by any combination of letter and number. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("prefix") - private final String prefix; - - /** - * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are allowed. First character - * has to be a letter followed by any combination of letter and number. - * - * @return the value - **/ - public String getPrefix() { - return prefix; - } - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoints associated with the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") - private final java.util.List privateEndpointIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoints associated with the Globally distributed database. - * @return the value - **/ - public java.util.List getPrivateEndpointIds() { - return privateEndpointIds; - } - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * The character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private final String characterSet; - - /** - * The character set for the database. - * @return the value - **/ - public String getCharacterSet() { - return characterSet; - } - - /** - * The national character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; - - /** - * The national character set for the database. - * @return the value - **/ - public String getNcharacterSet() { - return ncharacterSet; - } - - /** - * The listener port number for the Globally distributed database. The listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private final Integer listenerPort; - - /** - * The listener port number for the Globally distributed database. The listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. - * - * @return the value - **/ - public Integer getListenerPort() { - return listenerPort; - } - - /** - * The TLS listener port number for the Globally distributed database. The TLS listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. For EXADB based distributed databases, - * tls is not supported hence the listenerPortTls is not needed to be provided in create payload. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private final Integer listenerPortTls; - - /** - * The TLS listener port number for the Globally distributed database. The TLS listener port number - * has to be unique for a customer tenancy across all distributed databases. Same port number should - * not be re-used for any other distributed database. For EXADB based distributed databases, - * tls is not supported hence the listenerPortTls is not needed to be provided in create payload. - * - * @return the value - **/ - public Integer getListenerPortTls() { - return listenerPortTls; - } - - /** - * The ons local port number for the Globally distributed database. The onsPortLocal has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") - private final Integer onsPortLocal; - - /** - * The ons local port number for the Globally distributed database. The onsPortLocal has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - * @return the value - **/ - public Integer getOnsPortLocal() { - return onsPortLocal; - } - - /** - * The ons remote port number for the Globally distributed database. The onsPortRemote has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") - private final Integer onsPortRemote; - - /** - * The ons remote port number for the Globally distributed database. The onsPortRemote has to be - * unique for a customer tenancy across all distributed databases. Same port number should not be - * re-used for any other distributed database. - * - * @return the value - **/ - public Integer getOnsPortRemote() { - return onsPortRemote; - } - - /** - * TCP SCAN listener port for new clusters to be created. - * Applicable only when shard and catalog source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. - * Defaults to 1521 when not provided. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") - private final Integer scanListenerPort; - - /** - * TCP SCAN listener port for new clusters to be created. - * Applicable only when shard and catalog source types are XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. - * Defaults to 1521 when not provided. - * - * @return the value - **/ - public Integer getScanListenerPort() { - return scanListenerPort; - } - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") - private final Integer systemChunkCount; - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - * @return the value - **/ - public Integer getSystemChunkCount() { - return systemChunkCount; - } - - /** - * Number of replication units associated with system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") - private final Integer systemRaftReplicationUnitCount; - - /** - * Number of replication units associated with system raft clusters. - * @return the value - **/ - public Integer getSystemRaftReplicationUnitCount() { - return systemRaftReplicationUnitCount; - } - - /** - * Collection of composite raft shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") - private final java.util.List compositeRaftShardSpaces; - - /** - * Collection of composite raft shards. - * @return the value - **/ - public java.util.List getCompositeRaftShardSpaces() { - return compositeRaftShardSpaces; - } - - /** - * Collection of composite data guard shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") - private final java.util.List - compositeDataGuardShardSpaces; - - /** - * Collection of composite data guard shard spaces. - * @return the value - **/ - public java.util.List - getCompositeDataGuardShardSpaces() { - return compositeDataGuardShardSpaces; - } - - /** - * Collection of system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") - private final java.util.List systemRaftClusters; - - /** - * Collection of system raft clusters. - * @return the value - **/ - public java.util.List getSystemRaftClusters() { - return systemRaftClusters; - } - - @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") - private final CreateSystemDataGuardDatabaseDetails systemDataGuardDatabases; - - public CreateSystemDataGuardDatabaseDetails getSystemDataGuardDatabases() { - return systemDataGuardDatabases; - } - - /** - * Collection of user defined shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") - private final java.util.List userShardSpaces; - - /** - * Collection of user defined shard spaces. - * @return the value - **/ - public java.util.List getUserShardSpaces() { - return userShardSpaces; - } - - /** - * Collection of catalog details for the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") - private final java.util.List catalogDetails; - - /** - * Collection of catalog details for the Globally distributed database. - * @return the value - **/ - public java.util.List getCatalogDetails() { - return catalogDetails; - } - - /** - * The SSH public key for Global service manager instances. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") - private final String gsmSshPublicKey; - - /** - * The SSH public key for Global service manager instances. - * @return the value - **/ - public String getGsmSshPublicKey() { - return gsmSshPublicKey; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private final DistributedDbBackupConfig dbBackupConfig; - - public DistributedDbBackupConfig getDbBackupConfig() { - return dbBackupConfig; - } - - /** - * The list of network security group (NSG) details to be associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details to be associated with the distributed database. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); - sb.append(", prefix=").append(String.valueOf(this.prefix)); - sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", characterSet=").append(String.valueOf(this.characterSet)); - sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); - sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); - sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); - sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); - sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); - sb.append(", scanListenerPort=").append(String.valueOf(this.scanListenerPort)); - sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); - sb.append(", systemRaftReplicationUnitCount=") - .append(String.valueOf(this.systemRaftReplicationUnitCount)); - sb.append(", compositeRaftShardSpaces=") - .append(String.valueOf(this.compositeRaftShardSpaces)); - sb.append(", compositeDataGuardShardSpaces=") - .append(String.valueOf(this.compositeDataGuardShardSpaces)); - sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); - sb.append(", systemDataGuardDatabases=") - .append(String.valueOf(this.systemDataGuardDatabases)); - sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); - sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); - sb.append(", gsmSshPublicKey=").append(String.valueOf(this.gsmSshPublicKey)); - sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseDetails)) { - return false; - } - - CreateDistributedDatabaseDetails other = (CreateDistributedDatabaseDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) - && java.util.Objects.equals(this.prefix, other.prefix) - && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.characterSet, other.characterSet) - && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) - && java.util.Objects.equals(this.listenerPort, other.listenerPort) - && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) - && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) - && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) - && java.util.Objects.equals(this.scanListenerPort, other.scanListenerPort) - && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) - && java.util.Objects.equals( - this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) - && java.util.Objects.equals( - this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) - && java.util.Objects.equals( - this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) - && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) - && java.util.Objects.equals( - this.systemDataGuardDatabases, other.systemDataGuardDatabases) - && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) - && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) - && java.util.Objects.equals(this.gsmSshPublicKey, other.gsmSshPublicKey) - && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); - result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); - result = - (result * PRIME) - + (this.privateEndpointIds == null - ? 43 - : this.privateEndpointIds.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); - result = - (result * PRIME) - + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); - result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); - result = - (result * PRIME) - + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); - result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); - result = - (result * PRIME) - + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); - result = - (result * PRIME) - + (this.scanListenerPort == null ? 43 : this.scanListenerPort.hashCode()); - result = - (result * PRIME) - + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); - result = - (result * PRIME) - + (this.systemRaftReplicationUnitCount == null - ? 43 - : this.systemRaftReplicationUnitCount.hashCode()); - result = - (result * PRIME) - + (this.compositeRaftShardSpaces == null - ? 43 - : this.compositeRaftShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.compositeDataGuardShardSpaces == null - ? 43 - : this.compositeDataGuardShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.systemRaftClusters == null - ? 43 - : this.systemRaftClusters.hashCode()); - result = - (result * PRIME) - + (this.systemDataGuardDatabases == null - ? 43 - : this.systemDataGuardDatabases.hashCode()); - result = - (result * PRIME) - + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); - result = - (result * PRIME) - + (this.gsmSshPublicKey == null ? 43 : this.gsmSshPublicKey.hashCode()); - result = - (result * PRIME) - + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java deleted file mode 100644 index 57ef3e9245b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabasePrivateEndpointDetails.java +++ /dev/null @@ -1,401 +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 private endpoint creation. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabasePrivateEndpointDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabasePrivateEndpointDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "compartmentId", - "subnetId", - "displayName", - "description", - "vcnNsgIds", - "freeformTags", - "definedTags" - }) - public CreateDistributedDatabasePrivateEndpointDetails( - String compartmentId, - String subnetId, - String displayName, - String description, - java.util.List vcnNsgIds, - java.util.Map freeformTags, - java.util.Map> definedTags) { - super(); - this.compartmentId = compartmentId; - this.subnetId = subnetId; - this.displayName = displayName; - this.description = description; - this.vcnNsgIds = vcnNsgIds; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Identifier of the compartment where private endpoint is to be created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * Identifier of the compartment where private endpoint is to be created. - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * Identifier of the customer subnet against which private endpoint is to be created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * Identifier of the customer subnet against which private endpoint is to be created. - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * Private endpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Private endpoint display name. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set - * @return this builder - **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); - return this; - } - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - * @param vcnNsgIds the value to set - * @return this builder - **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabasePrivateEndpointDetails build() { - CreateDistributedDatabasePrivateEndpointDetails model = - new CreateDistributedDatabasePrivateEndpointDetails( - this.compartmentId, - this.subnetId, - this.displayName, - this.description, - this.vcnNsgIds, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabasePrivateEndpointDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("description")) { - this.description(model.getDescription()); - } - if (model.wasPropertyExplicitlySet("vcnNsgIds")) { - this.vcnNsgIds(model.getVcnNsgIds()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Identifier of the compartment where private endpoint is to be created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * Identifier of the compartment where private endpoint is to be created. - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * Identifier of the customer subnet against which private endpoint is to be created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * Identifier of the customer subnet against which private endpoint is to be created. - * @return the value - **/ - public String getSubnetId() { - return subnetId; - } - - /** - * Private endpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * Private endpoint display name. - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details to be associated with the private endpoint. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabasePrivateEndpointDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", description=").append(String.valueOf(this.description)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointDetails)) { - return false; - } - - CreateDistributedDatabasePrivateEndpointDetails other = - (CreateDistributedDatabasePrivateEndpointDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.description, other.description) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java deleted file mode 100644 index 1e426cb2713..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseDetails.java +++ /dev/null @@ -1,139 +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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class CreateDistributedDatabaseShardDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - protected CreateDistributedDatabaseShardDatabaseDetails() { - super(); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardDatabaseDetails)) { - return false; - } - - CreateDistributedDatabaseShardDatabaseDetails other = - (CreateDistributedDatabaseShardDatabaseDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed database type. - * Use XS_EXISTING_CLUSTER for a database on Exascale Infrastructure that uses a pre-existing cluster. - * Use XS_NEW_CLUSTER for a database on Exascale Infrastructure that requires a new cluster created from scratch. - * Use XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault and cluster created from scratch. - * Use XD_EXISTING_CLUSTER for a database on Dedicated Infrastructure that uses a pre-existing cluster. - * Use EXISTING_DB_HOME for a database on a pre-existing database home. - * - **/ - public enum Source { - XsExistingCluster("XS_EXISTING_CLUSTER"), - XsNewCluster("XS_NEW_CLUSTER"), - XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), - XdExistingCluster("XD_EXISTING_CLUSTER"), - ExistingDbHome("EXISTING_DB_HOME"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - map.put(v.getValue(), v); - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Source: " + key); - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java deleted file mode 100644 index 3f4f0f8c8d7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.java +++ /dev/null @@ -1,440 +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 using a pre-existing Database Home. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseShardDatabaseWithDbHomeDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseShardDatabaseWithDbHomeDetails - extends CreateDistributedDatabaseShardDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails build() { - CreateDistributedDatabaseShardDatabaseWithDbHomeDetails model = - new CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( - this.dbHomeId, - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseShardDatabaseWithDbHomeDetails model) { - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( - String dbHomeId, - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.dbHomeId = dbHomeId; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseShardDatabaseWithDbHomeDetails( - String dbHomeId, - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.dbHomeId = dbHomeId; - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDatabaseWithDbHomeDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardDatabaseWithDbHomeDetails)) { - return false; - } - - CreateDistributedDatabaseShardDatabaseWithDbHomeDetails other = - (CreateDistributedDatabaseShardDatabaseWithDbHomeDetails) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java deleted file mode 100644 index 9a4aa7822d5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.java +++ /dev/null @@ -1,440 +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 using an existing ExaDB-D VM cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseShardDatabaseWithExadbXdDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseShardDatabaseWithExadbXdDetails - extends CreateDistributedDatabaseShardDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails build() { - CreateDistributedDatabaseShardDatabaseWithExadbXdDetails model = - new CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( - this.vmClusterId, - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseShardDatabaseWithExadbXdDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( - String vmClusterId, - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseShardDatabaseWithExadbXdDetails( - String vmClusterId, - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDatabaseWithExadbXdDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardDatabaseWithExadbXdDetails)) { - return false; - } - - CreateDistributedDatabaseShardDatabaseWithExadbXdDetails other = - (CreateDistributedDatabaseShardDatabaseWithExadbXdDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java deleted file mode 100644 index 365f75af11c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.java +++ /dev/null @@ -1,440 +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 using an existing ExaDB-XS VM cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseShardDatabaseWithExadbXsDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseShardDatabaseWithExadbXsDetails - extends CreateDistributedDatabaseShardDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails build() { - CreateDistributedDatabaseShardDatabaseWithExadbXsDetails model = - new CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( - this.vmClusterId, - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseShardDatabaseWithExadbXsDetails model) { - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( - String vmClusterId, - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseShardDatabaseWithExadbXsDetails( - String vmClusterId, - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.vmClusterId = vmClusterId; - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardDatabaseWithExadbXsDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardDatabaseWithExadbXsDetails)) { - return false; - } - - CreateDistributedDatabaseShardDatabaseWithExadbXsDetails other = - (CreateDistributedDatabaseShardDatabaseWithExadbXsDetails) o; - return java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java deleted file mode 100644 index 785d1247b93..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.java +++ /dev/null @@ -1,516 +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. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDistributedDatabaseShardWithExadbXsNewClusterDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateDistributedDatabaseShardWithExadbXsNewClusterDetails - extends CreateDistributedDatabaseShardDatabaseDetails { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The name of the availability domain that the distributed database shard will be located in like yKoY:US-ASHBURN-AD-3. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in like yKoY:US-ASHBURN-AD-3. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @param exascaleDbStorageVaultId the value to set - * @return this builder - **/ - public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.__explicitlySet__.add("exascaleDbStorageVaultId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private VmClusterDetails vmClusterDetails; - - public Builder vmClusterDetails(VmClusterDetails vmClusterDetails) { - this.vmClusterDetails = vmClusterDetails; - this.__explicitlySet__.add("vmClusterDetails"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails build() { - CreateDistributedDatabaseShardWithExadbXsNewClusterDetails model = - new CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( - this.adminPassword, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.availabilityDomain, - this.exascaleDbStorageVaultId, - this.vmClusterDetails, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDistributedDatabaseShardWithExadbXsNewClusterDetails model) { - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { - this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( - String adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - String exascaleDbStorageVaultId, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.availabilityDomain = availabilityDomain; - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - public CreateDistributedDatabaseShardWithExadbXsNewClusterDetails( - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - String exascaleDbStorageVaultId, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.availabilityDomain = availabilityDomain; - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The name of the availability domain that the distributed database shard will be located in like yKoY:US-ASHBURN-AD-3. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in like yKoY:US-ASHBURN-AD-3. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private final String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @return the value - **/ - public String getExascaleDbStorageVaultId() { - return exascaleDbStorageVaultId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final VmClusterDetails vmClusterDetails; - - public VmClusterDetails getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardWithExadbXsNewClusterDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", exascaleDbStorageVaultId=") - .append(String.valueOf(this.exascaleDbStorageVaultId)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardWithExadbXsNewClusterDetails)) { - return false; - } - - CreateDistributedDatabaseShardWithExadbXsNewClusterDetails other = - (CreateDistributedDatabaseShardWithExadbXsNewClusterDetails) o; - return java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals( - this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.exascaleDbStorageVaultId == null - ? 43 - : this.exascaleDbStorageVaultId.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java deleted file mode 100644 index 91e90d0c2eb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails.java +++ /dev/null @@ -1,505 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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( - char[] adminPassword, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - String availabilityDomain, - DbStorageVaultDetails dbStorageVaultDetails, - VmClusterDetails vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(); - this.adminPassword = adminPassword; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The admin password for the shard associated with Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard associated with Globally distributed database. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard associated with Globally distributed database. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The name of the availability domain that the distributed database shard will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") - private final DbStorageVaultDetails dbStorageVaultDetails; - - public DbStorageVaultDetails getDbStorageVaultDetails() { - return dbStorageVaultDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final VmClusterDetails vmClusterDetails; - - public VmClusterDetails getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", adminPassword=").append(""); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails)) { - return false; - } - - CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails other = - (CreateDistributedDatabaseShardWithExadbXsNewVaultAndClusterDetails) o; - return java.util.Objects.equals(this.adminPassword, other.adminPassword) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.dbStorageVaultDetails == null - ? 43 - : this.dbStorageVaultDetails.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java deleted file mode 100644 index bdde8b4b100..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardDatabaseDetails.java +++ /dev/null @@ -1,168 +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 system data guard shard. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateSystemDataGuardDatabaseDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateSystemDataGuardDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public CreateSystemDataGuardDatabaseDetails( - CreateSystemDataGuardReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateSystemDataGuardReplicaDetails originalReplica; - - public Builder originalReplica(CreateSystemDataGuardReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details required to create system data guard replicas. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details required to create system data guard replicas. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateSystemDataGuardDatabaseDetails build() { - CreateSystemDataGuardDatabaseDetails model = - new CreateSystemDataGuardDatabaseDetails( - this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateSystemDataGuardDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateSystemDataGuardReplicaDetails originalReplica; - - public CreateSystemDataGuardReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * The details required to create system data guard replicas. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details required to create system data guard replicas. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateSystemDataGuardDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateSystemDataGuardDatabaseDetails)) { - return false; - } - - CreateSystemDataGuardDatabaseDetails other = (CreateSystemDataGuardDatabaseDetails) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.java deleted file mode 100644 index ce4ba0a5d63..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemDataGuardReplicaDetails.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.model; - -/** - * Details required to create system data guard replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateSystemDataGuardReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateSystemDataGuardReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public CreateSystemDataGuardReplicaDetails( - String name, java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateSystemDataGuardReplicaDetails build() { - CreateSystemDataGuardReplicaDetails model = - new CreateSystemDataGuardReplicaDetails(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateSystemDataGuardReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateSystemDataGuardReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateSystemDataGuardReplicaDetails)) { - return false; - } - - CreateSystemDataGuardReplicaDetails other = (CreateSystemDataGuardReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java deleted file mode 100644 index 0c874ea665d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateSystemRaftClusterDetails.java +++ /dev/null @@ -1,351 +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 system raft cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateSystemRaftClusterDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateSystemRaftClusterDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public CreateSystemRaftClusterDetails( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases( - java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateSystemRaftClusterDetails build() { - CreateSystemRaftClusterDetails model = - new CreateSystemRaftClusterDetails( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateSystemRaftClusterDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - map.put(v.getValue(), v); - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid RuMode: " + key); - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateSystemRaftClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateSystemRaftClusterDetails)) { - return false; - } - - CreateSystemRaftClusterDetails other = (CreateSystemRaftClusterDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java deleted file mode 100644 index d2b0c1da17c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceDetails.java +++ /dev/null @@ -1,218 +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 user shard space. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateUserShardSpaceDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateUserShardSpaceDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) - public CreateUserShardSpaceDetails( - String name, - CreateUserShardSpaceReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private CreateUserShardSpaceReplicaDetails originalReplica; - - public Builder originalReplica(CreateUserShardSpaceReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replica for the user shard space being created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replica for the user shard space being created. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateUserShardSpaceDetails build() { - CreateUserShardSpaceDetails model = - new CreateUserShardSpaceDetails( - this.name, this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateUserShardSpaceDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final CreateUserShardSpaceReplicaDetails originalReplica; - - public CreateUserShardSpaceReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replica for the user shard space being created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details of data guard replica for the user shard space being created. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateUserShardSpaceDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateUserShardSpaceDetails)) { - return false; - } - - CreateUserShardSpaceDetails other = (CreateUserShardSpaceDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java deleted file mode 100644 index 0f7764bbeec..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/CreateUserShardSpaceReplicaDetails.java +++ /dev/null @@ -1,173 +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 user shard space replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateUserShardSpaceReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class CreateUserShardSpaceReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public CreateUserShardSpaceReplicaDetails( - String name, CreateDistributedDatabaseShardDatabaseDetails database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private CreateDistributedDatabaseShardDatabaseDetails database; - - public Builder database(CreateDistributedDatabaseShardDatabaseDetails database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateUserShardSpaceReplicaDetails build() { - CreateUserShardSpaceReplicaDetails model = - new CreateUserShardSpaceReplicaDetails(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateUserShardSpaceReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final CreateDistributedDatabaseShardDatabaseDetails database; - - public CreateDistributedDatabaseShardDatabaseDetails getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateUserShardSpaceReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateUserShardSpaceReplicaDetails)) { - return false; - } - - CreateUserShardSpaceReplicaDetails other = (CreateUserShardSpaceReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java deleted file mode 100644 index a35943b31ae..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DbStorageVaultDetails.java +++ /dev/null @@ -1,366 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DbStorageVaultDetails - extends com.oracle.bmc.http.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 889b5350b37..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabase.java +++ /dev/null @@ -1,2013 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabase - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 { - 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 { - Oltp("OLTP"), - Dw("DW"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DbWorkloadType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DbWorkloadType v : DbWorkloadType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - DbWorkloadType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DbWorkloadType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'DbWorkloadType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Possible workload types. Currently only OLTP workload type is supported. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbWorkloadType") - private final DbWorkloadType dbWorkloadType; - - /** - * Possible workload types. Currently only OLTP workload type is supported. - * @return the value - **/ - public DbWorkloadType getDbWorkloadType() { - return dbWorkloadType; - } - - /** - * The character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private final String characterSet; - - /** - * The character set for the database. - * @return the value - **/ - public String getCharacterSet() { - return characterSet; - } - - /** - * The national character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; - - /** - * The national character set for the database. - * @return the value - **/ - public String getNcharacterSet() { - return ncharacterSet; - } - - /** - * The listener port number for the Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private final Integer listenerPort; - - /** - * The listener port number for the Globally distributed autonomous database. - * @return the value - **/ - public Integer getListenerPort() { - return listenerPort; - } - - /** - * The TLS listener port number for Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private final Integer listenerPortTls; - - /** - * The TLS listener port number for Globally distributed autonomous database. - * @return the value - **/ - public Integer getListenerPortTls() { - return listenerPortTls; - } - - /** - * Ons local port number for Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") - private final Integer onsPortLocal; - - /** - * Ons local port number for Globally distributed autonomous database. - * @return the value - **/ - public Integer getOnsPortLocal() { - return onsPortLocal; - } - - /** - * Ons remote port number for Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") - private final Integer onsPortRemote; - - /** - * Ons remote port number for Globally distributed autonomous database. - * @return the value - **/ - public Integer getOnsPortRemote() { - return onsPortRemote; - } - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") - private final Integer systemChunkCount; - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - * @return the value - **/ - public Integer getSystemChunkCount() { - return systemChunkCount; - } - - /** - * Number of replication units associated with system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") - private final Integer systemRaftReplicationUnitCount; - - /** - * Number of replication units associated with system raft clusters. - * @return the value - **/ - public Integer getSystemRaftReplicationUnitCount() { - return systemRaftReplicationUnitCount; - } - - @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImage") - private final DistributedAutonomousDatabaseGsmImage latestGsmImage; - - public DistributedAutonomousDatabaseGsmImage getLatestGsmImage() { - return latestGsmImage; - } - - /** - * Collection of composite raft shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") - private final java.util.List compositeRaftShardSpaces; - - /** - * Collection of composite raft shards. - * @return the value - **/ - public java.util.List getCompositeRaftShardSpaces() { - return compositeRaftShardSpaces; - } - - /** - * Collection of composite data guard shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") - private final java.util.List - compositeDataGuardShardSpaces; - - /** - * Collection of composite data guard shard spaces. - * @return the value - **/ - public java.util.List - getCompositeDataGuardShardSpaces() { - return compositeDataGuardShardSpaces; - } - - /** - * Collection of system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") - private final java.util.List systemRaftClusters; - - /** - * Collection of system raft clusters. - * @return the value - **/ - public java.util.List getSystemRaftClusters() { - return systemRaftClusters; - } - - @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") - private final AutonomousSystemDataGuardDatabase systemDataGuardDatabases; - - public AutonomousSystemDataGuardDatabase getSystemDataGuardDatabases() { - return systemDataGuardDatabases; - } - - /** - * Collection of user defined shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") - private final java.util.List userShardSpaces; - - /** - * Collection of user defined shard spaces. - * @return the value - **/ - public java.util.List getUserShardSpaces() { - return userShardSpaces; - } - - /** - * Catalog details associated with the distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") - private final java.util.List catalogDetails; - - /** - * Catalog details associated with the distributed autonomous database. - * @return the value - **/ - public java.util.List getCatalogDetails() { - return catalogDetails; - } - - /** - * Global Service Manager (GSM) instances associated with the distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") - private final java.util.List gsmDetails; - - /** - * Global Service Manager (GSM) instances associated with the distributed autonomous database. - * @return the value - **/ - public java.util.List getGsmDetails() { - return gsmDetails; - } - - /** - * Global Database Services Control(GDS CTL) instances associated with the distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeDetails") - private final java.util.List gdsControlNodeDetails; - - /** - * Global Database Services Control(GDS CTL) instances associated with the distributed autonomous database. - * @return the value - **/ - public java.util.List getGdsControlNodeDetails() { - return gdsControlNodeDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private final DistributedAutonomousDbBackupConfig dbBackupConfig; - - public DistributedAutonomousDbBackupConfig getDbBackupConfig() { - return dbBackupConfig; - } - - @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") - private final AutoResourceManagementConfigurationDetails autoResourceManagementConfig; - - public AutoResourceManagementConfigurationDetails getAutoResourceManagementConfig() { - return autoResourceManagementConfig; - } - - /** - * The list of network security group (NSG) details associated with the distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the distributed autonomous database. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedAutonomousDbMetadata metadata; - - public DistributedAutonomousDbMetadata getMetadata() { - return metadata; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - **/ - public java.util.Map> getSystemTags() { - return systemTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabase("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); - sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings)); - sb.append(", prefix=").append(String.valueOf(this.prefix)); - sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", dbWorkloadType=").append(String.valueOf(this.dbWorkloadType)); - sb.append(", characterSet=").append(String.valueOf(this.characterSet)); - sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); - sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); - sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); - sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); - sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); - sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); - sb.append(", systemRaftReplicationUnitCount=") - .append(String.valueOf(this.systemRaftReplicationUnitCount)); - sb.append(", latestGsmImage=").append(String.valueOf(this.latestGsmImage)); - sb.append(", compositeRaftShardSpaces=") - .append(String.valueOf(this.compositeRaftShardSpaces)); - sb.append(", compositeDataGuardShardSpaces=") - .append(String.valueOf(this.compositeDataGuardShardSpaces)); - sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); - sb.append(", systemDataGuardDatabases=") - .append(String.valueOf(this.systemDataGuardDatabases)); - sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); - sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); - sb.append(", gsmDetails=").append(String.valueOf(this.gsmDetails)); - sb.append(", gdsControlNodeDetails=").append(String.valueOf(this.gdsControlNodeDetails)); - sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); - sb.append(", autoResourceManagementConfig=") - .append(String.valueOf(this.autoResourceManagementConfig)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabase)) { - return false; - } - - DistributedAutonomousDatabase other = (DistributedAutonomousDatabase) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) - && java.util.Objects.equals(this.replicationMethod, other.replicationMethod) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals(this.connectionStrings, other.connectionStrings) - && java.util.Objects.equals(this.prefix, other.prefix) - && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.dbWorkloadType, other.dbWorkloadType) - && java.util.Objects.equals(this.characterSet, other.characterSet) - && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) - && java.util.Objects.equals(this.listenerPort, other.listenerPort) - && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) - && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) - && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) - && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) - && java.util.Objects.equals( - this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) - && java.util.Objects.equals(this.latestGsmImage, other.latestGsmImage) - && java.util.Objects.equals( - this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) - && java.util.Objects.equals( - this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) - && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) - && java.util.Objects.equals( - this.systemDataGuardDatabases, other.systemDataGuardDatabases) - && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) - && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) - && java.util.Objects.equals(this.gsmDetails, other.gsmDetails) - && java.util.Objects.equals(this.gdsControlNodeDetails, other.gdsControlNodeDetails) - && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && java.util.Objects.equals( - this.autoResourceManagementConfig, other.autoResourceManagementConfig) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.metadata, other.metadata) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); - result = - (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); - result = - (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = - (result * PRIME) - + (this.connectionStrings == null ? 43 : this.connectionStrings.hashCode()); - result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); - result = - (result * PRIME) - + (this.privateEndpointIds == null - ? 43 - : this.privateEndpointIds.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = - (result * PRIME) - + (this.dbWorkloadType == null ? 43 : this.dbWorkloadType.hashCode()); - result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); - result = - (result * PRIME) - + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); - result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); - result = - (result * PRIME) - + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); - result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); - result = - (result * PRIME) - + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); - result = - (result * PRIME) - + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); - result = - (result * PRIME) - + (this.systemRaftReplicationUnitCount == null - ? 43 - : this.systemRaftReplicationUnitCount.hashCode()); - result = - (result * PRIME) - + (this.latestGsmImage == null ? 43 : this.latestGsmImage.hashCode()); - result = - (result * PRIME) - + (this.compositeRaftShardSpaces == null - ? 43 - : this.compositeRaftShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.compositeDataGuardShardSpaces == null - ? 43 - : this.compositeDataGuardShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.systemRaftClusters == null - ? 43 - : this.systemRaftClusters.hashCode()); - result = - (result * PRIME) - + (this.systemDataGuardDatabases == null - ? 43 - : this.systemDataGuardDatabases.hashCode()); - result = - (result * PRIME) - + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); - result = (result * PRIME) + (this.gsmDetails == null ? 43 : this.gsmDetails.hashCode()); - result = - (result * PRIME) - + (this.gdsControlNodeDetails == null - ? 43 - : this.gdsControlNodeDetails.hashCode()); - result = - (result * PRIME) - + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); - result = - (result * PRIME) - + (this.autoResourceManagementConfig == null - ? 43 - : this.autoResourceManagementConfig.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java deleted file mode 100644 index 3689bb4c92a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseAutoResourceManagementDetails.java +++ /dev/null @@ -1,577 +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; - -/** - * Automatic resource management configuration details for the Globally distributed autonomous database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseAutoResourceManagementDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseAutoResourceManagementDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "isEnabled", - "coolOffPeriodInMinutes", - "maxMoveRuAttempts", - "maxMoveRuUnit", - "mode", - "actionType", - "notificationTopicIds", - "streamIds" - }) - public DistributedAutonomousDatabaseAutoResourceManagementDetails( - Boolean isEnabled, - Integer coolOffPeriodInMinutes, - Integer maxMoveRuAttempts, - MaxMoveRuUnit maxMoveRuUnit, - Mode mode, - ActionType actionType, - java.util.List notificationTopicIds, - java.util.List streamIds) { - super(); - this.isEnabled = isEnabled; - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.maxMoveRuUnit = maxMoveRuUnit; - this.mode = mode; - this.actionType = actionType; - this.notificationTopicIds = notificationTopicIds; - this.streamIds = streamIds; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @param isEnabled the value to set - * @return this builder - **/ - public Builder isEnabled(Boolean isEnabled) { - this.isEnabled = isEnabled; - this.__explicitlySet__.add("isEnabled"); - return this; - } - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @param coolOffPeriodInMinutes the value to set - * @return this builder - **/ - public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.__explicitlySet__.add("coolOffPeriodInMinutes"); - return this; - } - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @param maxMoveRuAttempts the value to set - * @return this builder - **/ - public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.__explicitlySet__.add("maxMoveRuAttempts"); - return this; - } - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @param maxMoveRuUnit the value to set - * @return this builder - **/ - public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { - this.maxMoveRuUnit = maxMoveRuUnit; - this.__explicitlySet__.add("maxMoveRuUnit"); - return this; - } - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @param mode the value to set - * @return this builder - **/ - public Builder mode(Mode mode) { - this.mode = mode; - this.__explicitlySet__.add("mode"); - return this; - } - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @param actionType the value to set - * @return this builder - **/ - public Builder actionType(ActionType actionType) { - this.actionType = actionType; - this.__explicitlySet__.add("actionType"); - return this; - } - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @param streamIds the value to set - * @return this builder - **/ - public Builder streamIds(java.util.List streamIds) { - this.streamIds = streamIds; - this.__explicitlySet__.add("streamIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseAutoResourceManagementDetails build() { - DistributedAutonomousDatabaseAutoResourceManagementDetails model = - new DistributedAutonomousDatabaseAutoResourceManagementDetails( - this.isEnabled, - this.coolOffPeriodInMinutes, - this.maxMoveRuAttempts, - this.maxMoveRuUnit, - this.mode, - this.actionType, - this.notificationTopicIds, - this.streamIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseAutoResourceManagementDetails model) { - if (model.wasPropertyExplicitlySet("isEnabled")) { - this.isEnabled(model.getIsEnabled()); - } - if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { - this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { - this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { - this.maxMoveRuUnit(model.getMaxMoveRuUnit()); - } - if (model.wasPropertyExplicitlySet("mode")) { - this.mode(model.getMode()); - } - if (model.wasPropertyExplicitlySet("actionType")) { - this.actionType(model.getActionType()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("streamIds")) { - this.streamIds(model.getStreamIds()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private final Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @return the value - **/ - public Boolean getIsEnabled() { - return isEnabled; - } - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private final Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @return the value - **/ - public Integer getCoolOffPeriodInMinutes() { - return coolOffPeriodInMinutes; - } - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private final Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @return the value - **/ - public Integer getMaxMoveRuAttempts() { - return maxMoveRuAttempts; - } - - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - public enum MaxMoveRuUnit { - Hour("HOUR"), - Day("DAY"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(MaxMoveRuUnit.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - MaxMoveRuUnit(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static MaxMoveRuUnit create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'MaxMoveRuUnit', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private final MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @return the value - **/ - public MaxMoveRuUnit getMaxMoveRuUnit() { - return maxMoveRuUnit; - } - - /** - * Mode of autoResourceManagement execution. - **/ - public enum Mode { - Automatic("AUTOMATIC"), - Recommendation("RECOMMENDATION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Mode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Mode v : Mode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Mode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Mode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); - return UnknownEnumValue; - } - }; - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private final Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @return the value - **/ - public Mode getMode() { - return mode; - } - - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - public enum ActionType { - Move("MOVE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ActionType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ActionType v : ActionType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - ActionType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ActionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private final ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @return the value - **/ - public ActionType getActionType() { - return actionType; - } - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private final java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @return the value - **/ - public java.util.List getStreamIds() { - return streamIds; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseAutoResourceManagementDetails("); - sb.append("super=").append(super.toString()); - sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); - sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); - sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); - sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); - sb.append(", mode=").append(String.valueOf(this.mode)); - sb.append(", actionType=").append(String.valueOf(this.actionType)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", streamIds=").append(String.valueOf(this.streamIds)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseAutoResourceManagementDetails)) { - return false; - } - - DistributedAutonomousDatabaseAutoResourceManagementDetails other = - (DistributedAutonomousDatabaseAutoResourceManagementDetails) o; - return java.util.Objects.equals(this.isEnabled, other.isEnabled) - && java.util.Objects.equals( - this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) - && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) - && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) - && java.util.Objects.equals(this.mode, other.mode) - && java.util.Objects.equals(this.actionType, other.actionType) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.streamIds, other.streamIds) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); - result = - (result * PRIME) - + (this.coolOffPeriodInMinutes == null - ? 43 - : this.coolOffPeriodInMinutes.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); - result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); - result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.java deleted file mode 100644 index 427909bbc19..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalog.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.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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseCatalog - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public DistributedAutonomousDatabaseCatalog( - DistributedAutonomousDatabaseCatalogReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private DistributedAutonomousDatabaseCatalogReplica originalReplica; - - public Builder originalReplica( - DistributedAutonomousDatabaseCatalogReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replicas for the catalog. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseCatalog build() { - DistributedAutonomousDatabaseCatalog model = - new DistributedAutonomousDatabaseCatalog( - this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseCatalog model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final DistributedAutonomousDatabaseCatalogReplica originalReplica; - - public DistributedAutonomousDatabaseCatalogReplica getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details of data guard replicas for the catalog. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseCatalog("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseCatalog)) { - return false; - } - - DistributedAutonomousDatabaseCatalog other = (DistributedAutonomousDatabaseCatalog) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java deleted file mode 100644 index 5c810ad7185..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogDatabase.java +++ /dev/null @@ -1,196 +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 catalog database associated with the Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedAutonomousDatabaseCatalogDatabase.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedAutonomousDatabaseCatalogWithDedicatedInfra.class, - name = "ADBD_EXISTING_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class DistributedAutonomousDatabaseCatalogDatabase - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) - protected DistributedAutonomousDatabaseCatalogDatabase( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedAutonomousDbMetadata metadata) { - super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.metadata = metadata; - } - - /** - * The name of the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the catalog. - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The time the catalog was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the catalog was created. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the catalog was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the catalog was last updated. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedAutonomousDbMetadata metadata; - - public DistributedAutonomousDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseCatalogDatabase("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseCatalogDatabase)) { - return false; - } - - DistributedAutonomousDatabaseCatalogDatabase other = - (DistributedAutonomousDatabaseCatalogDatabase) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed autonomous database type. - * Use ADBD_EXISTING_CLUSTER for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. - * - **/ - public enum Source { - AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Source.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java deleted file mode 100644 index 25033f17d63..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogReplica.java +++ /dev/null @@ -1,174 +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 catalog replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseCatalogReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseCatalogReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public DistributedAutonomousDatabaseCatalogReplica( - String name, DistributedAutonomousDatabaseCatalogDatabase database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private DistributedAutonomousDatabaseCatalogDatabase database; - - public Builder database(DistributedAutonomousDatabaseCatalogDatabase database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseCatalogReplica build() { - DistributedAutonomousDatabaseCatalogReplica model = - new DistributedAutonomousDatabaseCatalogReplica(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseCatalogReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final DistributedAutonomousDatabaseCatalogDatabase database; - - public DistributedAutonomousDatabaseCatalogDatabase getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseCatalogReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseCatalogReplica)) { - return false; - } - - DistributedAutonomousDatabaseCatalogReplica other = - (DistributedAutonomousDatabaseCatalogReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java deleted file mode 100644 index f3dcadd0971..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCatalogWithDedicatedInfra.java +++ /dev/null @@ -1,865 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the distributed autonomous database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the distributed autonomous database catalog. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseCatalogWithDedicatedInfra("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", computeCount=").append(String.valueOf(this.computeCount)); - sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); - sb.append(", isAutoScalingEnabled=").append(String.valueOf(this.isAutoScalingEnabled)); - sb.append(", cloudAutonomousVmClusterId=") - .append(String.valueOf(this.cloudAutonomousVmClusterId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", okvKeyStoreId=").append(String.valueOf(this.okvKeyStoreId)); - sb.append(", okvEndPointGroupName=").append(String.valueOf(this.okvEndPointGroupName)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", fastStartFailOverLagLimitInSeconds=") - .append(String.valueOf(this.fastStartFailOverLagLimitInSeconds)); - sb.append(", standbyMaintenanceBufferInDays=") - .append(String.valueOf(this.standbyMaintenanceBufferInDays)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseCatalogWithDedicatedInfra)) { - return false; - } - - DistributedAutonomousDatabaseCatalogWithDedicatedInfra other = - (DistributedAutonomousDatabaseCatalogWithDedicatedInfra) o; - return java.util.Objects.equals(this.computeCount, other.computeCount) - && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) - && java.util.Objects.equals(this.isAutoScalingEnabled, other.isAutoScalingEnabled) - && java.util.Objects.equals( - this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.okvKeyStoreId, other.okvKeyStoreId) - && java.util.Objects.equals(this.okvEndPointGroupName, other.okvEndPointGroupName) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals( - this.fastStartFailOverLagLimitInSeconds, - other.fastStartFailOverLagLimitInSeconds) - && java.util.Objects.equals( - this.standbyMaintenanceBufferInDays, other.standbyMaintenanceBufferInDays) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); - result = - (result * PRIME) - + (this.dataStorageSizeInGbs == null - ? 43 - : this.dataStorageSizeInGbs.hashCode()); - result = - (result * PRIME) - + (this.isAutoScalingEnabled == null - ? 43 - : this.isAutoScalingEnabled.hashCode()); - result = - (result * PRIME) - + (this.cloudAutonomousVmClusterId == null - ? 43 - : this.cloudAutonomousVmClusterId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.okvKeyStoreId == null ? 43 : this.okvKeyStoreId.hashCode()); - result = - (result * PRIME) - + (this.okvEndPointGroupName == null - ? 43 - : this.okvEndPointGroupName.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.fastStartFailOverLagLimitInSeconds == null - ? 43 - : this.fastStartFailOverLagLimitInSeconds.hashCode()); - result = - (result * PRIME) - + (this.standbyMaintenanceBufferInDays == null - ? 43 - : this.standbyMaintenanceBufferInDays.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java deleted file mode 100644 index b2a1edf8109..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseCollection.java +++ /dev/null @@ -1,137 +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; - -/** - * Collection of Globally distributed autonomous databases. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseCollection.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public DistributedAutonomousDatabaseCollection( - java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Array of Globally distributed autonomous database summaries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * Array of Globally distributed autonomous database summaries. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseCollection build() { - DistributedAutonomousDatabaseCollection model = - new DistributedAutonomousDatabaseCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Array of Globally distributed autonomous database summaries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * Array of Globally distributed autonomous database summaries. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseCollection("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseCollection)) { - return false; - } - - DistributedAutonomousDatabaseCollection other = (DistributedAutonomousDatabaseCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java deleted file mode 100644 index 333880ca94c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseConnectionString.java +++ /dev/null @@ -1,143 +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 Globally distributed autonomous database connection String. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseConnectionString.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseConnectionString - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"allConnectionStrings"}) - public DistributedAutonomousDatabaseConnectionString( - java.util.Map allConnectionStrings) { - super(); - this.allConnectionStrings = allConnectionStrings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Collection of connection strings. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private java.util.Map allConnectionStrings; - - /** - * Collection of connection strings. - * @param allConnectionStrings the value to set - * @return this builder - **/ - public Builder allConnectionStrings(java.util.Map allConnectionStrings) { - this.allConnectionStrings = allConnectionStrings; - this.__explicitlySet__.add("allConnectionStrings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseConnectionString build() { - DistributedAutonomousDatabaseConnectionString model = - new DistributedAutonomousDatabaseConnectionString(this.allConnectionStrings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseConnectionString model) { - if (model.wasPropertyExplicitlySet("allConnectionStrings")) { - this.allConnectionStrings(model.getAllConnectionStrings()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Collection of connection strings. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private final java.util.Map allConnectionStrings; - - /** - * Collection of connection strings. - * @return the value - **/ - public java.util.Map getAllConnectionStrings() { - return allConnectionStrings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseConnectionString("); - sb.append("super=").append(super.toString()); - sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseConnectionString)) { - return false; - } - - DistributedAutonomousDatabaseConnectionString other = - (DistributedAutonomousDatabaseConnectionString) o; - return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.allConnectionStrings == null - ? 43 - : this.allConnectionStrings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java deleted file mode 100644 index f18e511255e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNode.java +++ /dev/null @@ -1,453 +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 Database Services Control(GDS CTL) instances for the Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseGdsControlNode.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseGdsControlNode - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "subnetId", - "availabilityDomain", - "timeCreated", - "timeUpdated", - "supportingResourceId", - "privateIp", - "gdsControlNodeImageDetails", - "metadata" - }) - public DistributedAutonomousDatabaseGdsControlNode( - String name, - String subnetId, - String availabilityDomain, - java.util.Date timeCreated, - java.util.Date timeUpdated, - String supportingResourceId, - String privateIp, - DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails, - DistributedAutonomousDbMetadata metadata) { - super(); - this.name = name; - this.subnetId = subnetId; - this.availabilityDomain = availabilityDomain; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.supportingResourceId = supportingResourceId; - this.privateIp = privateIp; - this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; - this.metadata = metadata; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Name of the Global Database Services Control instance - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * Name of the Global Database Services Control instance - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - * @param timeCreated the value to set - * @return this builder - **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - * @param timeUpdated the value to set - * @return this builder - **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** - * The identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * The identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * IP address of the Global Database Services Control instance. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * IP address of the Global Database Services Control instance. - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") - private DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails; - - public Builder gdsControlNodeImageDetails( - DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails) { - this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; - this.__explicitlySet__.add("gdsControlNodeImageDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedAutonomousDbMetadata metadata; - - public Builder metadata(DistributedAutonomousDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseGdsControlNode build() { - DistributedAutonomousDatabaseGdsControlNode model = - new DistributedAutonomousDatabaseGdsControlNode( - this.name, - this.subnetId, - this.availabilityDomain, - this.timeCreated, - this.timeUpdated, - this.supportingResourceId, - this.privateIp, - this.gdsControlNodeImageDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseGdsControlNode model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } - if (model.wasPropertyExplicitlySet("gdsControlNodeImageDetails")) { - this.gdsControlNodeImageDetails(model.getGdsControlNodeImageDetails()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Name of the Global Database Services Control instance - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * Name of the Global Database Services Control instance - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - * @return the value - **/ - public String getSubnetId() { - return subnetId; - } - - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** - * The identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * The identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * IP address of the Global Database Services Control instance. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * IP address of the Global Database Services Control instance. - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - - @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") - private final DistributedAutonomousDatabaseGdsControlNodeImage gdsControlNodeImageDetails; - - public DistributedAutonomousDatabaseGdsControlNodeImage getGdsControlNodeImageDetails() { - return gdsControlNodeImageDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedAutonomousDbMetadata metadata; - - public DistributedAutonomousDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseGdsControlNode("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); - sb.append(", gdsControlNodeImageDetails=") - .append(String.valueOf(this.gdsControlNodeImageDetails)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseGdsControlNode)) { - return false; - } - - DistributedAutonomousDatabaseGdsControlNode other = - (DistributedAutonomousDatabaseGdsControlNode) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.privateIp, other.privateIp) - && java.util.Objects.equals( - this.gdsControlNodeImageDetails, other.gdsControlNodeImageDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); - result = - (result * PRIME) - + (this.gdsControlNodeImageDetails == null - ? 43 - : this.gdsControlNodeImageDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.java deleted file mode 100644 index 3a085385938..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGdsControlNodeImage.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; - -/** - * The Global Database Services Control(GDS CTL) image details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseGdsControlNodeImage.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseGdsControlNodeImage - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"id", "version"}) - public DistributedAutonomousDatabaseGdsControlNodeImage(String id, String version) { - super(); - this.id = id; - this.version = version; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * The version associated with the image identified by id. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - - /** - * The version associated with the image identified by id. - * @param version the value to set - * @return this builder - **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseGdsControlNodeImage build() { - DistributedAutonomousDatabaseGdsControlNodeImage model = - new DistributedAutonomousDatabaseGdsControlNodeImage(this.id, this.version); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseGdsControlNodeImage model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * The version associated with the image identified by id. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; - - /** - * The version associated with the image identified by id. - * @return the value - **/ - public String getVersion() { - return version; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseGdsControlNodeImage("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", version=").append(String.valueOf(this.version)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseGdsControlNodeImage)) { - return false; - } - - DistributedAutonomousDatabaseGdsControlNodeImage other = - (DistributedAutonomousDatabaseGdsControlNodeImage) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.version, other.version) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java deleted file mode 100644 index 5477818a53f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsm.java +++ /dev/null @@ -1,543 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseGsm - extends com.oracle.bmc.http.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 { - 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 f00a779f52c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseGsmImage.java +++ /dev/null @@ -1,174 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseGsmImage - extends com.oracle.bmc.http.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 4f158649f23..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRaftMetric.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseRaftMetric - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"raftMetrics", "configTasks"}) - public DistributedAutonomousDatabaseRaftMetric( - java.util.Map raftMetrics, java.util.Map configTasks) { - super(); - this.raftMetrics = raftMetrics; - this.configTasks = configTasks; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Raft metrics for the Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") - private java.util.Map raftMetrics; - - /** - * Raft metrics for the Globally distributed autonomous database. - * @param raftMetrics the value to set - * @return this builder - **/ - public Builder raftMetrics(java.util.Map raftMetrics) { - this.raftMetrics = raftMetrics; - this.__explicitlySet__.add("raftMetrics"); - return this; - } - /** - * Details of in-progress configuration tasks. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("configTasks") - private java.util.Map configTasks; - - /** - * Details of in-progress configuration tasks. - * @param configTasks the value to set - * @return this builder - **/ - public Builder configTasks(java.util.Map configTasks) { - this.configTasks = configTasks; - this.__explicitlySet__.add("configTasks"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseRaftMetric build() { - DistributedAutonomousDatabaseRaftMetric model = - new DistributedAutonomousDatabaseRaftMetric(this.raftMetrics, this.configTasks); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseRaftMetric model) { - if (model.wasPropertyExplicitlySet("raftMetrics")) { - this.raftMetrics(model.getRaftMetrics()); - } - if (model.wasPropertyExplicitlySet("configTasks")) { - this.configTasks(model.getConfigTasks()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Raft metrics for the Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") - private final java.util.Map raftMetrics; - - /** - * Raft metrics for the Globally distributed autonomous database. - * @return the value - **/ - public java.util.Map getRaftMetrics() { - return raftMetrics; - } - - /** - * Details of in-progress configuration tasks. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("configTasks") - private final java.util.Map configTasks; - - /** - * Details of in-progress configuration tasks. - * @return the value - **/ - public java.util.Map getConfigTasks() { - return configTasks; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseRaftMetric("); - sb.append("super=").append(super.toString()); - sb.append("raftMetrics=").append(String.valueOf(this.raftMetrics)); - sb.append(", configTasks=").append(String.valueOf(this.configTasks)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseRaftMetric)) { - return false; - } - - DistributedAutonomousDatabaseRaftMetric other = (DistributedAutonomousDatabaseRaftMetric) o; - return java.util.Objects.equals(this.raftMetrics, other.raftMetrics) - && java.util.Objects.equals(this.configTasks, other.configTasks) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.raftMetrics == null ? 43 : this.raftMetrics.hashCode()); - result = (result * PRIME) + (this.configTasks == null ? 43 : this.configTasks.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java deleted file mode 100644 index 7475004e62a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLog.java +++ /dev/null @@ -1,139 +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; - -/** - * Move RU invocation history for the Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseRuChangeLog.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseRuChangeLog - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"ruChangeLog"}) - public DistributedAutonomousDatabaseRuChangeLog( - java.util.List ruChangeLog) { - super(); - this.ruChangeLog = ruChangeLog; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Ordered list of move RU invocations (latest first). - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") - private java.util.List ruChangeLog; - - /** - * Ordered list of move RU invocations (latest first). - * @param ruChangeLog the value to set - * @return this builder - **/ - public Builder ruChangeLog( - java.util.List ruChangeLog) { - this.ruChangeLog = ruChangeLog; - this.__explicitlySet__.add("ruChangeLog"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseRuChangeLog build() { - DistributedAutonomousDatabaseRuChangeLog model = - new DistributedAutonomousDatabaseRuChangeLog(this.ruChangeLog); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseRuChangeLog model) { - if (model.wasPropertyExplicitlySet("ruChangeLog")) { - this.ruChangeLog(model.getRuChangeLog()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Ordered list of move RU invocations (latest first). - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") - private final java.util.List ruChangeLog; - - /** - * Ordered list of move RU invocations (latest first). - * @return the value - **/ - public java.util.List getRuChangeLog() { - return ruChangeLog; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseRuChangeLog("); - sb.append("super=").append(super.toString()); - sb.append("ruChangeLog=").append(String.valueOf(this.ruChangeLog)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseRuChangeLog)) { - return false; - } - - DistributedAutonomousDatabaseRuChangeLog other = - (DistributedAutonomousDatabaseRuChangeLog) o; - return java.util.Objects.equals(this.ruChangeLog, other.ruChangeLog) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.ruChangeLog == null ? 43 : this.ruChangeLog.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java deleted file mode 100644 index b269766a9e1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseRuChangeLogSummary.java +++ /dev/null @@ -1,435 +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; - -/** - * One move RU invocation record for the Globally distributed autonomous database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDatabaseRuChangeLogSummary.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseRuChangeLogSummary - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "sourceShardName", - "targetShardName", - "ruId", - "status", - "triggeredBy", - "timeCreated", - "timeUpdated" - }) - public DistributedAutonomousDatabaseRuChangeLogSummary( - String sourceShardName, - String targetShardName, - String ruId, - Status status, - String triggeredBy, - java.util.Date timeCreated, - java.util.Date timeUpdated) { - super(); - this.sourceShardName = sourceShardName; - this.targetShardName = targetShardName; - this.ruId = ruId; - this.status = status; - this.triggeredBy = triggeredBy; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Source shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") - private String sourceShardName; - - /** - * Source shard for move RU invocation. - * @param sourceShardName the value to set - * @return this builder - **/ - public Builder sourceShardName(String sourceShardName) { - this.sourceShardName = sourceShardName; - this.__explicitlySet__.add("sourceShardName"); - return this; - } - /** - * Target shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") - private String targetShardName; - - /** - * Target shard for move RU invocation. - * @param targetShardName the value to set - * @return this builder - **/ - public Builder targetShardName(String targetShardName) { - this.targetShardName = targetShardName; - this.__explicitlySet__.add("targetShardName"); - return this; - } - /** - * Replication unit identifier associated with the invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruId") - private String ruId; - - /** - * Replication unit identifier associated with the invocation. - * @param ruId the value to set - * @return this builder - **/ - public Builder ruId(String ruId) { - this.ruId = ruId; - this.__explicitlySet__.add("ruId"); - return this; - } - /** - * Current or terminal status of the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Current or terminal status of the move RU invocation. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * Actor who triggered the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") - private String triggeredBy; - - /** - * Actor who triggered the move RU invocation. - * @param triggeredBy the value to set - * @return this builder - **/ - public Builder triggeredBy(String triggeredBy) { - this.triggeredBy = triggeredBy; - this.__explicitlySet__.add("triggeredBy"); - return this; - } - /** - * Entry creation timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * Entry creation timestamp in UTC. - * @param timeCreated the value to set - * @return this builder - **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * Entry update timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * Entry update timestamp in UTC. - * @param timeUpdated the value to set - * @return this builder - **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDatabaseRuChangeLogSummary build() { - DistributedAutonomousDatabaseRuChangeLogSummary model = - new DistributedAutonomousDatabaseRuChangeLogSummary( - this.sourceShardName, - this.targetShardName, - this.ruId, - this.status, - this.triggeredBy, - this.timeCreated, - this.timeUpdated); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDatabaseRuChangeLogSummary model) { - if (model.wasPropertyExplicitlySet("sourceShardName")) { - this.sourceShardName(model.getSourceShardName()); - } - if (model.wasPropertyExplicitlySet("targetShardName")) { - this.targetShardName(model.getTargetShardName()); - } - if (model.wasPropertyExplicitlySet("ruId")) { - this.ruId(model.getRuId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("triggeredBy")) { - this.triggeredBy(model.getTriggeredBy()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Source shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") - private final String sourceShardName; - - /** - * Source shard for move RU invocation. - * @return the value - **/ - public String getSourceShardName() { - return sourceShardName; - } - - /** - * Target shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") - private final String targetShardName; - - /** - * Target shard for move RU invocation. - * @return the value - **/ - public String getTargetShardName() { - return targetShardName; - } - - /** - * Replication unit identifier associated with the invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruId") - private final String ruId; - - /** - * Replication unit identifier associated with the invocation. - * @return the value - **/ - public String getRuId() { - return ruId; - } - - /** - * Current or terminal status of the move RU invocation. - **/ - public enum Status { - Failed("FAILED"), - Queued("QUEUED"), - InProgress("IN_PROGRESS"), - Completed("COMPLETED"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Current or terminal status of the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Current or terminal status of the move RU invocation. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * Actor who triggered the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") - private final String triggeredBy; - - /** - * Actor who triggered the move RU invocation. - * @return the value - **/ - public String getTriggeredBy() { - return triggeredBy; - } - - /** - * Entry creation timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * Entry creation timestamp in UTC. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * Entry update timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * Entry update timestamp in UTC. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseRuChangeLogSummary("); - sb.append("super=").append(super.toString()); - sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); - sb.append(", targetShardName=").append(String.valueOf(this.targetShardName)); - sb.append(", ruId=").append(String.valueOf(this.ruId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", triggeredBy=").append(String.valueOf(this.triggeredBy)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseRuChangeLogSummary)) { - return false; - } - - DistributedAutonomousDatabaseRuChangeLogSummary other = - (DistributedAutonomousDatabaseRuChangeLogSummary) o; - return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) - && java.util.Objects.equals(this.targetShardName, other.targetShardName) - && java.util.Objects.equals(this.ruId, other.ruId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.triggeredBy, other.triggeredBy) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); - result = - (result * PRIME) - + (this.targetShardName == null ? 43 : this.targetShardName.hashCode()); - result = (result * PRIME) + (this.ruId == null ? 43 : this.ruId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = (result * PRIME) + (this.triggeredBy == null ? 43 : this.triggeredBy.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java deleted file mode 100644 index 7ce956cde7f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardDatabase.java +++ /dev/null @@ -1,196 +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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedAutonomousDatabaseShardDatabase.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedAutonomousDatabaseShardWithDedicatedInfra.class, - name = "ADBD_EXISTING_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class DistributedAutonomousDatabaseShardDatabase - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) - protected DistributedAutonomousDatabaseShardDatabase( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedAutonomousDbMetadata metadata) { - super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.metadata = metadata; - } - - /** - * Name of the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * Name of the shard. - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The time the shard was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the shard was created. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the shard was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the shard was last updated. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedAutonomousDbMetadata metadata; - - public DistributedAutonomousDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDatabaseShardDatabase("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDatabaseShardDatabase)) { - return false; - } - - DistributedAutonomousDatabaseShardDatabase other = - (DistributedAutonomousDatabaseShardDatabase) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed autonomous database type. - * Use ADBD_EXISTING_CLUSTER for an autonomous database on Dedicated Infrastructure that uses a pre-existing cluster. - * - **/ - public enum Source { - AdbdExistingCluster("ADBD_EXISTING_CLUSTER"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Source.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java deleted file mode 100644 index 184b4799e9c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseShardWithDedicatedInfra.java +++ /dev/null @@ -1,861 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.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 { - 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 1c00c5743ad..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDatabaseSummary.java +++ /dev/null @@ -1,1440 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDatabaseSummary - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 4629585544b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupConfig.java +++ /dev/null @@ -1,201 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDbBackupConfig - extends com.oracle.bmc.http.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 4f1c333c101..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbBackupDestination.java +++ /dev/null @@ -1,404 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDbBackupDestination - extends com.oracle.bmc.http.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 { - Nfs("NFS"), - ObjectStore("OBJECT_STORE"), - Local("LOCAL"), - Dbrs("DBRS"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Type v : Type.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Type(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Type create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); - return UnknownEnumValue; - } - }; - /** - * Type of the database backup destination. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private final Type type; - - /** - * Type of the database backup destination. - * @return the value - **/ - public Type getType() { - return type; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * Proxy URL to connect to object store. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") - private final String internetProxy; - - /** - * Proxy URL to connect to object store. - * @return the value - **/ - public String getInternetProxy() { - return internetProxy; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS policy used for backup. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbrsPolicyId") - private final String dbrsPolicyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS policy used for backup. - * @return the value - **/ - public String getDbrsPolicyId() { - return dbrsPolicyId; - } - - /** - * Indicates whether the backup destination is cross-region or local region. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isRemote") - private final Boolean isRemote; - - /** - * Indicates whether the backup destination is cross-region or local region. - * @return the value - **/ - public Boolean getIsRemote() { - return isRemote; - } - - /** - * The name of the remote region where the remote automatic incremental backups will be stored. - * For information about valid region names, see - * [Regions and Availability Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") - private final String remoteRegion; - - /** - * The name of the remote region where the remote automatic incremental backups will be stored. - * For information about valid region names, see - * [Regions and Availability Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). - * - * @return the value - **/ - public String getRemoteRegion() { - return remoteRegion; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDbBackupDestination("); - sb.append("super=").append(super.toString()); - sb.append("type=").append(String.valueOf(this.type)); - sb.append(", id=").append(String.valueOf(this.id)); - sb.append(", internetProxy=").append(String.valueOf(this.internetProxy)); - sb.append(", dbrsPolicyId=").append(String.valueOf(this.dbrsPolicyId)); - sb.append(", isRemote=").append(String.valueOf(this.isRemote)); - sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDbBackupDestination)) { - return false; - } - - DistributedAutonomousDbBackupDestination other = - (DistributedAutonomousDbBackupDestination) o; - return java.util.Objects.equals(this.type, other.type) - && java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.internetProxy, other.internetProxy) - && java.util.Objects.equals(this.dbrsPolicyId, other.dbrsPolicyId) - && java.util.Objects.equals(this.isRemote, other.isRemote) - && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.internetProxy == null ? 43 : this.internetProxy.hashCode()); - result = (result * PRIME) + (this.dbrsPolicyId == null ? 43 : this.dbrsPolicyId.hashCode()); - result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); - result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java deleted file mode 100644 index f0beaa6df92..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbMetadata.java +++ /dev/null @@ -1,135 +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; - -/** - * Additional metadata related to Globally distributed autonomous database resources. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedAutonomousDbMetadata.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedAutonomousDbMetadata - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"map"}) - public DistributedAutonomousDbMetadata(java.util.Map map) { - super(); - this.map = map; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The map containing key-value pair of additional metadata. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private java.util.Map map; - - /** - * The map containing key-value pair of additional metadata. - * @param map the value to set - * @return this builder - **/ - public Builder map(java.util.Map map) { - this.map = map; - this.__explicitlySet__.add("map"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedAutonomousDbMetadata build() { - DistributedAutonomousDbMetadata model = new DistributedAutonomousDbMetadata(this.map); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedAutonomousDbMetadata model) { - if (model.wasPropertyExplicitlySet("map")) { - this.map(model.getMap()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The map containing key-value pair of additional metadata. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private final java.util.Map map; - - /** - * The map containing key-value pair of additional metadata. - * @return the value - **/ - public java.util.Map getMap() { - return map; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedAutonomousDbMetadata("); - sb.append("super=").append(super.toString()); - sb.append("map=").append(String.valueOf(this.map)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedAutonomousDbMetadata)) { - return false; - } - - DistributedAutonomousDbMetadata other = (DistributedAutonomousDbMetadata) o; - return java.util.Objects.equals(this.map, other.map) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.map == null ? 43 : this.map.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java deleted file mode 100644 index d8109576459..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedAutonomousDbProtectionMode.java +++ /dev/null @@ -1,59 +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 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. - * - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum DistributedAutonomousDbProtectionMode { - MaximumAvailability("MAXIMUM_AVAILABILITY"), - MaximumPerformance("MAXIMUM_PERFORMANCE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedAutonomousDbProtectionMode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DistributedAutonomousDbProtectionMode v : - DistributedAutonomousDbProtectionMode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - DistributedAutonomousDbProtectionMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedAutonomousDbProtectionMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'DistributedAutonomousDbProtectionMode', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java deleted file mode 100644 index e1ec474d4a9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabase.java +++ /dev/null @@ -1,2000 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabase extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 { - Exadb("EXADB"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DbDeploymentType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DbDeploymentType v : DbDeploymentType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - DbDeploymentType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DbDeploymentType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'DbDeploymentType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * The distributed database deployment type. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbDeploymentType") - private final DbDeploymentType dbDeploymentType; - - /** - * The distributed database deployment type. - * - * @return the value - **/ - public DbDeploymentType getDbDeploymentType() { - return dbDeploymentType; - } - - /** - * The lifecycleDetails for the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; - - /** - * The lifecycleDetails for the Globally distributed database. - * @return the value - **/ - public String getLifecycleDetails() { - return lifecycleDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectionStrings") - private final DistributedDbConnectionString connectionStrings; - - public DistributedDbConnectionString getConnectionStrings() { - return connectionStrings; - } - - /** - * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are allowed. First character - * has to be a letter followed by any combination of letter and number. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("prefix") - private final String prefix; - - /** - * Unique name prefix for the Globally distributed databases. Only alpha-numeric values are allowed. First character - * has to be a letter followed by any combination of letter and number. - * - * @return the value - **/ - public String getPrefix() { - return prefix; - } - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint associated with Globally distributed autonomous database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointIds") - private final java.util.List privateEndpointIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint associated with Globally distributed autonomous database. - * @return the value - **/ - public java.util.List getPrivateEndpointIds() { - return privateEndpointIds; - } - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - @com.fasterxml.jackson.annotation.JsonProperty("latestGsmImageDetails") - private final DistributedDbGsmImage latestGsmImageDetails; - - public DistributedDbGsmImage getLatestGsmImageDetails() { - return latestGsmImageDetails; - } - - /** - * The character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("characterSet") - private final String characterSet; - - /** - * The character set for the database. - * @return the value - **/ - public String getCharacterSet() { - return characterSet; - } - - /** - * The national character set for the database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") - private final String ncharacterSet; - - /** - * The national character set for the database. - * @return the value - **/ - public String getNcharacterSet() { - return ncharacterSet; - } - - /** - * The Global service manager listener port number for the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPort") - private final Integer listenerPort; - - /** - * The Global service manager listener port number for the Globally distributed database. - * @return the value - **/ - public Integer getListenerPort() { - return listenerPort; - } - - /** - * The TLS listener port number for Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("listenerPortTls") - private final Integer listenerPortTls; - - /** - * The TLS listener port number for Globally distributed database. - * @return the value - **/ - public Integer getListenerPortTls() { - return listenerPortTls; - } - - /** - * Ons local port number. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortLocal") - private final Integer onsPortLocal; - - /** - * Ons local port number. - * @return the value - **/ - public Integer getOnsPortLocal() { - return onsPortLocal; - } - - /** - * Ons remote port number. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("onsPortRemote") - private final Integer onsPortRemote; - - /** - * Ons remote port number. - * @return the value - **/ - public Integer getOnsPortRemote() { - return onsPortRemote; - } - - /** - * The TCP SCAN listener port for database clusters with source type XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("scanListenerPort") - private final Integer scanListenerPort; - - /** - * The TCP SCAN listener port for database clusters with source type XS_NEW_VAULT_AND_CLUSTER or XS_NEW_CLUSTER. - * @return the value - **/ - public Integer getScanListenerPort() { - return scanListenerPort; - } - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemChunkCount") - private final Integer systemChunkCount; - - /** - * Count of chunks associated with system raft clusters or system data guard databases. - * @return the value - **/ - public Integer getSystemChunkCount() { - return systemChunkCount; - } - - /** - * Number of replication units associated with system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftReplicationUnitCount") - private final Integer systemRaftReplicationUnitCount; - - /** - * Number of replication units associated with system raft clusters. - * @return the value - **/ - public Integer getSystemRaftReplicationUnitCount() { - return systemRaftReplicationUnitCount; - } - - /** - * Collection of composite raft shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeRaftShardSpaces") - private final java.util.List compositeRaftShardSpaces; - - /** - * Collection of composite raft shards. - * @return the value - **/ - public java.util.List getCompositeRaftShardSpaces() { - return compositeRaftShardSpaces; - } - - /** - * Collection of composite data guard shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compositeDataGuardShardSpaces") - private final java.util.List compositeDataGuardShardSpaces; - - /** - * Collection of composite data guard shard spaces. - * @return the value - **/ - public java.util.List getCompositeDataGuardShardSpaces() { - return compositeDataGuardShardSpaces; - } - - /** - * Collection of system raft clusters. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemRaftClusters") - private final java.util.List systemRaftClusters; - - /** - * Collection of system raft clusters. - * @return the value - **/ - public java.util.List getSystemRaftClusters() { - return systemRaftClusters; - } - - @com.fasterxml.jackson.annotation.JsonProperty("systemDataGuardDatabases") - private final SystemDataGuardDatabase systemDataGuardDatabases; - - public SystemDataGuardDatabase getSystemDataGuardDatabases() { - return systemDataGuardDatabases; - } - - /** - * Collection of user defined shard spaces. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("userShardSpaces") - private final java.util.List userShardSpaces; - - /** - * Collection of user defined shard spaces. - * @return the value - **/ - public java.util.List getUserShardSpaces() { - return userShardSpaces; - } - - /** - * Catalog details associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("catalogDetails") - private final java.util.List catalogDetails; - - /** - * Catalog details associated with the distributed database. - * @return the value - **/ - public java.util.List getCatalogDetails() { - return catalogDetails; - } - - /** - * Global Service Manager (GSM) instances associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gsmDetails") - private final java.util.List gsmDetails; - - /** - * Global Service Manager (GSM) instances associated with the distributed database. - * @return the value - **/ - public java.util.List getGsmDetails() { - return gsmDetails; - } - - /** - * Global Database Services Control(GDS CTL) instances associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeDetails") - private final java.util.List gdsControlNodeDetails; - - /** - * Global Database Services Control(GDS CTL) instances associated with the distributed database. - * @return the value - **/ - public java.util.List getGdsControlNodeDetails() { - return gdsControlNodeDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbBackupConfig") - private final DistributedDbBackupConfig dbBackupConfig; - - public DistributedDbBackupConfig getDbBackupConfig() { - return dbBackupConfig; - } - - @com.fasterxml.jackson.annotation.JsonProperty("autoResourceManagementConfig") - private final AutoResourceManagementConfigurationDetails autoResourceManagementConfig; - - public AutoResourceManagementConfigurationDetails getAutoResourceManagementConfig() { - return autoResourceManagementConfig; - } - - /** - * The SSH public key for Global service manager instances. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("gsmSshPublicKey") - private final String gsmSshPublicKey; - - /** - * The SSH public key for Global service manager instances. - * @return the value - **/ - public String getGsmSshPublicKey() { - return gsmSshPublicKey; - } - - /** - * The list of network security group (NSG) details associated with the distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the distributed database. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedDbMetadata metadata; - - public DistributedDbMetadata getMetadata() { - return metadata; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - **/ - public java.util.Map> getSystemTags() { - return systemTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabase("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", shardingMethod=").append(String.valueOf(this.shardingMethod)); - sb.append(", replicationMethod=").append(String.valueOf(this.replicationMethod)); - sb.append(", dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", connectionStrings=").append(String.valueOf(this.connectionStrings)); - sb.append(", prefix=").append(String.valueOf(this.prefix)); - sb.append(", privateEndpointIds=").append(String.valueOf(this.privateEndpointIds)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", latestGsmImageDetails=").append(String.valueOf(this.latestGsmImageDetails)); - sb.append(", characterSet=").append(String.valueOf(this.characterSet)); - sb.append(", ncharacterSet=").append(String.valueOf(this.ncharacterSet)); - sb.append(", listenerPort=").append(String.valueOf(this.listenerPort)); - sb.append(", listenerPortTls=").append(String.valueOf(this.listenerPortTls)); - sb.append(", onsPortLocal=").append(String.valueOf(this.onsPortLocal)); - sb.append(", onsPortRemote=").append(String.valueOf(this.onsPortRemote)); - sb.append(", scanListenerPort=").append(String.valueOf(this.scanListenerPort)); - sb.append(", systemChunkCount=").append(String.valueOf(this.systemChunkCount)); - sb.append(", systemRaftReplicationUnitCount=") - .append(String.valueOf(this.systemRaftReplicationUnitCount)); - sb.append(", compositeRaftShardSpaces=") - .append(String.valueOf(this.compositeRaftShardSpaces)); - sb.append(", compositeDataGuardShardSpaces=") - .append(String.valueOf(this.compositeDataGuardShardSpaces)); - sb.append(", systemRaftClusters=").append(String.valueOf(this.systemRaftClusters)); - sb.append(", systemDataGuardDatabases=") - .append(String.valueOf(this.systemDataGuardDatabases)); - sb.append(", userShardSpaces=").append(String.valueOf(this.userShardSpaces)); - sb.append(", catalogDetails=").append(String.valueOf(this.catalogDetails)); - sb.append(", gsmDetails=").append(String.valueOf(this.gsmDetails)); - sb.append(", gdsControlNodeDetails=").append(String.valueOf(this.gdsControlNodeDetails)); - sb.append(", dbBackupConfig=").append(String.valueOf(this.dbBackupConfig)); - sb.append(", autoResourceManagementConfig=") - .append(String.valueOf(this.autoResourceManagementConfig)); - sb.append(", gsmSshPublicKey=").append(String.valueOf(this.gsmSshPublicKey)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabase)) { - return false; - } - - DistributedDatabase other = (DistributedDatabase) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.shardingMethod, other.shardingMethod) - && java.util.Objects.equals(this.replicationMethod, other.replicationMethod) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals(this.connectionStrings, other.connectionStrings) - && java.util.Objects.equals(this.prefix, other.prefix) - && java.util.Objects.equals(this.privateEndpointIds, other.privateEndpointIds) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.latestGsmImageDetails, other.latestGsmImageDetails) - && java.util.Objects.equals(this.characterSet, other.characterSet) - && java.util.Objects.equals(this.ncharacterSet, other.ncharacterSet) - && java.util.Objects.equals(this.listenerPort, other.listenerPort) - && java.util.Objects.equals(this.listenerPortTls, other.listenerPortTls) - && java.util.Objects.equals(this.onsPortLocal, other.onsPortLocal) - && java.util.Objects.equals(this.onsPortRemote, other.onsPortRemote) - && java.util.Objects.equals(this.scanListenerPort, other.scanListenerPort) - && java.util.Objects.equals(this.systemChunkCount, other.systemChunkCount) - && java.util.Objects.equals( - this.systemRaftReplicationUnitCount, other.systemRaftReplicationUnitCount) - && java.util.Objects.equals( - this.compositeRaftShardSpaces, other.compositeRaftShardSpaces) - && java.util.Objects.equals( - this.compositeDataGuardShardSpaces, other.compositeDataGuardShardSpaces) - && java.util.Objects.equals(this.systemRaftClusters, other.systemRaftClusters) - && java.util.Objects.equals( - this.systemDataGuardDatabases, other.systemDataGuardDatabases) - && java.util.Objects.equals(this.userShardSpaces, other.userShardSpaces) - && java.util.Objects.equals(this.catalogDetails, other.catalogDetails) - && java.util.Objects.equals(this.gsmDetails, other.gsmDetails) - && java.util.Objects.equals(this.gdsControlNodeDetails, other.gdsControlNodeDetails) - && java.util.Objects.equals(this.dbBackupConfig, other.dbBackupConfig) - && java.util.Objects.equals( - this.autoResourceManagementConfig, other.autoResourceManagementConfig) - && java.util.Objects.equals(this.gsmSshPublicKey, other.gsmSshPublicKey) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.metadata, other.metadata) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.databaseVersion == null ? 43 : this.databaseVersion.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.shardingMethod == null ? 43 : this.shardingMethod.hashCode()); - result = - (result * PRIME) - + (this.replicationMethod == null ? 43 : this.replicationMethod.hashCode()); - result = - (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = - (result * PRIME) - + (this.connectionStrings == null ? 43 : this.connectionStrings.hashCode()); - result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); - result = - (result * PRIME) - + (this.privateEndpointIds == null - ? 43 - : this.privateEndpointIds.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = - (result * PRIME) - + (this.latestGsmImageDetails == null - ? 43 - : this.latestGsmImageDetails.hashCode()); - result = (result * PRIME) + (this.characterSet == null ? 43 : this.characterSet.hashCode()); - result = - (result * PRIME) - + (this.ncharacterSet == null ? 43 : this.ncharacterSet.hashCode()); - result = (result * PRIME) + (this.listenerPort == null ? 43 : this.listenerPort.hashCode()); - result = - (result * PRIME) - + (this.listenerPortTls == null ? 43 : this.listenerPortTls.hashCode()); - result = (result * PRIME) + (this.onsPortLocal == null ? 43 : this.onsPortLocal.hashCode()); - result = - (result * PRIME) - + (this.onsPortRemote == null ? 43 : this.onsPortRemote.hashCode()); - result = - (result * PRIME) - + (this.scanListenerPort == null ? 43 : this.scanListenerPort.hashCode()); - result = - (result * PRIME) - + (this.systemChunkCount == null ? 43 : this.systemChunkCount.hashCode()); - result = - (result * PRIME) - + (this.systemRaftReplicationUnitCount == null - ? 43 - : this.systemRaftReplicationUnitCount.hashCode()); - result = - (result * PRIME) - + (this.compositeRaftShardSpaces == null - ? 43 - : this.compositeRaftShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.compositeDataGuardShardSpaces == null - ? 43 - : this.compositeDataGuardShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.systemRaftClusters == null - ? 43 - : this.systemRaftClusters.hashCode()); - result = - (result * PRIME) - + (this.systemDataGuardDatabases == null - ? 43 - : this.systemDataGuardDatabases.hashCode()); - result = - (result * PRIME) - + (this.userShardSpaces == null ? 43 : this.userShardSpaces.hashCode()); - result = - (result * PRIME) - + (this.catalogDetails == null ? 43 : this.catalogDetails.hashCode()); - result = (result * PRIME) + (this.gsmDetails == null ? 43 : this.gsmDetails.hashCode()); - result = - (result * PRIME) - + (this.gdsControlNodeDetails == null - ? 43 - : this.gdsControlNodeDetails.hashCode()); - result = - (result * PRIME) - + (this.dbBackupConfig == null ? 43 : this.dbBackupConfig.hashCode()); - result = - (result * PRIME) - + (this.autoResourceManagementConfig == null - ? 43 - : this.autoResourceManagementConfig.hashCode()); - result = - (result * PRIME) - + (this.gsmSshPublicKey == null ? 43 : this.gsmSshPublicKey.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java deleted file mode 100644 index 3294e9a155a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseAutoResourceManagementDetails.java +++ /dev/null @@ -1,577 +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; - -/** - * AutoResourceManagement configuration details for the Globally distributed database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseAutoResourceManagementDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseAutoResourceManagementDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "isEnabled", - "coolOffPeriodInMinutes", - "maxMoveRuAttempts", - "maxMoveRuUnit", - "mode", - "actionType", - "notificationTopicIds", - "streamIds" - }) - public DistributedDatabaseAutoResourceManagementDetails( - Boolean isEnabled, - Integer coolOffPeriodInMinutes, - Integer maxMoveRuAttempts, - MaxMoveRuUnit maxMoveRuUnit, - Mode mode, - ActionType actionType, - java.util.List notificationTopicIds, - java.util.List streamIds) { - super(); - this.isEnabled = isEnabled; - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.maxMoveRuUnit = maxMoveRuUnit; - this.mode = mode; - this.actionType = actionType; - this.notificationTopicIds = notificationTopicIds; - this.streamIds = streamIds; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @param isEnabled the value to set - * @return this builder - **/ - public Builder isEnabled(Boolean isEnabled) { - this.isEnabled = isEnabled; - this.__explicitlySet__.add("isEnabled"); - return this; - } - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @param coolOffPeriodInMinutes the value to set - * @return this builder - **/ - public Builder coolOffPeriodInMinutes(Integer coolOffPeriodInMinutes) { - this.coolOffPeriodInMinutes = coolOffPeriodInMinutes; - this.__explicitlySet__.add("coolOffPeriodInMinutes"); - return this; - } - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @param maxMoveRuAttempts the value to set - * @return this builder - **/ - public Builder maxMoveRuAttempts(Integer maxMoveRuAttempts) { - this.maxMoveRuAttempts = maxMoveRuAttempts; - this.__explicitlySet__.add("maxMoveRuAttempts"); - return this; - } - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @param maxMoveRuUnit the value to set - * @return this builder - **/ - public Builder maxMoveRuUnit(MaxMoveRuUnit maxMoveRuUnit) { - this.maxMoveRuUnit = maxMoveRuUnit; - this.__explicitlySet__.add("maxMoveRuUnit"); - return this; - } - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @param mode the value to set - * @return this builder - **/ - public Builder mode(Mode mode) { - this.mode = mode; - this.__explicitlySet__.add("mode"); - return this; - } - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @param actionType the value to set - * @return this builder - **/ - public Builder actionType(ActionType actionType) { - this.actionType = actionType; - this.__explicitlySet__.add("actionType"); - return this; - } - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @param streamIds the value to set - * @return this builder - **/ - public Builder streamIds(java.util.List streamIds) { - this.streamIds = streamIds; - this.__explicitlySet__.add("streamIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseAutoResourceManagementDetails build() { - DistributedDatabaseAutoResourceManagementDetails model = - new DistributedDatabaseAutoResourceManagementDetails( - this.isEnabled, - this.coolOffPeriodInMinutes, - this.maxMoveRuAttempts, - this.maxMoveRuUnit, - this.mode, - this.actionType, - this.notificationTopicIds, - this.streamIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseAutoResourceManagementDetails model) { - if (model.wasPropertyExplicitlySet("isEnabled")) { - this.isEnabled(model.getIsEnabled()); - } - if (model.wasPropertyExplicitlySet("coolOffPeriodInMinutes")) { - this.coolOffPeriodInMinutes(model.getCoolOffPeriodInMinutes()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuAttempts")) { - this.maxMoveRuAttempts(model.getMaxMoveRuAttempts()); - } - if (model.wasPropertyExplicitlySet("maxMoveRuUnit")) { - this.maxMoveRuUnit(model.getMaxMoveRuUnit()); - } - if (model.wasPropertyExplicitlySet("mode")) { - this.mode(model.getMode()); - } - if (model.wasPropertyExplicitlySet("actionType")) { - this.actionType(model.getActionType()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("streamIds")) { - this.streamIds(model.getStreamIds()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isEnabled") - private final Boolean isEnabled; - - /** - * Flag indicating if autoResourceManagement is enabled or disabled. - * @return the value - **/ - public Boolean getIsEnabled() { - return isEnabled; - } - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("coolOffPeriodInMinutes") - private final Integer coolOffPeriodInMinutes; - - /** - * Time period to wait for the database to get stable after autoResourceManagement event. - * @return the value - **/ - public Integer getCoolOffPeriodInMinutes() { - return coolOffPeriodInMinutes; - } - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuAttempts") - private final Integer maxMoveRuAttempts; - - /** - * Maximum number of move replication unit attempts allowed within the configured period per database. - * @return the value - **/ - public Integer getMaxMoveRuAttempts() { - return maxMoveRuAttempts; - } - - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - public enum MaxMoveRuUnit { - Hour("HOUR"), - Day("DAY"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(MaxMoveRuUnit.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (MaxMoveRuUnit v : MaxMoveRuUnit.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - MaxMoveRuUnit(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static MaxMoveRuUnit create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'MaxMoveRuUnit', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Time unit applicable to maxMoveRuAttempts. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("maxMoveRuUnit") - private final MaxMoveRuUnit maxMoveRuUnit; - - /** - * Time unit applicable to maxMoveRuAttempts. - * @return the value - **/ - public MaxMoveRuUnit getMaxMoveRuUnit() { - return maxMoveRuUnit; - } - - /** - * Mode of autoResourceManagement execution. - **/ - public enum Mode { - Automatic("AUTOMATIC"), - Recommendation("RECOMMENDATION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Mode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Mode v : Mode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Mode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Mode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Mode', returning UnknownEnumValue", key); - return UnknownEnumValue; - } - }; - /** - * Mode of autoResourceManagement execution. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("mode") - private final Mode mode; - - /** - * Mode of autoResourceManagement execution. - * @return the value - **/ - public Mode getMode() { - return mode; - } - - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - public enum ActionType { - Move("MOVE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ActionType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ActionType v : ActionType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - ActionType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ActionType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'ActionType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * The action that will be taken when autoResourceManagement is triggered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private final ActionType actionType; - - /** - * The action that will be taken when autoResourceManagement is triggered. - * @return the value - **/ - public ActionType getActionType() { - return actionType; - } - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The list of notification topic ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) to receive autoResourceManagement events. - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("streamIds") - private final java.util.List streamIds; - - /** - * The list of stream ids [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) that receive shard-related telemetry. - * @return the value - **/ - public java.util.List getStreamIds() { - return streamIds; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseAutoResourceManagementDetails("); - sb.append("super=").append(super.toString()); - sb.append("isEnabled=").append(String.valueOf(this.isEnabled)); - sb.append(", coolOffPeriodInMinutes=").append(String.valueOf(this.coolOffPeriodInMinutes)); - sb.append(", maxMoveRuAttempts=").append(String.valueOf(this.maxMoveRuAttempts)); - sb.append(", maxMoveRuUnit=").append(String.valueOf(this.maxMoveRuUnit)); - sb.append(", mode=").append(String.valueOf(this.mode)); - sb.append(", actionType=").append(String.valueOf(this.actionType)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", streamIds=").append(String.valueOf(this.streamIds)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseAutoResourceManagementDetails)) { - return false; - } - - DistributedDatabaseAutoResourceManagementDetails other = - (DistributedDatabaseAutoResourceManagementDetails) o; - return java.util.Objects.equals(this.isEnabled, other.isEnabled) - && java.util.Objects.equals( - this.coolOffPeriodInMinutes, other.coolOffPeriodInMinutes) - && java.util.Objects.equals(this.maxMoveRuAttempts, other.maxMoveRuAttempts) - && java.util.Objects.equals(this.maxMoveRuUnit, other.maxMoveRuUnit) - && java.util.Objects.equals(this.mode, other.mode) - && java.util.Objects.equals(this.actionType, other.actionType) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.streamIds, other.streamIds) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode()); - result = - (result * PRIME) - + (this.coolOffPeriodInMinutes == null - ? 43 - : this.coolOffPeriodInMinutes.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuAttempts == null ? 43 : this.maxMoveRuAttempts.hashCode()); - result = - (result * PRIME) - + (this.maxMoveRuUnit == null ? 43 : this.maxMoveRuUnit.hashCode()); - result = (result * PRIME) + (this.mode == null ? 43 : this.mode.hashCode()); - result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.streamIds == null ? 43 : this.streamIds.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.java deleted file mode 100644 index 08c7c25d002..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalog.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 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalog - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public DistributedDatabaseCatalog( - DistributedDatabaseCatalogReplicaDetails originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private DistributedDatabaseCatalogReplicaDetails originalReplica; - - public Builder originalReplica(DistributedDatabaseCatalogReplicaDetails originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replicas for the catalog. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas( - java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalog build() { - DistributedDatabaseCatalog model = - new DistributedDatabaseCatalog(this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalog model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final DistributedDatabaseCatalogReplicaDetails originalReplica; - - public DistributedDatabaseCatalogReplicaDetails getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replicas for the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details of data guard replicas for the catalog. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalog("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalog)) { - return false; - } - - DistributedDatabaseCatalog other = (DistributedDatabaseCatalog) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.java deleted file mode 100644 index c195762791a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabase.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.model; - -/** - * Details of a distributed database catalog. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedDatabaseCatalogDatabase.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.class, - name = "XS_NEW_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogDatabaseWithExadbXd.class, - name = "XD_EXISTING_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.class, - name = "XS_NEW_VAULT_AND_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogDatabaseWithDbHome.class, - name = "EXISTING_DB_HOME" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseCatalogDatabaseWithExadbXs.class, - name = "XS_EXISTING_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class DistributedDatabaseCatalogDatabase - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) - protected DistributedDatabaseCatalogDatabase( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata) { - super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.metadata = metadata; - } - - /** - * The name of the catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the catalog. - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The time the catalog was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the catalog was created. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the catalog was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the catalog was last updated. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedDbMetadata metadata; - - public DistributedDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogDatabase("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogDatabase)) { - return false; - } - - DistributedDatabaseCatalogDatabase other = (DistributedDatabaseCatalogDatabase) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed database type. - * Use XS_EXISTING_CLUSTER for a database on Exascale Infrastructure that uses a pre-existing cluster. - * Use XS_NEW_CLUSTER for a database on Exascale Infrastructure that requires a new cluster created from scratch. - * Use XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault and cluster created from scratch. - * Use XD_EXISTING_CLUSTER for a database on Dedicated Infrastructure that uses a pre-existing cluster. - * Use EXISTING_DB_HOME for a database on a pre-existing database home. - * - **/ - public enum Source { - XsExistingCluster("XS_EXISTING_CLUSTER"), - XsNewCluster("XS_NEW_CLUSTER"), - XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), - XdExistingCluster("XD_EXISTING_CLUSTER"), - ExistingDbHome("EXISTING_DB_HOME"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Source.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java deleted file mode 100644 index f0633a4c90a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithDbHome.java +++ /dev/null @@ -1,633 +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 database catalog using a pre-existing Database Home. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogDatabaseWithDbHome.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalogDatabaseWithDbHome - extends DistributedDatabaseCatalogDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of the distributed database catalog. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalogDatabaseWithDbHome build() { - DistributedDatabaseCatalogDatabaseWithDbHome model = - new DistributedDatabaseCatalogDatabaseWithDbHome( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vmClusterId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogDatabaseWithDbHome model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseCatalogDatabaseWithDbHome( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vmClusterId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vmClusterId = vmClusterId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * Status of the distributed database catalog. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the distributed database catalog. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogDatabaseWithDbHome("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogDatabaseWithDbHome)) { - return false; - } - - DistributedDatabaseCatalogDatabaseWithDbHome other = - (DistributedDatabaseCatalogDatabaseWithDbHome) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java deleted file mode 100644 index c3a2c4a7c25..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXd.java +++ /dev/null @@ -1,633 +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 database catalog running on ExaDB-D. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogDatabaseWithExadbXd.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalogDatabaseWithExadbXd - extends DistributedDatabaseCatalogDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of the distributed database catalog. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalogDatabaseWithExadbXd build() { - DistributedDatabaseCatalogDatabaseWithExadbXd model = - new DistributedDatabaseCatalogDatabaseWithExadbXd( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vmClusterId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXd model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseCatalogDatabaseWithExadbXd( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vmClusterId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vmClusterId = vmClusterId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * Status of the distributed database catalog. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the distributed database catalog. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogDatabaseWithExadbXd("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXd)) { - return false; - } - - DistributedDatabaseCatalogDatabaseWithExadbXd other = - (DistributedDatabaseCatalogDatabaseWithExadbXd) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java deleted file mode 100644 index 821f75b5445..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXs.java +++ /dev/null @@ -1,633 +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 database catalog running on ExaDB-XS. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogDatabaseWithExadbXs.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalogDatabaseWithExadbXs - extends DistributedDatabaseCatalogDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of the distributed database catalog. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalogDatabaseWithExadbXs build() { - DistributedDatabaseCatalogDatabaseWithExadbXs model = - new DistributedDatabaseCatalogDatabaseWithExadbXs( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vmClusterId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXs model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseCatalogDatabaseWithExadbXs( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vmClusterId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vmClusterId = vmClusterId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * Status of the distributed database catalog. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the distributed database catalog. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogDatabaseWithExadbXs("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXs)) { - return false; - } - - DistributedDatabaseCatalogDatabaseWithExadbXs other = - (DistributedDatabaseCatalogDatabaseWithExadbXs) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java deleted file mode 100644 index 68432fcd9a0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.java +++ /dev/null @@ -1,709 +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 database catalog on ExaDB-XS with a new cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster - extends DistributedDatabaseCatalogDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of the distributed database catalog. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The name of the availability domain that the distributed database catalog will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain that the distributed database catalog will be located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @param exascaleDbStorageVaultId the value to set - * @return this builder - **/ - public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.__explicitlySet__.add("exascaleDbStorageVaultId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private DistributedDbVmCluster vmClusterDetails; - - public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { - this.vmClusterDetails = vmClusterDetails; - this.__explicitlySet__.add("vmClusterDetails"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster build() { - DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster model = - new DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.availabilityDomain, - this.exascaleDbStorageVaultId, - this.vmClusterDetails, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { - this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String availabilityDomain, - String exascaleDbStorageVaultId, - DistributedDbVmCluster vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.availabilityDomain = availabilityDomain; - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * Status of the distributed database catalog. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the distributed database catalog. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The name of the availability domain that the distributed database catalog will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database catalog will be located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private final String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @return the value - **/ - public String getExascaleDbStorageVaultId() { - return exascaleDbStorageVaultId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final DistributedDbVmCluster vmClusterDetails; - - public DistributedDbVmCluster getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", exascaleDbStorageVaultId=") - .append(String.valueOf(this.exascaleDbStorageVaultId)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster)) { - return false; - } - - DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster other = - (DistributedDatabaseCatalogDatabaseWithExadbXsNewCluster) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals( - this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.exascaleDbStorageVaultId == null - ? 43 - : this.exascaleDbStorageVaultId.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java deleted file mode 100644 index 86ba5193671..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,693 +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 database catalog on ExaDB-XS with a new cluster and storage vault. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster - extends DistributedDatabaseCatalogDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of the distributed database catalog. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The name of the availability domain that the distributed database catalog will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain that the distributed database catalog will be located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") - private DistributedDbStorageVault dbStorageVaultDetails; - - public Builder dbStorageVaultDetails(DistributedDbStorageVault dbStorageVaultDetails) { - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.__explicitlySet__.add("dbStorageVaultDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private DistributedDbVmCluster vmClusterDetails; - - public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { - this.vmClusterDetails = vmClusterDetails; - this.__explicitlySet__.add("vmClusterDetails"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster build() { - DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster model = - new DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { - this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String availabilityDomain, - DistributedDbStorageVault dbStorageVaultDetails, - DistributedDbVmCluster vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * Status of the distributed database catalog. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the distributed database catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the distributed database catalog. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The name of the availability domain that the distributed database catalog will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database catalog will be located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") - private final DistributedDbStorageVault dbStorageVaultDetails; - - public DistributedDbStorageVault getDbStorageVaultDetails() { - return dbStorageVaultDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final DistributedDbVmCluster vmClusterDetails; - - public DistributedDbVmCluster getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster)) { - return false; - } - - DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster other = - (DistributedDatabaseCatalogDatabaseWithExadbXsNewVaultAndCluster) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.dbStorageVaultDetails == null - ? 43 - : this.dbStorageVaultDetails.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java deleted file mode 100644 index 691e753ba71..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCatalogReplicaDetails.java +++ /dev/null @@ -1,174 +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 catalog replica. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCatalogReplicaDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCatalogReplicaDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public DistributedDatabaseCatalogReplicaDetails( - String name, DistributedDatabaseCatalogDatabase database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private DistributedDatabaseCatalogDatabase database; - - public Builder database(DistributedDatabaseCatalogDatabase database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCatalogReplicaDetails build() { - DistributedDatabaseCatalogReplicaDetails model = - new DistributedDatabaseCatalogReplicaDetails(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCatalogReplicaDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of the catalog replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final DistributedDatabaseCatalogDatabase database; - - public DistributedDatabaseCatalogDatabase getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCatalogReplicaDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCatalogReplicaDetails)) { - return false; - } - - DistributedDatabaseCatalogReplicaDetails other = - (DistributedDatabaseCatalogReplicaDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java deleted file mode 100644 index 36e85fbaa62..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseCollection.java +++ /dev/null @@ -1,135 +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; - -/** - * Collection of Globally distributed databases. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseCollection.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public DistributedDatabaseCollection(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Array of Globally distributed database summaries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * Array of Globally distributed database summaries. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseCollection build() { - DistributedDatabaseCollection model = new DistributedDatabaseCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Array of Globally distributed database summaries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * Array of Globally distributed database summaries. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseCollection("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseCollection)) { - return false; - } - - DistributedDatabaseCollection other = (DistributedDatabaseCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java deleted file mode 100644 index a9bf0a2ab12..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGdsControlNode.java +++ /dev/null @@ -1,452 +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 Database Services Control(GDS CTL) instances for the Globally distributed database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseGdsControlNode.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseGdsControlNode - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "subnetId", - "availabilityDomain", - "timeCreated", - "timeUpdated", - "supportingResourceId", - "privateIp", - "gdsControlNodeImageDetails", - "metadata" - }) - public DistributedDatabaseGdsControlNode( - String name, - String subnetId, - String availabilityDomain, - java.util.Date timeCreated, - java.util.Date timeUpdated, - String supportingResourceId, - String privateIp, - DistributedDbGdsControlNodeImage gdsControlNodeImageDetails, - DistributedDbMetadata metadata) { - super(); - this.name = name; - this.subnetId = subnetId; - this.availabilityDomain = availabilityDomain; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.supportingResourceId = supportingResourceId; - this.privateIp = privateIp; - this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; - this.metadata = metadata; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Name of the Global Database Services Control instance - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * Name of the Global Database Services Control instance - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - * @param timeCreated the value to set - * @return this builder - **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - * @param timeUpdated the value to set - * @return this builder - **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** - * The identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * The identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * IP address of the Global Database Services Control instance. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * IP address of the Global Database Services Control instance. - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") - private DistributedDbGdsControlNodeImage gdsControlNodeImageDetails; - - public Builder gdsControlNodeImageDetails( - DistributedDbGdsControlNodeImage gdsControlNodeImageDetails) { - this.gdsControlNodeImageDetails = gdsControlNodeImageDetails; - this.__explicitlySet__.add("gdsControlNodeImageDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseGdsControlNode build() { - DistributedDatabaseGdsControlNode model = - new DistributedDatabaseGdsControlNode( - this.name, - this.subnetId, - this.availabilityDomain, - this.timeCreated, - this.timeUpdated, - this.supportingResourceId, - this.privateIp, - this.gdsControlNodeImageDetails, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseGdsControlNode model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } - if (model.wasPropertyExplicitlySet("gdsControlNodeImageDetails")) { - this.gdsControlNodeImageDetails(model.getGdsControlNodeImageDetails()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Name of the Global Database Services Control instance - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * Name of the Global Database Services Control instance - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet associated with the Global Database Services Control instance. - * - * @return the value - **/ - public String getSubnetId() { - return subnetId; - } - - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain where the Global Database Services Control instance is located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the Global Database Services Control instance was created. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the Global Database Services Control instance was last updated. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** - * The identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * The identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * IP address of the Global Database Services Control instance. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * IP address of the Global Database Services Control instance. - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - - @com.fasterxml.jackson.annotation.JsonProperty("gdsControlNodeImageDetails") - private final DistributedDbGdsControlNodeImage gdsControlNodeImageDetails; - - public DistributedDbGdsControlNodeImage getGdsControlNodeImageDetails() { - return gdsControlNodeImageDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedDbMetadata metadata; - - public DistributedDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseGdsControlNode("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); - sb.append(", gdsControlNodeImageDetails=") - .append(String.valueOf(this.gdsControlNodeImageDetails)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseGdsControlNode)) { - return false; - } - - DistributedDatabaseGdsControlNode other = (DistributedDatabaseGdsControlNode) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.privateIp, other.privateIp) - && java.util.Objects.equals( - this.gdsControlNodeImageDetails, other.gdsControlNodeImageDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); - result = - (result * PRIME) - + (this.gdsControlNodeImageDetails == null - ? 43 - : this.gdsControlNodeImageDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java deleted file mode 100644 index 53da0f22a6f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseGsm.java +++ /dev/null @@ -1,543 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseGsm - extends com.oracle.bmc.http.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 { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of the gsm. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of the gsm. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * The time the ssl certificate associated with Global service manager expires. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeSslCertificateExpires") - private final java.util.Date timeSslCertificateExpires; - - /** - * The time the ssl certificate associated with Global service manager expires. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeSslCertificateExpires() { - return timeSslCertificateExpires; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("gsmImageDetails") - private final DistributedDbGsmImage gsmImageDetails; - - public DistributedDbGsmImage getGsmImageDetails() { - return gsmImageDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedDbMetadata metadata; - - public DistributedDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseGsm("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", computeCount=").append(String.valueOf(this.computeCount)); - sb.append(", dataStorageSizeInGbs=").append(String.valueOf(this.dataStorageSizeInGbs)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", timeSslCertificateExpires=") - .append(String.valueOf(this.timeSslCertificateExpires)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", gsmImageDetails=").append(String.valueOf(this.gsmImageDetails)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseGsm)) { - return false; - } - - DistributedDatabaseGsm other = (DistributedDatabaseGsm) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.computeCount, other.computeCount) - && java.util.Objects.equals(this.dataStorageSizeInGbs, other.dataStorageSizeInGbs) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals( - this.timeSslCertificateExpires, other.timeSslCertificateExpires) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.gsmImageDetails, other.gsmImageDetails) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.computeCount == null ? 43 : this.computeCount.hashCode()); - result = - (result * PRIME) - + (this.dataStorageSizeInGbs == null - ? 43 - : this.dataStorageSizeInGbs.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.timeSslCertificateExpires == null - ? 43 - : this.timeSslCertificateExpires.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.gsmImageDetails == null ? 43 : this.gsmImageDetails.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java deleted file mode 100644 index 8c87d9292f3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpoint.java +++ /dev/null @@ -1,830 +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; - -/** - * DistributedDatabasePrivateEndpoint resource. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpoint.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabasePrivateEndpoint - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "id", - "compartmentId", - "subnetId", - "vcnId", - "displayName", - "description", - "privateIp", - "vcnNsgIds", - "timeCreated", - "timeUpdated", - "lifecycleState", - "lifecycleDetails", - "proxyComputeInstanceId", - "freeformTags", - "definedTags", - "systemTags" - }) - public DistributedDatabasePrivateEndpoint( - String id, - String compartmentId, - String subnetId, - String vcnId, - String displayName, - String description, - String privateIp, - java.util.List vcnNsgIds, - java.util.Date timeCreated, - java.util.Date timeUpdated, - LifecycleState lifecycleState, - String lifecycleDetails, - String proxyComputeInstanceId, - java.util.Map freeformTags, - java.util.Map> definedTags, - java.util.Map> systemTags) { - super(); - this.id = id; - this.compartmentId = compartmentId; - this.subnetId = subnetId; - this.vcnId = vcnId; - this.displayName = displayName; - this.description = description; - this.privateIp = privateIp; - this.vcnNsgIds = vcnNsgIds; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.lifecycleState = lifecycleState; - this.lifecycleDetails = lifecycleDetails; - this.proxyComputeInstanceId = proxyComputeInstanceId; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - this.systemTags = systemTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The identifier of the Private Endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The identifier of the Private Endpoint. - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * Identifier of the compartment in which private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * Identifier of the compartment in which private endpoint exists. - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * Identifier of the subnet in which private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * Identifier of the subnet in which private endpoint exists. - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * Identifier of the VCN in which subnet exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * Identifier of the VCN in which subnet exists. - * @param vcnId the value to set - * @return this builder - **/ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * DistributedDatabasePrivateEndpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * DistributedDatabasePrivateEndpoint display name. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set - * @return this builder - **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); - return this; - } - /** - * IP address of the Private Endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private String privateIp; - - /** - * IP address of the Private Endpoint. - * @param privateIp the value to set - * @return this builder - **/ - public Builder privateIp(String privateIp) { - this.privateIp = privateIp; - this.__explicitlySet__.add("privateIp"); - return this; - } - /** - * The list of network security group (NSG) details associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the private endpoint. - * @param vcnNsgIds the value to set - * @return this builder - **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); - return this; - } - /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - * @param timeCreated the value to set - * @return this builder - **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - * @param timeUpdated the value to set - * @return this builder - **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** - * Lifecycle states for private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleState lifecycleState; - - /** - * Lifecycle states for private endpoint. - * @param lifecycleState the value to set - * @return this builder - **/ - public Builder lifecycleState(LifecycleState lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** - * Detailed message for the lifecycle state. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; - - /** - * Detailed message for the lifecycle state. - * @param lifecycleDetails the value to set - * @return this builder - **/ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * The identifier of the proxy compute instance. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") - private String proxyComputeInstanceId; - - /** - * The identifier of the proxy compute instance. - * @param proxyComputeInstanceId the value to set - * @return this builder - **/ - public Builder proxyComputeInstanceId(String proxyComputeInstanceId) { - this.proxyComputeInstanceId = proxyComputeInstanceId; - this.__explicitlySet__.add("proxyComputeInstanceId"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - **/ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabasePrivateEndpoint build() { - DistributedDatabasePrivateEndpoint model = - new DistributedDatabasePrivateEndpoint( - this.id, - this.compartmentId, - this.subnetId, - this.vcnId, - this.displayName, - this.description, - this.privateIp, - this.vcnNsgIds, - this.timeCreated, - this.timeUpdated, - this.lifecycleState, - this.lifecycleDetails, - this.proxyComputeInstanceId, - this.freeformTags, - this.definedTags, - this.systemTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpoint model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("description")) { - this.description(model.getDescription()); - } - if (model.wasPropertyExplicitlySet("privateIp")) { - this.privateIp(model.getPrivateIp()); - } - if (model.wasPropertyExplicitlySet("vcnNsgIds")) { - this.vcnNsgIds(model.getVcnNsgIds()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("proxyComputeInstanceId")) { - this.proxyComputeInstanceId(model.getProxyComputeInstanceId()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The identifier of the Private Endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The identifier of the Private Endpoint. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * Identifier of the compartment in which private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * Identifier of the compartment in which private endpoint exists. - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * Identifier of the subnet in which private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * Identifier of the subnet in which private endpoint exists. - * @return the value - **/ - public String getSubnetId() { - return subnetId; - } - - /** - * Identifier of the VCN in which subnet exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private final String vcnId; - - /** - * Identifier of the VCN in which subnet exists. - * @return the value - **/ - public String getVcnId() { - return vcnId; - } - - /** - * DistributedDatabasePrivateEndpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * DistributedDatabasePrivateEndpoint display name. - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - - /** - * IP address of the Private Endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateIp") - private final String privateIp; - - /** - * IP address of the Private Endpoint. - * @return the value - **/ - public String getPrivateIp() { - return privateIp; - } - - /** - * The list of network security group (NSG) details associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the private endpoint. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the DistributedDatabasePrivateEndpoint was first created. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the Private Endpoint was last updated. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** - * Lifecycle states for private endpoint. - **/ - public enum LifecycleState { - Active("ACTIVE"), - Failed("FAILED"), - Inactive("INACTIVE"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(LifecycleState.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (LifecycleState v : LifecycleState.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - LifecycleState(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static LifecycleState create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Lifecycle states for private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleState lifecycleState; - - /** - * Lifecycle states for private endpoint. - * @return the value - **/ - public LifecycleState getLifecycleState() { - return lifecycleState; - } - - /** - * Detailed message for the lifecycle state. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; - - /** - * Detailed message for the lifecycle state. - * @return the value - **/ - public String getLifecycleDetails() { - return lifecycleDetails; - } - - /** - * The identifier of the proxy compute instance. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("proxyComputeInstanceId") - private final String proxyComputeInstanceId; - - /** - * The identifier of the proxy compute instance. - * @return the value - **/ - public String getProxyComputeInstanceId() { - return proxyComputeInstanceId; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - **/ - public java.util.Map> getSystemTags() { - return systemTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpoint("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", vcnId=").append(String.valueOf(this.vcnId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", description=").append(String.valueOf(this.description)); - sb.append(", privateIp=").append(String.valueOf(this.privateIp)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", proxyComputeInstanceId=").append(String.valueOf(this.proxyComputeInstanceId)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabasePrivateEndpoint)) { - return false; - } - - DistributedDatabasePrivateEndpoint other = (DistributedDatabasePrivateEndpoint) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.vcnId, other.vcnId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.description, other.description) - && java.util.Objects.equals(this.privateIp, other.privateIp) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals( - this.proxyComputeInstanceId, other.proxyComputeInstanceId) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); - result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = - (result * PRIME) - + (this.proxyComputeInstanceId == null - ? 43 - : this.proxyComputeInstanceId.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.java deleted file mode 100644 index 138b29f598c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointCollection.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; - -/** - * Collection of private endpoints. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpointCollection.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabasePrivateEndpointCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public DistributedDatabasePrivateEndpointCollection( - java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Array of private endpoint summaries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * Array of private endpoint summaries. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabasePrivateEndpointCollection build() { - DistributedDatabasePrivateEndpointCollection model = - new DistributedDatabasePrivateEndpointCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpointCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Array of private endpoint summaries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * Array of private endpoint summaries. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpointCollection("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabasePrivateEndpointCollection)) { - return false; - } - - DistributedDatabasePrivateEndpointCollection other = - (DistributedDatabasePrivateEndpointCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java deleted file mode 100644 index 87f6c1b20db..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabasePrivateEndpointSummary.java +++ /dev/null @@ -1,694 +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; - -/** - * DistributedDatabasePrivateEndpoint resource summary. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabasePrivateEndpointSummary.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabasePrivateEndpointSummary - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "id", - "description", - "compartmentId", - "subnetId", - "vcnId", - "displayName", - "vcnNsgIds", - "timeCreated", - "timeUpdated", - "lifecycleState", - "lifecycleDetails", - "freeformTags", - "definedTags", - "systemTags" - }) - public DistributedDatabasePrivateEndpointSummary( - String id, - String description, - String compartmentId, - String subnetId, - String vcnId, - String displayName, - java.util.List vcnNsgIds, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState, - String lifecycleDetails, - java.util.Map freeformTags, - java.util.Map> definedTags, - java.util.Map> systemTags) { - super(); - this.id = id; - this.description = description; - this.compartmentId = compartmentId; - this.subnetId = subnetId; - this.vcnId = vcnId; - this.displayName = displayName; - this.vcnNsgIds = vcnNsgIds; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.lifecycleState = lifecycleState; - this.lifecycleDetails = lifecycleDetails; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - this.systemTags = systemTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * DistributedDatabasePrivateEndpoint identifier - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * DistributedDatabasePrivateEndpoint identifier - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set - * @return this builder - **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); - return this; - } - /** - * Identifier of the compartment where private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * Identifier of the compartment where private endpoint exists. - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * Identifier of the customer subnet against which private endpoint is created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * Identifier of the customer subnet against which private endpoint is created. - * @param subnetId the value to set - * @return this builder - **/ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * Identifier of the VCN in which subnet exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * Identifier of the VCN in which subnet exists. - * @param vcnId the value to set - * @return this builder - **/ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * Private endpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Private endpoint display name. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * The list of network security group (NSG) details associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the private endpoint. - * @param vcnNsgIds the value to set - * @return this builder - **/ - public Builder vcnNsgIds(java.util.List vcnNsgIds) { - this.vcnNsgIds = vcnNsgIds; - this.__explicitlySet__.add("vcnNsgIds"); - return this; - } - /** - * The time the the private endpoint was created. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the the private endpoint was created. An RFC3339 formatted datetime string - * @param timeCreated the value to set - * @return this builder - **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * The time the private endpoint was last updated. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time the private endpoint was last updated. An RFC3339 formatted datetime string - * @param timeUpdated the value to set - * @return this builder - **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** - * Lifecycle state of private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState; - - /** - * Lifecycle state of private endpoint. - * @param lifecycleState the value to set - * @return this builder - **/ - public Builder lifecycleState( - DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** - * Detailed message for the lifecycle state. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; - - /** - * Detailed message for the lifecycle state. - * @param lifecycleDetails the value to set - * @return this builder - **/ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - **/ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabasePrivateEndpointSummary build() { - DistributedDatabasePrivateEndpointSummary model = - new DistributedDatabasePrivateEndpointSummary( - this.id, - this.description, - this.compartmentId, - this.subnetId, - this.vcnId, - this.displayName, - this.vcnNsgIds, - this.timeCreated, - this.timeUpdated, - this.lifecycleState, - this.lifecycleDetails, - this.freeformTags, - this.definedTags, - this.systemTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabasePrivateEndpointSummary model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("description")) { - this.description(model.getDescription()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("vcnNsgIds")) { - this.vcnNsgIds(model.getVcnNsgIds()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * DistributedDatabasePrivateEndpoint identifier - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * DistributedDatabasePrivateEndpoint identifier - * @return the value - **/ - public String getId() { - return id; - } - - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - - /** - * Identifier of the compartment where private endpoint exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * Identifier of the compartment where private endpoint exists. - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * Identifier of the customer subnet against which private endpoint is created. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * Identifier of the customer subnet against which private endpoint is created. - * @return the value - **/ - public String getSubnetId() { - return subnetId; - } - - /** - * Identifier of the VCN in which subnet exists. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private final String vcnId; - - /** - * Identifier of the VCN in which subnet exists. - * @return the value - **/ - public String getVcnId() { - return vcnId; - } - - /** - * Private endpoint display name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * Private endpoint display name. - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * The list of network security group (NSG) details associated with the private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnNsgIds") - private final java.util.List vcnNsgIds; - - /** - * The list of network security group (NSG) details associated with the private endpoint. - * @return the value - **/ - public java.util.List getVcnNsgIds() { - return vcnNsgIds; - } - - /** - * The time the the private endpoint was created. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the the private endpoint was created. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the private endpoint was last updated. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the private endpoint was last updated. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** - * Lifecycle state of private endpoint. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final DistributedDatabasePrivateEndpoint.LifecycleState lifecycleState; - - /** - * Lifecycle state of private endpoint. - * @return the value - **/ - public DistributedDatabasePrivateEndpoint.LifecycleState getLifecycleState() { - return lifecycleState; - } - - /** - * Detailed message for the lifecycle state. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; - - /** - * Detailed message for the lifecycle state. - * @return the value - **/ - public String getLifecycleDetails() { - return lifecycleDetails; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. - * Example: {@code {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - **/ - public java.util.Map> getSystemTags() { - return systemTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabasePrivateEndpointSummary("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", description=").append(String.valueOf(this.description)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", vcnId=").append(String.valueOf(this.vcnId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", vcnNsgIds=").append(String.valueOf(this.vcnNsgIds)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabasePrivateEndpointSummary)) { - return false; - } - - DistributedDatabasePrivateEndpointSummary other = - (DistributedDatabasePrivateEndpointSummary) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.description, other.description) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.vcnId, other.vcnId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.vcnNsgIds, other.vcnNsgIds) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.vcnNsgIds == null ? 43 : this.vcnNsgIds.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.java deleted file mode 100644 index 75938c0df91..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRaftMetric.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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseRaftMetric - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"raftMetrics", "configTasks"}) - public DistributedDatabaseRaftMetric( - java.util.Map raftMetrics, java.util.Map configTasks) { - super(); - this.raftMetrics = raftMetrics; - this.configTasks = configTasks; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Raft metrics for the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") - private java.util.Map raftMetrics; - - /** - * Raft metrics for the Globally distributed database. - * @param raftMetrics the value to set - * @return this builder - **/ - public Builder raftMetrics(java.util.Map raftMetrics) { - this.raftMetrics = raftMetrics; - this.__explicitlySet__.add("raftMetrics"); - return this; - } - /** - * Details of in-progress configuration tasks. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("configTasks") - private java.util.Map configTasks; - - /** - * Details of in-progress configuration tasks. - * @param configTasks the value to set - * @return this builder - **/ - public Builder configTasks(java.util.Map configTasks) { - this.configTasks = configTasks; - this.__explicitlySet__.add("configTasks"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseRaftMetric build() { - DistributedDatabaseRaftMetric model = - new DistributedDatabaseRaftMetric(this.raftMetrics, this.configTasks); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseRaftMetric model) { - if (model.wasPropertyExplicitlySet("raftMetrics")) { - this.raftMetrics(model.getRaftMetrics()); - } - if (model.wasPropertyExplicitlySet("configTasks")) { - this.configTasks(model.getConfigTasks()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Raft metrics for the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("raftMetrics") - private final java.util.Map raftMetrics; - - /** - * Raft metrics for the Globally distributed database. - * @return the value - **/ - public java.util.Map getRaftMetrics() { - return raftMetrics; - } - - /** - * Details of in-progress configuration tasks. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("configTasks") - private final java.util.Map configTasks; - - /** - * Details of in-progress configuration tasks. - * @return the value - **/ - public java.util.Map getConfigTasks() { - return configTasks; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseRaftMetric("); - sb.append("super=").append(super.toString()); - sb.append("raftMetrics=").append(String.valueOf(this.raftMetrics)); - sb.append(", configTasks=").append(String.valueOf(this.configTasks)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseRaftMetric)) { - return false; - } - - DistributedDatabaseRaftMetric other = (DistributedDatabaseRaftMetric) o; - return java.util.Objects.equals(this.raftMetrics, other.raftMetrics) - && java.util.Objects.equals(this.configTasks, other.configTasks) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.raftMetrics == null ? 43 : this.raftMetrics.hashCode()); - result = (result * PRIME) + (this.configTasks == null ? 43 : this.configTasks.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.java deleted file mode 100644 index 14813359b78..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLog.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; - -/** - * Move RU invocation history for the Globally distributed database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseRuChangeLog.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseRuChangeLog - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"ruChangeLog"}) - public DistributedDatabaseRuChangeLog( - java.util.List ruChangeLog) { - super(); - this.ruChangeLog = ruChangeLog; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Ordered list of move RU invocations (latest first). - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") - private java.util.List ruChangeLog; - - /** - * Ordered list of move RU invocations (latest first). - * @param ruChangeLog the value to set - * @return this builder - **/ - public Builder ruChangeLog( - java.util.List ruChangeLog) { - this.ruChangeLog = ruChangeLog; - this.__explicitlySet__.add("ruChangeLog"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseRuChangeLog build() { - DistributedDatabaseRuChangeLog model = - new DistributedDatabaseRuChangeLog(this.ruChangeLog); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseRuChangeLog model) { - if (model.wasPropertyExplicitlySet("ruChangeLog")) { - this.ruChangeLog(model.getRuChangeLog()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Ordered list of move RU invocations (latest first). - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruChangeLog") - private final java.util.List ruChangeLog; - - /** - * Ordered list of move RU invocations (latest first). - * @return the value - **/ - public java.util.List getRuChangeLog() { - return ruChangeLog; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseRuChangeLog("); - sb.append("super=").append(super.toString()); - sb.append("ruChangeLog=").append(String.valueOf(this.ruChangeLog)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseRuChangeLog)) { - return false; - } - - DistributedDatabaseRuChangeLog other = (DistributedDatabaseRuChangeLog) o; - return java.util.Objects.equals(this.ruChangeLog, other.ruChangeLog) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.ruChangeLog == null ? 43 : this.ruChangeLog.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java deleted file mode 100644 index 29760c88943..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseRuChangeLogSummary.java +++ /dev/null @@ -1,434 +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; - -/** - * One move RU invocation record for the Globally distributed database. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseRuChangeLogSummary.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseRuChangeLogSummary - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "sourceShardName", - "targetShardName", - "ruId", - "status", - "triggeredBy", - "timeCreated", - "timeUpdated" - }) - public DistributedDatabaseRuChangeLogSummary( - String sourceShardName, - String targetShardName, - String ruId, - Status status, - String triggeredBy, - java.util.Date timeCreated, - java.util.Date timeUpdated) { - super(); - this.sourceShardName = sourceShardName; - this.targetShardName = targetShardName; - this.ruId = ruId; - this.status = status; - this.triggeredBy = triggeredBy; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Source shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") - private String sourceShardName; - - /** - * Source shard for move RU invocation. - * @param sourceShardName the value to set - * @return this builder - **/ - public Builder sourceShardName(String sourceShardName) { - this.sourceShardName = sourceShardName; - this.__explicitlySet__.add("sourceShardName"); - return this; - } - /** - * Target shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") - private String targetShardName; - - /** - * Target shard for move RU invocation. - * @param targetShardName the value to set - * @return this builder - **/ - public Builder targetShardName(String targetShardName) { - this.targetShardName = targetShardName; - this.__explicitlySet__.add("targetShardName"); - return this; - } - /** - * Replication unit identifier associated with the invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruId") - private String ruId; - - /** - * Replication unit identifier associated with the invocation. - * @param ruId the value to set - * @return this builder - **/ - public Builder ruId(String ruId) { - this.ruId = ruId; - this.__explicitlySet__.add("ruId"); - return this; - } - /** - * Current or terminal status of the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Current or terminal status of the move RU invocation. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * Actor who triggered the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") - private String triggeredBy; - - /** - * Actor who triggered the move RU invocation. - * @param triggeredBy the value to set - * @return this builder - **/ - public Builder triggeredBy(String triggeredBy) { - this.triggeredBy = triggeredBy; - this.__explicitlySet__.add("triggeredBy"); - return this; - } - /** - * Entry creation timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * Entry creation timestamp in UTC. - * @param timeCreated the value to set - * @return this builder - **/ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * Entry update timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * Entry update timestamp in UTC. - * @param timeUpdated the value to set - * @return this builder - **/ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseRuChangeLogSummary build() { - DistributedDatabaseRuChangeLogSummary model = - new DistributedDatabaseRuChangeLogSummary( - this.sourceShardName, - this.targetShardName, - this.ruId, - this.status, - this.triggeredBy, - this.timeCreated, - this.timeUpdated); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseRuChangeLogSummary model) { - if (model.wasPropertyExplicitlySet("sourceShardName")) { - this.sourceShardName(model.getSourceShardName()); - } - if (model.wasPropertyExplicitlySet("targetShardName")) { - this.targetShardName(model.getTargetShardName()); - } - if (model.wasPropertyExplicitlySet("ruId")) { - this.ruId(model.getRuId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("triggeredBy")) { - this.triggeredBy(model.getTriggeredBy()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Source shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") - private final String sourceShardName; - - /** - * Source shard for move RU invocation. - * @return the value - **/ - public String getSourceShardName() { - return sourceShardName; - } - - /** - * Target shard for move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("targetShardName") - private final String targetShardName; - - /** - * Target shard for move RU invocation. - * @return the value - **/ - public String getTargetShardName() { - return targetShardName; - } - - /** - * Replication unit identifier associated with the invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruId") - private final String ruId; - - /** - * Replication unit identifier associated with the invocation. - * @return the value - **/ - public String getRuId() { - return ruId; - } - - /** - * Current or terminal status of the move RU invocation. - **/ - public enum Status { - Failed("FAILED"), - Queued("QUEUED"), - InProgress("IN_PROGRESS"), - Completed("COMPLETED"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Current or terminal status of the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Current or terminal status of the move RU invocation. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * Actor who triggered the move RU invocation. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("triggeredBy") - private final String triggeredBy; - - /** - * Actor who triggered the move RU invocation. - * @return the value - **/ - public String getTriggeredBy() { - return triggeredBy; - } - - /** - * Entry creation timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * Entry creation timestamp in UTC. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * Entry update timestamp in UTC. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * Entry update timestamp in UTC. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseRuChangeLogSummary("); - sb.append("super=").append(super.toString()); - sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); - sb.append(", targetShardName=").append(String.valueOf(this.targetShardName)); - sb.append(", ruId=").append(String.valueOf(this.ruId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", triggeredBy=").append(String.valueOf(this.triggeredBy)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseRuChangeLogSummary)) { - return false; - } - - DistributedDatabaseRuChangeLogSummary other = (DistributedDatabaseRuChangeLogSummary) o; - return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) - && java.util.Objects.equals(this.targetShardName, other.targetShardName) - && java.util.Objects.equals(this.ruId, other.ruId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.triggeredBy, other.triggeredBy) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); - result = - (result * PRIME) - + (this.targetShardName == null ? 43 : this.targetShardName.hashCode()); - result = (result * PRIME) + (this.ruId == null ? 43 : this.ruId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = (result * PRIME) + (this.triggeredBy == null ? 43 : this.triggeredBy.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.java deleted file mode 100644 index cfd25ac0e09..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabase.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.model; - -/** - * Details of a distributed database shard. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source", - defaultImpl = DistributedDatabaseShardDatabase.class -) -@com.fasterxml.jackson.annotation.JsonSubTypes({ - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardDatabaseWithExadbXsNewCluster.class, - name = "XS_NEW_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.class, - name = "XS_NEW_VAULT_AND_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardDatabaseWithExadbXd.class, - name = "XD_EXISTING_CLUSTER" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardDatabaseWithDbHome.class, - name = "EXISTING_DB_HOME" - ), - @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DistributedDatabaseShardDatabaseWithExadbXs.class, - name = "XS_EXISTING_CLUSTER" - ) -}) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public class DistributedDatabaseShardDatabase - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "timeCreated", "timeUpdated", "metadata"}) - protected DistributedDatabaseShardDatabase( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata) { - super(); - this.name = name; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.metadata = metadata; - } - - /** - * Name of the shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * Name of the shard. - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The time the shard was created. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the shard was created. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** - * The time the shard was last updated. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time the shard was last updated. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final DistributedDbMetadata metadata; - - public DistributedDbMetadata getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShardDatabase("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShardDatabase)) { - return false; - } - - DistributedDatabaseShardDatabase other = (DistributedDatabaseShardDatabase) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } - - /** - * The source of the Globally distributed database type. - * Use XS_EXISTING_CLUSTER for a database on Exascale Infrastructure that uses a pre-existing cluster. - * Use XS_NEW_CLUSTER for a database on Exascale Infrastructure that requires a new cluster created from scratch. - * Use XS_NEW_VAULT_AND_CLUSTER for a database on Exascale Infrastructure that requires a new vault and cluster created from scratch. - * Use XD_EXISTING_CLUSTER for a database on Dedicated Infrastructure that uses a pre-existing cluster. - * Use EXISTING_DB_HOME for a database on a pre-existing database home. - * - **/ - public enum Source { - XsExistingCluster("XS_EXISTING_CLUSTER"), - XsNewCluster("XS_NEW_CLUSTER"), - XsNewVaultAndCluster("XS_NEW_VAULT_AND_CLUSTER"), - XdExistingCluster("XD_EXISTING_CLUSTER"), - ExistingDbHome("EXISTING_DB_HOME"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Source.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Source v : Source.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Source(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Source create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Source', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java deleted file mode 100644 index 71ecba6757a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithDbHome.java +++ /dev/null @@ -1,629 +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 database shard using a pre-existing Database Home. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardDatabaseWithDbHome.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseShardDatabaseWithDbHome - extends DistributedDatabaseShardDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of distributed database shard. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseShardDatabaseWithDbHome build() { - DistributedDatabaseShardDatabaseWithDbHome model = - new DistributedDatabaseShardDatabaseWithDbHome( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vmClusterId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardDatabaseWithDbHome model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseShardDatabaseWithDbHome( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vmClusterId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vmClusterId = vmClusterId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * Status of distributed database shard. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of distributed database shard. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShardDatabaseWithDbHome("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShardDatabaseWithDbHome)) { - return false; - } - - DistributedDatabaseShardDatabaseWithDbHome other = - (DistributedDatabaseShardDatabaseWithDbHome) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java deleted file mode 100644 index c5b16e30dcb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXd.java +++ /dev/null @@ -1,633 +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 database shard running on ExaDB-D. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardDatabaseWithExadbXd.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseShardDatabaseWithExadbXd - extends DistributedDatabaseShardDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of distributed database shard. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseShardDatabaseWithExadbXd build() { - DistributedDatabaseShardDatabaseWithExadbXd model = - new DistributedDatabaseShardDatabaseWithExadbXd( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vmClusterId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardDatabaseWithExadbXd model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseShardDatabaseWithExadbXd( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vmClusterId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vmClusterId = vmClusterId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cloud VM Cluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * Status of distributed database shard. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of distributed database shard. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShardDatabaseWithExadbXd("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXd)) { - return false; - } - - DistributedDatabaseShardDatabaseWithExadbXd other = - (DistributedDatabaseShardDatabaseWithExadbXd) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java deleted file mode 100644 index 22ac6ea554e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXs.java +++ /dev/null @@ -1,629 +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 database shard running on ExaDB-XS. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardDatabaseWithExadbXs.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseShardDatabaseWithExadbXs - extends DistributedDatabaseShardDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @param vmClusterId the value to set - * @return this builder - **/ - public Builder vmClusterId(String vmClusterId) { - this.vmClusterId = vmClusterId; - this.__explicitlySet__.add("vmClusterId"); - return this; - } - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of distributed database shard. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseShardDatabaseWithExadbXs build() { - DistributedDatabaseShardDatabaseWithExadbXs model = - new DistributedDatabaseShardDatabaseWithExadbXs( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vmClusterId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardDatabaseWithExadbXs model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vmClusterId")) { - this.vmClusterId(model.getVmClusterId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseShardDatabaseWithExadbXs( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vmClusterId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vmClusterId = vmClusterId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterId") - private final String vmClusterId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VmCluster. - * @return the value - **/ - public String getVmClusterId() { - return vmClusterId; - } - - /** - * Status of distributed database shard. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of distributed database shard. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShardDatabaseWithExadbXs("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vmClusterId=").append(String.valueOf(this.vmClusterId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXs)) { - return false; - } - - DistributedDatabaseShardDatabaseWithExadbXs other = - (DistributedDatabaseShardDatabaseWithExadbXs) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vmClusterId, other.vmClusterId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vmClusterId == null ? 43 : this.vmClusterId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java deleted file mode 100644 index 0a07d2feff0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewCluster.java +++ /dev/null @@ -1,709 +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 database shard on ExaDB-XS with a new cluster. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardDatabaseWithExadbXsNewCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseShardDatabaseWithExadbXsNewCluster - extends DistributedDatabaseShardDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of distributed database shard. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The name of the availability domain that the distributed database shard will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @param exascaleDbStorageVaultId the value to set - * @return this builder - **/ - public Builder exascaleDbStorageVaultId(String exascaleDbStorageVaultId) { - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.__explicitlySet__.add("exascaleDbStorageVaultId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private DistributedDbVmCluster vmClusterDetails; - - public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { - this.vmClusterDetails = vmClusterDetails; - this.__explicitlySet__.add("vmClusterDetails"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseShardDatabaseWithExadbXsNewCluster build() { - DistributedDatabaseShardDatabaseWithExadbXsNewCluster model = - new DistributedDatabaseShardDatabaseWithExadbXsNewCluster( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.availabilityDomain, - this.exascaleDbStorageVaultId, - this.vmClusterDetails, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardDatabaseWithExadbXsNewCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("exascaleDbStorageVaultId")) { - this.exascaleDbStorageVaultId(model.getExascaleDbStorageVaultId()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseShardDatabaseWithExadbXsNewCluster( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String availabilityDomain, - String exascaleDbStorageVaultId, - DistributedDbVmCluster vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.availabilityDomain = availabilityDomain; - this.exascaleDbStorageVaultId = exascaleDbStorageVaultId; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * Status of distributed database shard. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of distributed database shard. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The name of the availability domain that the distributed database shard will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("exascaleDbStorageVaultId") - private final String exascaleDbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the exascale db storage vault. - * @return the value - **/ - public String getExascaleDbStorageVaultId() { - return exascaleDbStorageVaultId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final DistributedDbVmCluster vmClusterDetails; - - public DistributedDbVmCluster getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShardDatabaseWithExadbXsNewCluster("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", exascaleDbStorageVaultId=") - .append(String.valueOf(this.exascaleDbStorageVaultId)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXsNewCluster)) { - return false; - } - - DistributedDatabaseShardDatabaseWithExadbXsNewCluster other = - (DistributedDatabaseShardDatabaseWithExadbXsNewCluster) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals( - this.exascaleDbStorageVaultId, other.exascaleDbStorageVaultId) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.exascaleDbStorageVaultId == null - ? 43 - : this.exascaleDbStorageVaultId.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java deleted file mode 100644 index 1a86c2022e2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.java +++ /dev/null @@ -1,693 +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 database shard on ExaDB-XS with a new cluster and storage vault. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "source" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster - extends DistributedDatabaseShardDatabase { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private DistributedDbMetadata metadata; - - public Builder metadata(DistributedDbMetadata metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @param dbHomeId the value to set - * @return this builder - **/ - public Builder dbHomeId(String dbHomeId) { - this.dbHomeId = dbHomeId; - this.__explicitlySet__.add("dbHomeId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @param vaultId the value to set - * @return this builder - **/ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @param kmsKeyId the value to set - * @return this builder - **/ - public Builder kmsKeyId(String kmsKeyId) { - this.kmsKeyId = kmsKeyId; - this.__explicitlySet__.add("kmsKeyId"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @param kmsKeyVersionId the value to set - * @return this builder - **/ - public Builder kmsKeyVersionId(String kmsKeyVersionId) { - this.kmsKeyVersionId = kmsKeyVersionId; - this.__explicitlySet__.add("kmsKeyVersionId"); - return this; - } - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private Status status; - - /** - * Status of distributed database shard. - * @param status the value to set - * @return this builder - **/ - public Builder status(Status status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @param supportingResourceId the value to set - * @return this builder - **/ - public Builder supportingResourceId(String supportingResourceId) { - this.supportingResourceId = supportingResourceId; - this.__explicitlySet__.add("supportingResourceId"); - return this; - } - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @param containerDatabaseId the value to set - * @return this builder - **/ - public Builder containerDatabaseId(String containerDatabaseId) { - this.containerDatabaseId = containerDatabaseId; - this.__explicitlySet__.add("containerDatabaseId"); - return this; - } - /** - * The name of the availability domain that the distributed database shard will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in. - * @param availabilityDomain the value to set - * @return this builder - **/ - public Builder availabilityDomain(String availabilityDomain) { - this.availabilityDomain = availabilityDomain; - this.__explicitlySet__.add("availabilityDomain"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") - private DistributedDbStorageVault dbStorageVaultDetails; - - public Builder dbStorageVaultDetails(DistributedDbStorageVault dbStorageVaultDetails) { - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.__explicitlySet__.add("dbStorageVaultDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private DistributedDbVmCluster vmClusterDetails; - - public Builder vmClusterDetails(DistributedDbVmCluster vmClusterDetails) { - this.vmClusterDetails = vmClusterDetails; - this.__explicitlySet__.add("vmClusterDetails"); - return this; - } - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @param protectionMode the value to set - * @return this builder - **/ - public Builder protectionMode(DistributedDbProtectionMode protectionMode) { - this.protectionMode = protectionMode; - this.__explicitlySet__.add("protectionMode"); - return this; - } - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @param transportType the value to set - * @return this builder - **/ - public Builder transportType(DistributedDbTransportType transportType) { - this.transportType = transportType; - this.__explicitlySet__.add("transportType"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster build() { - DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster model = - new DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster( - this.name, - this.timeCreated, - this.timeUpdated, - this.metadata, - this.dbHomeId, - this.vaultId, - this.kmsKeyId, - this.kmsKeyVersionId, - this.status, - this.supportingResourceId, - this.containerDatabaseId, - this.availabilityDomain, - this.dbStorageVaultDetails, - this.vmClusterDetails, - this.protectionMode, - this.transportType); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - if (model.wasPropertyExplicitlySet("dbHomeId")) { - this.dbHomeId(model.getDbHomeId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyId")) { - this.kmsKeyId(model.getKmsKeyId()); - } - if (model.wasPropertyExplicitlySet("kmsKeyVersionId")) { - this.kmsKeyVersionId(model.getKmsKeyVersionId()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("supportingResourceId")) { - this.supportingResourceId(model.getSupportingResourceId()); - } - if (model.wasPropertyExplicitlySet("containerDatabaseId")) { - this.containerDatabaseId(model.getContainerDatabaseId()); - } - if (model.wasPropertyExplicitlySet("availabilityDomain")) { - this.availabilityDomain(model.getAvailabilityDomain()); - } - if (model.wasPropertyExplicitlySet("dbStorageVaultDetails")) { - this.dbStorageVaultDetails(model.getDbStorageVaultDetails()); - } - if (model.wasPropertyExplicitlySet("vmClusterDetails")) { - this.vmClusterDetails(model.getVmClusterDetails()); - } - if (model.wasPropertyExplicitlySet("protectionMode")) { - this.protectionMode(model.getProtectionMode()); - } - if (model.wasPropertyExplicitlySet("transportType")) { - this.transportType(model.getTransportType()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster( - String name, - java.util.Date timeCreated, - java.util.Date timeUpdated, - DistributedDbMetadata metadata, - String dbHomeId, - String vaultId, - String kmsKeyId, - String kmsKeyVersionId, - Status status, - String supportingResourceId, - String containerDatabaseId, - String availabilityDomain, - DistributedDbStorageVault dbStorageVaultDetails, - DistributedDbVmCluster vmClusterDetails, - DistributedDbProtectionMode protectionMode, - DistributedDbTransportType transportType) { - super(name, timeCreated, timeUpdated, metadata); - this.dbHomeId = dbHomeId; - this.vaultId = vaultId; - this.kmsKeyId = kmsKeyId; - this.kmsKeyVersionId = kmsKeyVersionId; - this.status = status; - this.supportingResourceId = supportingResourceId; - this.containerDatabaseId = containerDatabaseId; - this.availabilityDomain = availabilityDomain; - this.dbStorageVaultDetails = dbStorageVaultDetails; - this.vmClusterDetails = vmClusterDetails; - this.protectionMode = protectionMode; - this.transportType = transportType; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbHomeId") - private final String dbHomeId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. - * @return the value - **/ - public String getDbHomeId() { - return dbHomeId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure [vault](https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts). - * This parameter and {@code kmsKeyId} are required for Customer Managed Keys. - * - * @return the value - **/ - public String getVaultId() { - return vaultId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") - private final String kmsKeyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. - * - * @return the value - **/ - public String getKmsKeyId() { - return kmsKeyId; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyVersionId") - private final String kmsKeyVersionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. - * - * @return the value - **/ - public String getKmsKeyVersionId() { - return kmsKeyVersionId; - } - - /** - * Status of distributed database shard. - **/ - public enum Status { - Failed("FAILED"), - Deleting("DELETING"), - Deleted("DELETED"), - Updating("UPDATING"), - Creating("CREATING"), - Created("CREATED"), - ReadyForConfiguration("READY_FOR_CONFIGURATION"), - Configured("CONFIGURED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Status.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Status v : Status.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Status(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Status create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Status', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Status of distributed database shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final Status status; - - /** - * Status of distributed database shard. - * @return the value - **/ - public Status getStatus() { - return status; - } - - /** - * the identifier of the underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("supportingResourceId") - private final String supportingResourceId; - - /** - * the identifier of the underlying supporting resource. - * @return the value - **/ - public String getSupportingResourceId() { - return supportingResourceId; - } - - /** - * the identifier of the container database for underlying supporting resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("containerDatabaseId") - private final String containerDatabaseId; - - /** - * the identifier of the container database for underlying supporting resource. - * @return the value - **/ - public String getContainerDatabaseId() { - return containerDatabaseId; - } - - /** - * The name of the availability domain that the distributed database shard will be located in. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("availabilityDomain") - private final String availabilityDomain; - - /** - * The name of the availability domain that the distributed database shard will be located in. - * @return the value - **/ - public String getAvailabilityDomain() { - return availabilityDomain; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultDetails") - private final DistributedDbStorageVault dbStorageVaultDetails; - - public DistributedDbStorageVault getDbStorageVaultDetails() { - return dbStorageVaultDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vmClusterDetails") - private final DistributedDbVmCluster vmClusterDetails; - - public DistributedDbVmCluster getVmClusterDetails() { - return vmClusterDetails; - } - - /** - * The protection mode used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("protectionMode") - private final DistributedDbProtectionMode protectionMode; - - /** - * The protection mode used for the Data Guard association. - * @return the value - **/ - public DistributedDbProtectionMode getProtectionMode() { - return protectionMode; - } - - /** - * The transport type used for the Data Guard association. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("transportType") - private final DistributedDbTransportType transportType; - - /** - * The transport type used for the Data Guard association. - * @return the value - **/ - public DistributedDbTransportType getTransportType() { - return transportType; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", dbHomeId=").append(String.valueOf(this.dbHomeId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); - sb.append(", kmsKeyVersionId=").append(String.valueOf(this.kmsKeyVersionId)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", supportingResourceId=").append(String.valueOf(this.supportingResourceId)); - sb.append(", containerDatabaseId=").append(String.valueOf(this.containerDatabaseId)); - sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); - sb.append(", dbStorageVaultDetails=").append(String.valueOf(this.dbStorageVaultDetails)); - sb.append(", vmClusterDetails=").append(String.valueOf(this.vmClusterDetails)); - sb.append(", protectionMode=").append(String.valueOf(this.protectionMode)); - sb.append(", transportType=").append(String.valueOf(this.transportType)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster)) { - return false; - } - - DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster other = - (DistributedDatabaseShardDatabaseWithExadbXsNewVaultAndCluster) o; - return java.util.Objects.equals(this.dbHomeId, other.dbHomeId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) - && java.util.Objects.equals(this.kmsKeyVersionId, other.kmsKeyVersionId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.supportingResourceId, other.supportingResourceId) - && java.util.Objects.equals(this.containerDatabaseId, other.containerDatabaseId) - && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) - && java.util.Objects.equals(this.dbStorageVaultDetails, other.dbStorageVaultDetails) - && java.util.Objects.equals(this.vmClusterDetails, other.vmClusterDetails) - && java.util.Objects.equals(this.protectionMode, other.protectionMode) - && java.util.Objects.equals(this.transportType, other.transportType) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.dbHomeId == null ? 43 : this.dbHomeId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); - result = - (result * PRIME) - + (this.kmsKeyVersionId == null ? 43 : this.kmsKeyVersionId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = - (result * PRIME) - + (this.supportingResourceId == null - ? 43 - : this.supportingResourceId.hashCode()); - result = - (result * PRIME) - + (this.containerDatabaseId == null - ? 43 - : this.containerDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.availabilityDomain == null - ? 43 - : this.availabilityDomain.hashCode()); - result = - (result * PRIME) - + (this.dbStorageVaultDetails == null - ? 43 - : this.dbStorageVaultDetails.hashCode()); - result = - (result * PRIME) - + (this.vmClusterDetails == null ? 43 : this.vmClusterDetails.hashCode()); - result = - (result * PRIME) - + (this.protectionMode == null ? 43 : this.protectionMode.hashCode()); - result = - (result * PRIME) - + (this.transportType == null ? 43 : this.transportType.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java deleted file mode 100644 index 73ce89cb094..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDatabaseSummary.java +++ /dev/null @@ -1,1398 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDatabaseSummary - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 0b14c9dcf92..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupConfig.java +++ /dev/null @@ -1,813 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbBackupConfig - extends com.oracle.bmc.http.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 { - 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 { - 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 { - 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 { - 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 e4ef197fc70..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbBackupDestination.java +++ /dev/null @@ -1,403 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbBackupDestination - extends com.oracle.bmc.http.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 { - Nfs("NFS"), - ObjectStore("OBJECT_STORE"), - Local("LOCAL"), - Dbrs("DBRS"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Type v : Type.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - Type(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Type create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); - return UnknownEnumValue; - } - }; - /** - * Type of the database backup destination. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private final Type type; - - /** - * Type of the database backup destination. - * @return the value - **/ - public Type getType() { - return type; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup destination. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * Proxy URL to connect to object store. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("internetProxy") - private final String internetProxy; - - /** - * Proxy URL to connect to object store. - * @return the value - **/ - public String getInternetProxy() { - return internetProxy; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS policy used for backup. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbrsPolicyId") - private final String dbrsPolicyId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DBRS policy used for backup. - * @return the value - **/ - public String getDbrsPolicyId() { - return dbrsPolicyId; - } - - /** - * Indicates whether the backup destination is cross-region or local region. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isRemote") - private final Boolean isRemote; - - /** - * Indicates whether the backup destination is cross-region or local region. - * @return the value - **/ - public Boolean getIsRemote() { - return isRemote; - } - - /** - * The name of the remote region where the remote automatic incremental backups will be stored. - * For information about valid region names, see - * [Regions and Availability Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("remoteRegion") - private final String remoteRegion; - - /** - * The name of the remote region where the remote automatic incremental backups will be stored. - * For information about valid region names, see - * [Regions and Availability Domains](https://docs.oracle.com/iaas/Content/General/Concepts/regions.htm). - * - * @return the value - **/ - public String getRemoteRegion() { - return remoteRegion; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbBackupDestination("); - sb.append("super=").append(super.toString()); - sb.append("type=").append(String.valueOf(this.type)); - sb.append(", id=").append(String.valueOf(this.id)); - sb.append(", internetProxy=").append(String.valueOf(this.internetProxy)); - sb.append(", dbrsPolicyId=").append(String.valueOf(this.dbrsPolicyId)); - sb.append(", isRemote=").append(String.valueOf(this.isRemote)); - sb.append(", remoteRegion=").append(String.valueOf(this.remoteRegion)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDbBackupDestination)) { - return false; - } - - DistributedDbBackupDestination other = (DistributedDbBackupDestination) o; - return java.util.Objects.equals(this.type, other.type) - && java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.internetProxy, other.internetProxy) - && java.util.Objects.equals(this.dbrsPolicyId, other.dbrsPolicyId) - && java.util.Objects.equals(this.isRemote, other.isRemote) - && java.util.Objects.equals(this.remoteRegion, other.remoteRegion) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.internetProxy == null ? 43 : this.internetProxy.hashCode()); - result = (result * PRIME) + (this.dbrsPolicyId == null ? 43 : this.dbrsPolicyId.hashCode()); - result = (result * PRIME) + (this.isRemote == null ? 43 : this.isRemote.hashCode()); - result = (result * PRIME) + (this.remoteRegion == null ? 43 : this.remoteRegion.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java deleted file mode 100644 index 720b9370f39..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbConnectionString.java +++ /dev/null @@ -1,141 +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 Globally distributed database connection String. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbConnectionString.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbConnectionString - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"allConnectionStrings"}) - public DistributedDbConnectionString(java.util.Map allConnectionStrings) { - super(); - this.allConnectionStrings = allConnectionStrings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Collection of connection strings. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private java.util.Map allConnectionStrings; - - /** - * Collection of connection strings. - * @param allConnectionStrings the value to set - * @return this builder - **/ - public Builder allConnectionStrings(java.util.Map allConnectionStrings) { - this.allConnectionStrings = allConnectionStrings; - this.__explicitlySet__.add("allConnectionStrings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDbConnectionString build() { - DistributedDbConnectionString model = - new DistributedDbConnectionString(this.allConnectionStrings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbConnectionString model) { - if (model.wasPropertyExplicitlySet("allConnectionStrings")) { - this.allConnectionStrings(model.getAllConnectionStrings()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Collection of connection strings. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("allConnectionStrings") - private final java.util.Map allConnectionStrings; - - /** - * Collection of connection strings. - * @return the value - **/ - public java.util.Map getAllConnectionStrings() { - return allConnectionStrings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbConnectionString("); - sb.append("super=").append(super.toString()); - sb.append("allConnectionStrings=").append(String.valueOf(this.allConnectionStrings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDbConnectionString)) { - return false; - } - - DistributedDbConnectionString other = (DistributedDbConnectionString) o; - return java.util.Objects.equals(this.allConnectionStrings, other.allConnectionStrings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.allConnectionStrings == null - ? 43 - : this.allConnectionStrings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java deleted file mode 100644 index b4141844b03..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGdsControlNodeImage.java +++ /dev/null @@ -1,174 +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 Database Services Control(GDS CTL) image details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbGdsControlNodeImage.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbGdsControlNodeImage - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"id", "version"}) - public DistributedDbGdsControlNodeImage(String id, String version) { - super(); - this.id = id; - this.version = version; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * The version associated with the image identified by id. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - - /** - * The version associated with the image identified by id. - * @param version the value to set - * @return this builder - **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDbGdsControlNodeImage build() { - DistributedDbGdsControlNodeImage model = - new DistributedDbGdsControlNodeImage(this.id, this.version); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbGdsControlNodeImage model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global Database Services Control(GDS CTL) software image. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * The version associated with the image identified by id. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; - - /** - * The version associated with the image identified by id. - * @return the value - **/ - public String getVersion() { - return version; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbGdsControlNodeImage("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", version=").append(String.valueOf(this.version)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDbGdsControlNodeImage)) { - return false; - } - - DistributedDbGdsControlNodeImage other = (DistributedDbGdsControlNodeImage) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.version, other.version) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java deleted file mode 100644 index 09fd7d0e5c4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbGsmImage.java +++ /dev/null @@ -1,173 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbGsmImage.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbGsmImage - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"id", "version"}) - public DistributedDbGsmImage(String id, String version) { - super(); - this.id = id; - this.version = version; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * The version associated with the image identified by id. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - - /** - * The version associated with the image identified by id. - * @param version the value to set - * @return this builder - **/ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDbGsmImage build() { - DistributedDbGsmImage model = new DistributedDbGsmImage(this.id, this.version); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbGsmImage model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Global service manager software image. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * The version associated with the image identified by id. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; - - /** - * The version associated with the image identified by id. - * @return the value - **/ - public String getVersion() { - return version; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbGsmImage("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", version=").append(String.valueOf(this.version)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDbGsmImage)) { - return false; - } - - DistributedDbGsmImage other = (DistributedDbGsmImage) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.version, other.version) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java deleted file mode 100644 index 29f2270db6b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbMetadata.java +++ /dev/null @@ -1,135 +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; - -/** - * Additional metadata related to Globally distributed database resources. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DistributedDbMetadata.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbMetadata - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"map"}) - public DistributedDbMetadata(java.util.Map map) { - super(); - this.map = map; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The map containing key-value pair of additional metadata. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private java.util.Map map; - - /** - * The map containing key-value pair of additional metadata. - * @param map the value to set - * @return this builder - **/ - public Builder map(java.util.Map map) { - this.map = map; - this.__explicitlySet__.add("map"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDbMetadata build() { - DistributedDbMetadata model = new DistributedDbMetadata(this.map); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbMetadata model) { - if (model.wasPropertyExplicitlySet("map")) { - this.map(model.getMap()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The map containing key-value pair of additional metadata. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("map") - private final java.util.Map map; - - /** - * The map containing key-value pair of additional metadata. - * @return the value - **/ - public java.util.Map getMap() { - return map; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbMetadata("); - sb.append("super=").append(super.toString()); - sb.append("map=").append(String.valueOf(this.map)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDbMetadata)) { - return false; - } - - DistributedDbMetadata other = (DistributedDbMetadata) o; - return java.util.Objects.equals(this.map, other.map) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.map == null ? 43 : this.map.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java deleted file mode 100644 index 4254724cbe5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbProtectionMode.java +++ /dev/null @@ -1,56 +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 protection mode to set up between the primary and standby databases. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum DistributedDbProtectionMode { - MaximumAvailability("MAXIMUM_AVAILABILITY"), - MaximumPerformance("MAXIMUM_PERFORMANCE"), - MaximumProtection("MAXIMUM_PROTECTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbProtectionMode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DistributedDbProtectionMode v : DistributedDbProtectionMode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - DistributedDbProtectionMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedDbProtectionMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'DistributedDbProtectionMode', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java deleted file mode 100644 index 310068fd534..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbStorageVault.java +++ /dev/null @@ -1,447 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbStorageVault - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "compartmentId", - "displayName", - "dbStorageVaultId", - "highCapacityDatabaseStorage", - "additionalFlashCacheInPercent", - "subscriptionId", - "isAutoscaleEnabled", - "autoscaleLimitInGBs" - }) - public DistributedDbStorageVault( - String compartmentId, - String displayName, - String dbStorageVaultId, - Integer highCapacityDatabaseStorage, - Integer additionalFlashCacheInPercent, - String subscriptionId, - Boolean isAutoscaleEnabled, - Integer autoscaleLimitInGBs) { - super(); - this.compartmentId = compartmentId; - this.displayName = displayName; - this.dbStorageVaultId = dbStorageVaultId; - this.highCapacityDatabaseStorage = highCapacityDatabaseStorage; - this.additionalFlashCacheInPercent = additionalFlashCacheInPercent; - this.subscriptionId = subscriptionId; - this.isAutoscaleEnabled = isAutoscaleEnabled; - this.autoscaleLimitInGBs = autoscaleLimitInGBs; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for Db Storage Vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for Db Storage Vault. - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultId") - private String dbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. - * @param dbStorageVaultId the value to set - * @return this builder - **/ - public Builder dbStorageVaultId(String dbStorageVaultId) { - this.dbStorageVaultId = dbStorageVaultId; - this.__explicitlySet__.add("dbStorageVaultId"); - return this; - } - /** - * Total storage capacity in GB for vault storage. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("highCapacityDatabaseStorage") - private Integer highCapacityDatabaseStorage; - - /** - * Total storage capacity in GB for vault storage. - * @param highCapacityDatabaseStorage the value to set - * @return this builder - **/ - public Builder highCapacityDatabaseStorage(Integer highCapacityDatabaseStorage) { - this.highCapacityDatabaseStorage = highCapacityDatabaseStorage; - this.__explicitlySet__.add("highCapacityDatabaseStorage"); - return this; - } - /** - * The size of additional Flash Cache in percentage of High Capacity database storage. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("additionalFlashCacheInPercent") - private Integer additionalFlashCacheInPercent; - - /** - * The size of additional Flash Cache in percentage of High Capacity database storage. - * @param additionalFlashCacheInPercent the value to set - * @return this builder - **/ - public Builder additionalFlashCacheInPercent(Integer additionalFlashCacheInPercent) { - this.additionalFlashCacheInPercent = additionalFlashCacheInPercent; - this.__explicitlySet__.add("additionalFlashCacheInPercent"); - return this; - } - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription with which resource needs to be associated with. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") - private String subscriptionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription with which resource needs to be associated with. - * @param subscriptionId the value to set - * @return this builder - **/ - public Builder subscriptionId(String subscriptionId) { - this.subscriptionId = subscriptionId; - this.__explicitlySet__.add("subscriptionId"); - return this; - } - /** - * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value is {@code FALSE}. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isAutoscaleEnabled") - private Boolean isAutoscaleEnabled; - - /** - * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value is {@code FALSE}. - * @param isAutoscaleEnabled the value to set - * @return this builder - **/ - public Builder isAutoscaleEnabled(Boolean isAutoscaleEnabled) { - this.isAutoscaleEnabled = isAutoscaleEnabled; - this.__explicitlySet__.add("isAutoscaleEnabled"); - return this; - } - /** - * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when auto scaling is enabled for the Database Storage Vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("autoscaleLimitInGBs") - private Integer autoscaleLimitInGBs; - - /** - * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when auto scaling is enabled for the Database Storage Vault. - * @param autoscaleLimitInGBs the value to set - * @return this builder - **/ - public Builder autoscaleLimitInGBs(Integer autoscaleLimitInGBs) { - this.autoscaleLimitInGBs = autoscaleLimitInGBs; - this.__explicitlySet__.add("autoscaleLimitInGBs"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DistributedDbStorageVault build() { - DistributedDbStorageVault model = - new DistributedDbStorageVault( - this.compartmentId, - this.displayName, - this.dbStorageVaultId, - this.highCapacityDatabaseStorage, - this.additionalFlashCacheInPercent, - this.subscriptionId, - this.isAutoscaleEnabled, - this.autoscaleLimitInGBs); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DistributedDbStorageVault model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("dbStorageVaultId")) { - this.dbStorageVaultId(model.getDbStorageVaultId()); - } - if (model.wasPropertyExplicitlySet("highCapacityDatabaseStorage")) { - this.highCapacityDatabaseStorage(model.getHighCapacityDatabaseStorage()); - } - if (model.wasPropertyExplicitlySet("additionalFlashCacheInPercent")) { - this.additionalFlashCacheInPercent(model.getAdditionalFlashCacheInPercent()); - } - if (model.wasPropertyExplicitlySet("subscriptionId")) { - this.subscriptionId(model.getSubscriptionId()); - } - if (model.wasPropertyExplicitlySet("isAutoscaleEnabled")) { - this.isAutoscaleEnabled(model.getIsAutoscaleEnabled()); - } - if (model.wasPropertyExplicitlySet("autoscaleLimitInGBs")) { - this.autoscaleLimitInGBs(model.getAutoscaleLimitInGBs()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for Db Storage Vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for Db Storage Vault. - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * The user-friendly name for the Exadata Database Storage Vault. The name does not need to be unique. - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dbStorageVaultId") - private final String dbStorageVaultId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Database Storage Vault. - * @return the value - **/ - public String getDbStorageVaultId() { - return dbStorageVaultId; - } - - /** - * Total storage capacity in GB for vault storage. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("highCapacityDatabaseStorage") - private final Integer highCapacityDatabaseStorage; - - /** - * Total storage capacity in GB for vault storage. - * @return the value - **/ - public Integer getHighCapacityDatabaseStorage() { - return highCapacityDatabaseStorage; - } - - /** - * The size of additional Flash Cache in percentage of High Capacity database storage. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("additionalFlashCacheInPercent") - private final Integer additionalFlashCacheInPercent; - - /** - * The size of additional Flash Cache in percentage of High Capacity database storage. - * @return the value - **/ - public Integer getAdditionalFlashCacheInPercent() { - return additionalFlashCacheInPercent; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription with which resource needs to be associated with. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") - private final String subscriptionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription with which resource needs to be associated with. - * @return the value - **/ - public String getSubscriptionId() { - return subscriptionId; - } - - /** - * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value is {@code FALSE}. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isAutoscaleEnabled") - private final Boolean isAutoscaleEnabled; - - /** - * Indicates if autoscale feature is enabled for the Database Storage Vault. The default value is {@code FALSE}. - * @return the value - **/ - public Boolean getIsAutoscaleEnabled() { - return isAutoscaleEnabled; - } - - /** - * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when auto scaling is enabled for the Database Storage Vault. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("autoscaleLimitInGBs") - private final Integer autoscaleLimitInGBs; - - /** - * The maximum limit, in gigabytes, to which the Vault storage size can automatically scale when auto scaling is enabled for the Database Storage Vault. - * @return the value - **/ - public Integer getAutoscaleLimitInGBs() { - return autoscaleLimitInGBs; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DistributedDbStorageVault("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", dbStorageVaultId=").append(String.valueOf(this.dbStorageVaultId)); - sb.append(", highCapacityDatabaseStorage=") - .append(String.valueOf(this.highCapacityDatabaseStorage)); - sb.append(", additionalFlashCacheInPercent=") - .append(String.valueOf(this.additionalFlashCacheInPercent)); - sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); - sb.append(", isAutoscaleEnabled=").append(String.valueOf(this.isAutoscaleEnabled)); - sb.append(", autoscaleLimitInGBs=").append(String.valueOf(this.autoscaleLimitInGBs)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DistributedDbStorageVault)) { - return false; - } - - DistributedDbStorageVault other = (DistributedDbStorageVault) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.dbStorageVaultId, other.dbStorageVaultId) - && java.util.Objects.equals( - this.highCapacityDatabaseStorage, other.highCapacityDatabaseStorage) - && java.util.Objects.equals( - this.additionalFlashCacheInPercent, other.additionalFlashCacheInPercent) - && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) - && java.util.Objects.equals(this.isAutoscaleEnabled, other.isAutoscaleEnabled) - && java.util.Objects.equals(this.autoscaleLimitInGBs, other.autoscaleLimitInGBs) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.dbStorageVaultId == null ? 43 : this.dbStorageVaultId.hashCode()); - result = - (result * PRIME) - + (this.highCapacityDatabaseStorage == null - ? 43 - : this.highCapacityDatabaseStorage.hashCode()); - result = - (result * PRIME) - + (this.additionalFlashCacheInPercent == null - ? 43 - : this.additionalFlashCacheInPercent.hashCode()); - result = - (result * PRIME) - + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); - result = - (result * PRIME) - + (this.isAutoscaleEnabled == null - ? 43 - : this.isAutoscaleEnabled.hashCode()); - result = - (result * PRIME) - + (this.autoscaleLimitInGBs == null - ? 43 - : this.autoscaleLimitInGBs.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java deleted file mode 100644 index b0c3be641a9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbTransportType.java +++ /dev/null @@ -1,56 +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 transport type to use for this Data Guard association. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum DistributedDbTransportType { - Sync("SYNC"), - Async("ASYNC"), - Fastsync("FASTSYNC"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DistributedDbTransportType.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (DistributedDbTransportType v : DistributedDbTransportType.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - DistributedDbTransportType(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static DistributedDbTransportType create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'DistributedDbTransportType', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java deleted file mode 100644 index 2d2bb820edb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/DistributedDbVmCluster.java +++ /dev/null @@ -1,1022 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class DistributedDbVmCluster - extends com.oracle.bmc.http.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 { - 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 be799857f0b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedAutonomousDatabaseWalletDetails.java +++ /dev/null @@ -1,163 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class GenerateDistributedAutonomousDatabaseWalletDetails - extends com.oracle.bmc.http.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 562a7a7087e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/GenerateDistributedDatabaseWalletDetails.java +++ /dev/null @@ -1,163 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class GenerateDistributedDatabaseWalletDetails - extends com.oracle.bmc.http.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 780c04b9e66..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedAutonomousDatabaseReplicationUnitDetails.java +++ /dev/null @@ -1,229 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class MoveDistributedAutonomousDatabaseReplicationUnitDetails - extends com.oracle.bmc.http.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 5f2904eccdf..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/MoveDistributedDatabaseReplicationUnitDetails.java +++ /dev/null @@ -1,229 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class MoveDistributedDatabaseReplicationUnitDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "sourceShardName", - "destinationShardName", - "replicationUnits" - }) - public MoveDistributedDatabaseReplicationUnitDetails( - String sourceShardName, - String destinationShardName, - java.util.List replicationUnits) { - super(); - this.sourceShardName = sourceShardName; - this.destinationShardName = destinationShardName; - this.replicationUnits = replicationUnits; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of the source shard from which to move the chunks out to other shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") - private String sourceShardName; - - /** - * The name of the source shard from which to move the chunks out to other shards. - * @param sourceShardName the value to set - * @return this builder - **/ - public Builder sourceShardName(String sourceShardName) { - this.sourceShardName = sourceShardName; - this.__explicitlySet__.add("sourceShardName"); - return this; - } - /** - * The name of the destination shard to which the chunks moved out from source shard should be relocate to. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("destinationShardName") - private String destinationShardName; - - /** - * The name of the destination shard to which the chunks moved out from source shard should be relocate to. - * @param destinationShardName the value to set - * @return this builder - **/ - public Builder destinationShardName(String destinationShardName) { - this.destinationShardName = destinationShardName; - this.__explicitlySet__.add("destinationShardName"); - return this; - } - /** - * For RAFT databases please provide replication unit numbers to be moved from source shard to destination shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnits") - private java.util.List replicationUnits; - - /** - * For RAFT databases please provide replication unit numbers to be moved from source shard to destination shard. - * @param replicationUnits the value to set - * @return this builder - **/ - public Builder replicationUnits(java.util.List replicationUnits) { - this.replicationUnits = replicationUnits; - this.__explicitlySet__.add("replicationUnits"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public MoveDistributedDatabaseReplicationUnitDetails build() { - MoveDistributedDatabaseReplicationUnitDetails model = - new MoveDistributedDatabaseReplicationUnitDetails( - this.sourceShardName, this.destinationShardName, this.replicationUnits); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(MoveDistributedDatabaseReplicationUnitDetails model) { - if (model.wasPropertyExplicitlySet("sourceShardName")) { - this.sourceShardName(model.getSourceShardName()); - } - if (model.wasPropertyExplicitlySet("destinationShardName")) { - this.destinationShardName(model.getDestinationShardName()); - } - if (model.wasPropertyExplicitlySet("replicationUnits")) { - this.replicationUnits(model.getReplicationUnits()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of the source shard from which to move the chunks out to other shards. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("sourceShardName") - private final String sourceShardName; - - /** - * The name of the source shard from which to move the chunks out to other shards. - * @return the value - **/ - public String getSourceShardName() { - return sourceShardName; - } - - /** - * The name of the destination shard to which the chunks moved out from source shard should be relocate to. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("destinationShardName") - private final String destinationShardName; - - /** - * The name of the destination shard to which the chunks moved out from source shard should be relocate to. - * @return the value - **/ - public String getDestinationShardName() { - return destinationShardName; - } - - /** - * For RAFT databases please provide replication unit numbers to be moved from source shard to destination shard. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationUnits") - private final java.util.List replicationUnits; - - /** - * For RAFT databases please provide replication unit numbers to be moved from source shard to destination shard. - * @return the value - **/ - public java.util.List getReplicationUnits() { - return replicationUnits; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("MoveDistributedDatabaseReplicationUnitDetails("); - sb.append("super=").append(super.toString()); - sb.append("sourceShardName=").append(String.valueOf(this.sourceShardName)); - sb.append(", destinationShardName=").append(String.valueOf(this.destinationShardName)); - sb.append(", replicationUnits=").append(String.valueOf(this.replicationUnits)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof MoveDistributedDatabaseReplicationUnitDetails)) { - return false; - } - - MoveDistributedDatabaseReplicationUnitDetails other = - (MoveDistributedDatabaseReplicationUnitDetails) o; - return java.util.Objects.equals(this.sourceShardName, other.sourceShardName) - && java.util.Objects.equals(this.destinationShardName, other.destinationShardName) - && java.util.Objects.equals(this.replicationUnits, other.replicationUnits) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); - result = - (result * PRIME) - + (this.destinationShardName == null - ? 43 - : this.destinationShardName.hashCode()); - result = - (result * PRIME) - + (this.replicationUnits == null ? 43 : this.replicationUnits.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java deleted file mode 100644 index 3139b9c4cda..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationStatus.java +++ /dev/null @@ -1,61 +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 status. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum OperationStatus { - Accepted("ACCEPTED"), - InProgress("IN_PROGRESS"), - Waiting("WAITING"), - Failed("FAILED"), - Succeeded("SUCCEEDED"), - Canceling("CANCELING"), - Canceled("CANCELED"), - NeedsAttention("NEEDS_ATTENTION"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(OperationStatus.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (OperationStatus v : OperationStatus.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - OperationStatus(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static OperationStatus create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java deleted file mode 100644 index 9d79aeea7cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/OperationType.java +++ /dev/null @@ -1,91 +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. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum OperationType { - 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 cc79c107a41..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,141 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class PatchDistributedAutonomousDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public PatchDistributedAutonomousDatabaseDetails(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * List of patch instructions. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * List of patch instructions. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PatchDistributedAutonomousDatabaseDetails build() { - PatchDistributedAutonomousDatabaseDetails model = - new PatchDistributedAutonomousDatabaseDetails(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchDistributedAutonomousDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * List of patch instructions. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * List of patch instructions. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchDistributedAutonomousDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedAutonomousDatabaseDetails)) { - return false; - } - - PatchDistributedAutonomousDatabaseDetails other = - (PatchDistributedAutonomousDatabaseDetails) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java deleted file mode 100644 index 987efbbe24d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabaseDetails.java +++ /dev/null @@ -1,139 +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 PatchInstuction(s) in items array. All instructions in items have to be of same type. - * All instructions in items have to either PatchInsertInstruction type, PatchRemoveInstruction or - * PatchMergeInstruction. Multiple instructions of different types is not allowed to be performed in - * single operation. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchDistributedDatabaseDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchDistributedDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public PatchDistributedDatabaseDetails(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * List of patch instructions. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * List of patch instructions. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PatchDistributedDatabaseDetails build() { - PatchDistributedDatabaseDetails model = new PatchDistributedDatabaseDetails(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchDistributedDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * List of patch instructions. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * List of patch instructions. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchDistributedDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedDatabaseDetails)) { - return false; - } - - PatchDistributedDatabaseDetails other = (PatchDistributedDatabaseDetails) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java deleted file mode 100644 index 743de8ccf5b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchDistributedDatabasePrivateEndpointDetails.java +++ /dev/null @@ -1,140 +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. - * The initial supported patch operation is MERGE with selection vcnNsgIds and value containing - * the vcnNsgIds payload. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchDistributedDatabasePrivateEndpointDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchDistributedDatabasePrivateEndpointDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public PatchDistributedDatabasePrivateEndpointDetails(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * List of patch instructions. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * List of patch instructions. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PatchDistributedDatabasePrivateEndpointDetails build() { - PatchDistributedDatabasePrivateEndpointDetails model = - new PatchDistributedDatabasePrivateEndpointDetails(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchDistributedDatabasePrivateEndpointDetails model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * List of patch instructions. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * List of patch instructions. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchDistributedDatabasePrivateEndpointDetails("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedDatabasePrivateEndpointDetails)) { - return false; - } - - PatchDistributedDatabasePrivateEndpointDetails other = - (PatchDistributedDatabasePrivateEndpointDetails) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java deleted file mode 100644 index 7f51c989ddc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInsertInstruction.java +++ /dev/null @@ -1,149 +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; - -/** - * An operation that inserts a value into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchInsertInstruction.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "operation" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchInsertInstruction extends PatchInstruction { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("selection") - private String selection; - - public Builder selection(String selection) { - this.selection = selection; - this.__explicitlySet__.add("selection"); - return this; - } - /** - * A value to be inserted into the target. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private Object value; - - /** - * A value to be inserted into the target. - * @param value the value to set - * @return this builder - **/ - public Builder value(Object value) { - this.value = value; - this.__explicitlySet__.add("value"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PatchInsertInstruction build() { - PatchInsertInstruction model = new PatchInsertInstruction(this.selection, this.value); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchInsertInstruction model) { - if (model.wasPropertyExplicitlySet("selection")) { - this.selection(model.getSelection()); - } - if (model.wasPropertyExplicitlySet("value")) { - this.value(model.getValue()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public PatchInsertInstruction(String selection, Object value) { - super(selection); - this.value = value; - } - - /** - * A value to be inserted into the target. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private final Object value; - - /** - * A value to be inserted into the target. - * @return the value - **/ - public Object getValue() { - return value; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchInsertInstruction("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", value=").append(String.valueOf(this.value)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchInsertInstruction)) { - return false; - } - - PatchInsertInstruction other = (PatchInsertInstruction) o; - return java.util.Objects.equals(this.value, other.value) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java deleted file mode 100644 index 13d01c4936c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchInstruction.java +++ /dev/null @@ -1,145 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public class PatchInstruction extends com.oracle.bmc.http.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 { - Insert("INSERT"), - Remove("REMOVE"), - Merge("MERGE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (Operation v : Operation.values()) { - map.put(v.getValue(), v); - } - } - - Operation(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static Operation create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid Operation: " + key); - } - }; -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java deleted file mode 100644 index d26b566d8a7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchMergeInstruction.java +++ /dev/null @@ -1,155 +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; - -/** - * An operation that recursively updates items of the selection, or adding the value if the selection is empty. - * If the value is not an object, it is used directly, otherwise each key-value member is used - * to create or update a member of the same name in the target and the same process is applied recursively for each object-typed value - * (similar to [RFC 7396](https://tools.ietf.org/html/rfc7396#section-2) JSON Merge Patch, except that null values are copied - * rather than transformed into deletions). - * NOT_FOUND exceptions are handled by creating the implied containing structure. - * To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchMergeInstruction.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "operation" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchMergeInstruction extends PatchInstruction { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("selection") - private String selection; - - public Builder selection(String selection) { - this.selection = selection; - this.__explicitlySet__.add("selection"); - return this; - } - /** - * A value to be merged into the target. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private Object value; - - /** - * A value to be merged into the target. - * @param value the value to set - * @return this builder - **/ - public Builder value(Object value) { - this.value = value; - this.__explicitlySet__.add("value"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PatchMergeInstruction build() { - PatchMergeInstruction model = new PatchMergeInstruction(this.selection, this.value); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchMergeInstruction model) { - if (model.wasPropertyExplicitlySet("selection")) { - this.selection(model.getSelection()); - } - if (model.wasPropertyExplicitlySet("value")) { - this.value(model.getValue()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public PatchMergeInstruction(String selection, Object value) { - super(selection); - this.value = value; - } - - /** - * A value to be merged into the target. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("value") - private final Object value; - - /** - * A value to be merged into the target. - * @return the value - **/ - public Object getValue() { - return value; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchMergeInstruction("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(", value=").append(String.valueOf(this.value)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchMergeInstruction)) { - return false; - } - - PatchMergeInstruction other = (PatchMergeInstruction) o; - return java.util.Objects.equals(this.value, other.value) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java deleted file mode 100644 index e20cb94743e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/PatchRemoveInstruction.java +++ /dev/null @@ -1,114 +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; - -/** - * An operation that deletes items, ignoring NOT_FOUND exceptions. - * To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PatchRemoveInstruction.Builder.class -) -@com.fasterxml.jackson.annotation.JsonTypeInfo( - use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, - include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, - property = "operation" -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class PatchRemoveInstruction extends PatchInstruction { - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("selection") - private String selection; - - public Builder selection(String selection) { - this.selection = selection; - this.__explicitlySet__.add("selection"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PatchRemoveInstruction build() { - PatchRemoveInstruction model = new PatchRemoveInstruction(this.selection); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PatchRemoveInstruction model) { - if (model.wasPropertyExplicitlySet("selection")) { - this.selection(model.getSelection()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Deprecated - public PatchRemoveInstruction(String selection) { - super(selection); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PatchRemoveInstruction("); - sb.append("super=").append(super.toString(includeByteArrayContents)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchRemoveInstruction)) { - return false; - } - - PatchRemoveInstruction other = (PatchRemoveInstruction) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java deleted file mode 100644 index a19d947fc84..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,204 +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 rotate password for a shard or catalog in the Globally distributed autonomous database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = RotateDistributedAutonomousDatabaseDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class RotateDistributedAutonomousDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - public RotateDistributedAutonomousDatabaseDetails(String name, String adminPassword) { - super(); - this.name = name; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - @java.beans.ConstructorProperties({"name", "adminPassword"}) - public RotateDistributedAutonomousDatabaseDetails(String name, char[] adminPassword) { - super(); - this.name = name; - this.adminPassword = adminPassword; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The shard or catalog name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The shard or catalog name. - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The admin password for the shard or catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the shard or catalog. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public RotateDistributedAutonomousDatabaseDetails build() { - RotateDistributedAutonomousDatabaseDetails model = - new RotateDistributedAutonomousDatabaseDetails(this.name, this.adminPassword); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(RotateDistributedAutonomousDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The shard or catalog name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The shard or catalog name. - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The admin password for the shard or catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard or catalog. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard or catalog. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("RotateDistributedAutonomousDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", adminPassword=").append(""); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RotateDistributedAutonomousDatabaseDetails)) { - return false; - } - - RotateDistributedAutonomousDatabaseDetails other = - (RotateDistributedAutonomousDatabaseDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java deleted file mode 100644 index ef99aef18be..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedAutonomousDatabasePasswordsDetails.java +++ /dev/null @@ -1,143 +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; - -/** - * Payload to rotate passwords for shards and catalogs in the Globally distributed autonomous database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = RotateDistributedAutonomousDatabasePasswordsDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class RotateDistributedAutonomousDatabasePasswordsDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"databaseDetails"}) - public RotateDistributedAutonomousDatabasePasswordsDetails( - java.util.List databaseDetails) { - super(); - this.databaseDetails = databaseDetails; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Collection of shard or catalog password rotation details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") - private java.util.List databaseDetails; - - /** - * Collection of shard or catalog password rotation details. - * @param databaseDetails the value to set - * @return this builder - **/ - public Builder databaseDetails( - java.util.List databaseDetails) { - this.databaseDetails = databaseDetails; - this.__explicitlySet__.add("databaseDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public RotateDistributedAutonomousDatabasePasswordsDetails build() { - RotateDistributedAutonomousDatabasePasswordsDetails model = - new RotateDistributedAutonomousDatabasePasswordsDetails(this.databaseDetails); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(RotateDistributedAutonomousDatabasePasswordsDetails model) { - if (model.wasPropertyExplicitlySet("databaseDetails")) { - this.databaseDetails(model.getDatabaseDetails()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Collection of shard or catalog password rotation details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") - private final java.util.List databaseDetails; - - /** - * Collection of shard or catalog password rotation details. - * @return the value - **/ - public java.util.List getDatabaseDetails() { - return databaseDetails; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("RotateDistributedAutonomousDatabasePasswordsDetails("); - sb.append("super=").append(super.toString()); - sb.append("databaseDetails=").append(String.valueOf(this.databaseDetails)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RotateDistributedAutonomousDatabasePasswordsDetails)) { - return false; - } - - RotateDistributedAutonomousDatabasePasswordsDetails other = - (RotateDistributedAutonomousDatabasePasswordsDetails) o; - return java.util.Objects.equals(this.databaseDetails, other.databaseDetails) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.databaseDetails == null ? 43 : this.databaseDetails.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java deleted file mode 100644 index beab9e429df..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabaseDetails.java +++ /dev/null @@ -1,203 +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 rotate password for a shard or catalog in the Globally distributed database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = RotateDistributedDatabaseDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class RotateDistributedDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - public RotateDistributedDatabaseDetails(String name, String adminPassword) { - super(); - this.name = name; - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - } - - @com.fasterxml.jackson.annotation.JsonCreator - @Deprecated - @java.beans.ConstructorProperties({"name", "adminPassword"}) - public RotateDistributedDatabaseDetails(String name, char[] adminPassword) { - super(); - this.name = name; - this.adminPassword = adminPassword; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The shard or catalog name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The shard or catalog name. - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * The admin password for the shard or catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private char[] adminPassword; - - /** - * The admin password for the shard or catalog. - * @param adminPassword the value to set - * @return this builder - **/ - public Builder adminPassword(char[] adminPassword) { - this.adminPassword = adminPassword; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - public Builder adminPassword(String adminPassword) { - this.adminPassword = adminPassword != null ? adminPassword.toCharArray() : null; - this.__explicitlySet__.add("adminPassword"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public RotateDistributedDatabaseDetails build() { - RotateDistributedDatabaseDetails model = - new RotateDistributedDatabaseDetails(this.name, this.adminPassword); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(RotateDistributedDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("adminPassword")) { - this.adminPassword(model.getAdminPassword()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The shard or catalog name. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The shard or catalog name. - * @return the value - **/ - public String getName() { - return name; - } - - /** - * The admin password for the shard or catalog. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - private final char[] adminPassword; - - /** - * The admin password for the shard or catalog. - * return the value - * @Deprecated - Use getAdminPassword__AsCharArray() instead. - */ - @Deprecated - @com.fasterxml.jackson.annotation.JsonIgnore - public String getAdminPassword() { - return adminPassword != null ? new String(adminPassword) : null; - } - - /** - * The admin password for the shard or catalog. - * @return the value - **/ - @com.fasterxml.jackson.annotation.JsonProperty("adminPassword") - public char[] getAdminPassword__AsCharArray() { - return adminPassword; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("RotateDistributedDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", adminPassword=").append(""); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RotateDistributedDatabaseDetails)) { - return false; - } - - RotateDistributedDatabaseDetails other = (RotateDistributedDatabaseDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.adminPassword, other.adminPassword) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.adminPassword == null ? 43 : this.adminPassword.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java deleted file mode 100644 index 761e33a8728..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/RotateDistributedDatabasePasswordsDetails.java +++ /dev/null @@ -1,143 +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; - -/** - * Payload to rotate passwords for shards and catalogs in the Globally distributed database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = RotateDistributedDatabasePasswordsDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class RotateDistributedDatabasePasswordsDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"databaseDetails"}) - public RotateDistributedDatabasePasswordsDetails( - java.util.List databaseDetails) { - super(); - this.databaseDetails = databaseDetails; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Collection of shard or catalog password rotation details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") - private java.util.List databaseDetails; - - /** - * Collection of shard or catalog password rotation details. - * @param databaseDetails the value to set - * @return this builder - **/ - public Builder databaseDetails( - java.util.List databaseDetails) { - this.databaseDetails = databaseDetails; - this.__explicitlySet__.add("databaseDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public RotateDistributedDatabasePasswordsDetails build() { - RotateDistributedDatabasePasswordsDetails model = - new RotateDistributedDatabasePasswordsDetails(this.databaseDetails); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(RotateDistributedDatabasePasswordsDetails model) { - if (model.wasPropertyExplicitlySet("databaseDetails")) { - this.databaseDetails(model.getDatabaseDetails()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Collection of shard or catalog password rotation details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databaseDetails") - private final java.util.List databaseDetails; - - /** - * Collection of shard or catalog password rotation details. - * @return the value - **/ - public java.util.List getDatabaseDetails() { - return databaseDetails; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("RotateDistributedDatabasePasswordsDetails("); - sb.append("super=").append(super.toString()); - sb.append("databaseDetails=").append(String.valueOf(this.databaseDetails)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RotateDistributedDatabasePasswordsDetails)) { - return false; - } - - RotateDistributedDatabasePasswordsDetails other = - (RotateDistributedDatabasePasswordsDetails) o; - return java.util.Objects.equals(this.databaseDetails, other.databaseDetails) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.databaseDetails == null ? 43 : this.databaseDetails.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java deleted file mode 100644 index 12469ba1a78..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedAutonomousDatabaseGsmsDetails.java +++ /dev/null @@ -1,102 +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; - -/** - * Empty payload to scale global service manager(GSM) instances for the distributed autonomous database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ScaleDistributedAutonomousDatabaseGsmsDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ScaleDistributedAutonomousDatabaseGsmsDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - public ScaleDistributedAutonomousDatabaseGsmsDetails() { - super(); - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ScaleDistributedAutonomousDatabaseGsmsDetails build() { - ScaleDistributedAutonomousDatabaseGsmsDetails model = - new ScaleDistributedAutonomousDatabaseGsmsDetails(); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ScaleDistributedAutonomousDatabaseGsmsDetails model) { - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ScaleDistributedAutonomousDatabaseGsmsDetails("); - sb.append("super=").append(super.toString()); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ScaleDistributedAutonomousDatabaseGsmsDetails)) { - return false; - } - - ScaleDistributedAutonomousDatabaseGsmsDetails other = - (ScaleDistributedAutonomousDatabaseGsmsDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java deleted file mode 100644 index 98732048411..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/ScaleDistributedDatabaseGsmsDetails.java +++ /dev/null @@ -1,100 +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; - -/** - * Empty payload to scale global service manager(GSM) instances for the distributed database. - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ScaleDistributedDatabaseGsmsDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class ScaleDistributedDatabaseGsmsDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({}) - public ScaleDistributedDatabaseGsmsDetails() { - super(); - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ScaleDistributedDatabaseGsmsDetails build() { - ScaleDistributedDatabaseGsmsDetails model = new ScaleDistributedDatabaseGsmsDetails(); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ScaleDistributedDatabaseGsmsDetails model) { - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ScaleDistributedDatabaseGsmsDetails("); - sb.append("super=").append(super.toString()); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ScaleDistributedDatabaseGsmsDetails)) { - return false; - } - - ScaleDistributedDatabaseGsmsDetails other = (ScaleDistributedDatabaseGsmsDetails) o; - return super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java deleted file mode 100644 index 6c018e0bc9f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SortOrder.java +++ /dev/null @@ -1,42 +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. - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum SortOrder { - Asc("ASC"), - Desc("DESC"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortOrder v : SortOrder.values()) { - map.put(v.getValue(), v); - } - } - - SortOrder(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortOrder create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortOrder: " + key); - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java deleted file mode 100644 index d1ca6605103..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardDatabase.java +++ /dev/null @@ -1,166 +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; - -/** - * System data guard shard database details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = SystemDataGuardDatabase.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class SystemDataGuardDatabase - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"originalReplica", "dataGuardReplicas"}) - public SystemDataGuardDatabase( - SystemDataGuardReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private SystemDataGuardReplica originalReplica; - - public Builder originalReplica(SystemDataGuardReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The system data guard replica details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The system data guard replica details. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas(java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public SystemDataGuardDatabase build() { - SystemDataGuardDatabase model = - new SystemDataGuardDatabase(this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(SystemDataGuardDatabase model) { - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final SystemDataGuardReplica originalReplica; - - public SystemDataGuardReplica getOriginalReplica() { - return originalReplica; - } - - /** - * The system data guard replica details. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The system data guard replica details. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("SystemDataGuardDatabase("); - sb.append("super=").append(super.toString()); - sb.append("originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof SystemDataGuardDatabase)) { - return false; - } - - SystemDataGuardDatabase other = (SystemDataGuardDatabase) o; - return java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.java deleted file mode 100644 index b0041a40afe..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemDataGuardReplica.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.model; - -/** - * System data guard replica details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = SystemDataGuardReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class SystemDataGuardReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "databases"}) - public SystemDataGuardReplica( - String name, java.util.List databases) { - super(); - this.name = name; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @param databases the value to set - * @return this builder - **/ - public Builder databases(java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public SystemDataGuardReplica build() { - SystemDataGuardReplica model = new SystemDataGuardReplica(this.name, this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(SystemDataGuardReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of data guard replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Details of the databases associated with the system data guard replica. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system data guard replica. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("SystemDataGuardReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof SystemDataGuardReplica)) { - return false; - } - - SystemDataGuardReplica other = (SystemDataGuardReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java deleted file mode 100644 index bc7b857ed87..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/SystemRaftCluster.java +++ /dev/null @@ -1,361 +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; - -/** - * System raft cluster definition. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = SystemRaftCluster.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class SystemRaftCluster extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "name", - "replicationFactor", - "witnessCount", - "ruMode", - "databases" - }) - public SystemRaftCluster( - String name, - Integer replicationFactor, - Integer witnessCount, - RuMode ruMode, - java.util.List databases) { - super(); - this.name = name; - this.replicationFactor = replicationFactor; - this.witnessCount = witnessCount; - this.ruMode = ruMode; - this.databases = databases; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @param replicationFactor the value to set - * @return this builder - **/ - public Builder replicationFactor(Integer replicationFactor) { - this.replicationFactor = replicationFactor; - this.__explicitlySet__.add("replicationFactor"); - return this; - } - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @param witnessCount the value to set - * @return this builder - **/ - public Builder witnessCount(Integer witnessCount) { - this.witnessCount = witnessCount; - this.__explicitlySet__.add("witnessCount"); - return this; - } - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @param ruMode the value to set - * @return this builder - **/ - public Builder ruMode(RuMode ruMode) { - this.ruMode = ruMode; - this.__explicitlySet__.add("ruMode"); - return this; - } - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @param databases the value to set - * @return this builder - **/ - public Builder databases(java.util.List databases) { - this.databases = databases; - this.__explicitlySet__.add("databases"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public SystemRaftCluster build() { - SystemRaftCluster model = - new SystemRaftCluster( - this.name, - this.replicationFactor, - this.witnessCount, - this.ruMode, - this.databases); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(SystemRaftCluster model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("replicationFactor")) { - this.replicationFactor(model.getReplicationFactor()); - } - if (model.wasPropertyExplicitlySet("witnessCount")) { - this.witnessCount(model.getWitnessCount()); - } - if (model.wasPropertyExplicitlySet("ruMode")) { - this.ruMode(model.getRuMode()); - } - if (model.wasPropertyExplicitlySet("databases")) { - this.databases(model.getDatabases()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of raft cluster. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("replicationFactor") - private final Integer replicationFactor; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public Integer getReplicationFactor() { - return replicationFactor; - } - - /** - * Witnesses RU count associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("witnessCount") - private final Integer witnessCount; - - /** - * Witnesses RU count associated with the raft cluster. - * @return the value - **/ - public Integer getWitnessCount() { - return witnessCount; - } - - /** - * Replication factor associated with the raft cluster. - **/ - public enum RuMode { - ReadOnly("READ_ONLY"), - ReadWrite("READ_WRITE"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(RuMode.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (RuMode v : RuMode.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - RuMode(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static RuMode create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'RuMode', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } - }; - /** - * Replication factor associated with the raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("ruMode") - private final RuMode ruMode; - - /** - * Replication factor associated with the raft cluster. - * @return the value - **/ - public RuMode getRuMode() { - return ruMode; - } - - /** - * Details of the databases associated with the system raft cluster. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("databases") - private final java.util.List databases; - - /** - * Details of the databases associated with the system raft cluster. - * @return the value - **/ - public java.util.List getDatabases() { - return databases; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("SystemRaftCluster("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", replicationFactor=").append(String.valueOf(this.replicationFactor)); - sb.append(", witnessCount=").append(String.valueOf(this.witnessCount)); - sb.append(", ruMode=").append(String.valueOf(this.ruMode)); - sb.append(", databases=").append(String.valueOf(this.databases)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof SystemRaftCluster)) { - return false; - } - - SystemRaftCluster other = (SystemRaftCluster) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.replicationFactor, other.replicationFactor) - && java.util.Objects.equals(this.witnessCount, other.witnessCount) - && java.util.Objects.equals(this.ruMode, other.ruMode) - && java.util.Objects.equals(this.databases, other.databases) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.replicationFactor == null ? 43 : this.replicationFactor.hashCode()); - result = (result * PRIME) + (this.witnessCount == null ? 43 : this.witnessCount.hashCode()); - result = (result * PRIME) + (this.ruMode == null ? 43 : this.ruMode.hashCode()); - result = (result * PRIME) + (this.databases == null ? 43 : this.databases.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java deleted file mode 100644 index 3df8d1fcbda..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedAutonomousDatabaseDetails.java +++ /dev/null @@ -1,291 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateDistributedAutonomousDatabaseDetails - extends com.oracle.bmc.http.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 2cad304e985..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabaseDetails.java +++ /dev/null @@ -1,290 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class UpdateDistributedDatabaseDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "displayName", - "notificationTopicIds", - "freeformTags", - "definedTags" - }) - public UpdateDistributedDatabaseDetails( - String displayName, - java.util.List notificationTopicIds, - java.util.Map freeformTags, - java.util.Map> definedTags) { - super(); - this.displayName = displayName; - this.notificationTopicIds = notificationTopicIds; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Display name of the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Display name of the Globally distributed database. - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * Pass an empty list ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to empty). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private java.util.List notificationTopicIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * Pass an empty list ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to empty). - * - * @param notificationTopicIds the value to set - * @return this builder - **/ - public Builder notificationTopicIds(java.util.List notificationTopicIds) { - this.notificationTopicIds = notificationTopicIds; - this.__explicitlySet__.add("notificationTopicIds"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateDistributedDatabaseDetails build() { - UpdateDistributedDatabaseDetails model = - new UpdateDistributedDatabaseDetails( - this.displayName, - this.notificationTopicIds, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDistributedDatabaseDetails model) { - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("notificationTopicIds")) { - this.notificationTopicIds(model.getNotificationTopicIds()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Display name of the Globally distributed database. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * Display name of the Globally distributed database. - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * Pass an empty list ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to empty). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicIds") - private final java.util.List notificationTopicIds; - - /** - * The collection of [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the notification topics associated with the globally distributed database. - * Pass an empty list ({@code []}) to remove existing notification topics (set {@code notificationTopicIds} to empty). - * - * @return the value - **/ - public java.util.List getNotificationTopicIds() { - return notificationTopicIds; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDistributedDatabaseDetails("); - sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", notificationTopicIds=").append(String.valueOf(this.notificationTopicIds)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedDatabaseDetails)) { - return false; - } - - UpdateDistributedDatabaseDetails other = (UpdateDistributedDatabaseDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.notificationTopicIds, other.notificationTopicIds) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.notificationTopicIds == null - ? 43 - : this.notificationTopicIds.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java deleted file mode 100644 index 7125e911a2f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UpdateDistributedDatabasePrivateEndpointDetails.java +++ /dev/null @@ -1,274 +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 private endpoint to be updated. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDistributedDatabasePrivateEndpointDetails.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UpdateDistributedDatabasePrivateEndpointDetails - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) - public UpdateDistributedDatabasePrivateEndpointDetails( - String displayName, - String description, - java.util.Map freeformTags, - java.util.Map> definedTags) { - super(); - this.displayName = displayName; - this.description = description; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Display name for DistributedDatabasePrivateEndpoint - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Display name for DistributedDatabasePrivateEndpoint - * @param displayName the value to set - * @return this builder - **/ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @param description the value to set - * @return this builder - **/ - public Builder description(String description) { - this.description = description; - this.__explicitlySet__.add("description"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - **/ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - **/ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateDistributedDatabasePrivateEndpointDetails build() { - UpdateDistributedDatabasePrivateEndpointDetails model = - new UpdateDistributedDatabasePrivateEndpointDetails( - this.displayName, - this.description, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDistributedDatabasePrivateEndpointDetails model) { - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("description")) { - this.description(model.getDescription()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Display name for DistributedDatabasePrivateEndpoint - **/ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * Display name for DistributedDatabasePrivateEndpoint - * @return the value - **/ - public String getDisplayName() { - return displayName; - } - - /** - * DistributedDatabasePrivateEndpoint description. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("description") - private final String description; - - /** - * DistributedDatabasePrivateEndpoint description. - * @return the value - **/ - public String getDescription() { - return description; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - * Example: {@code {"bar-key": "value"}} - * - * @return the value - **/ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - **/ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDistributedDatabasePrivateEndpointDetails("); - sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", description=").append(String.valueOf(this.description)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedDatabasePrivateEndpointDetails)) { - return false; - } - - UpdateDistributedDatabasePrivateEndpointDetails other = - (UpdateDistributedDatabasePrivateEndpointDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.description, other.description) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java deleted file mode 100644 index de4277fdd75..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpace.java +++ /dev/null @@ -1,213 +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; - -/** - * Distributed database user shard space details. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UserShardSpace.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UserShardSpace extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "originalReplica", "dataGuardReplicas"}) - public UserShardSpace( - String name, - UserShardSpaceReplica originalReplica, - java.util.List dataGuardReplicas) { - super(); - this.name = name; - this.originalReplica = originalReplica; - this.dataGuardReplicas = dataGuardReplicas; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private UserShardSpaceReplica originalReplica; - - public Builder originalReplica(UserShardSpaceReplica originalReplica) { - this.originalReplica = originalReplica; - this.__explicitlySet__.add("originalReplica"); - return this; - } - /** - * The details of data guard replica for the user shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private java.util.List dataGuardReplicas; - - /** - * The details of data guard replica for the user shard space. - * @param dataGuardReplicas the value to set - * @return this builder - **/ - public Builder dataGuardReplicas(java.util.List dataGuardReplicas) { - this.dataGuardReplicas = dataGuardReplicas; - this.__explicitlySet__.add("dataGuardReplicas"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UserShardSpace build() { - UserShardSpace model = - new UserShardSpace(this.name, this.originalReplica, this.dataGuardReplicas); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UserShardSpace model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("originalReplica")) { - this.originalReplica(model.getOriginalReplica()); - } - if (model.wasPropertyExplicitlySet("dataGuardReplicas")) { - this.dataGuardReplicas(model.getDataGuardReplicas()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of user shard space. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("originalReplica") - private final UserShardSpaceReplica originalReplica; - - public UserShardSpaceReplica getOriginalReplica() { - return originalReplica; - } - - /** - * The details of data guard replica for the user shard space. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("dataGuardReplicas") - private final java.util.List dataGuardReplicas; - - /** - * The details of data guard replica for the user shard space. - * @return the value - **/ - public java.util.List getDataGuardReplicas() { - return dataGuardReplicas; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UserShardSpace("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", originalReplica=").append(String.valueOf(this.originalReplica)); - sb.append(", dataGuardReplicas=").append(String.valueOf(this.dataGuardReplicas)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UserShardSpace)) { - return false; - } - - UserShardSpace other = (UserShardSpace) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.originalReplica, other.originalReplica) - && java.util.Objects.equals(this.dataGuardReplicas, other.dataGuardReplicas) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = - (result * PRIME) - + (this.originalReplica == null ? 43 : this.originalReplica.hashCode()); - result = - (result * PRIME) - + (this.dataGuardReplicas == null ? 43 : this.dataGuardReplicas.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.java deleted file mode 100644 index a53309604fa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/UserShardSpaceReplica.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; - -/** - * Details of user shard space. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UserShardSpaceReplica.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class UserShardSpaceReplica - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "database"}) - public UserShardSpaceReplica(String name, DistributedDatabaseShardDatabase database) { - super(); - this.name = name; - this.database = database; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @param name the value to set - * @return this builder - **/ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private DistributedDatabaseShardDatabase database; - - public Builder database(DistributedDatabaseShardDatabase database) { - this.database = database; - this.__explicitlySet__.add("database"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UserShardSpaceReplica build() { - UserShardSpaceReplica model = new UserShardSpaceReplica(this.name, this.database); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UserShardSpaceReplica model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("database")) { - this.database(model.getDatabase()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * The name of user shard space replica. - * It must start with a letter and contain only letters, digits, and underscores. - * Maximum length is 40 characters. - * - * @return the value - **/ - public String getName() { - return name; - } - - @com.fasterxml.jackson.annotation.JsonProperty("database") - private final DistributedDatabaseShardDatabase database; - - public DistributedDatabaseShardDatabase getDatabase() { - return database; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UserShardSpaceReplica("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", database=").append(String.valueOf(this.database)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UserShardSpaceReplica)) { - return false; - } - - UserShardSpaceReplica other = (UserShardSpaceReplica) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.database, other.database) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.database == null ? 43 : this.database.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.java deleted file mode 100644 index 5e0051152d3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VcnNsgIdsDetails.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.distributeddatabasev26.model; - -/** - * Specifies the Virtual Cloud Network (VCN) and the list of associated Network Security Group (NSG) OCIDs. - *

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

        - * - During create, {@code nsgIds} (if provided) specifies the NSGs to associate with the new resource. - * - During update or patch, {@code nsgIds} modifies the associations: provide an empty array ({@code []}) to clear all NSGs, or provide a new list to replace them. - * - GET responses return the current associations (which may be empty). - * - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VcnNsgIdsDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class VcnNsgIdsDetails extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"vcnId", "nsgIds"}) - public VcnNsgIdsDetails(String vcnId, java.util.List nsgIds) { - super(); - this.vcnId = vcnId; - this.nsgIds = nsgIds; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer Virtual Cloud Network. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer Virtual Cloud Network. - * @param vcnId the value to set - * @return this builder - **/ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) associated with resources in this VCN. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) associated with resources in this VCN. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). - * - * @param nsgIds the value to set - * @return this builder - **/ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public VcnNsgIdsDetails build() { - VcnNsgIdsDetails model = new VcnNsgIdsDetails(this.vcnId, this.nsgIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(VcnNsgIdsDetails model) { - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer Virtual Cloud Network. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private final String vcnId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer Virtual Cloud Network. - * @return the value - **/ - public String getVcnId() { - return vcnId; - } - - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) associated with resources in this VCN. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; - - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) associated with resources in this VCN. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). - * - * @return the value - **/ - public java.util.List getNsgIds() { - return nsgIds; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("VcnNsgIdsDetails("); - sb.append("super=").append(super.toString()); - sb.append("vcnId=").append(String.valueOf(this.vcnId)); - sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof VcnNsgIdsDetails)) { - return false; - } - - VcnNsgIdsDetails other = (VcnNsgIdsDetails) o; - return java.util.Objects.equals(this.vcnId, other.vcnId) - && java.util.Objects.equals(this.nsgIds, other.nsgIds) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); - result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java deleted file mode 100644 index d9517f36724..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/VmClusterDetails.java +++ /dev/null @@ -1,927 +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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class VmClusterDetails extends com.oracle.bmc.http.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 { - LicenseIncluded("LICENSE_INCLUDED"), - BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (LicenseModel v : LicenseModel.values()) { - map.put(v.getValue(), v); - } - } - - LicenseModel(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static LicenseModel create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid LicenseModel: " + key); - } - }; - /** - * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") - private final LicenseModel licenseModel; - - /** - * The Oracle license model that applies to the Exadata VM cluster on Exascale Infrastructure. The default is BRING_YOUR_OWN_LICENSE. - * - * @return the value - **/ - public LicenseModel getLicenseModel() { - return licenseModel; - } - - /** - * A domain name used for the Exadata VM cluster on Exascale Infrastructure. - * If the Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the domain name for the subnet is used - * (do not provide one). Otherwise, provide a valid DNS domain name. - * Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale Infrastructure only. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("domain") - private final String domain; - - /** - * A domain name used for the Exadata VM cluster on Exascale Infrastructure. - * If the Oracle-provided internet and VCN resolver is enabled for the specified subnet, then the domain name for the subnet is used - * (do not provide one). Otherwise, provide a valid DNS domain name. - * Hyphens (-) are not permitted. Applies to Exadata Database Service on Exascale Infrastructure only. - * - * @return the value - **/ - public String getDomain() { - return domain; - } - - /** - * The private zone ID in which you want DNS records to be created. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("privateZoneId") - private final String privateZoneId; - - /** - * The private zone ID in which you want DNS records to be created. - * - * @return the value - **/ - public String getPrivateZoneId() { - return privateZoneId; - } - - /** - * Indicates whether diagnostic collection is enabled for the VM cluster. - * Enabling diagnostic collection allows you to receive Events service notifications for guest VM issues. - * Diagnostic collection also allows Oracle to provide enhanced service and proactive support for your Exadata system. - * You can enable diagnostic collection during VM cluster provisioning. You can also disable or enable it at any time using the {@code UpdateVmCluster} API. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isDiagnosticsEventsEnabled") - private final Boolean isDiagnosticsEventsEnabled; - - /** - * Indicates whether diagnostic collection is enabled for the VM cluster. - * Enabling diagnostic collection allows you to receive Events service notifications for guest VM issues. - * Diagnostic collection also allows Oracle to provide enhanced service and proactive support for your Exadata system. - * You can enable diagnostic collection during VM cluster provisioning. You can also disable or enable it at any time using the {@code UpdateVmCluster} API. - * - * @return the value - **/ - public Boolean getIsDiagnosticsEventsEnabled() { - return isDiagnosticsEventsEnabled; - } - - /** - * Indicates whether health monitoring is enabled for the VM cluster. - * Enabling health monitoring allows Oracle to collect diagnostic data and share it with its operations and support personnel. - * You may also receive notifications for some events. Collecting health diagnostics enables Oracle to provide proactive support and enhanced service for your system. - * Optionally enable health monitoring while provisioning a system. You can also disable or enable health monitoring anytime using the {@code UpdateVmCluster} API. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isHealthMonitoringEnabled") - private final Boolean isHealthMonitoringEnabled; - - /** - * Indicates whether health monitoring is enabled for the VM cluster. - * Enabling health monitoring allows Oracle to collect diagnostic data and share it with its operations and support personnel. - * You may also receive notifications for some events. Collecting health diagnostics enables Oracle to provide proactive support and enhanced service for your system. - * Optionally enable health monitoring while provisioning a system. You can also disable or enable health monitoring anytime using the {@code UpdateVmCluster} API. - * - * @return the value - **/ - public Boolean getIsHealthMonitoringEnabled() { - return isHealthMonitoringEnabled; - } - - /** - * Indicates whether incident logs and trace collection are enabled for the VM cluster. - * Enabling incident logs collection allows Oracle to receive Events service notifications for guest VM issues, collect incident logs and traces, and use them to diagnose issues and resolve them. - * Optionally enable incident logs collection while provisioning a system. You can also disable or enable incident logs collection anytime using the {@code UpdateVmCluster} API. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("isIncidentLogsEnabled") - private final Boolean isIncidentLogsEnabled; - - /** - * Indicates whether incident logs and trace collection are enabled for the VM cluster. - * Enabling incident logs collection allows Oracle to receive Events service notifications for guest VM issues, collect incident logs and traces, and use them to diagnose issues and resolve them. - * Optionally enable incident logs collection while provisioning a system. You can also disable or enable incident logs collection anytime using the {@code UpdateVmCluster} API. - * - * @return the value - **/ - public Boolean getIsIncidentLogsEnabled() { - return isIncidentLogsEnabled; - } - - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. - * Setting this to an empty list removes all resources from all NSGs. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; - - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the network security groups (NSGs) to which this resource belongs. - * Setting this to an empty list removes all resources from all NSGs. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). - * - * @return the value - **/ - public java.util.List getNsgIds() { - return nsgIds; - } - - /** - * A list of the [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. - * Setting this to an empty array after the list is created removes the resource from all NSGs. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("backupNetworkNsgIds") - private final java.util.List backupNetworkNsgIds; - - /** - * A list of the [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security groups (NSGs) that the backup network of this DB system belongs to. - * Setting this to an empty array after the list is created removes the resource from all NSGs. - * For more information about NSGs, see [Security Rules](https://docs.oracle.com/iaas/Content/Network/Concepts/securityrules.htm). Applicable only to Exadata systems. - * - * @return the value - **/ - public java.util.List getBackupNetworkNsgIds() { - return backupNetworkNsgIds; - } - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription with which resource needs to be associated with. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("subscriptionId") - private final String subscriptionId; - - /** - * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription with which resource needs to be associated with. - * @return the value - **/ - public String getSubscriptionId() { - return subscriptionId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("VmClusterDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", subnetId=").append(String.valueOf(this.subnetId)); - sb.append(", backupSubnetId=").append(String.valueOf(this.backupSubnetId)); - sb.append(", enabledECpuCount=").append(String.valueOf(this.enabledECpuCount)); - sb.append(", totalECpuCount=").append(String.valueOf(this.totalECpuCount)); - sb.append(", vmFileSystemStorageSize=") - .append(String.valueOf(this.vmFileSystemStorageSize)); - sb.append(", sshPublicKeys=").append(String.valueOf(this.sshPublicKeys)); - sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); - sb.append(", domain=").append(String.valueOf(this.domain)); - sb.append(", privateZoneId=").append(String.valueOf(this.privateZoneId)); - sb.append(", isDiagnosticsEventsEnabled=") - .append(String.valueOf(this.isDiagnosticsEventsEnabled)); - sb.append(", isHealthMonitoringEnabled=") - .append(String.valueOf(this.isHealthMonitoringEnabled)); - sb.append(", isIncidentLogsEnabled=").append(String.valueOf(this.isIncidentLogsEnabled)); - sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); - sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds)); - sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof VmClusterDetails)) { - return false; - } - - VmClusterDetails other = (VmClusterDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && java.util.Objects.equals(this.backupSubnetId, other.backupSubnetId) - && java.util.Objects.equals(this.enabledECpuCount, other.enabledECpuCount) - && java.util.Objects.equals(this.totalECpuCount, other.totalECpuCount) - && java.util.Objects.equals( - this.vmFileSystemStorageSize, other.vmFileSystemStorageSize) - && java.util.Objects.equals(this.sshPublicKeys, other.sshPublicKeys) - && java.util.Objects.equals(this.licenseModel, other.licenseModel) - && java.util.Objects.equals(this.domain, other.domain) - && java.util.Objects.equals(this.privateZoneId, other.privateZoneId) - && java.util.Objects.equals( - this.isDiagnosticsEventsEnabled, other.isDiagnosticsEventsEnabled) - && java.util.Objects.equals( - this.isHealthMonitoringEnabled, other.isHealthMonitoringEnabled) - && java.util.Objects.equals(this.isIncidentLogsEnabled, other.isIncidentLogsEnabled) - && java.util.Objects.equals(this.nsgIds, other.nsgIds) - && java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds) - && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = - (result * PRIME) - + (this.backupSubnetId == null ? 43 : this.backupSubnetId.hashCode()); - result = - (result * PRIME) - + (this.enabledECpuCount == null ? 43 : this.enabledECpuCount.hashCode()); - result = - (result * PRIME) - + (this.totalECpuCount == null ? 43 : this.totalECpuCount.hashCode()); - result = - (result * PRIME) - + (this.vmFileSystemStorageSize == null - ? 43 - : this.vmFileSystemStorageSize.hashCode()); - result = - (result * PRIME) - + (this.sshPublicKeys == null ? 43 : this.sshPublicKeys.hashCode()); - result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); - result = (result * PRIME) + (this.domain == null ? 43 : this.domain.hashCode()); - result = - (result * PRIME) - + (this.privateZoneId == null ? 43 : this.privateZoneId.hashCode()); - result = - (result * PRIME) - + (this.isDiagnosticsEventsEnabled == null - ? 43 - : this.isDiagnosticsEventsEnabled.hashCode()); - result = - (result * PRIME) - + (this.isHealthMonitoringEnabled == null - ? 43 - : this.isHealthMonitoringEnabled.hashCode()); - result = - (result * PRIME) - + (this.isIncidentLogsEnabled == null - ? 43 - : this.isIncidentLogsEnabled.hashCode()); - result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); - result = - (result * PRIME) - + (this.backupNetworkNsgIds == null - ? 43 - : this.backupNetworkNsgIds.hashCode()); - result = - (result * PRIME) - + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java deleted file mode 100644 index 1bb8587faf6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequest.java +++ /dev/null @@ -1,500 +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 description of workrequest status - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class WorkRequest extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "operationType", - "status", - "id", - "compartmentId", - "resources", - "percentComplete", - "timeAccepted", - "timeStarted", - "timeFinished" - }) - public WorkRequest( - OperationType operationType, - OperationStatus status, - String id, - String compartmentId, - java.util.List resources, - Float percentComplete, - java.util.Date timeAccepted, - java.util.Date timeStarted, - java.util.Date timeFinished) { - super(); - this.operationType = operationType; - this.status = status; - this.id = id; - this.compartmentId = compartmentId; - this.resources = resources; - this.percentComplete = percentComplete; - this.timeAccepted = timeAccepted; - this.timeStarted = timeStarted; - this.timeFinished = timeFinished; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Type of the work request - **/ - @com.fasterxml.jackson.annotation.JsonProperty("operationType") - private OperationType operationType; - - /** - * Type of the work request - * @param operationType the value to set - * @return this builder - **/ - public Builder operationType(OperationType operationType) { - this.operationType = operationType; - this.__explicitlySet__.add("operationType"); - return this; - } - /** - * Status of current work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private OperationStatus status; - - /** - * Status of current work request. - * @param status the value to set - * @return this builder - **/ - public Builder status(OperationStatus status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * The id of the work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The id of the work request. - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The resources affected by this work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("resources") - private java.util.List resources; - - /** - * The resources affected by this work request. - * @param resources the value to set - * @return this builder - **/ - public Builder resources(java.util.List resources) { - this.resources = resources; - this.__explicitlySet__.add("resources"); - return this; - } - /** - * Percentage of the request completed. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") - private Float percentComplete; - - /** - * Percentage of the request completed. - * @param percentComplete the value to set - * @return this builder - **/ - public Builder percentComplete(Float percentComplete) { - this.percentComplete = percentComplete; - this.__explicitlySet__.add("percentComplete"); - return this; - } - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") - private java.util.Date timeAccepted; - - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - * @param timeAccepted the value to set - * @return this builder - **/ - public Builder timeAccepted(java.util.Date timeAccepted) { - this.timeAccepted = timeAccepted; - this.__explicitlySet__.add("timeAccepted"); - return this; - } - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") - private java.util.Date timeStarted; - - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - * @param timeStarted the value to set - * @return this builder - **/ - public Builder timeStarted(java.util.Date timeStarted) { - this.timeStarted = timeStarted; - this.__explicitlySet__.add("timeStarted"); - return this; - } - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") - private java.util.Date timeFinished; - - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - * @param timeFinished the value to set - * @return this builder - **/ - public Builder timeFinished(java.util.Date timeFinished) { - this.timeFinished = timeFinished; - this.__explicitlySet__.add("timeFinished"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequest build() { - WorkRequest model = - new WorkRequest( - this.operationType, - this.status, - this.id, - this.compartmentId, - this.resources, - this.percentComplete, - this.timeAccepted, - this.timeStarted, - this.timeFinished); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequest model) { - if (model.wasPropertyExplicitlySet("operationType")) { - this.operationType(model.getOperationType()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("resources")) { - this.resources(model.getResources()); - } - if (model.wasPropertyExplicitlySet("percentComplete")) { - this.percentComplete(model.getPercentComplete()); - } - if (model.wasPropertyExplicitlySet("timeAccepted")) { - this.timeAccepted(model.getTimeAccepted()); - } - if (model.wasPropertyExplicitlySet("timeStarted")) { - this.timeStarted(model.getTimeStarted()); - } - if (model.wasPropertyExplicitlySet("timeFinished")) { - this.timeFinished(model.getTimeFinished()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Type of the work request - **/ - @com.fasterxml.jackson.annotation.JsonProperty("operationType") - private final OperationType operationType; - - /** - * Type of the work request - * @return the value - **/ - public OperationType getOperationType() { - return operationType; - } - - /** - * Status of current work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final OperationStatus status; - - /** - * Status of current work request. - * @return the value - **/ - public OperationStatus getStatus() { - return status; - } - - /** - * The id of the work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The id of the work request. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The resources affected by this work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("resources") - private final java.util.List resources; - - /** - * The resources affected by this work request. - * @return the value - **/ - public java.util.List getResources() { - return resources; - } - - /** - * Percentage of the request completed. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") - private final Float percentComplete; - - /** - * Percentage of the request completed. - * @return the value - **/ - public Float getPercentComplete() { - return percentComplete; - } - - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") - private final java.util.Date timeAccepted; - - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - * @return the value - **/ - public java.util.Date getTimeAccepted() { - return timeAccepted; - } - - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") - private final java.util.Date timeStarted; - - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - * @return the value - **/ - public java.util.Date getTimeStarted() { - return timeStarted; - } - - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") - private final java.util.Date timeFinished; - - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - * @return the value - **/ - public java.util.Date getTimeFinished() { - return timeFinished; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequest("); - sb.append("super=").append(super.toString()); - sb.append("operationType=").append(String.valueOf(this.operationType)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", resources=").append(String.valueOf(this.resources)); - sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); - sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); - sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); - sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequest)) { - return false; - } - - WorkRequest other = (WorkRequest) o; - return java.util.Objects.equals(this.operationType, other.operationType) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.resources, other.resources) - && java.util.Objects.equals(this.percentComplete, other.percentComplete) - && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) - && java.util.Objects.equals(this.timeStarted, other.timeStarted) - && java.util.Objects.equals(this.timeFinished, other.timeFinished) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.operationType == null ? 43 : this.operationType.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); - result = - (result * PRIME) - + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); - result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); - result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); - result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java deleted file mode 100644 index 1182d7630b3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestError.java +++ /dev/null @@ -1,215 +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; - -/** - * An error encountered while executing a work request. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.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.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestError extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"code", "message", "timestamp"}) - public WorkRequestError(String code, String message, java.util.Date timestamp) { - super(); - this.code = code; - this.message = message; - this.timestamp = timestamp; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * A machine-usable code for the error that occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("code") - private String code; - - /** - * A machine-usable code for the error that occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) - * - * @param code the value to set - * @return this builder - **/ - public Builder code(String code) { - this.code = code; - this.__explicitlySet__.add("code"); - return this; - } - /** - * A human readable description of the issue encountered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("message") - private String message; - - /** - * A human readable description of the issue encountered. - * @param message the value to set - * @return this builder - **/ - public Builder message(String message) { - this.message = message; - this.__explicitlySet__.add("message"); - return this; - } - /** - * The time the error occured. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timestamp") - private java.util.Date timestamp; - - /** - * The time the error occured. An RFC3339 formatted datetime string. - * @param timestamp the value to set - * @return this builder - **/ - public Builder timestamp(java.util.Date timestamp) { - this.timestamp = timestamp; - this.__explicitlySet__.add("timestamp"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestError build() { - WorkRequestError model = new WorkRequestError(this.code, this.message, this.timestamp); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestError model) { - if (model.wasPropertyExplicitlySet("code")) { - this.code(model.getCode()); - } - if (model.wasPropertyExplicitlySet("message")) { - this.message(model.getMessage()); - } - if (model.wasPropertyExplicitlySet("timestamp")) { - this.timestamp(model.getTimestamp()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * A machine-usable code for the error that occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("code") - private final String code; - - /** - * A machine-usable code for the error that occured. Error codes are listed on - * (https://docs.oracle.com/iaas/Content/API/References/apierrors.htm) - * - * @return the value - **/ - public String getCode() { - return code; - } - - /** - * A human readable description of the issue encountered. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("message") - private final String message; - - /** - * A human readable description of the issue encountered. - * @return the value - **/ - public String getMessage() { - return message; - } - - /** - * The time the error occured. An RFC3339 formatted datetime string. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timestamp") - private final java.util.Date timestamp; - - /** - * The time the error occured. An RFC3339 formatted datetime string. - * @return the value - **/ - public java.util.Date getTimestamp() { - return timestamp; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestError("); - sb.append("super=").append(super.toString()); - sb.append("code=").append(String.valueOf(this.code)); - sb.append(", message=").append(String.valueOf(this.message)); - sb.append(", timestamp=").append(String.valueOf(this.timestamp)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestError)) { - return false; - } - - WorkRequestError other = (WorkRequestError) o; - return java.util.Objects.equals(this.code, other.code) - && java.util.Objects.equals(this.message, other.message) - && java.util.Objects.equals(this.timestamp, other.timestamp) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.code == null ? 43 : this.code.hashCode()); - result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); - result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java deleted file mode 100644 index 0b622e6f1e3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestErrorCollection.java +++ /dev/null @@ -1,135 +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; - -/** - * Results of a workRequestError search. Contains both WorkRequestError items and other information, such as metadata. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestErrorCollection.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestErrorCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public WorkRequestErrorCollection(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * List of workRequestError objects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * List of workRequestError objects. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestErrorCollection build() { - WorkRequestErrorCollection model = new WorkRequestErrorCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestErrorCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * List of workRequestError objects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * List of workRequestError objects. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestErrorCollection("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestErrorCollection)) { - return false; - } - - WorkRequestErrorCollection other = (WorkRequestErrorCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java deleted file mode 100644 index 910a395eedb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntry.java +++ /dev/null @@ -1,172 +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 log message from the execution of a work request. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestLogEntry.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestLogEntry extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"message", "timestamp"}) - public WorkRequestLogEntry(String message, java.util.Date timestamp) { - super(); - this.message = message; - this.timestamp = timestamp; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Human-readable log message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("message") - private String message; - - /** - * Human-readable log message. - * @param message the value to set - * @return this builder - **/ - public Builder message(String message) { - this.message = message; - this.__explicitlySet__.add("message"); - return this; - } - /** - * The time the log message was written. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timestamp") - private java.util.Date timestamp; - - /** - * The time the log message was written. An RFC3339 formatted datetime string - * @param timestamp the value to set - * @return this builder - **/ - public Builder timestamp(java.util.Date timestamp) { - this.timestamp = timestamp; - this.__explicitlySet__.add("timestamp"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestLogEntry build() { - WorkRequestLogEntry model = new WorkRequestLogEntry(this.message, this.timestamp); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestLogEntry model) { - if (model.wasPropertyExplicitlySet("message")) { - this.message(model.getMessage()); - } - if (model.wasPropertyExplicitlySet("timestamp")) { - this.timestamp(model.getTimestamp()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Human-readable log message. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("message") - private final String message; - - /** - * Human-readable log message. - * @return the value - **/ - public String getMessage() { - return message; - } - - /** - * The time the log message was written. An RFC3339 formatted datetime string - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timestamp") - private final java.util.Date timestamp; - - /** - * The time the log message was written. An RFC3339 formatted datetime string - * @return the value - **/ - public java.util.Date getTimestamp() { - return timestamp; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestLogEntry("); - sb.append("super=").append(super.toString()); - sb.append("message=").append(String.valueOf(this.message)); - sb.append(", timestamp=").append(String.valueOf(this.timestamp)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestLogEntry)) { - return false; - } - - WorkRequestLogEntry other = (WorkRequestLogEntry) o; - return java.util.Objects.equals(this.message, other.message) - && java.util.Objects.equals(this.timestamp, other.timestamp) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); - result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java deleted file mode 100644 index c7c37f76cd5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestLogEntryCollection.java +++ /dev/null @@ -1,135 +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; - -/** - * Results of a workRequestLog search. Contains both workRequestLog items and other information, such as metadata. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestLogEntryCollection.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestLogEntryCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public WorkRequestLogEntryCollection(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * List of workRequestLogEntries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * List of workRequestLogEntries. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestLogEntryCollection build() { - WorkRequestLogEntryCollection model = new WorkRequestLogEntryCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestLogEntryCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * List of workRequestLogEntries. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * List of workRequestLogEntries. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestLogEntryCollection("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestLogEntryCollection)) { - return false; - } - - WorkRequestLogEntryCollection other = (WorkRequestLogEntryCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java deleted file mode 100644 index 22a4dfad83e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResource.java +++ /dev/null @@ -1,316 +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 resource created or operated on by a work request. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestResource.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestResource extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "entityType", - "actionType", - "identifier", - "entityUri", - "metadata" - }) - public WorkRequestResource( - String entityType, - ActionType actionType, - String identifier, - String entityUri, - java.util.Map metadata) { - super(); - this.entityType = entityType; - this.actionType = actionType; - this.identifier = identifier; - this.entityUri = entityUri; - this.metadata = metadata; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * The resource type the work request affects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("entityType") - private String entityType; - - /** - * The resource type the work request affects. - * @param entityType the value to set - * @return this builder - **/ - public Builder entityType(String entityType) { - this.entityType = entityType; - this.__explicitlySet__.add("entityType"); - return this; - } - /** - * The way in which this resource is affected by the work tracked in the work request. - * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until - * work is complete for that resource at which point it will transition to CREATED, UPDATED, - * or DELETED, respectively. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private ActionType actionType; - - /** - * The way in which this resource is affected by the work tracked in the work request. - * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until - * work is complete for that resource at which point it will transition to CREATED, UPDATED, - * or DELETED, respectively. - * - * @param actionType the value to set - * @return this builder - **/ - public Builder actionType(ActionType actionType) { - this.actionType = actionType; - this.__explicitlySet__.add("actionType"); - return this; - } - /** - * The identifier of the resource the work request affects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("identifier") - private String identifier; - - /** - * The identifier of the resource the work request affects. - * @param identifier the value to set - * @return this builder - **/ - public Builder identifier(String identifier) { - this.identifier = identifier; - this.__explicitlySet__.add("identifier"); - return this; - } - /** - * The URI path that the user can do a GET on to access the resource metadata - **/ - @com.fasterxml.jackson.annotation.JsonProperty("entityUri") - private String entityUri; - - /** - * The URI path that the user can do a GET on to access the resource metadata - * @param entityUri the value to set - * @return this builder - **/ - public Builder entityUri(String entityUri) { - this.entityUri = entityUri; - this.__explicitlySet__.add("entityUri"); - return this; - } - /** - * Additional information that helps to explain the resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private java.util.Map metadata; - - /** - * Additional information that helps to explain the resource. - * @param metadata the value to set - * @return this builder - **/ - public Builder metadata(java.util.Map metadata) { - this.metadata = metadata; - this.__explicitlySet__.add("metadata"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestResource build() { - WorkRequestResource model = - new WorkRequestResource( - this.entityType, - this.actionType, - this.identifier, - this.entityUri, - this.metadata); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestResource model) { - if (model.wasPropertyExplicitlySet("entityType")) { - this.entityType(model.getEntityType()); - } - if (model.wasPropertyExplicitlySet("actionType")) { - this.actionType(model.getActionType()); - } - if (model.wasPropertyExplicitlySet("identifier")) { - this.identifier(model.getIdentifier()); - } - if (model.wasPropertyExplicitlySet("entityUri")) { - this.entityUri(model.getEntityUri()); - } - if (model.wasPropertyExplicitlySet("metadata")) { - this.metadata(model.getMetadata()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The resource type the work request affects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("entityType") - private final String entityType; - - /** - * The resource type the work request affects. - * @return the value - **/ - public String getEntityType() { - return entityType; - } - - /** - * The way in which this resource is affected by the work tracked in the work request. - * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until - * work is complete for that resource at which point it will transition to CREATED, UPDATED, - * or DELETED, respectively. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("actionType") - private final ActionType actionType; - - /** - * The way in which this resource is affected by the work tracked in the work request. - * A resource being created, updated, or deleted will remain in the IN_PROGRESS state until - * work is complete for that resource at which point it will transition to CREATED, UPDATED, - * or DELETED, respectively. - * - * @return the value - **/ - public ActionType getActionType() { - return actionType; - } - - /** - * The identifier of the resource the work request affects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("identifier") - private final String identifier; - - /** - * The identifier of the resource the work request affects. - * @return the value - **/ - public String getIdentifier() { - return identifier; - } - - /** - * The URI path that the user can do a GET on to access the resource metadata - **/ - @com.fasterxml.jackson.annotation.JsonProperty("entityUri") - private final String entityUri; - - /** - * The URI path that the user can do a GET on to access the resource metadata - * @return the value - **/ - public String getEntityUri() { - return entityUri; - } - - /** - * Additional information that helps to explain the resource. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("metadata") - private final java.util.Map metadata; - - /** - * Additional information that helps to explain the resource. - * @return the value - **/ - public java.util.Map getMetadata() { - return metadata; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestResource("); - sb.append("super=").append(super.toString()); - sb.append("entityType=").append(String.valueOf(this.entityType)); - sb.append(", actionType=").append(String.valueOf(this.actionType)); - sb.append(", identifier=").append(String.valueOf(this.identifier)); - sb.append(", entityUri=").append(String.valueOf(this.entityUri)); - sb.append(", metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestResource)) { - return false; - } - - WorkRequestResource other = (WorkRequestResource) o; - return java.util.Objects.equals(this.entityType, other.entityType) - && java.util.Objects.equals(this.actionType, other.actionType) - && java.util.Objects.equals(this.identifier, other.identifier) - && java.util.Objects.equals(this.entityUri, other.entityUri) - && java.util.Objects.equals(this.metadata, other.metadata) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.entityType == null ? 43 : this.entityType.hashCode()); - result = (result * PRIME) + (this.actionType == null ? 43 : this.actionType.hashCode()); - result = (result * PRIME) + (this.identifier == null ? 43 : this.identifier.hashCode()); - result = (result * PRIME) + (this.entityUri == null ? 43 : this.entityUri.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java deleted file mode 100644 index 3a18b8d5f62..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestResourceMetadataKey.java +++ /dev/null @@ -1,54 +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 Metadata keys for workRequest resource metadata - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public enum WorkRequestResourceMetadataKey { - IsDryRun("IS_DRY_RUN"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(WorkRequestResourceMetadataKey.class); - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (WorkRequestResourceMetadataKey v : WorkRequestResourceMetadataKey.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } - } - } - - WorkRequestResourceMetadataKey(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static WorkRequestResourceMetadataKey create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - LOG.warn( - "Received unknown value '{}' for enum 'WorkRequestResourceMetadataKey', returning UnknownEnumValue", - key); - return UnknownEnumValue; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java deleted file mode 100644 index a5593b9d6f3..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummary.java +++ /dev/null @@ -1,502 +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 summary of the status of a work request. - *
        - * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields - * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in - * the setter methods of the {@link Builder}, which maintain a set of all explicitly set fields called - * {@link #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestSummary.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestSummary extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "operationType", - "status", - "id", - "compartmentId", - "resources", - "percentComplete", - "timeAccepted", - "timeStarted", - "timeFinished" - }) - public WorkRequestSummary( - OperationType operationType, - OperationStatus status, - String id, - String compartmentId, - java.util.List resources, - Float percentComplete, - java.util.Date timeAccepted, - java.util.Date timeStarted, - java.util.Date timeFinished) { - super(); - this.operationType = operationType; - this.status = status; - this.id = id; - this.compartmentId = compartmentId; - this.resources = resources; - this.percentComplete = percentComplete; - this.timeAccepted = timeAccepted; - this.timeStarted = timeStarted; - this.timeFinished = timeFinished; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Type of the work request - **/ - @com.fasterxml.jackson.annotation.JsonProperty("operationType") - private OperationType operationType; - - /** - * Type of the work request - * @param operationType the value to set - * @return this builder - **/ - public Builder operationType(OperationType operationType) { - this.operationType = operationType; - this.__explicitlySet__.add("operationType"); - return this; - } - /** - * Status of current work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private OperationStatus status; - - /** - * Status of current work request. - * @param status the value to set - * @return this builder - **/ - public Builder status(OperationStatus status) { - this.status = status; - this.__explicitlySet__.add("status"); - return this; - } - /** - * The id of the work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The id of the work request. - * @param id the value to set - * @return this builder - **/ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - * @param compartmentId the value to set - * @return this builder - **/ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The resources affected by this work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("resources") - private java.util.List resources; - - /** - * The resources affected by this work request. - * @param resources the value to set - * @return this builder - **/ - public Builder resources(java.util.List resources) { - this.resources = resources; - this.__explicitlySet__.add("resources"); - return this; - } - /** - * Percentage of the request completed. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") - private Float percentComplete; - - /** - * Percentage of the request completed. - * @param percentComplete the value to set - * @return this builder - **/ - public Builder percentComplete(Float percentComplete) { - this.percentComplete = percentComplete; - this.__explicitlySet__.add("percentComplete"); - return this; - } - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") - private java.util.Date timeAccepted; - - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - * @param timeAccepted the value to set - * @return this builder - **/ - public Builder timeAccepted(java.util.Date timeAccepted) { - this.timeAccepted = timeAccepted; - this.__explicitlySet__.add("timeAccepted"); - return this; - } - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") - private java.util.Date timeStarted; - - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - * @param timeStarted the value to set - * @return this builder - **/ - public Builder timeStarted(java.util.Date timeStarted) { - this.timeStarted = timeStarted; - this.__explicitlySet__.add("timeStarted"); - return this; - } - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") - private java.util.Date timeFinished; - - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - * @param timeFinished the value to set - * @return this builder - **/ - public Builder timeFinished(java.util.Date timeFinished) { - this.timeFinished = timeFinished; - this.__explicitlySet__.add("timeFinished"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestSummary build() { - WorkRequestSummary model = - new WorkRequestSummary( - this.operationType, - this.status, - this.id, - this.compartmentId, - this.resources, - this.percentComplete, - this.timeAccepted, - this.timeStarted, - this.timeFinished); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestSummary model) { - if (model.wasPropertyExplicitlySet("operationType")) { - this.operationType(model.getOperationType()); - } - if (model.wasPropertyExplicitlySet("status")) { - this.status(model.getStatus()); - } - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("resources")) { - this.resources(model.getResources()); - } - if (model.wasPropertyExplicitlySet("percentComplete")) { - this.percentComplete(model.getPercentComplete()); - } - if (model.wasPropertyExplicitlySet("timeAccepted")) { - this.timeAccepted(model.getTimeAccepted()); - } - if (model.wasPropertyExplicitlySet("timeStarted")) { - this.timeStarted(model.getTimeStarted()); - } - if (model.wasPropertyExplicitlySet("timeFinished")) { - this.timeFinished(model.getTimeFinished()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * Type of the work request - **/ - @com.fasterxml.jackson.annotation.JsonProperty("operationType") - private final OperationType operationType; - - /** - * Type of the work request - * @return the value - **/ - public OperationType getOperationType() { - return operationType; - } - - /** - * Status of current work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("status") - private final OperationStatus status; - - /** - * Status of current work request. - * @return the value - **/ - public OperationStatus getStatus() { - return status; - } - - /** - * The id of the work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The id of the work request. - * @return the value - **/ - public String getId() { - return id; - } - - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The ocid of the compartment that contains the work request. Work requests should be scoped to - * the same compartment as the resource the work request affects. If the work request affects multiple resources, - * and those resources are not in the same compartment, it is up to the service team to pick the primary - * resource whose compartment should be used - * - * @return the value - **/ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The resources affected by this work request. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("resources") - private final java.util.List resources; - - /** - * The resources affected by this work request. - * @return the value - **/ - public java.util.List getResources() { - return resources; - } - - /** - * Percentage of the request completed. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("percentComplete") - private final Float percentComplete; - - /** - * Percentage of the request completed. - * @return the value - **/ - public Float getPercentComplete() { - return percentComplete; - } - - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeAccepted") - private final java.util.Date timeAccepted; - - /** - * The date and time the request was created, as described in - * [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. - * - * @return the value - **/ - public java.util.Date getTimeAccepted() { - return timeAccepted; - } - - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeStarted") - private final java.util.Date timeStarted; - - /** - * The date and time the request was started, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), - * section 14.29. - * - * @return the value - **/ - public java.util.Date getTimeStarted() { - return timeStarted; - } - - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - **/ - @com.fasterxml.jackson.annotation.JsonProperty("timeFinished") - private final java.util.Date timeFinished; - - /** - * The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). - * - * @return the value - **/ - public java.util.Date getTimeFinished() { - return timeFinished; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestSummary("); - sb.append("super=").append(super.toString()); - sb.append("operationType=").append(String.valueOf(this.operationType)); - sb.append(", status=").append(String.valueOf(this.status)); - sb.append(", id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", resources=").append(String.valueOf(this.resources)); - sb.append(", percentComplete=").append(String.valueOf(this.percentComplete)); - sb.append(", timeAccepted=").append(String.valueOf(this.timeAccepted)); - sb.append(", timeStarted=").append(String.valueOf(this.timeStarted)); - sb.append(", timeFinished=").append(String.valueOf(this.timeFinished)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestSummary)) { - return false; - } - - WorkRequestSummary other = (WorkRequestSummary) o; - return java.util.Objects.equals(this.operationType, other.operationType) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.resources, other.resources) - && java.util.Objects.equals(this.percentComplete, other.percentComplete) - && java.util.Objects.equals(this.timeAccepted, other.timeAccepted) - && java.util.Objects.equals(this.timeStarted, other.timeStarted) - && java.util.Objects.equals(this.timeFinished, other.timeFinished) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.operationType == null ? 43 : this.operationType.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.resources == null ? 43 : this.resources.hashCode()); - result = - (result * PRIME) - + (this.percentComplete == null ? 43 : this.percentComplete.hashCode()); - result = (result * PRIME) + (this.timeAccepted == null ? 43 : this.timeAccepted.hashCode()); - result = (result * PRIME) + (this.timeStarted == null ? 43 : this.timeStarted.hashCode()); - result = (result * PRIME) + (this.timeFinished == null ? 43 : this.timeFinished.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java deleted file mode 100644 index 6cb61bd4885..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/model/WorkRequestSummaryCollection.java +++ /dev/null @@ -1,135 +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; - -/** - * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take - * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} - * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). - **/ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = WorkRequestSummaryCollection.Builder.class -) -@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) -public final class WorkRequestSummaryCollection - extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public WorkRequestSummaryCollection(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * List of workRequestSummary objects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * List of workRequestSummary objects. - * @param items the value to set - * @return this builder - **/ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public WorkRequestSummaryCollection build() { - WorkRequestSummaryCollection model = new WorkRequestSummaryCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(WorkRequestSummaryCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - return this; - } - } - - /** - * Create a new builder. - */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * List of workRequestSummary objects. - **/ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * List of workRequestSummary objects. - * @return the value - **/ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("WorkRequestSummaryCollection("); - sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof WorkRequestSummaryCollection)) { - return false; - } - - WorkRequestSummaryCollection other = (WorkRequestSummaryCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java deleted file mode 100644 index 0363d504550..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedAutonomousDatabaseGdsControlNodeRequest.java +++ /dev/null @@ -1,399 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of AddDistributedAutonomousDatabaseGdsControlNodeRequest - */ - public AddDistributedAutonomousDatabaseGdsControlNodeRequest - buildWithoutInvocationCallback() { - AddDistributedAutonomousDatabaseGdsControlNodeRequest request = - new AddDistributedAutonomousDatabaseGdsControlNodeRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.addDistributedAutonomousDatabaseGdsControlNodeDetails = - addDistributedAutonomousDatabaseGdsControlNodeDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new AddDistributedAutonomousDatabaseGdsControlNodeRequest(distributedAutonomousDatabaseId, addDistributedAutonomousDatabaseGdsControlNodeDetails, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .addDistributedAutonomousDatabaseGdsControlNodeDetails( - addDistributedAutonomousDatabaseGdsControlNodeDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",addDistributedAutonomousDatabaseGdsControlNodeDetails=") - .append(String.valueOf(this.addDistributedAutonomousDatabaseGdsControlNodeDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AddDistributedAutonomousDatabaseGdsControlNodeRequest)) { - return false; - } - - AddDistributedAutonomousDatabaseGdsControlNodeRequest other = - (AddDistributedAutonomousDatabaseGdsControlNodeRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals( - this.addDistributedAutonomousDatabaseGdsControlNodeDetails, - other.addDistributedAutonomousDatabaseGdsControlNodeDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.addDistributedAutonomousDatabaseGdsControlNodeDetails == null - ? 43 - : this.addDistributedAutonomousDatabaseGdsControlNodeDetails - .hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java deleted file mode 100644 index bc4dec54c38..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/AddDistributedDatabaseGdsControlNodeRequest.java +++ /dev/null @@ -1,391 +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 AddDistributedDatabaseGdsControlNodeRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails> { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * - */ - private com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails; - - /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * - */ - public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - getAddDistributedDatabaseGdsControlNodeDetails() { - return addDistributedDatabaseGdsControlNodeDetails; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.AddDistributedDatabaseGdsControlNodeDetails - getBody$() { - return addDistributedDatabaseGdsControlNodeDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - AddDistributedDatabaseGdsControlNodeRequest, - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * - */ - private com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails = null; - - /** - * Details required to provision the new Global database services control(GDS CTL) node for the Distributed database. - * - * @param addDistributedDatabaseGdsControlNodeDetails the value to set - * @return this builder instance - */ - public Builder addDistributedDatabaseGdsControlNodeDetails( - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - addDistributedDatabaseGdsControlNodeDetails) { - this.addDistributedDatabaseGdsControlNodeDetails = - addDistributedDatabaseGdsControlNodeDetails; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(AddDistributedDatabaseGdsControlNodeRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - addDistributedDatabaseGdsControlNodeDetails( - o.getAddDistributedDatabaseGdsControlNodeDetails()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of AddDistributedDatabaseGdsControlNodeRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of AddDistributedDatabaseGdsControlNodeRequest - */ - public AddDistributedDatabaseGdsControlNodeRequest build() { - AddDistributedDatabaseGdsControlNodeRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .AddDistributedDatabaseGdsControlNodeDetails - body) { - addDistributedDatabaseGdsControlNodeDetails(body); - return this; - } - - /** - * Build the instance of AddDistributedDatabaseGdsControlNodeRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of AddDistributedDatabaseGdsControlNodeRequest - */ - public AddDistributedDatabaseGdsControlNodeRequest buildWithoutInvocationCallback() { - AddDistributedDatabaseGdsControlNodeRequest request = - new AddDistributedDatabaseGdsControlNodeRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.addDistributedDatabaseGdsControlNodeDetails = - addDistributedDatabaseGdsControlNodeDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new AddDistributedDatabaseGdsControlNodeRequest(distributedDatabaseId, addDistributedDatabaseGdsControlNodeDetails, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .addDistributedDatabaseGdsControlNodeDetails( - addDistributedDatabaseGdsControlNodeDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",addDistributedDatabaseGdsControlNodeDetails=") - .append(String.valueOf(this.addDistributedDatabaseGdsControlNodeDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AddDistributedDatabaseGdsControlNodeRequest)) { - return false; - } - - AddDistributedDatabaseGdsControlNodeRequest other = - (AddDistributedDatabaseGdsControlNodeRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.addDistributedDatabaseGdsControlNodeDetails, - other.addDistributedDatabaseGdsControlNodeDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.addDistributedDatabaseGdsControlNodeDetails == null - ? 43 - : this.addDistributedDatabaseGdsControlNodeDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.java deleted file mode 100644 index 534427c4963..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDatabaseCompartmentRequest.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 ChangeDistributedAutonomousDatabaseCompartmentRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 f38cde44846..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedAutonomousDbBackupConfigRequest.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 ChangeDistributedAutonomousDbBackupConfigRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 7d93eac4f30..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabaseCompartmentRequest.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 ChangeDistributedDatabaseCompartmentRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 7c62b6b9986..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDatabasePrivateEndpointCompartmentRequest.java +++ /dev/null @@ -1,399 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ChangeDistributedDatabasePrivateEndpointCompartmentRequest - */ - public ChangeDistributedDatabasePrivateEndpointCompartmentRequest - buildWithoutInvocationCallback() { - ChangeDistributedDatabasePrivateEndpointCompartmentRequest request = - new ChangeDistributedDatabasePrivateEndpointCompartmentRequest(); - request.changeDistributedDatabasePrivateEndpointCompartmentDetails = - changeDistributedDatabasePrivateEndpointCompartmentDetails; - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new ChangeDistributedDatabasePrivateEndpointCompartmentRequest(changeDistributedDatabasePrivateEndpointCompartmentDetails, distributedDatabasePrivateEndpointId, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .changeDistributedDatabasePrivateEndpointCompartmentDetails( - changeDistributedDatabasePrivateEndpointCompartmentDetails) - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",changeDistributedDatabasePrivateEndpointCompartmentDetails=") - .append( - String.valueOf( - this.changeDistributedDatabasePrivateEndpointCompartmentDetails)); - sb.append(",distributedDatabasePrivateEndpointId=") - .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentRequest)) { - return false; - } - - ChangeDistributedDatabasePrivateEndpointCompartmentRequest other = - (ChangeDistributedDatabasePrivateEndpointCompartmentRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.changeDistributedDatabasePrivateEndpointCompartmentDetails, - other.changeDistributedDatabasePrivateEndpointCompartmentDetails) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.changeDistributedDatabasePrivateEndpointCompartmentDetails == null - ? 43 - : this.changeDistributedDatabasePrivateEndpointCompartmentDetails - .hashCode()); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.java deleted file mode 100644 index 6d72cc3e472..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ChangeDistributedDbBackupConfigRequest.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 ChangeDistributedDbBackupConfigRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDbBackupConfigDetails> { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails; - - /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. - */ - public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - getChangeDistributedDbBackupConfigDetails() { - return changeDistributedDbBackupConfigDetails; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - getBody$() { - return changeDistributedDbBackupConfigDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeDistributedDbBackupConfigRequest, - com.oracle.bmc.distributeddatabasev26.model - .ChangeDistributedDbBackupConfigDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails = null; - - /** - * Details of the DistributedDbBackupConfig for the Globally distributed database. - * @param changeDistributedDbBackupConfigDetails the value to set - * @return this builder instance - */ - public Builder changeDistributedDbBackupConfigDetails( - com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - changeDistributedDbBackupConfigDetails) { - this.changeDistributedDbBackupConfigDetails = changeDistributedDbBackupConfigDetails; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ChangeDistributedDbBackupConfigRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - changeDistributedDbBackupConfigDetails(o.getChangeDistributedDbBackupConfigDetails()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ChangeDistributedDbBackupConfigRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ChangeDistributedDbBackupConfigRequest - */ - public ChangeDistributedDbBackupConfigRequest build() { - ChangeDistributedDbBackupConfigRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.ChangeDistributedDbBackupConfigDetails - body) { - changeDistributedDbBackupConfigDetails(body); - return this; - } - - /** - * Build the instance of ChangeDistributedDbBackupConfigRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ChangeDistributedDbBackupConfigRequest - */ - public ChangeDistributedDbBackupConfigRequest buildWithoutInvocationCallback() { - ChangeDistributedDbBackupConfigRequest request = - new ChangeDistributedDbBackupConfigRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.changeDistributedDbBackupConfigDetails = changeDistributedDbBackupConfigDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new ChangeDistributedDbBackupConfigRequest(distributedDatabaseId, changeDistributedDbBackupConfigDetails, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .changeDistributedDbBackupConfigDetails(changeDistributedDbBackupConfigDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",changeDistributedDbBackupConfigDetails=") - .append(String.valueOf(this.changeDistributedDbBackupConfigDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDbBackupConfigRequest)) { - return false; - } - - ChangeDistributedDbBackupConfigRequest other = (ChangeDistributedDbBackupConfigRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.changeDistributedDbBackupConfigDetails, - other.changeDistributedDbBackupConfigDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.changeDistributedDbBackupConfigDetails == null - ? 43 - : this.changeDistributedDbBackupConfigDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java deleted file mode 100644 index 6122a8e393b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest.java +++ /dev/null @@ -1,399 +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 ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails> { - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * The payload for configuring autoResourceManagement for autonomous distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - configureDistributedAutonomousDatabaseAutoResourceManagementDetails; - - /** - * The payload for configuring autoResourceManagement for autonomous distributed database. - */ - public com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails() { - return configureDistributedAutonomousDatabaseAutoResourceManagementDetails; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - getBody$() { - return configureDistributedAutonomousDatabaseAutoResourceManagementDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest, - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId = null; - - /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - return this; - } - - /** - * The payload for configuring autoResourceManagement for autonomous distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - configureDistributedAutonomousDatabaseAutoResourceManagementDetails = null; - - /** - * The payload for configuring autoResourceManagement for autonomous distributed database. - * @param configureDistributedAutonomousDatabaseAutoResourceManagementDetails the value to set - * @return this builder instance - */ - public Builder configureDistributedAutonomousDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - configureDistributedAutonomousDatabaseAutoResourceManagementDetails) { - this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails = - configureDistributedAutonomousDatabaseAutoResourceManagementDetails; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - configureDistributedAutonomousDatabaseAutoResourceManagementDetails( - o.getConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - */ - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest build() { - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedAutonomousDatabaseAutoResourceManagementDetails - body) { - configureDistributedAutonomousDatabaseAutoResourceManagementDetails(body); - return this; - } - - /** - * Build the instance of ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - */ - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest - buildWithoutInvocationCallback() { - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest request = - new ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.configureDistributedAutonomousDatabaseAutoResourceManagementDetails = - configureDistributedAutonomousDatabaseAutoResourceManagementDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest(distributedAutonomousDatabaseId, configureDistributedAutonomousDatabaseAutoResourceManagementDetails, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .configureDistributedAutonomousDatabaseAutoResourceManagementDetails( - configureDistributedAutonomousDatabaseAutoResourceManagementDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",configureDistributedAutonomousDatabaseAutoResourceManagementDetails=") - .append( - String.valueOf( - this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest)) { - return false; - } - - ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest other = - (ConfigureDistributedAutonomousDatabaseAutoResourceManagementRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals( - this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails, - other.configureDistributedAutonomousDatabaseAutoResourceManagementDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.configureDistributedAutonomousDatabaseAutoResourceManagementDetails - == null - ? 43 - : this - .configureDistributedAutonomousDatabaseAutoResourceManagementDetails - .hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.java deleted file mode 100644 index 2101f0bd3f4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmWalletRequest.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.distributeddatabasev26.requests; - -import com.oracle.bmc.distributeddatabasev26.model.*; -/** - * Example: Click here to see how to use ConfigureDistributedAutonomousDatabaseGsmWalletRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 13a50f3d6aa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseGsmsRequest.java +++ /dev/null @@ -1,394 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 3387dc2c1cd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedAutonomousDatabaseShardingRequest.java +++ /dev/null @@ -1,422 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ConfigureDistributedAutonomousDatabaseShardingRequest - */ - public ConfigureDistributedAutonomousDatabaseShardingRequest - buildWithoutInvocationCallback() { - ConfigureDistributedAutonomousDatabaseShardingRequest request = - new ConfigureDistributedAutonomousDatabaseShardingRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.isRebalanceRequired = isRebalanceRequired; - request.certificateId = certificateId; - request.caBundleId = caBundleId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ConfigureDistributedAutonomousDatabaseShardingRequest(distributedAutonomousDatabaseId, isRebalanceRequired, certificateId, caBundleId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .isRebalanceRequired(isRebalanceRequired) - .certificateId(certificateId) - .caBundleId(caBundleId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",isRebalanceRequired=").append(String.valueOf(this.isRebalanceRequired)); - sb.append(",certificateId=").append(String.valueOf(this.certificateId)); - sb.append(",caBundleId=").append(String.valueOf(this.caBundleId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseShardingRequest)) { - return false; - } - - ConfigureDistributedAutonomousDatabaseShardingRequest other = - (ConfigureDistributedAutonomousDatabaseShardingRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.isRebalanceRequired, other.isRebalanceRequired) - && java.util.Objects.equals(this.certificateId, other.certificateId) - && java.util.Objects.equals(this.caBundleId, other.caBundleId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.isRebalanceRequired == null - ? 43 - : this.isRebalanceRequired.hashCode()); - result = - (result * PRIME) - + (this.certificateId == null ? 43 : this.certificateId.hashCode()); - result = (result * PRIME) + (this.caBundleId == null ? 43 : this.caBundleId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.java deleted file mode 100644 index 6b3bb1eb709..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseAutoResourceManagementRequest.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 ConfigureDistributedDatabaseAutoResourceManagementRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseAutoResourceManagementRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails> { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The payload for configuring autoResourceManagement for distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails - configureDistributedDatabaseAutoResourceManagementDetails; - - /** - * The payload for configuring autoResourceManagement for distributed database. - */ - public com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails - getConfigureDistributedDatabaseAutoResourceManagementDetails() { - return configureDistributedDatabaseAutoResourceManagementDetails; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails - getBody$() { - return configureDistributedDatabaseAutoResourceManagementDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ConfigureDistributedDatabaseAutoResourceManagementRequest, - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The payload for configuring autoResourceManagement for distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails - configureDistributedDatabaseAutoResourceManagementDetails = null; - - /** - * The payload for configuring autoResourceManagement for distributed database. - * @param configureDistributedDatabaseAutoResourceManagementDetails the value to set - * @return this builder instance - */ - public Builder configureDistributedDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails - configureDistributedDatabaseAutoResourceManagementDetails) { - this.configureDistributedDatabaseAutoResourceManagementDetails = - configureDistributedDatabaseAutoResourceManagementDetails; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ConfigureDistributedDatabaseAutoResourceManagementRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - configureDistributedDatabaseAutoResourceManagementDetails( - o.getConfigureDistributedDatabaseAutoResourceManagementDetails()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ConfigureDistributedDatabaseAutoResourceManagementRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ConfigureDistributedDatabaseAutoResourceManagementRequest - */ - public ConfigureDistributedDatabaseAutoResourceManagementRequest build() { - ConfigureDistributedDatabaseAutoResourceManagementRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .ConfigureDistributedDatabaseAutoResourceManagementDetails - body) { - configureDistributedDatabaseAutoResourceManagementDetails(body); - return this; - } - - /** - * Build the instance of ConfigureDistributedDatabaseAutoResourceManagementRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ConfigureDistributedDatabaseAutoResourceManagementRequest - */ - public ConfigureDistributedDatabaseAutoResourceManagementRequest - buildWithoutInvocationCallback() { - ConfigureDistributedDatabaseAutoResourceManagementRequest request = - new ConfigureDistributedDatabaseAutoResourceManagementRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.configureDistributedDatabaseAutoResourceManagementDetails = - configureDistributedDatabaseAutoResourceManagementDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ConfigureDistributedDatabaseAutoResourceManagementRequest(distributedDatabaseId, configureDistributedDatabaseAutoResourceManagementDetails, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .configureDistributedDatabaseAutoResourceManagementDetails( - configureDistributedDatabaseAutoResourceManagementDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",configureDistributedDatabaseAutoResourceManagementDetails=") - .append( - String.valueOf( - this.configureDistributedDatabaseAutoResourceManagementDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseAutoResourceManagementRequest)) { - return false; - } - - ConfigureDistributedDatabaseAutoResourceManagementRequest other = - (ConfigureDistributedDatabaseAutoResourceManagementRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.configureDistributedDatabaseAutoResourceManagementDetails, - other.configureDistributedDatabaseAutoResourceManagementDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.configureDistributedDatabaseAutoResourceManagementDetails == null - ? 43 - : this.configureDistributedDatabaseAutoResourceManagementDetails - .hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java deleted file mode 100644 index 17727ce6078..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseGsmsRequest.java +++ /dev/null @@ -1,380 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ConfigureDistributedDatabaseGsmsRequest - */ - public ConfigureDistributedDatabaseGsmsRequest buildWithoutInvocationCallback() { - ConfigureDistributedDatabaseGsmsRequest request = - new ConfigureDistributedDatabaseGsmsRequest(); - request.configureDistributedDatabaseGsmsDetails = - configureDistributedDatabaseGsmsDetails; - request.distributedDatabaseId = distributedDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ConfigureDistributedDatabaseGsmsRequest(configureDistributedDatabaseGsmsDetails, distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .configureDistributedDatabaseGsmsDetails(configureDistributedDatabaseGsmsDetails) - .distributedDatabaseId(distributedDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",configureDistributedDatabaseGsmsDetails=") - .append(String.valueOf(this.configureDistributedDatabaseGsmsDetails)); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseGsmsRequest)) { - return false; - } - - ConfigureDistributedDatabaseGsmsRequest other = (ConfigureDistributedDatabaseGsmsRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.configureDistributedDatabaseGsmsDetails, - other.configureDistributedDatabaseGsmsDetails) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.configureDistributedDatabaseGsmsDetails == null - ? 43 - : this.configureDistributedDatabaseGsmsDetails.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java deleted file mode 100644 index 2e2abe2871c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ConfigureDistributedDatabaseShardingRequest.java +++ /dev/null @@ -1,352 +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 ConfigureDistributedDatabaseShardingRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseShardingRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * - */ - private Boolean isRebalanceRequired; - - /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * - */ - public Boolean getIsRebalanceRequired() { - return isRebalanceRequired; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ConfigureDistributedDatabaseShardingRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * - */ - private Boolean isRebalanceRequired = null; - - /** - * The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined - * sharding type. - * - * @param isRebalanceRequired the value to set - * @return this builder instance - */ - public Builder isRebalanceRequired(Boolean isRebalanceRequired) { - this.isRebalanceRequired = isRebalanceRequired; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ConfigureDistributedDatabaseShardingRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - isRebalanceRequired(o.getIsRebalanceRequired()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ConfigureDistributedDatabaseShardingRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ConfigureDistributedDatabaseShardingRequest - */ - public ConfigureDistributedDatabaseShardingRequest build() { - ConfigureDistributedDatabaseShardingRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ConfigureDistributedDatabaseShardingRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ConfigureDistributedDatabaseShardingRequest - */ - public ConfigureDistributedDatabaseShardingRequest buildWithoutInvocationCallback() { - ConfigureDistributedDatabaseShardingRequest request = - new ConfigureDistributedDatabaseShardingRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.isRebalanceRequired = isRebalanceRequired; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ConfigureDistributedDatabaseShardingRequest(distributedDatabaseId, isRebalanceRequired, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .isRebalanceRequired(isRebalanceRequired) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",isRebalanceRequired=").append(String.valueOf(this.isRebalanceRequired)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseShardingRequest)) { - return false; - } - - ConfigureDistributedDatabaseShardingRequest other = - (ConfigureDistributedDatabaseShardingRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.isRebalanceRequired, other.isRebalanceRequired) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.isRebalanceRequired == null - ? 43 - : this.isRebalanceRequired.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 108cc8bd79c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,299 +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 CreateDistributedAutonomousDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails> { - - /** - * Details of the Globally distributed autonomous database to be created. - */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails; - - /** - * Details of the Globally distributed autonomous database to be created. - */ - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - getCreateDistributedAutonomousDatabaseDetails() { - return createDistributedAutonomousDatabaseDetails; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedAutonomousDatabaseDetails - getBody$() { - return createDistributedAutonomousDatabaseDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedAutonomousDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Details of the Globally distributed autonomous database to be created. - */ - private com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails = null; - - /** - * Details of the Globally distributed autonomous database to be created. - * @param createDistributedAutonomousDatabaseDetails the value to set - * @return this builder instance - */ - public Builder createDistributedAutonomousDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - createDistributedAutonomousDatabaseDetails) { - this.createDistributedAutonomousDatabaseDetails = - createDistributedAutonomousDatabaseDetails; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(CreateDistributedAutonomousDatabaseRequest o) { - createDistributedAutonomousDatabaseDetails( - o.getCreateDistributedAutonomousDatabaseDetails()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of CreateDistributedAutonomousDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of CreateDistributedAutonomousDatabaseRequest - */ - public CreateDistributedAutonomousDatabaseRequest build() { - CreateDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedAutonomousDatabaseDetails - body) { - createDistributedAutonomousDatabaseDetails(body); - return this; - } - - /** - * Build the instance of CreateDistributedAutonomousDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of CreateDistributedAutonomousDatabaseRequest - */ - public CreateDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - CreateDistributedAutonomousDatabaseRequest request = - new CreateDistributedAutonomousDatabaseRequest(); - request.createDistributedAutonomousDatabaseDetails = - createDistributedAutonomousDatabaseDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new CreateDistributedAutonomousDatabaseRequest(createDistributedAutonomousDatabaseDetails, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .createDistributedAutonomousDatabaseDetails( - createDistributedAutonomousDatabaseDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",createDistributedAutonomousDatabaseDetails=") - .append(String.valueOf(this.createDistributedAutonomousDatabaseDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedAutonomousDatabaseRequest)) { - return false; - } - - CreateDistributedAutonomousDatabaseRequest other = - (CreateDistributedAutonomousDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.createDistributedAutonomousDatabaseDetails, - other.createDistributedAutonomousDatabaseDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.createDistributedAutonomousDatabaseDetails == null - ? 43 - : this.createDistributedAutonomousDatabaseDetails.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.java deleted file mode 100644 index 6f68c1612dc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabasePrivateEndpointRequest.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.distributeddatabasev26.requests; - -import com.oracle.bmc.distributeddatabasev26.model.*; -/** - * Example: Click here to see how to use CreateDistributedDatabasePrivateEndpointRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabasePrivateEndpointRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails> { - - /** - * Details of DistributedDatabasePrivateEndpoint to be created. - */ - private com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails; - - /** - * Details of DistributedDatabasePrivateEndpoint to be created. - */ - public com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - getCreateDistributedDatabasePrivateEndpointDetails() { - return createDistributedDatabasePrivateEndpointDetails; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - getBody$() { - return createDistributedDatabasePrivateEndpointDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedDatabasePrivateEndpointRequest, - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Details of DistributedDatabasePrivateEndpoint to be created. - */ - private com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails = null; - - /** - * Details of DistributedDatabasePrivateEndpoint to be created. - * @param createDistributedDatabasePrivateEndpointDetails the value to set - * @return this builder instance - */ - public Builder createDistributedDatabasePrivateEndpointDetails( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - createDistributedDatabasePrivateEndpointDetails) { - this.createDistributedDatabasePrivateEndpointDetails = - createDistributedDatabasePrivateEndpointDetails; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(CreateDistributedDatabasePrivateEndpointRequest o) { - createDistributedDatabasePrivateEndpointDetails( - o.getCreateDistributedDatabasePrivateEndpointDetails()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of CreateDistributedDatabasePrivateEndpointRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of CreateDistributedDatabasePrivateEndpointRequest - */ - public CreateDistributedDatabasePrivateEndpointRequest build() { - CreateDistributedDatabasePrivateEndpointRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .CreateDistributedDatabasePrivateEndpointDetails - body) { - createDistributedDatabasePrivateEndpointDetails(body); - return this; - } - - /** - * Build the instance of CreateDistributedDatabasePrivateEndpointRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of CreateDistributedDatabasePrivateEndpointRequest - */ - public CreateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - CreateDistributedDatabasePrivateEndpointRequest request = - new CreateDistributedDatabasePrivateEndpointRequest(); - request.createDistributedDatabasePrivateEndpointDetails = - createDistributedDatabasePrivateEndpointDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new CreateDistributedDatabasePrivateEndpointRequest(createDistributedDatabasePrivateEndpointDetails, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .createDistributedDatabasePrivateEndpointDetails( - createDistributedDatabasePrivateEndpointDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",createDistributedDatabasePrivateEndpointDetails=") - .append(String.valueOf(this.createDistributedDatabasePrivateEndpointDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabasePrivateEndpointRequest)) { - return false; - } - - CreateDistributedDatabasePrivateEndpointRequest other = - (CreateDistributedDatabasePrivateEndpointRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.createDistributedDatabasePrivateEndpointDetails, - other.createDistributedDatabasePrivateEndpointDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.createDistributedDatabasePrivateEndpointDetails == null - ? 43 - : this.createDistributedDatabasePrivateEndpointDetails.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java deleted file mode 100644 index c10a9cbca21..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/CreateDistributedDatabaseRequest.java +++ /dev/null @@ -1,286 +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 CreateDistributedDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class CreateDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails> { - - /** - * Details of the Globally distributed database to be created. - */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails; - - /** - * Details of the Globally distributed database to be created. - */ - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - getCreateDistributedDatabaseDetails() { - return createDistributedDatabaseDetails; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails getBody$() { - return createDistributedDatabaseDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - CreateDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Details of the Globally distributed database to be created. - */ - private com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails = null; - - /** - * Details of the Globally distributed database to be created. - * @param createDistributedDatabaseDetails the value to set - * @return this builder instance - */ - public Builder createDistributedDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails - createDistributedDatabaseDetails) { - this.createDistributedDatabaseDetails = createDistributedDatabaseDetails; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(CreateDistributedDatabaseRequest o) { - createDistributedDatabaseDetails(o.getCreateDistributedDatabaseDetails()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of CreateDistributedDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of CreateDistributedDatabaseRequest - */ - public CreateDistributedDatabaseRequest build() { - CreateDistributedDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.CreateDistributedDatabaseDetails body) { - createDistributedDatabaseDetails(body); - return this; - } - - /** - * Build the instance of CreateDistributedDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of CreateDistributedDatabaseRequest - */ - public CreateDistributedDatabaseRequest buildWithoutInvocationCallback() { - CreateDistributedDatabaseRequest request = new CreateDistributedDatabaseRequest(); - request.createDistributedDatabaseDetails = createDistributedDatabaseDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new CreateDistributedDatabaseRequest(createDistributedDatabaseDetails, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .createDistributedDatabaseDetails(createDistributedDatabaseDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",createDistributedDatabaseDetails=") - .append(String.valueOf(this.createDistributedDatabaseDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDistributedDatabaseRequest)) { - return false; - } - - CreateDistributedDatabaseRequest other = (CreateDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.createDistributedDatabaseDetails, - other.createDistributedDatabaseDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.createDistributedDatabaseDetails == null - ? 43 - : this.createDistributedDatabaseDetails.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index c792af3218e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,310 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 eebf03584fa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabasePrivateEndpointRequest.java +++ /dev/null @@ -1,313 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of DeleteDistributedDatabasePrivateEndpointRequest - */ - public DeleteDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - DeleteDistributedDatabasePrivateEndpointRequest request = - new DeleteDistributedDatabasePrivateEndpointRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.opcRequestId = opcRequestId; - request.opcRetryToken = opcRetryToken; - request.ifMatch = ifMatch; - return request; - // new DeleteDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, opcRequestId, opcRetryToken, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabasePrivateEndpointId=") - .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DeleteDistributedDatabasePrivateEndpointRequest)) { - return false; - } - - DeleteDistributedDatabasePrivateEndpointRequest other = - (DeleteDistributedDatabasePrivateEndpointRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java deleted file mode 100644 index e70b345b1c4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/DeleteDistributedDatabaseRequest.java +++ /dev/null @@ -1,306 +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 DeleteDistributedDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class DeleteDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - DeleteDistributedDatabaseRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(DeleteDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRequestId(o.getOpcRequestId()); - opcRetryToken(o.getOpcRetryToken()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of DeleteDistributedDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of DeleteDistributedDatabaseRequest - */ - public DeleteDistributedDatabaseRequest build() { - DeleteDistributedDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of DeleteDistributedDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of DeleteDistributedDatabaseRequest - */ - public DeleteDistributedDatabaseRequest buildWithoutInvocationCallback() { - DeleteDistributedDatabaseRequest request = new DeleteDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRequestId = opcRequestId; - request.opcRetryToken = opcRetryToken; - request.ifMatch = ifMatch; - return request; - // new DeleteDistributedDatabaseRequest(distributedDatabaseId, opcRequestId, opcRetryToken, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DeleteDistributedDatabaseRequest)) { - return false; - } - - DeleteDistributedDatabaseRequest other = (DeleteDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java deleted file mode 100644 index 0307197d88f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedAutonomousDatabaseWalletRequest.java +++ /dev/null @@ -1,394 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GenerateDistributedAutonomousDatabaseWalletRequest - */ - public GenerateDistributedAutonomousDatabaseWalletRequest buildWithoutInvocationCallback() { - GenerateDistributedAutonomousDatabaseWalletRequest request = - new GenerateDistributedAutonomousDatabaseWalletRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.generateDistributedAutonomousDatabaseWalletDetails = - generateDistributedAutonomousDatabaseWalletDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new GenerateDistributedAutonomousDatabaseWalletRequest(distributedAutonomousDatabaseId, generateDistributedAutonomousDatabaseWalletDetails, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .generateDistributedAutonomousDatabaseWalletDetails( - generateDistributedAutonomousDatabaseWalletDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",generateDistributedAutonomousDatabaseWalletDetails=") - .append(String.valueOf(this.generateDistributedAutonomousDatabaseWalletDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GenerateDistributedAutonomousDatabaseWalletRequest)) { - return false; - } - - GenerateDistributedAutonomousDatabaseWalletRequest other = - (GenerateDistributedAutonomousDatabaseWalletRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals( - this.generateDistributedAutonomousDatabaseWalletDetails, - other.generateDistributedAutonomousDatabaseWalletDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.generateDistributedAutonomousDatabaseWalletDetails == null - ? 43 - : this.generateDistributedAutonomousDatabaseWalletDetails - .hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java deleted file mode 100644 index 8f71db77b8c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GenerateDistributedDatabaseWalletRequest.java +++ /dev/null @@ -1,383 +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 GenerateDistributedDatabaseWalletRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .GenerateDistributedDatabaseWalletDetails> { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * Details for generating Globally distributed database wallet. - */ - private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails; - - /** - * Details for generating Globally distributed database wallet. - */ - public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - getGenerateDistributedDatabaseWalletDetails() { - return generateDistributedDatabaseWalletDetails; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - getBody$() { - return generateDistributedDatabaseWalletDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GenerateDistributedDatabaseWalletRequest, - com.oracle.bmc.distributeddatabasev26.model - .GenerateDistributedDatabaseWalletDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * Details for generating Globally distributed database wallet. - */ - private com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails = null; - - /** - * Details for generating Globally distributed database wallet. - * @param generateDistributedDatabaseWalletDetails the value to set - * @return this builder instance - */ - public Builder generateDistributedDatabaseWalletDetails( - com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - generateDistributedDatabaseWalletDetails) { - this.generateDistributedDatabaseWalletDetails = - generateDistributedDatabaseWalletDetails; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GenerateDistributedDatabaseWalletRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - generateDistributedDatabaseWalletDetails( - o.getGenerateDistributedDatabaseWalletDetails()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GenerateDistributedDatabaseWalletRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of GenerateDistributedDatabaseWalletRequest - */ - public GenerateDistributedDatabaseWalletRequest build() { - GenerateDistributedDatabaseWalletRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.GenerateDistributedDatabaseWalletDetails - body) { - generateDistributedDatabaseWalletDetails(body); - return this; - } - - /** - * Build the instance of GenerateDistributedDatabaseWalletRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GenerateDistributedDatabaseWalletRequest - */ - public GenerateDistributedDatabaseWalletRequest buildWithoutInvocationCallback() { - GenerateDistributedDatabaseWalletRequest request = - new GenerateDistributedDatabaseWalletRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.generateDistributedDatabaseWalletDetails = - generateDistributedDatabaseWalletDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new GenerateDistributedDatabaseWalletRequest(distributedDatabaseId, generateDistributedDatabaseWalletDetails, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .generateDistributedDatabaseWalletDetails(generateDistributedDatabaseWalletDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",generateDistributedDatabaseWalletDetails=") - .append(String.valueOf(this.generateDistributedDatabaseWalletDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GenerateDistributedDatabaseWalletRequest)) { - return false; - } - - GenerateDistributedDatabaseWalletRequest other = - (GenerateDistributedDatabaseWalletRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.generateDistributedDatabaseWalletDetails, - other.generateDistributedDatabaseWalletDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.generateDistributedDatabaseWalletDetails == null - ? 43 - : this.generateDistributedDatabaseWalletDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java deleted file mode 100644 index 3bb235cb0d7..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRaftMetricRequest.java +++ /dev/null @@ -1,205 +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 GetDistributedAutonomousDatabaseRaftMetricRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRaftMetricRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedAutonomousDatabaseRaftMetricRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId = null; - - /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedAutonomousDatabaseRaftMetricRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GetDistributedAutonomousDatabaseRaftMetricRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of GetDistributedAutonomousDatabaseRaftMetricRequest - */ - public GetDistributedAutonomousDatabaseRaftMetricRequest build() { - GetDistributedAutonomousDatabaseRaftMetricRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GetDistributedAutonomousDatabaseRaftMetricRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedAutonomousDatabaseRaftMetricRequest - */ - public GetDistributedAutonomousDatabaseRaftMetricRequest buildWithoutInvocationCallback() { - GetDistributedAutonomousDatabaseRaftMetricRequest request = - new GetDistributedAutonomousDatabaseRaftMetricRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedAutonomousDatabaseRaftMetricRequest(distributedAutonomousDatabaseId, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedAutonomousDatabaseRaftMetricRequest)) { - return false; - } - - GetDistributedAutonomousDatabaseRaftMetricRequest other = - (GetDistributedAutonomousDatabaseRaftMetricRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 20b286be80a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,291 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedAutonomousDatabaseRequest - */ - public GetDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - GetDistributedAutonomousDatabaseRequest request = - new GetDistributedAutonomousDatabaseRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.metadata = metadata; - request.ifNoneMatch = ifNoneMatch; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, metadata, ifNoneMatch, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .metadata(metadata) - .ifNoneMatch(ifNoneMatch) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",metadata=").append(String.valueOf(this.metadata)); - sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedAutonomousDatabaseRequest)) { - return false; - } - - GetDistributedAutonomousDatabaseRequest other = (GetDistributedAutonomousDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.metadata, other.metadata) - && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java deleted file mode 100644 index ad61e786e4b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedAutonomousDatabaseRuChangeLogRequest.java +++ /dev/null @@ -1,243 +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 GetDistributedAutonomousDatabaseRuChangeLogRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRuChangeLogRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * The source shard name to filter RU change log entries. - * - */ - private String sourceShardName; - - /** - * The source shard name to filter RU change log entries. - * - */ - public String getSourceShardName() { - return sourceShardName; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedAutonomousDatabaseRuChangeLogRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId = null; - - /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - return this; - } - - /** - * The source shard name to filter RU change log entries. - * - */ - private String sourceShardName = null; - - /** - * The source shard name to filter RU change log entries. - * - * @param sourceShardName the value to set - * @return this builder instance - */ - public Builder sourceShardName(String sourceShardName) { - this.sourceShardName = sourceShardName; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedAutonomousDatabaseRuChangeLogRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - sourceShardName(o.getSourceShardName()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GetDistributedAutonomousDatabaseRuChangeLogRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of GetDistributedAutonomousDatabaseRuChangeLogRequest - */ - public GetDistributedAutonomousDatabaseRuChangeLogRequest build() { - GetDistributedAutonomousDatabaseRuChangeLogRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GetDistributedAutonomousDatabaseRuChangeLogRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedAutonomousDatabaseRuChangeLogRequest - */ - public GetDistributedAutonomousDatabaseRuChangeLogRequest buildWithoutInvocationCallback() { - GetDistributedAutonomousDatabaseRuChangeLogRequest request = - new GetDistributedAutonomousDatabaseRuChangeLogRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.sourceShardName = sourceShardName; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedAutonomousDatabaseRuChangeLogRequest(distributedAutonomousDatabaseId, sourceShardName, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .sourceShardName(sourceShardName) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",sourceShardName=").append(String.valueOf(this.sourceShardName)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedAutonomousDatabaseRuChangeLogRequest)) { - return false; - } - - GetDistributedAutonomousDatabaseRuChangeLogRequest other = - (GetDistributedAutonomousDatabaseRuChangeLogRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.sourceShardName, other.sourceShardName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java deleted file mode 100644 index ce29a9d5e2a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabasePrivateEndpointRequest.java +++ /dev/null @@ -1,258 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedDatabasePrivateEndpointRequest - */ - public GetDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - GetDistributedDatabasePrivateEndpointRequest request = - new GetDistributedDatabasePrivateEndpointRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.ifNoneMatch = ifNoneMatch; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, ifNoneMatch, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .ifNoneMatch(ifNoneMatch) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabasePrivateEndpointId=") - .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); - sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabasePrivateEndpointRequest)) { - return false; - } - - GetDistributedDatabasePrivateEndpointRequest other = - (GetDistributedDatabasePrivateEndpointRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java deleted file mode 100644 index 25b8df18b85..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRaftMetricRequest.java +++ /dev/null @@ -1,201 +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 GetDistributedDatabaseRaftMetricRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedDatabaseRaftMetricRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedDatabaseRaftMetricRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GetDistributedDatabaseRaftMetricRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of GetDistributedDatabaseRaftMetricRequest - */ - public GetDistributedDatabaseRaftMetricRequest build() { - GetDistributedDatabaseRaftMetricRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GetDistributedDatabaseRaftMetricRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedDatabaseRaftMetricRequest - */ - public GetDistributedDatabaseRaftMetricRequest buildWithoutInvocationCallback() { - GetDistributedDatabaseRaftMetricRequest request = - new GetDistributedDatabaseRaftMetricRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedDatabaseRaftMetricRequest(distributedDatabaseId, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabaseRaftMetricRequest)) { - return false; - } - - GetDistributedDatabaseRaftMetricRequest other = (GetDistributedDatabaseRaftMetricRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.java deleted file mode 100644 index bb3d344f6ae..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRequest.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.distributeddatabasev26.requests; - -import com.oracle.bmc.distributeddatabasev26.model.*; -/** - * Example: Click here to see how to use GetDistributedDatabaseRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedDatabaseRequest - */ - public GetDistributedDatabaseRequest buildWithoutInvocationCallback() { - GetDistributedDatabaseRequest request = new GetDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.metadata = metadata; - request.ifNoneMatch = ifNoneMatch; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedDatabaseRequest(distributedDatabaseId, metadata, ifNoneMatch, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .metadata(metadata) - .ifNoneMatch(ifNoneMatch) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",metadata=").append(String.valueOf(this.metadata)); - sb.append(",ifNoneMatch=").append(String.valueOf(this.ifNoneMatch)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabaseRequest)) { - return false; - } - - GetDistributedDatabaseRequest other = (GetDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.metadata, other.metadata) - && java.util.Objects.equals(this.ifNoneMatch, other.ifNoneMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - result = (result * PRIME) + (this.ifNoneMatch == null ? 43 : this.ifNoneMatch.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java deleted file mode 100644 index b565228eb73..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetDistributedDatabaseRuChangeLogRequest.java +++ /dev/null @@ -1,240 +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 GetDistributedDatabaseRuChangeLogRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRuChangeLogRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The source shard name to filter RU change log entries. - * - */ - private String sourceShardName; - - /** - * The source shard name to filter RU change log entries. - * - */ - public String getSourceShardName() { - return sourceShardName; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GetDistributedDatabaseRuChangeLogRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The source shard name to filter RU change log entries. - * - */ - private String sourceShardName = null; - - /** - * The source shard name to filter RU change log entries. - * - * @param sourceShardName the value to set - * @return this builder instance - */ - public Builder sourceShardName(String sourceShardName) { - this.sourceShardName = sourceShardName; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedDatabaseRuChangeLogRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - sourceShardName(o.getSourceShardName()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GetDistributedDatabaseRuChangeLogRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of GetDistributedDatabaseRuChangeLogRequest - */ - public GetDistributedDatabaseRuChangeLogRequest build() { - GetDistributedDatabaseRuChangeLogRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GetDistributedDatabaseRuChangeLogRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetDistributedDatabaseRuChangeLogRequest - */ - public GetDistributedDatabaseRuChangeLogRequest buildWithoutInvocationCallback() { - GetDistributedDatabaseRuChangeLogRequest request = - new GetDistributedDatabaseRuChangeLogRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.sourceShardName = sourceShardName; - request.opcRequestId = opcRequestId; - return request; - // new GetDistributedDatabaseRuChangeLogRequest(distributedDatabaseId, sourceShardName, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .sourceShardName(sourceShardName) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",sourceShardName=").append(String.valueOf(this.sourceShardName)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabaseRuChangeLogRequest)) { - return false; - } - - GetDistributedDatabaseRuChangeLogRequest other = - (GetDistributedDatabaseRuChangeLogRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.sourceShardName, other.sourceShardName) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.sourceShardName == null ? 43 : this.sourceShardName.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java deleted file mode 100644 index 97a5bfcaea2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/GetWorkRequestRequest.java +++ /dev/null @@ -1,195 +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 GetWorkRequestRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { - - /** - * The ID of the asynchronous request. - */ - private String workRequestId; - - /** - * The ID of the asynchronous request. - */ - public String getWorkRequestId() { - return workRequestId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - GetWorkRequestRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * The ID of the asynchronous request. - */ - private String workRequestId = null; - - /** - * The ID of the asynchronous request. - * @param workRequestId the value to set - * @return this builder instance - */ - public Builder workRequestId(String workRequestId) { - this.workRequestId = workRequestId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetWorkRequestRequest o) { - workRequestId(o.getWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GetWorkRequestRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of GetWorkRequestRequest - */ - public GetWorkRequestRequest build() { - GetWorkRequestRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GetWorkRequestRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of GetWorkRequestRequest - */ - public GetWorkRequestRequest buildWithoutInvocationCallback() { - GetWorkRequestRequest request = new GetWorkRequestRequest(); - request.workRequestId = workRequestId; - request.opcRequestId = opcRequestId; - return request; - // new GetWorkRequestRequest(workRequestId, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder().workRequestId(workRequestId).opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetWorkRequestRequest)) { - return false; - } - - GetWorkRequestRequest other = (GetWorkRequestRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.workRequestId, other.workRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java deleted file mode 100644 index 0ed346b969d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedAutonomousDatabasesRequest.java +++ /dev/null @@ -1,621 +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. - */ -@javax.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 { - 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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ListDistributedAutonomousDatabasesRequest - */ - public ListDistributedAutonomousDatabasesRequest buildWithoutInvocationCallback() { - ListDistributedAutonomousDatabasesRequest request = - new ListDistributedAutonomousDatabasesRequest(); - request.compartmentId = compartmentId; - request.compartmentIdInSubtree = compartmentIdInSubtree; - request.privateEndpointId = privateEndpointId; - request.lifecycleState = lifecycleState; - request.limit = limit; - request.page = page; - request.sortOrder = sortOrder; - request.sortBy = sortBy; - request.opcRequestId = opcRequestId; - request.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; - request.displayName = displayName; - request.dbDeploymentType = dbDeploymentType; - request.metadata = metadata; - return request; - // new ListDistributedAutonomousDatabasesRequest(compartmentId, compartmentIdInSubtree, privateEndpointId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, isAutoResourceManagementEnabled, displayName, dbDeploymentType, metadata); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .compartmentId(compartmentId) - .compartmentIdInSubtree(compartmentIdInSubtree) - .privateEndpointId(privateEndpointId) - .lifecycleState(lifecycleState) - .limit(limit) - .page(page) - .sortOrder(sortOrder) - .sortBy(sortBy) - .opcRequestId(opcRequestId) - .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) - .displayName(displayName) - .dbDeploymentType(dbDeploymentType) - .metadata(metadata); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); - sb.append(",privateEndpointId=").append(String.valueOf(this.privateEndpointId)); - sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",isAutoResourceManagementEnabled=") - .append(String.valueOf(this.isAutoResourceManagementEnabled)); - sb.append(",displayName=").append(String.valueOf(this.displayName)); - sb.append(",dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(",metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListDistributedAutonomousDatabasesRequest)) { - return false; - } - - ListDistributedAutonomousDatabasesRequest other = - (ListDistributedAutonomousDatabasesRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals( - this.compartmentIdInSubtree, other.compartmentIdInSubtree) - && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.isAutoResourceManagementEnabled, other.isAutoResourceManagementEnabled) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = - (result * PRIME) - + (this.compartmentIdInSubtree == null - ? 43 - : this.compartmentIdInSubtree.hashCode()); - result = - (result * PRIME) - + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.isAutoResourceManagementEnabled == null - ? 43 - : this.isAutoResourceManagementEnabled.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java deleted file mode 100644 index 636f7784283..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasePrivateEndpointsRequest.java +++ /dev/null @@ -1,482 +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 ListDistributedDatabasePrivateEndpointsRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * The ID of the compartment in which to list resources. - */ - private String compartmentId; - - /** - * The ID of the compartment in which to list resources. - */ - public String getCompartmentId() { - return compartmentId; - } - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - */ - private Boolean compartmentIdInSubtree; - - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - */ - public Boolean getCompartmentIdInSubtree() { - return compartmentIdInSubtree; - } - /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState - lifecycleState; - - /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState - getLifecycleState() { - return lifecycleState; - } - /** - * The maximum number of items to return. - */ - private Integer limit; - - /** - * The maximum number of items to return. - */ - public Integer getLimit() { - return limit; - } - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - public String getPage() { - return page; - } - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { - return sortOrder; - } - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - */ - private SortBy sortBy; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - **/ - public enum SortBy { - TimeCreated("timeCreated"), - TimeUpdated("timeUpdated"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortBy v : SortBy.values()) { - map.put(v.getValue(), v); - } - } - - SortBy(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortBy create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortBy: " + key); - } - }; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - */ - public SortBy getSortBy() { - return sortBy; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * A filter to return only private endpoint that match the entire name given. The match is not case sensitive. - */ - private String displayName; - - /** - * A filter to return only private endpoint that match the entire name given. The match is not case sensitive. - */ - public String getDisplayName() { - return displayName; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListDistributedDatabasePrivateEndpointsRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * The ID of the compartment in which to list resources. - */ - private String compartmentId = null; - - /** - * The ID of the compartment in which to list resources. - * @param compartmentId the value to set - * @return this builder instance - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - return this; - } - - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - */ - private Boolean compartmentIdInSubtree = null; - - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - * @param compartmentIdInSubtree the value to set - * @return this builder instance - */ - public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { - this.compartmentIdInSubtree = compartmentIdInSubtree; - return this; - } - - /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState - lifecycleState = null; - - /** - * A filter to return only resources their lifecycleState matches the given lifecycleState. - * @param lifecycleState the value to set - * @return this builder instance - */ - public Builder lifecycleState( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - .LifecycleState - lifecycleState) { - this.lifecycleState = lifecycleState; - return this; - } - - /** - * The maximum number of items to return. - */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page = null; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - */ - private SortBy sortBy = null; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - * @param sortBy the value to set - * @return this builder instance - */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A filter to return only private endpoint that match the entire name given. The match is not case sensitive. - */ - private String displayName = null; - - /** - * A filter to return only private endpoint that match the entire name given. The match is not case sensitive. - * @param displayName the value to set - * @return this builder instance - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListDistributedDatabasePrivateEndpointsRequest o) { - compartmentId(o.getCompartmentId()); - compartmentIdInSubtree(o.getCompartmentIdInSubtree()); - lifecycleState(o.getLifecycleState()); - limit(o.getLimit()); - page(o.getPage()); - sortOrder(o.getSortOrder()); - sortBy(o.getSortBy()); - opcRequestId(o.getOpcRequestId()); - displayName(o.getDisplayName()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ListDistributedDatabasePrivateEndpointsRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ListDistributedDatabasePrivateEndpointsRequest - */ - public ListDistributedDatabasePrivateEndpointsRequest build() { - ListDistributedDatabasePrivateEndpointsRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ListDistributedDatabasePrivateEndpointsRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ListDistributedDatabasePrivateEndpointsRequest - */ - public ListDistributedDatabasePrivateEndpointsRequest buildWithoutInvocationCallback() { - ListDistributedDatabasePrivateEndpointsRequest request = - new ListDistributedDatabasePrivateEndpointsRequest(); - request.compartmentId = compartmentId; - request.compartmentIdInSubtree = compartmentIdInSubtree; - request.lifecycleState = lifecycleState; - request.limit = limit; - request.page = page; - request.sortOrder = sortOrder; - request.sortBy = sortBy; - request.opcRequestId = opcRequestId; - request.displayName = displayName; - return request; - // new ListDistributedDatabasePrivateEndpointsRequest(compartmentId, compartmentIdInSubtree, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, displayName); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .compartmentId(compartmentId) - .compartmentIdInSubtree(compartmentIdInSubtree) - .lifecycleState(lifecycleState) - .limit(limit) - .page(page) - .sortOrder(sortOrder) - .sortBy(sortBy) - .opcRequestId(opcRequestId) - .displayName(displayName); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); - sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",displayName=").append(String.valueOf(this.displayName)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListDistributedDatabasePrivateEndpointsRequest)) { - return false; - } - - ListDistributedDatabasePrivateEndpointsRequest other = - (ListDistributedDatabasePrivateEndpointsRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals( - this.compartmentIdInSubtree, other.compartmentIdInSubtree) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.displayName, other.displayName); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = - (result * PRIME) - + (this.compartmentIdInSubtree == null - ? 43 - : this.compartmentIdInSubtree.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java deleted file mode 100644 index b8d8d4aadaa..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListDistributedDatabasesRequest.java +++ /dev/null @@ -1,617 +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 ListDistributedDatabasesRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * The ID of the compartment in which to list resources. - */ - private String compartmentId; - - /** - * The ID of the compartment in which to list resources. - */ - public String getCompartmentId() { - return compartmentId; - } - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - */ - private Boolean compartmentIdInSubtree; - - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - */ - public Boolean getCompartmentIdInSubtree() { - return compartmentIdInSubtree; - } - /** - * A filter to return only resources that are associated with the given privateEndpointId. - */ - private String privateEndpointId; - - /** - * A filter to return only resources that are associated with the given privateEndpointId. - */ - public String getPrivateEndpointId() { - return privateEndpointId; - } - /** - * A filter to return only resources whose lifecycleState matches the specified value. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState; - - /** - * A filter to return only resources whose lifecycleState matches the specified value. - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - getLifecycleState() { - return lifecycleState; - } - /** - * The maximum number of items to return. - */ - private Integer limit; - - /** - * The maximum number of items to return. - */ - public Integer getLimit() { - return limit; - } - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - public String getPage() { - return page; - } - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { - return sortOrder; - } - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - */ - private SortBy sortBy; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - **/ - public enum SortBy { - TimeCreated("timeCreated"), - TimeUpdated("timeUpdated"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortBy v : SortBy.values()) { - map.put(v.getValue(), v); - } - } - - SortBy(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortBy create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortBy: " + key); - } - }; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - */ - public SortBy getSortBy() { - return sortBy; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * A filter to return only resources where autoResourceManagement is enabled when set to {@code true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based filtering is applied. - */ - private Boolean isAutoResourceManagementEnabled; - - /** - * A filter to return only resources where autoResourceManagement is enabled when set to {@code true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based filtering is applied. - */ - public Boolean getIsAutoResourceManagementEnabled() { - return isAutoResourceManagementEnabled; - } - /** - * A filter to return only Globally distributed databases that match the entire name given. The match is not case sensitive. - */ - private String displayName; - - /** - * A filter to return only Globally distributed databases that match the entire name given. The match is not case sensitive. - */ - public String getDisplayName() { - return displayName; - } - /** - * A filter to return only resources whose dbDeploymentType matches the specified value. - */ - private String dbDeploymentType; - - /** - * A filter to return only resources whose dbDeploymentType matches the specified value. - */ - public String getDbDeploymentType() { - return dbDeploymentType; - } - /** - * Comma-separated argument names for which metadata should be retrieved. - * - */ - private String metadata; - - /** - * Comma-separated argument names for which metadata should be retrieved. - * - */ - public String getMetadata() { - return metadata; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListDistributedDatabasesRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * The ID of the compartment in which to list resources. - */ - private String compartmentId = null; - - /** - * The ID of the compartment in which to list resources. - * @param compartmentId the value to set - * @return this builder instance - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - return this; - } - - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - */ - private Boolean compartmentIdInSubtree = null; - - /** - * When set to true, returns resources in the specified compartment and in all of its child compartments recursively. Defaults to false. - * @param compartmentIdInSubtree the value to set - * @return this builder instance - */ - public Builder compartmentIdInSubtree(Boolean compartmentIdInSubtree) { - this.compartmentIdInSubtree = compartmentIdInSubtree; - return this; - } - - /** - * A filter to return only resources that are associated with the given privateEndpointId. - */ - private String privateEndpointId = null; - - /** - * A filter to return only resources that are associated with the given privateEndpointId. - * @param privateEndpointId the value to set - * @return this builder instance - */ - public Builder privateEndpointId(String privateEndpointId) { - this.privateEndpointId = privateEndpointId; - return this; - } - - /** - * A filter to return only resources whose lifecycleState matches the specified value. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState = null; - - /** - * A filter to return only resources whose lifecycleState matches the specified value. - * @param lifecycleState the value to set - * @return this builder instance - */ - public Builder lifecycleState( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase.LifecycleState - lifecycleState) { - this.lifecycleState = lifecycleState; - return this; - } - - /** - * The maximum number of items to return. - */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page = null; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - */ - private SortBy sortBy = null; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. - * - * @param sortBy the value to set - * @return this builder instance - */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A filter to return only resources where autoResourceManagement is enabled when set to {@code true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based filtering is applied. - */ - private Boolean isAutoResourceManagementEnabled = null; - - /** - * A filter to return only resources where autoResourceManagement is enabled when set to {@code true}, or disabled when set to {@code false}. If omitted, no autoResourceManagement-based filtering is applied. - * @param isAutoResourceManagementEnabled the value to set - * @return this builder instance - */ - public Builder isAutoResourceManagementEnabled(Boolean isAutoResourceManagementEnabled) { - this.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; - return this; - } - - /** - * A filter to return only Globally distributed databases that match the entire name given. The match is not case sensitive. - */ - private String displayName = null; - - /** - * A filter to return only Globally distributed databases that match the entire name given. The match is not case sensitive. - * @param displayName the value to set - * @return this builder instance - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** - * A filter to return only resources whose dbDeploymentType matches the specified value. - */ - private String dbDeploymentType = null; - - /** - * A filter to return only resources whose dbDeploymentType matches the specified value. - * @param dbDeploymentType the value to set - * @return this builder instance - */ - public Builder dbDeploymentType(String dbDeploymentType) { - this.dbDeploymentType = dbDeploymentType; - return this; - } - - /** - * Comma-separated argument names for which metadata should be retrieved. - * - */ - private String metadata = null; - - /** - * Comma-separated argument names for which metadata should be retrieved. - * - * @param metadata the value to set - * @return this builder instance - */ - public Builder metadata(String metadata) { - this.metadata = metadata; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListDistributedDatabasesRequest o) { - compartmentId(o.getCompartmentId()); - compartmentIdInSubtree(o.getCompartmentIdInSubtree()); - privateEndpointId(o.getPrivateEndpointId()); - lifecycleState(o.getLifecycleState()); - limit(o.getLimit()); - page(o.getPage()); - sortOrder(o.getSortOrder()); - sortBy(o.getSortBy()); - opcRequestId(o.getOpcRequestId()); - isAutoResourceManagementEnabled(o.getIsAutoResourceManagementEnabled()); - displayName(o.getDisplayName()); - dbDeploymentType(o.getDbDeploymentType()); - metadata(o.getMetadata()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ListDistributedDatabasesRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ListDistributedDatabasesRequest - */ - public ListDistributedDatabasesRequest build() { - ListDistributedDatabasesRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ListDistributedDatabasesRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ListDistributedDatabasesRequest - */ - public ListDistributedDatabasesRequest buildWithoutInvocationCallback() { - ListDistributedDatabasesRequest request = new ListDistributedDatabasesRequest(); - request.compartmentId = compartmentId; - request.compartmentIdInSubtree = compartmentIdInSubtree; - request.privateEndpointId = privateEndpointId; - request.lifecycleState = lifecycleState; - request.limit = limit; - request.page = page; - request.sortOrder = sortOrder; - request.sortBy = sortBy; - request.opcRequestId = opcRequestId; - request.isAutoResourceManagementEnabled = isAutoResourceManagementEnabled; - request.displayName = displayName; - request.dbDeploymentType = dbDeploymentType; - request.metadata = metadata; - return request; - // new ListDistributedDatabasesRequest(compartmentId, compartmentIdInSubtree, privateEndpointId, lifecycleState, limit, page, sortOrder, sortBy, opcRequestId, isAutoResourceManagementEnabled, displayName, dbDeploymentType, metadata); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .compartmentId(compartmentId) - .compartmentIdInSubtree(compartmentIdInSubtree) - .privateEndpointId(privateEndpointId) - .lifecycleState(lifecycleState) - .limit(limit) - .page(page) - .sortOrder(sortOrder) - .sortBy(sortBy) - .opcRequestId(opcRequestId) - .isAutoResourceManagementEnabled(isAutoResourceManagementEnabled) - .displayName(displayName) - .dbDeploymentType(dbDeploymentType) - .metadata(metadata); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); - sb.append(",privateEndpointId=").append(String.valueOf(this.privateEndpointId)); - sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",isAutoResourceManagementEnabled=") - .append(String.valueOf(this.isAutoResourceManagementEnabled)); - sb.append(",displayName=").append(String.valueOf(this.displayName)); - sb.append(",dbDeploymentType=").append(String.valueOf(this.dbDeploymentType)); - sb.append(",metadata=").append(String.valueOf(this.metadata)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListDistributedDatabasesRequest)) { - return false; - } - - ListDistributedDatabasesRequest other = (ListDistributedDatabasesRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals( - this.compartmentIdInSubtree, other.compartmentIdInSubtree) - && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.isAutoResourceManagementEnabled, other.isAutoResourceManagementEnabled) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.dbDeploymentType, other.dbDeploymentType) - && java.util.Objects.equals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = - (result * PRIME) - + (this.compartmentIdInSubtree == null - ? 43 - : this.compartmentIdInSubtree.hashCode()); - result = - (result * PRIME) - + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.isAutoResourceManagementEnabled == null - ? 43 - : this.isAutoResourceManagementEnabled.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.dbDeploymentType == null ? 43 : this.dbDeploymentType.hashCode()); - result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java deleted file mode 100644 index 9896e6589b6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestErrorsRequest.java +++ /dev/null @@ -1,366 +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 ListWorkRequestErrorsRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestErrorsRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * The ID of the asynchronous request. - */ - private String workRequestId; - - /** - * The ID of the asynchronous request. - */ - public String getWorkRequestId() { - return workRequestId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - public String getPage() { - return page; - } - /** - * The maximum number of items to return. - */ - private Integer limit; - - /** - * The maximum number of items to return. - */ - public Integer getLimit() { - return limit; - } - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - */ - private SortBy sortBy; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - **/ - public enum SortBy { - Timestamp("timestamp"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortBy v : SortBy.values()) { - map.put(v.getValue(), v); - } - } - - SortBy(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortBy create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortBy: " + key); - } - }; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - */ - public SortBy getSortBy() { - return sortBy; - } - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { - return sortOrder; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListWorkRequestErrorsRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * The ID of the asynchronous request. - */ - private String workRequestId = null; - - /** - * The ID of the asynchronous request. - * @param workRequestId the value to set - * @return this builder instance - */ - public Builder workRequestId(String workRequestId) { - this.workRequestId = workRequestId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page = null; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** - * The maximum number of items to return. - */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - */ - private SortBy sortBy = null; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - * @param sortBy the value to set - * @return this builder instance - */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; - return this; - } - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListWorkRequestErrorsRequest o) { - workRequestId(o.getWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - page(o.getPage()); - limit(o.getLimit()); - sortBy(o.getSortBy()); - sortOrder(o.getSortOrder()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ListWorkRequestErrorsRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ListWorkRequestErrorsRequest - */ - public ListWorkRequestErrorsRequest build() { - ListWorkRequestErrorsRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ListWorkRequestErrorsRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ListWorkRequestErrorsRequest - */ - public ListWorkRequestErrorsRequest buildWithoutInvocationCallback() { - ListWorkRequestErrorsRequest request = new ListWorkRequestErrorsRequest(); - request.workRequestId = workRequestId; - request.opcRequestId = opcRequestId; - request.page = page; - request.limit = limit; - request.sortBy = sortBy; - request.sortOrder = sortOrder; - return request; - // new ListWorkRequestErrorsRequest(workRequestId, opcRequestId, page, limit, sortBy, sortOrder); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .workRequestId(workRequestId) - .opcRequestId(opcRequestId) - .page(page) - .limit(limit) - .sortBy(sortBy) - .sortOrder(sortOrder); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListWorkRequestErrorsRequest)) { - return false; - } - - ListWorkRequestErrorsRequest other = (ListWorkRequestErrorsRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.workRequestId, other.workRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.sortOrder, other.sortOrder); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java deleted file mode 100644 index 8d35f09119b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestLogsRequest.java +++ /dev/null @@ -1,365 +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 ListWorkRequestLogsRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { - - /** - * The ID of the asynchronous request. - */ - private String workRequestId; - - /** - * The ID of the asynchronous request. - */ - public String getWorkRequestId() { - return workRequestId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - public String getPage() { - return page; - } - /** - * The maximum number of items to return. - */ - private Integer limit; - - /** - * The maximum number of items to return. - */ - public Integer getLimit() { - return limit; - } - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - */ - private SortBy sortBy; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - **/ - public enum SortBy { - Timestamp("timestamp"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortBy v : SortBy.values()) { - map.put(v.getValue(), v); - } - } - - SortBy(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortBy create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortBy: " + key); - } - }; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - */ - public SortBy getSortBy() { - return sortBy; - } - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { - return sortOrder; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListWorkRequestLogsRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * The ID of the asynchronous request. - */ - private String workRequestId = null; - - /** - * The ID of the asynchronous request. - * @param workRequestId the value to set - * @return this builder instance - */ - public Builder workRequestId(String workRequestId) { - this.workRequestId = workRequestId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page = null; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** - * The maximum number of items to return. - */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - */ - private SortBy sortBy = null; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. - * - * @param sortBy the value to set - * @return this builder instance - */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; - return this; - } - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListWorkRequestLogsRequest o) { - workRequestId(o.getWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - page(o.getPage()); - limit(o.getLimit()); - sortBy(o.getSortBy()); - sortOrder(o.getSortOrder()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ListWorkRequestLogsRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ListWorkRequestLogsRequest - */ - public ListWorkRequestLogsRequest build() { - ListWorkRequestLogsRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ListWorkRequestLogsRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ListWorkRequestLogsRequest - */ - public ListWorkRequestLogsRequest buildWithoutInvocationCallback() { - ListWorkRequestLogsRequest request = new ListWorkRequestLogsRequest(); - request.workRequestId = workRequestId; - request.opcRequestId = opcRequestId; - request.page = page; - request.limit = limit; - request.sortBy = sortBy; - request.sortOrder = sortOrder; - return request; - // new ListWorkRequestLogsRequest(workRequestId, opcRequestId, page, limit, sortBy, sortOrder); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .workRequestId(workRequestId) - .opcRequestId(opcRequestId) - .page(page) - .limit(limit) - .sortBy(sortBy) - .sortOrder(sortOrder); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListWorkRequestLogsRequest)) { - return false; - } - - ListWorkRequestLogsRequest other = (ListWorkRequestLogsRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.workRequestId, other.workRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.sortOrder, other.sortOrder); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java deleted file mode 100644 index 0b88f736c2c..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ListWorkRequestsRequest.java +++ /dev/null @@ -1,463 +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 ListWorkRequestsRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { - - /** - * The ID of the compartment in which to list resources. - */ - private String compartmentId; - - /** - * The ID of the compartment in which to list resources. - */ - public String getCompartmentId() { - return compartmentId; - } - /** - * The ID of the asynchronous work request. - */ - private String workRequestId; - - /** - * The ID of the asynchronous work request. - */ - public String getWorkRequestId() { - return workRequestId; - } - /** - * A filter to return only resources their lifecycleState matches the given OperationStatus. - */ - private com.oracle.bmc.distributeddatabasev26.model.OperationStatus status; - - /** - * A filter to return only resources their lifecycleState matches the given OperationStatus. - */ - public com.oracle.bmc.distributeddatabasev26.model.OperationStatus getStatus() { - return status; - } - /** - * The ID of the resource affected by the work request. - */ - private String resourceId; - - /** - * The ID of the resource affected by the work request. - */ - public String getResourceId() { - return resourceId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - public String getPage() { - return page; - } - /** - * The maximum number of items to return. - */ - private Integer limit; - - /** - * The maximum number of items to return. - */ - public Integer getLimit() { - return limit; - } - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - public com.oracle.bmc.distributeddatabasev26.model.SortOrder getSortOrder() { - return sortOrder; - } - /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - * - */ - private SortBy sortBy; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - * - **/ - public enum SortBy { - TimeAccepted("timeAccepted"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortBy v : SortBy.values()) { - map.put(v.getValue(), v); - } - } - - SortBy(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortBy create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortBy: " + key); - } - }; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - * - */ - public SortBy getSortBy() { - return sortBy; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListWorkRequestsRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * The ID of the compartment in which to list resources. - */ - private String compartmentId = null; - - /** - * The ID of the compartment in which to list resources. - * @param compartmentId the value to set - * @return this builder instance - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - return this; - } - - /** - * The ID of the asynchronous work request. - */ - private String workRequestId = null; - - /** - * The ID of the asynchronous work request. - * @param workRequestId the value to set - * @return this builder instance - */ - public Builder workRequestId(String workRequestId) { - this.workRequestId = workRequestId; - return this; - } - - /** - * A filter to return only resources their lifecycleState matches the given OperationStatus. - */ - private com.oracle.bmc.distributeddatabasev26.model.OperationStatus status = null; - - /** - * A filter to return only resources their lifecycleState matches the given OperationStatus. - * @param status the value to set - * @return this builder instance - */ - public Builder status(com.oracle.bmc.distributeddatabasev26.model.OperationStatus status) { - this.status = status; - return this; - } - - /** - * The ID of the resource affected by the work request. - */ - private String resourceId = null; - - /** - * The ID of the resource affected by the work request. - * @param resourceId the value to set - * @return this builder instance - */ - public Builder resourceId(String resourceId) { - this.resourceId = resourceId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - */ - private String page = null; - - /** - * A token representing the position at which to start retrieving results. This must come from the {@code opc-next-page} header field of a previous response. - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** - * The maximum number of items to return. - */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * The sort order to use, either 'ASC' or 'DESC'. - */ - private com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder = null; - - /** - * The sort order to use, either 'ASC' or 'DESC'. - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.distributeddatabasev26.model.SortOrder sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - * - */ - private SortBy sortBy = null; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. - * - * @param sortBy the value to set - * @return this builder instance - */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ListWorkRequestsRequest - */ - public ListWorkRequestsRequest buildWithoutInvocationCallback() { - ListWorkRequestsRequest request = new ListWorkRequestsRequest(); - request.compartmentId = compartmentId; - request.workRequestId = workRequestId; - request.status = status; - request.resourceId = resourceId; - request.opcRequestId = opcRequestId; - request.page = page; - request.limit = limit; - request.sortOrder = sortOrder; - request.sortBy = sortBy; - return request; - // new ListWorkRequestsRequest(compartmentId, workRequestId, status, resourceId, opcRequestId, page, limit, sortOrder, sortBy); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .compartmentId(compartmentId) - .workRequestId(workRequestId) - .status(status) - .resourceId(resourceId) - .opcRequestId(opcRequestId) - .page(page) - .limit(limit) - .sortOrder(sortOrder) - .sortBy(sortBy); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",workRequestId=").append(String.valueOf(this.workRequestId)); - sb.append(",status=").append(String.valueOf(this.status)); - sb.append(",resourceId=").append(String.valueOf(this.resourceId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListWorkRequestsRequest)) { - return false; - } - - ListWorkRequestsRequest other = (ListWorkRequestsRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.workRequestId, other.workRequestId) - && java.util.Objects.equals(this.status, other.status) - && java.util.Objects.equals(this.resourceId, other.resourceId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.sortBy, other.sortBy); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = - (result * PRIME) - + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); - result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); - result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java deleted file mode 100644 index 7ffe9311fe0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedAutonomousDatabaseReplicationUnitRequest.java +++ /dev/null @@ -1,401 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 b8397fcf1f0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/MoveDistributedDatabaseReplicationUnitRequest.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 MoveDistributedDatabaseReplicationUnitRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 468f1f6299a..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,389 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of PatchDistributedAutonomousDatabaseRequest - */ - public PatchDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - PatchDistributedAutonomousDatabaseRequest request = - new PatchDistributedAutonomousDatabaseRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.patchDistributedAutonomousDatabaseDetails = - patchDistributedAutonomousDatabaseDetails; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new PatchDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, patchDistributedAutonomousDatabaseDetails, ifMatch, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .patchDistributedAutonomousDatabaseDetails( - patchDistributedAutonomousDatabaseDetails) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",patchDistributedAutonomousDatabaseDetails=") - .append(String.valueOf(this.patchDistributedAutonomousDatabaseDetails)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedAutonomousDatabaseRequest)) { - return false; - } - - PatchDistributedAutonomousDatabaseRequest other = - (PatchDistributedAutonomousDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals( - this.patchDistributedAutonomousDatabaseDetails, - other.patchDistributedAutonomousDatabaseDetails) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.patchDistributedAutonomousDatabaseDetails == null - ? 43 - : this.patchDistributedAutonomousDatabaseDetails.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.java deleted file mode 100644 index 0b210960597..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabasePrivateEndpointRequest.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 PatchDistributedDatabasePrivateEndpointRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabasePrivateEndpointRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails> { - - /** - * Distributed Database PrivateEndpoint identifier - */ - private String distributedDatabasePrivateEndpointId; - - /** - * Distributed Database PrivateEndpoint identifier - */ - public String getDistributedDatabasePrivateEndpointId() { - return distributedDatabasePrivateEndpointId; - } - /** - * The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. - */ - private com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails - patchDistributedDatabasePrivateEndpointDetails; - - /** - * The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. - */ - public com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails - getPatchDistributedDatabasePrivateEndpointDetails() { - return patchDistributedDatabasePrivateEndpointDetails; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails - getBody$() { - return patchDistributedDatabasePrivateEndpointDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - PatchDistributedDatabasePrivateEndpointRequest, - com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Distributed Database PrivateEndpoint identifier - */ - private String distributedDatabasePrivateEndpointId = null; - - /** - * Distributed Database PrivateEndpoint identifier - * @param distributedDatabasePrivateEndpointId the value to set - * @return this builder instance - */ - public Builder distributedDatabasePrivateEndpointId( - String distributedDatabasePrivateEndpointId) { - this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - return this; - } - - /** - * The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. - */ - private com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails - patchDistributedDatabasePrivateEndpointDetails = null; - - /** - * The payload containing instructions to patch the DistributedDatabasePrivateEndpoint. - * @param patchDistributedDatabasePrivateEndpointDetails the value to set - * @return this builder instance - */ - public Builder patchDistributedDatabasePrivateEndpointDetails( - com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails - patchDistributedDatabasePrivateEndpointDetails) { - this.patchDistributedDatabasePrivateEndpointDetails = - patchDistributedDatabasePrivateEndpointDetails; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(PatchDistributedDatabasePrivateEndpointRequest o) { - distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); - patchDistributedDatabasePrivateEndpointDetails( - o.getPatchDistributedDatabasePrivateEndpointDetails()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of PatchDistributedDatabasePrivateEndpointRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of PatchDistributedDatabasePrivateEndpointRequest - */ - public PatchDistributedDatabasePrivateEndpointRequest build() { - PatchDistributedDatabasePrivateEndpointRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .PatchDistributedDatabasePrivateEndpointDetails - body) { - patchDistributedDatabasePrivateEndpointDetails(body); - return this; - } - - /** - * Build the instance of PatchDistributedDatabasePrivateEndpointRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of PatchDistributedDatabasePrivateEndpointRequest - */ - public PatchDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - PatchDistributedDatabasePrivateEndpointRequest request = - new PatchDistributedDatabasePrivateEndpointRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.patchDistributedDatabasePrivateEndpointDetails = - patchDistributedDatabasePrivateEndpointDetails; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new PatchDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, patchDistributedDatabasePrivateEndpointDetails, ifMatch, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .patchDistributedDatabasePrivateEndpointDetails( - patchDistributedDatabasePrivateEndpointDetails) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabasePrivateEndpointId=") - .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); - sb.append(",patchDistributedDatabasePrivateEndpointDetails=") - .append(String.valueOf(this.patchDistributedDatabasePrivateEndpointDetails)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedDatabasePrivateEndpointRequest)) { - return false; - } - - PatchDistributedDatabasePrivateEndpointRequest other = - (PatchDistributedDatabasePrivateEndpointRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals( - this.patchDistributedDatabasePrivateEndpointDetails, - other.patchDistributedDatabasePrivateEndpointDetails) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = - (result * PRIME) - + (this.patchDistributedDatabasePrivateEndpointDetails == null - ? 43 - : this.patchDistributedDatabasePrivateEndpointDetails.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java deleted file mode 100644 index 1eee14978b2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/PatchDistributedDatabaseRequest.java +++ /dev/null @@ -1,373 +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 PatchDistributedDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The payload containing instructions to patch the Globally distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails; - - /** - * The payload containing instructions to patch the Globally distributed database. - */ - public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - getPatchDistributedDatabaseDetails() { - return patchDistributedDatabaseDetails; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails getBody$() { - return patchDistributedDatabaseDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - PatchDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The payload containing instructions to patch the Globally distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails = null; - - /** - * The payload containing instructions to patch the Globally distributed database. - * @param patchDistributedDatabaseDetails the value to set - * @return this builder instance - */ - public Builder patchDistributedDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails - patchDistributedDatabaseDetails) { - this.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(PatchDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - patchDistributedDatabaseDetails(o.getPatchDistributedDatabaseDetails()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of PatchDistributedDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of PatchDistributedDatabaseRequest - */ - public PatchDistributedDatabaseRequest build() { - PatchDistributedDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.PatchDistributedDatabaseDetails body) { - patchDistributedDatabaseDetails(body); - return this; - } - - /** - * Build the instance of PatchDistributedDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of PatchDistributedDatabaseRequest - */ - public PatchDistributedDatabaseRequest buildWithoutInvocationCallback() { - PatchDistributedDatabaseRequest request = new PatchDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.patchDistributedDatabaseDetails = patchDistributedDatabaseDetails; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new PatchDistributedDatabaseRequest(distributedDatabaseId, patchDistributedDatabaseDetails, ifMatch, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .patchDistributedDatabaseDetails(patchDistributedDatabaseDetails) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",patchDistributedDatabaseDetails=") - .append(String.valueOf(this.patchDistributedDatabaseDetails)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedDatabaseRequest)) { - return false; - } - - PatchDistributedDatabaseRequest other = (PatchDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.patchDistributedDatabaseDetails, other.patchDistributedDatabaseDetails) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.patchDistributedDatabaseDetails == null - ? 43 - : this.patchDistributedDatabaseDetails.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java deleted file mode 100644 index 46fe040ff9b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedAutonomousDatabaseResourceRequest.java +++ /dev/null @@ -1,348 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 d0c7476fe29..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RecreateFailedDistributedDatabaseResourceRequest.java +++ /dev/null @@ -1,345 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of RecreateFailedDistributedDatabaseResourceRequest - */ - public RecreateFailedDistributedDatabaseResourceRequest buildWithoutInvocationCallback() { - RecreateFailedDistributedDatabaseResourceRequest request = - new RecreateFailedDistributedDatabaseResourceRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.resourceName = resourceName; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new RecreateFailedDistributedDatabaseResourceRequest(distributedDatabaseId, resourceName, ifMatch, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .resourceName(resourceName) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",resourceName=").append(String.valueOf(this.resourceName)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RecreateFailedDistributedDatabaseResourceRequest)) { - return false; - } - - RecreateFailedDistributedDatabaseResourceRequest other = - (RecreateFailedDistributedDatabaseResourceRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.resourceName, other.resourceName) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java deleted file mode 100644 index 7de61fcd884..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ReinstateProxyInstanceRequest.java +++ /dev/null @@ -1,310 +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 ReinstateProxyInstanceRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Distributed Database PrivateEndpoint identifier - */ - private String distributedDatabasePrivateEndpointId; - - /** - * Distributed Database PrivateEndpoint identifier - */ - public String getDistributedDatabasePrivateEndpointId() { - return distributedDatabasePrivateEndpointId; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ReinstateProxyInstanceRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Distributed Database PrivateEndpoint identifier - */ - private String distributedDatabasePrivateEndpointId = null; - - /** - * Distributed Database PrivateEndpoint identifier - * @param distributedDatabasePrivateEndpointId the value to set - * @return this builder instance - */ - public Builder distributedDatabasePrivateEndpointId( - String distributedDatabasePrivateEndpointId) { - this.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ReinstateProxyInstanceRequest o) { - distributedDatabasePrivateEndpointId(o.getDistributedDatabasePrivateEndpointId()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ReinstateProxyInstanceRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ReinstateProxyInstanceRequest - */ - public ReinstateProxyInstanceRequest build() { - ReinstateProxyInstanceRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ReinstateProxyInstanceRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ReinstateProxyInstanceRequest - */ - public ReinstateProxyInstanceRequest buildWithoutInvocationCallback() { - ReinstateProxyInstanceRequest request = new ReinstateProxyInstanceRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - return request; - // new ReinstateProxyInstanceRequest(distributedDatabasePrivateEndpointId, opcRequestId, ifMatch, opcRetryToken); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabasePrivateEndpointId=") - .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ReinstateProxyInstanceRequest)) { - return false; - } - - ReinstateProxyInstanceRequest other = (ReinstateProxyInstanceRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedAutonomousDatabasePasswordsRequest.java deleted file mode 100644 index 68e020452b3..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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 5e7c72f3113..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/RotateDistributedDatabasePasswordsRequest.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 RotateDistributedDatabasePasswordsRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of RotateDistributedDatabasePasswordsRequest - */ - public RotateDistributedDatabasePasswordsRequest buildWithoutInvocationCallback() { - RotateDistributedDatabasePasswordsRequest request = - new RotateDistributedDatabasePasswordsRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.rotateDistributedDatabasePasswordsDetails = - rotateDistributedDatabasePasswordsDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new RotateDistributedDatabasePasswordsRequest(distributedDatabaseId, rotateDistributedDatabasePasswordsDetails, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .rotateDistributedDatabasePasswordsDetails( - rotateDistributedDatabasePasswordsDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",rotateDistributedDatabasePasswordsDetails=") - .append(String.valueOf(this.rotateDistributedDatabasePasswordsDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RotateDistributedDatabasePasswordsRequest)) { - return false; - } - - RotateDistributedDatabasePasswordsRequest other = - (RotateDistributedDatabasePasswordsRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.rotateDistributedDatabasePasswordsDetails, - other.rotateDistributedDatabasePasswordsDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.rotateDistributedDatabasePasswordsDetails == null - ? 43 - : this.rotateDistributedDatabasePasswordsDetails.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java deleted file mode 100644 index 7b5b023e385..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedAutonomousDatabaseGsmsRequest.java +++ /dev/null @@ -1,391 +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 ScaleDistributedAutonomousDatabaseGsmsRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ScaleDistributedAutonomousDatabaseGsmsRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails> { - - /** - * Empty payload to scale GSM instances for the distributed autonomous database. - */ - private com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails - scaleDistributedAutonomousDatabaseGsmsDetails; - - /** - * Empty payload to scale GSM instances for the distributed autonomous database. - */ - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails - getScaleDistributedAutonomousDatabaseGsmsDetails() { - return scaleDistributedAutonomousDatabaseGsmsDetails; - } - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedAutonomousDatabaseGsmsDetails - getBody$() { - return scaleDistributedAutonomousDatabaseGsmsDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ScaleDistributedAutonomousDatabaseGsmsRequest, - com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Empty payload to scale GSM instances for the distributed autonomous database. - */ - private com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails - scaleDistributedAutonomousDatabaseGsmsDetails = null; - - /** - * Empty payload to scale GSM instances for the distributed autonomous database. - * @param scaleDistributedAutonomousDatabaseGsmsDetails the value to set - * @return this builder instance - */ - public Builder scaleDistributedAutonomousDatabaseGsmsDetails( - com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails - scaleDistributedAutonomousDatabaseGsmsDetails) { - this.scaleDistributedAutonomousDatabaseGsmsDetails = - scaleDistributedAutonomousDatabaseGsmsDetails; - return this; - } - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId = null; - - /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ScaleDistributedAutonomousDatabaseGsmsRequest o) { - scaleDistributedAutonomousDatabaseGsmsDetails( - o.getScaleDistributedAutonomousDatabaseGsmsDetails()); - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ScaleDistributedAutonomousDatabaseGsmsRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ScaleDistributedAutonomousDatabaseGsmsRequest - */ - public ScaleDistributedAutonomousDatabaseGsmsRequest build() { - ScaleDistributedAutonomousDatabaseGsmsRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedAutonomousDatabaseGsmsDetails - body) { - scaleDistributedAutonomousDatabaseGsmsDetails(body); - return this; - } - - /** - * Build the instance of ScaleDistributedAutonomousDatabaseGsmsRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ScaleDistributedAutonomousDatabaseGsmsRequest - */ - public ScaleDistributedAutonomousDatabaseGsmsRequest buildWithoutInvocationCallback() { - ScaleDistributedAutonomousDatabaseGsmsRequest request = - new ScaleDistributedAutonomousDatabaseGsmsRequest(); - request.scaleDistributedAutonomousDatabaseGsmsDetails = - scaleDistributedAutonomousDatabaseGsmsDetails; - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ScaleDistributedAutonomousDatabaseGsmsRequest(scaleDistributedAutonomousDatabaseGsmsDetails, distributedAutonomousDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .scaleDistributedAutonomousDatabaseGsmsDetails( - scaleDistributedAutonomousDatabaseGsmsDetails) - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",scaleDistributedAutonomousDatabaseGsmsDetails=") - .append(String.valueOf(this.scaleDistributedAutonomousDatabaseGsmsDetails)); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ScaleDistributedAutonomousDatabaseGsmsRequest)) { - return false; - } - - ScaleDistributedAutonomousDatabaseGsmsRequest other = - (ScaleDistributedAutonomousDatabaseGsmsRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.scaleDistributedAutonomousDatabaseGsmsDetails, - other.scaleDistributedAutonomousDatabaseGsmsDetails) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.scaleDistributedAutonomousDatabaseGsmsDetails == null - ? 43 - : this.scaleDistributedAutonomousDatabaseGsmsDetails.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.java deleted file mode 100644 index 7bb4aa6e748..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ScaleDistributedDatabaseGsmsRequest.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 ScaleDistributedDatabaseGsmsRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ScaleDistributedDatabaseGsmsRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails> { - - /** - * Empty payload to scale GSM instances for the distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - scaleDistributedDatabaseGsmsDetails; - - /** - * Empty payload to scale GSM instances for the distributed database. - */ - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - getScaleDistributedDatabaseGsmsDetails() { - return scaleDistributedDatabaseGsmsDetails; - } - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - getBody$() { - return scaleDistributedDatabaseGsmsDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ScaleDistributedDatabaseGsmsRequest, - com.oracle.bmc.distributeddatabasev26.model - .ScaleDistributedDatabaseGsmsDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Empty payload to scale GSM instances for the distributed database. - */ - private com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - scaleDistributedDatabaseGsmsDetails = null; - - /** - * Empty payload to scale GSM instances for the distributed database. - * @param scaleDistributedDatabaseGsmsDetails the value to set - * @return this builder instance - */ - public Builder scaleDistributedDatabaseGsmsDetails( - com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - scaleDistributedDatabaseGsmsDetails) { - this.scaleDistributedDatabaseGsmsDetails = scaleDistributedDatabaseGsmsDetails; - return this; - } - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ScaleDistributedDatabaseGsmsRequest o) { - scaleDistributedDatabaseGsmsDetails(o.getScaleDistributedDatabaseGsmsDetails()); - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ScaleDistributedDatabaseGsmsRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ScaleDistributedDatabaseGsmsRequest - */ - public ScaleDistributedDatabaseGsmsRequest build() { - ScaleDistributedDatabaseGsmsRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.ScaleDistributedDatabaseGsmsDetails - body) { - scaleDistributedDatabaseGsmsDetails(body); - return this; - } - - /** - * Build the instance of ScaleDistributedDatabaseGsmsRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ScaleDistributedDatabaseGsmsRequest - */ - public ScaleDistributedDatabaseGsmsRequest buildWithoutInvocationCallback() { - ScaleDistributedDatabaseGsmsRequest request = new ScaleDistributedDatabaseGsmsRequest(); - request.scaleDistributedDatabaseGsmsDetails = scaleDistributedDatabaseGsmsDetails; - request.distributedDatabaseId = distributedDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ScaleDistributedDatabaseGsmsRequest(scaleDistributedDatabaseGsmsDetails, distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .scaleDistributedDatabaseGsmsDetails(scaleDistributedDatabaseGsmsDetails) - .distributedDatabaseId(distributedDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",scaleDistributedDatabaseGsmsDetails=") - .append(String.valueOf(this.scaleDistributedDatabaseGsmsDetails)); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ScaleDistributedDatabaseGsmsRequest)) { - return false; - } - - ScaleDistributedDatabaseGsmsRequest other = (ScaleDistributedDatabaseGsmsRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.scaleDistributedDatabaseGsmsDetails, - other.scaleDistributedDatabaseGsmsDetails) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.scaleDistributedDatabaseGsmsDetails == null - ? 43 - : this.scaleDistributedDatabaseGsmsDetails.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 992954ad5fb..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,310 +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 StartDistributedAutonomousDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - StartDistributedAutonomousDatabaseRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - 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.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(StartDistributedAutonomousDatabaseRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of StartDistributedAutonomousDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of StartDistributedAutonomousDatabaseRequest - */ - public StartDistributedAutonomousDatabaseRequest build() { - StartDistributedAutonomousDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of StartDistributedAutonomousDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of StartDistributedAutonomousDatabaseRequest - */ - public StartDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - StartDistributedAutonomousDatabaseRequest request = - new StartDistributedAutonomousDatabaseRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new StartDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StartDistributedAutonomousDatabaseRequest)) { - return false; - } - - StartDistributedAutonomousDatabaseRequest other = - (StartDistributedAutonomousDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java deleted file mode 100644 index c4c4554af4d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StartDistributedDatabaseRequest.java +++ /dev/null @@ -1,306 +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 StartDistributedDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - StartDistributedDatabaseRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(StartDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of StartDistributedDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of StartDistributedDatabaseRequest - */ - public StartDistributedDatabaseRequest build() { - StartDistributedDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of StartDistributedDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of StartDistributedDatabaseRequest - */ - public StartDistributedDatabaseRequest buildWithoutInvocationCallback() { - StartDistributedDatabaseRequest request = new StartDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new StartDistributedDatabaseRequest(distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StartDistributedDatabaseRequest)) { - return false; - } - - StartDistributedDatabaseRequest other = (StartDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 0dec316b633..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,310 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of StopDistributedAutonomousDatabaseRequest - */ - public StopDistributedAutonomousDatabaseRequest buildWithoutInvocationCallback() { - StopDistributedAutonomousDatabaseRequest request = - new StopDistributedAutonomousDatabaseRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new StopDistributedAutonomousDatabaseRequest(distributedAutonomousDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StopDistributedAutonomousDatabaseRequest)) { - return false; - } - - StopDistributedAutonomousDatabaseRequest other = - (StopDistributedAutonomousDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java deleted file mode 100644 index 8f2c9b141fd..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/StopDistributedDatabaseRequest.java +++ /dev/null @@ -1,306 +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 StopDistributedDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - StopDistributedDatabaseRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(StopDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of StopDistributedDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of StopDistributedDatabaseRequest - */ - public StopDistributedDatabaseRequest build() { - StopDistributedDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of StopDistributedDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of StopDistributedDatabaseRequest - */ - public StopDistributedDatabaseRequest buildWithoutInvocationCallback() { - StopDistributedDatabaseRequest request = new StopDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new StopDistributedDatabaseRequest(distributedDatabaseId, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StopDistributedDatabaseRequest)) { - return false; - } - - StopDistributedDatabaseRequest other = (StopDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java deleted file mode 100644 index 75f15ea9f0e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedAutonomousDatabaseRequest.java +++ /dev/null @@ -1,335 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 bbf600b8e11..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabasePrivateEndpointRequest.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 UpdateDistributedDatabasePrivateEndpointRequest. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of UpdateDistributedDatabasePrivateEndpointRequest - */ - public UpdateDistributedDatabasePrivateEndpointRequest buildWithoutInvocationCallback() { - UpdateDistributedDatabasePrivateEndpointRequest request = - new UpdateDistributedDatabasePrivateEndpointRequest(); - request.distributedDatabasePrivateEndpointId = distributedDatabasePrivateEndpointId; - request.updateDistributedDatabasePrivateEndpointDetails = - updateDistributedDatabasePrivateEndpointDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new UpdateDistributedDatabasePrivateEndpointRequest(distributedDatabasePrivateEndpointId, updateDistributedDatabasePrivateEndpointDetails, opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabasePrivateEndpointId(distributedDatabasePrivateEndpointId) - .updateDistributedDatabasePrivateEndpointDetails( - updateDistributedDatabasePrivateEndpointDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabasePrivateEndpointId=") - .append(String.valueOf(this.distributedDatabasePrivateEndpointId)); - sb.append(",updateDistributedDatabasePrivateEndpointDetails=") - .append(String.valueOf(this.updateDistributedDatabasePrivateEndpointDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedDatabasePrivateEndpointRequest)) { - return false; - } - - UpdateDistributedDatabasePrivateEndpointRequest other = - (UpdateDistributedDatabasePrivateEndpointRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointId, - other.distributedDatabasePrivateEndpointId) - && java.util.Objects.equals( - this.updateDistributedDatabasePrivateEndpointDetails, - other.updateDistributedDatabasePrivateEndpointDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointId == null - ? 43 - : this.distributedDatabasePrivateEndpointId.hashCode()); - result = - (result * PRIME) - + (this.updateDistributedDatabasePrivateEndpointDetails == null - ? 43 - : this.updateDistributedDatabasePrivateEndpointDetails.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java deleted file mode 100644 index fc7f6e2a582..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/UpdateDistributedDatabaseRequest.java +++ /dev/null @@ -1,320 +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 UpdateDistributedDatabaseRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails> { - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId; - - /** - * Globally distributed database identifier. - */ - public String getDistributedDatabaseId() { - return distributedDatabaseId; - } - /** - * The configuration of the Globally distributed database to be updated. - */ - private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails; - - /** - * The configuration of the Globally distributed database to be updated. - */ - public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - getUpdateDistributedDatabaseDetails() { - return updateDistributedDatabaseDetails; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - - /** - * Alternative accessor for the body parameter. - * @return body parameter - */ - @Override - @com.oracle.bmc.InternalSdk - public com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails getBody$() { - return updateDistributedDatabaseDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - UpdateDistributedDatabaseRequest, - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed database identifier. - */ - private String distributedDatabaseId = null; - - /** - * Globally distributed database identifier. - * @param distributedDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedDatabaseId(String distributedDatabaseId) { - this.distributedDatabaseId = distributedDatabaseId; - return this; - } - - /** - * The configuration of the Globally distributed database to be updated. - */ - private com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails = null; - - /** - * The configuration of the Globally distributed database to be updated. - * @param updateDistributedDatabaseDetails the value to set - * @return this builder instance - */ - public Builder updateDistributedDatabaseDetails( - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails - updateDistributedDatabaseDetails) { - this.updateDistributedDatabaseDetails = updateDistributedDatabaseDetails; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(UpdateDistributedDatabaseRequest o) { - distributedDatabaseId(o.getDistributedDatabaseId()); - updateDistributedDatabaseDetails(o.getUpdateDistributedDatabaseDetails()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of UpdateDistributedDatabaseRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of UpdateDistributedDatabaseRequest - */ - public UpdateDistributedDatabaseRequest build() { - UpdateDistributedDatabaseRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.distributeddatabasev26.model.UpdateDistributedDatabaseDetails body) { - updateDistributedDatabaseDetails(body); - return this; - } - - /** - * Build the instance of UpdateDistributedDatabaseRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of UpdateDistributedDatabaseRequest - */ - public UpdateDistributedDatabaseRequest buildWithoutInvocationCallback() { - UpdateDistributedDatabaseRequest request = new UpdateDistributedDatabaseRequest(); - request.distributedDatabaseId = distributedDatabaseId; - request.updateDistributedDatabaseDetails = updateDistributedDatabaseDetails; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new UpdateDistributedDatabaseRequest(distributedDatabaseId, updateDistributedDatabaseDetails, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedDatabaseId(distributedDatabaseId) - .updateDistributedDatabaseDetails(updateDistributedDatabaseDetails) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedDatabaseId=").append(String.valueOf(this.distributedDatabaseId)); - sb.append(",updateDistributedDatabaseDetails=") - .append(String.valueOf(this.updateDistributedDatabaseDetails)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedDatabaseRequest)) { - return false; - } - - UpdateDistributedDatabaseRequest other = (UpdateDistributedDatabaseRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.distributedDatabaseId, other.distributedDatabaseId) - && java.util.Objects.equals( - this.updateDistributedDatabaseDetails, - other.updateDistributedDatabaseDetails) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedDatabaseId == null - ? 43 - : this.distributedDatabaseId.hashCode()); - result = - (result * PRIME) - + (this.updateDistributedDatabaseDetails == null - ? 43 - : this.updateDistributedDatabaseDetails.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java deleted file mode 100644 index 946597b3b01..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseCaBundleRequest.java +++ /dev/null @@ -1,312 +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 ValidateDistributedAutonomousDatabaseCaBundleRequest. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ValidateDistributedAutonomousDatabaseCaBundleRequest - extends com.oracle.bmc.requests.BmcRequest { - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId; - - /** - * Globally distributed autonomous database identifier. - */ - public String getDistributedAutonomousDatabaseId() { - return distributedAutonomousDatabaseId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - public String getIfMatch() { - return ifMatch; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * The client request ID for tracing. - */ - private String opcRequestId; - - /** - * The client request ID for tracing. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ValidateDistributedAutonomousDatabaseCaBundleRequest, java.lang.Void> { - private com.oracle.bmc.util.internal.Consumer - invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** - * Globally distributed autonomous database identifier. - */ - private String distributedAutonomousDatabaseId = null; - - /** - * Globally distributed autonomous database identifier. - * @param distributedAutonomousDatabaseId the value to set - * @return this builder instance - */ - public Builder distributedAutonomousDatabaseId(String distributedAutonomousDatabaseId) { - this.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call - * for a resource, set the {@code if-match} parameter to the value of the - * etag from a previous GET or POST response for that resource. - * The resource will be updated or deleted only if the etag you - * provide matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a resource - * has been deleted and purged from the system, then a retry of the original creation request - * might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * The client request ID for tracing. - */ - private String opcRequestId = null; - - /** - * The client request ID for tracing. - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.util.internal.Consumer - invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ValidateDistributedAutonomousDatabaseCaBundleRequest o) { - distributedAutonomousDatabaseId(o.getDistributedAutonomousDatabaseId()); - ifMatch(o.getIfMatch()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest as configured by this builder - * - * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#buildWithoutInvocationCallback} does not. - * - * This is the preferred method to build an instance. - * - * @return instance of ValidateDistributedAutonomousDatabaseCaBundleRequest - */ - public ValidateDistributedAutonomousDatabaseCaBundleRequest build() { - ValidateDistributedAutonomousDatabaseCaBundleRequest request = - buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ValidateDistributedAutonomousDatabaseCaBundleRequest as configured by this builder - * - * Note that this method does not take calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, - * while the method {@link Builder#build} does - * - * @return instance of ValidateDistributedAutonomousDatabaseCaBundleRequest - */ - public ValidateDistributedAutonomousDatabaseCaBundleRequest - buildWithoutInvocationCallback() { - ValidateDistributedAutonomousDatabaseCaBundleRequest request = - new ValidateDistributedAutonomousDatabaseCaBundleRequest(); - request.distributedAutonomousDatabaseId = distributedAutonomousDatabaseId; - request.ifMatch = ifMatch; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - return request; - // new ValidateDistributedAutonomousDatabaseCaBundleRequest(distributedAutonomousDatabaseId, ifMatch, opcRetryToken, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .distributedAutonomousDatabaseId(distributedAutonomousDatabaseId) - .ifMatch(ifMatch) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",distributedAutonomousDatabaseId=") - .append(String.valueOf(this.distributedAutonomousDatabaseId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ValidateDistributedAutonomousDatabaseCaBundleRequest)) { - return false; - } - - ValidateDistributedAutonomousDatabaseCaBundleRequest other = - (ValidateDistributedAutonomousDatabaseCaBundleRequest) o; - return super.equals(o) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseId, other.distributedAutonomousDatabaseId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseId == null - ? 43 - : this.distributedAutonomousDatabaseId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java deleted file mode 100644 index 45dca69c129..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedAutonomousDatabaseNetworkRequest.java +++ /dev/null @@ -1,344 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 b5d28b5f9b0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/requests/ValidateDistributedDatabaseNetworkRequest.java +++ /dev/null @@ -1,340 +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. - */ -@javax.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.util.internal.Consumer - 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.util.internal.Consumer - 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.util.internal.Consumer)} 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.util.internal.Consumer)} 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 f4620c8cc9b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedAutonomousDatabaseGdsControlNodeResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public AddDistributedAutonomousDatabaseGdsControlNodeResponse build() { - return new AddDistributedAutonomousDatabaseGdsControlNodeResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AddDistributedAutonomousDatabaseGdsControlNodeResponse)) { - return false; - } - - AddDistributedAutonomousDatabaseGdsControlNodeResponse other = - (AddDistributedAutonomousDatabaseGdsControlNodeResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.java deleted file mode 100644 index d076fd2ab13..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/AddDistributedDatabaseGdsControlNodeResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class AddDistributedDatabaseGdsControlNodeResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private AddDistributedDatabaseGdsControlNodeResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(AddDistributedDatabaseGdsControlNodeResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public AddDistributedDatabaseGdsControlNodeResponse build() { - return new AddDistributedDatabaseGdsControlNodeResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AddDistributedDatabaseGdsControlNodeResponse)) { - return false; - } - - AddDistributedDatabaseGdsControlNodeResponse other = - (AddDistributedDatabaseGdsControlNodeResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.java deleted file mode 100644 index 35f18346f72..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDatabaseCompartmentResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcWorkRequestId) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcWorkRequestId = opcWorkRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public ChangeDistributedAutonomousDatabaseCompartmentResponse build() { - return new ChangeDistributedAutonomousDatabaseCompartmentResponse( - __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedAutonomousDatabaseCompartmentResponse)) { - return false; - } - - ChangeDistributedAutonomousDatabaseCompartmentResponse other = - (ChangeDistributedAutonomousDatabaseCompartmentResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.java deleted file mode 100644 index 764e2131624..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedAutonomousDbBackupConfigResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedAutonomousDbBackupConfigResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ChangeDistributedAutonomousDbBackupConfigResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ChangeDistributedAutonomousDbBackupConfigResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ChangeDistributedAutonomousDbBackupConfigResponse build() { - return new ChangeDistributedAutonomousDbBackupConfigResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedAutonomousDbBackupConfigResponse)) { - return false; - } - - ChangeDistributedAutonomousDbBackupConfigResponse other = - (ChangeDistributedAutonomousDbBackupConfigResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.java deleted file mode 100644 index 6095d6860cf..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabaseCompartmentResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcWorkRequestId) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcWorkRequestId = opcWorkRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 070f2cf8f9d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDatabasePrivateEndpointCompartmentResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public ChangeDistributedDatabasePrivateEndpointCompartmentResponse build() { - return new ChangeDistributedDatabasePrivateEndpointCompartmentResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDatabasePrivateEndpointCompartmentResponse)) { - return false; - } - - ChangeDistributedDatabasePrivateEndpointCompartmentResponse other = - (ChangeDistributedDatabasePrivateEndpointCompartmentResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java deleted file mode 100644 index 0af546f682d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ChangeDistributedDbBackupConfigResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ChangeDistributedDbBackupConfigResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ChangeDistributedDbBackupConfigResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ChangeDistributedDbBackupConfigResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ChangeDistributedDbBackupConfigResponse build() { - return new ChangeDistributedDbBackupConfigResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeDistributedDbBackupConfigResponse)) { - return false; - } - - ChangeDistributedDbBackupConfigResponse other = (ChangeDistributedDbBackupConfigResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.java deleted file mode 100644 index 30c9b8ae289..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedAutonomousDatabaseAutoResourceManagementDetails instance. - */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - distributedAutonomousDatabaseAutoResourceManagementDetails; - - /** - * The returned DistributedAutonomousDatabaseAutoResourceManagementDetails instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - getDistributedAutonomousDatabaseAutoResourceManagementDetails() { - return distributedAutonomousDatabaseAutoResourceManagementDetails; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedAutonomousDatabaseAutoResourceManagementDetails" - }) - private ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - distributedAutonomousDatabaseAutoResourceManagementDetails) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedAutonomousDatabaseAutoResourceManagementDetails = - distributedAutonomousDatabaseAutoResourceManagementDetails; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabaseAutoResourceManagementDetails instance. - */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - distributedAutonomousDatabaseAutoResourceManagementDetails; - - /** - * The returned DistributedAutonomousDatabaseAutoResourceManagementDetails instance. - * @param distributedAutonomousDatabaseAutoResourceManagementDetails the value to set - * @return this builder - */ - public Builder distributedAutonomousDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model - .DistributedAutonomousDatabaseAutoResourceManagementDetails - distributedAutonomousDatabaseAutoResourceManagementDetails) { - this.distributedAutonomousDatabaseAutoResourceManagementDetails = - distributedAutonomousDatabaseAutoResourceManagementDetails; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy( - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedAutonomousDatabaseAutoResourceManagementDetails( - o.getDistributedAutonomousDatabaseAutoResourceManagementDetails()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse build() { - return new ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - distributedAutonomousDatabaseAutoResourceManagementDetails); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedAutonomousDatabaseAutoResourceManagementDetails=") - .append(String.valueOf(distributedAutonomousDatabaseAutoResourceManagementDetails)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse)) { - return false; - } - - ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse other = - (ConfigureDistributedAutonomousDatabaseAutoResourceManagementResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseAutoResourceManagementDetails, - other.distributedAutonomousDatabaseAutoResourceManagementDetails); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseAutoResourceManagementDetails == null - ? 43 - : this.distributedAutonomousDatabaseAutoResourceManagementDetails - .hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.java deleted file mode 100644 index 40a86aff056..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmWalletResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 d7209808ee6..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseGsmsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 0e7ebdc21ea..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedAutonomousDatabaseShardingResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public ConfigureDistributedAutonomousDatabaseShardingResponse build() { - return new ConfigureDistributedAutonomousDatabaseShardingResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedAutonomousDatabaseShardingResponse)) { - return false; - } - - ConfigureDistributedAutonomousDatabaseShardingResponse other = - (ConfigureDistributedAutonomousDatabaseShardingResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java deleted file mode 100644 index 82a41efbd0b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseAutoResourceManagementResponse.java +++ /dev/null @@ -1,237 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseAutoResourceManagementResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedDatabaseAutoResourceManagementDetails instance. - */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - distributedDatabaseAutoResourceManagementDetails; - - /** - * The returned DistributedDatabaseAutoResourceManagementDetails instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - getDistributedDatabaseAutoResourceManagementDetails() { - return distributedDatabaseAutoResourceManagementDetails; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedDatabaseAutoResourceManagementDetails" - }) - private ConfigureDistributedDatabaseAutoResourceManagementResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - distributedDatabaseAutoResourceManagementDetails) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedDatabaseAutoResourceManagementDetails = - distributedDatabaseAutoResourceManagementDetails; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabaseAutoResourceManagementDetails instance. - */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - distributedDatabaseAutoResourceManagementDetails; - - /** - * The returned DistributedDatabaseAutoResourceManagementDetails instance. - * @param distributedDatabaseAutoResourceManagementDetails the value to set - * @return this builder - */ - public Builder distributedDatabaseAutoResourceManagementDetails( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabaseAutoResourceManagementDetails - distributedDatabaseAutoResourceManagementDetails) { - this.distributedDatabaseAutoResourceManagementDetails = - distributedDatabaseAutoResourceManagementDetails; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ConfigureDistributedDatabaseAutoResourceManagementResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedDatabaseAutoResourceManagementDetails( - o.getDistributedDatabaseAutoResourceManagementDetails()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ConfigureDistributedDatabaseAutoResourceManagementResponse build() { - return new ConfigureDistributedDatabaseAutoResourceManagementResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - distributedDatabaseAutoResourceManagementDetails); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedDatabaseAutoResourceManagementDetails=") - .append(String.valueOf(distributedDatabaseAutoResourceManagementDetails)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseAutoResourceManagementResponse)) { - return false; - } - - ConfigureDistributedDatabaseAutoResourceManagementResponse other = - (ConfigureDistributedDatabaseAutoResourceManagementResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedDatabaseAutoResourceManagementDetails, - other.distributedDatabaseAutoResourceManagementDetails); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabaseAutoResourceManagementDetails == null - ? 43 - : this.distributedDatabaseAutoResourceManagementDetails.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.java deleted file mode 100644 index c6e56926f41..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseGsmsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ConfigureDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ConfigureDistributedDatabaseGsmsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ConfigureDistributedDatabaseGsmsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ConfigureDistributedDatabaseGsmsResponse build() { - return new ConfigureDistributedDatabaseGsmsResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConfigureDistributedDatabaseGsmsResponse)) { - return false; - } - - ConfigureDistributedDatabaseGsmsResponse other = - (ConfigureDistributedDatabaseGsmsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.java deleted file mode 100644 index ec2d97dbc21..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ConfigureDistributedDatabaseShardingResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 ef2e559a69f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedAutonomousDatabaseResponse.java +++ /dev/null @@ -1,270 +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.*; - -@javax.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 DistributedAutonomousDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; - - /** - * The returned 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 - */ - 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 - */ - 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 3e84284c478..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabasePrivateEndpointResponse.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.*; - -@javax.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 DistributedDatabasePrivateEndpoint instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabasePrivateEndpoint instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; - - /** - * The returned 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 - */ - 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 - */ - 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 5b0220030dc..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/CreateDistributedDatabaseResponse.java +++ /dev/null @@ -1,263 +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.*; - -@javax.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 DistributedDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; - - /** - * The returned 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 - */ - 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 - */ - 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 4d111efdf98..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedAutonomousDatabaseResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 02b8d183ce5..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabasePrivateEndpointResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 cbe532bd344..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/DeleteDistributedDatabaseResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 18fc88ac0a0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedAutonomousDatabaseWalletResponse.java +++ /dev/null @@ -1,290 +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.*; - -@javax.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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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 - */ - 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 - */ - public GenerateDistributedAutonomousDatabaseWalletResponse build() { - return new GenerateDistributedAutonomousDatabaseWalletResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - contentLength, - lastModified, - inputStream); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",contentLength=").append(String.valueOf(contentLength)); - sb.append(",lastModified=").append(String.valueOf(lastModified)); - sb.append(",inputStream=").append(String.valueOf(inputStream)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GenerateDistributedAutonomousDatabaseWalletResponse)) { - return false; - } - - GenerateDistributedAutonomousDatabaseWalletResponse other = - (GenerateDistributedAutonomousDatabaseWalletResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.contentLength, other.contentLength) - && java.util.Objects.equals(this.lastModified, other.lastModified) - && java.util.Objects.equals(this.inputStream, other.inputStream); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.contentLength == null ? 43 : this.contentLength.hashCode()); - result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); - result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java deleted file mode 100644 index 4e63cb76f9d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GenerateDistributedDatabaseWalletResponse.java +++ /dev/null @@ -1,290 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GenerateDistributedDatabaseWalletResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * Size of the file. - */ - private Long contentLength; - - /** - * Size of the file. - * @return the value - */ - public Long getContentLength() { - return contentLength; - } - - /** - * The date and time the wallet was created. - */ - private java.util.Date lastModified; - - /** - * The date and time the wallet was created. - * @return the value - */ - public java.util.Date getLastModified() { - return lastModified; - } - - /** - * The returned java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned java.io.InputStream instance. - * @return the value - */ - public java.io.InputStream getInputStream() { - return inputStream; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "contentLength", - "lastModified", - "inputStream" - }) - private GenerateDistributedDatabaseWalletResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 java.io.InputStream instance. - */ - private java.io.InputStream inputStream; - - /** - * The returned 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 - */ - public Builder copy(GenerateDistributedDatabaseWalletResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - contentLength(o.getContentLength()); - lastModified(o.getLastModified()); - inputStream(o.getInputStream()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GenerateDistributedDatabaseWalletResponse build() { - return new GenerateDistributedDatabaseWalletResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - contentLength, - lastModified, - inputStream); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",contentLength=").append(String.valueOf(contentLength)); - sb.append(",lastModified=").append(String.valueOf(lastModified)); - sb.append(",inputStream=").append(String.valueOf(inputStream)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GenerateDistributedDatabaseWalletResponse)) { - return false; - } - - GenerateDistributedDatabaseWalletResponse other = - (GenerateDistributedDatabaseWalletResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.contentLength, other.contentLength) - && java.util.Objects.equals(this.lastModified, other.lastModified) - && java.util.Objects.equals(this.inputStream, other.inputStream); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.contentLength == null ? 43 : this.contentLength.hashCode()); - result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); - result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java deleted file mode 100644 index b722e50d36b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRaftMetricResponse.java +++ /dev/null @@ -1,189 +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.*; - -@javax.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 DistributedAutonomousDatabaseRaftMetric instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric - distributedAutonomousDatabaseRaftMetric; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric - distributedAutonomousDatabaseRaftMetric) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.distributedAutonomousDatabaseRaftMetric = distributedAutonomousDatabaseRaftMetric; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabaseRaftMetric instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRaftMetric - distributedAutonomousDatabaseRaftMetric; - - /** - * The returned 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 - */ - 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 - */ - public GetDistributedAutonomousDatabaseRaftMetricResponse build() { - return new GetDistributedAutonomousDatabaseRaftMetricResponse( - __httpStatusCode__, - headers, - opcRequestId, - distributedAutonomousDatabaseRaftMetric); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",distributedAutonomousDatabaseRaftMetric=") - .append(String.valueOf(distributedAutonomousDatabaseRaftMetric)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedAutonomousDatabaseRaftMetricResponse)) { - return false; - } - - GetDistributedAutonomousDatabaseRaftMetricResponse other = - (GetDistributedAutonomousDatabaseRaftMetricResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseRaftMetric, - other.distributedAutonomousDatabaseRaftMetric); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseRaftMetric == null - ? 43 - : this.distributedAutonomousDatabaseRaftMetric.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java deleted file mode 100644 index b0a9b4c2b43..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseResponse.java +++ /dev/null @@ -1,223 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedAutonomousDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; - - /** - * The returned DistributedAutonomousDatabase instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedAutonomousDatabase" - }) - private GetDistributedAutonomousDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; - - /** - * The returned 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 - */ - public Builder copy(GetDistributedAutonomousDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetDistributedAutonomousDatabaseResponse build() { - return new GetDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedAutonomousDatabase=") - .append(String.valueOf(distributedAutonomousDatabase)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedAutonomousDatabaseResponse)) { - return false; - } - - GetDistributedAutonomousDatabaseResponse other = - (GetDistributedAutonomousDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedAutonomousDatabase, other.distributedAutonomousDatabase); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabase == null - ? 43 - : this.distributedAutonomousDatabase.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.java deleted file mode 100644 index 2a4d0c5d8b4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedAutonomousDatabaseRuChangeLogResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedAutonomousDatabaseRuChangeLogResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * The returned DistributedAutonomousDatabaseRuChangeLog instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog - distributedAutonomousDatabaseRuChangeLog; - - /** - * The returned DistributedAutonomousDatabaseRuChangeLog instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog - getDistributedAutonomousDatabaseRuChangeLog() { - return distributedAutonomousDatabaseRuChangeLog; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "distributedAutonomousDatabaseRuChangeLog" - }) - private GetDistributedAutonomousDatabaseRuChangeLogResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog - distributedAutonomousDatabaseRuChangeLog) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.distributedAutonomousDatabaseRuChangeLog = distributedAutonomousDatabaseRuChangeLog; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabaseRuChangeLog instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog - distributedAutonomousDatabaseRuChangeLog; - - /** - * The returned DistributedAutonomousDatabaseRuChangeLog instance. - * @param distributedAutonomousDatabaseRuChangeLog the value to set - * @return this builder - */ - public Builder distributedAutonomousDatabaseRuChangeLog( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseRuChangeLog - distributedAutonomousDatabaseRuChangeLog) { - this.distributedAutonomousDatabaseRuChangeLog = - distributedAutonomousDatabaseRuChangeLog; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedAutonomousDatabaseRuChangeLogResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - distributedAutonomousDatabaseRuChangeLog( - o.getDistributedAutonomousDatabaseRuChangeLog()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetDistributedAutonomousDatabaseRuChangeLogResponse build() { - return new GetDistributedAutonomousDatabaseRuChangeLogResponse( - __httpStatusCode__, - headers, - opcRequestId, - distributedAutonomousDatabaseRuChangeLog); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",distributedAutonomousDatabaseRuChangeLog=") - .append(String.valueOf(distributedAutonomousDatabaseRuChangeLog)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedAutonomousDatabaseRuChangeLogResponse)) { - return false; - } - - GetDistributedAutonomousDatabaseRuChangeLogResponse other = - (GetDistributedAutonomousDatabaseRuChangeLogResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseRuChangeLog, - other.distributedAutonomousDatabaseRuChangeLog); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseRuChangeLog == null - ? 43 - : this.distributedAutonomousDatabaseRuChangeLog.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java deleted file mode 100644 index 5459b3b7a1e..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabasePrivateEndpointResponse.java +++ /dev/null @@ -1,229 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabasePrivateEndpointResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedDatabasePrivateEndpoint instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; - - /** - * The returned DistributedDatabasePrivateEndpoint instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - getDistributedDatabasePrivateEndpoint() { - return distributedDatabasePrivateEndpoint; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedDatabasePrivateEndpoint" - }) - private GetDistributedDatabasePrivateEndpointResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabasePrivateEndpoint instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; - - /** - * The returned 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 - */ - public Builder copy(GetDistributedDatabasePrivateEndpointResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedDatabasePrivateEndpoint(o.getDistributedDatabasePrivateEndpoint()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetDistributedDatabasePrivateEndpointResponse build() { - return new GetDistributedDatabasePrivateEndpointResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - distributedDatabasePrivateEndpoint); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedDatabasePrivateEndpoint=") - .append(String.valueOf(distributedDatabasePrivateEndpoint)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabasePrivateEndpointResponse)) { - return false; - } - - GetDistributedDatabasePrivateEndpointResponse other = - (GetDistributedDatabasePrivateEndpointResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpoint, - other.distributedDatabasePrivateEndpoint); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpoint == null - ? 43 - : this.distributedDatabasePrivateEndpoint.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.java deleted file mode 100644 index f18f9dd174f..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRaftMetricResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRaftMetricResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * The returned DistributedDatabaseRaftMetric instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric; - - /** - * The returned DistributedDatabaseRaftMetric instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - getDistributedDatabaseRaftMetric() { - return distributedDatabaseRaftMetric; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "distributedDatabaseRaftMetric" - }) - private GetDistributedDatabaseRaftMetricResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.distributedDatabaseRaftMetric = distributedDatabaseRaftMetric; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabaseRaftMetric instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric; - - /** - * The returned DistributedDatabaseRaftMetric instance. - * @param distributedDatabaseRaftMetric the value to set - * @return this builder - */ - public Builder distributedDatabaseRaftMetric( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRaftMetric - distributedDatabaseRaftMetric) { - this.distributedDatabaseRaftMetric = distributedDatabaseRaftMetric; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedDatabaseRaftMetricResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - distributedDatabaseRaftMetric(o.getDistributedDatabaseRaftMetric()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetDistributedDatabaseRaftMetricResponse build() { - return new GetDistributedDatabaseRaftMetricResponse( - __httpStatusCode__, headers, opcRequestId, distributedDatabaseRaftMetric); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",distributedDatabaseRaftMetric=") - .append(String.valueOf(distributedDatabaseRaftMetric)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabaseRaftMetricResponse)) { - return false; - } - - GetDistributedDatabaseRaftMetricResponse other = - (GetDistributedDatabaseRaftMetricResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.distributedDatabaseRaftMetric, other.distributedDatabaseRaftMetric); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabaseRaftMetric == null - ? 43 - : this.distributedDatabaseRaftMetric.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java deleted file mode 100644 index b62c60afcad..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseResponse.java +++ /dev/null @@ -1,217 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; - - /** - * The returned DistributedDatabase instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedDatabase" - }) - private GetDistributedDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedDatabase = distributedDatabase; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; - - /** - * The returned 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 - */ - public Builder copy(GetDistributedDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetDistributedDatabaseResponse build() { - return new GetDistributedDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedDatabase=").append(String.valueOf(distributedDatabase)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabaseResponse)) { - return false; - } - - GetDistributedDatabaseResponse other = (GetDistributedDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.distributedDatabase, other.distributedDatabase); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabase == null - ? 43 - : this.distributedDatabase.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.java deleted file mode 100644 index 697ced6c04d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetDistributedDatabaseRuChangeLogResponse.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.distributeddatabasev26.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetDistributedDatabaseRuChangeLogResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * The returned DistributedDatabaseRuChangeLog instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog - distributedDatabaseRuChangeLog; - - /** - * The returned DistributedDatabaseRuChangeLog instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog - getDistributedDatabaseRuChangeLog() { - return distributedDatabaseRuChangeLog; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "distributedDatabaseRuChangeLog" - }) - private GetDistributedDatabaseRuChangeLogResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog - distributedDatabaseRuChangeLog) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.distributedDatabaseRuChangeLog = distributedDatabaseRuChangeLog; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabaseRuChangeLog instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog - distributedDatabaseRuChangeLog; - - /** - * The returned DistributedDatabaseRuChangeLog instance. - * @param distributedDatabaseRuChangeLog the value to set - * @return this builder - */ - public Builder distributedDatabaseRuChangeLog( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseRuChangeLog - distributedDatabaseRuChangeLog) { - this.distributedDatabaseRuChangeLog = distributedDatabaseRuChangeLog; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetDistributedDatabaseRuChangeLogResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - distributedDatabaseRuChangeLog(o.getDistributedDatabaseRuChangeLog()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetDistributedDatabaseRuChangeLogResponse build() { - return new GetDistributedDatabaseRuChangeLogResponse( - __httpStatusCode__, headers, opcRequestId, distributedDatabaseRuChangeLog); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",distributedDatabaseRuChangeLog=") - .append(String.valueOf(distributedDatabaseRuChangeLog)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetDistributedDatabaseRuChangeLogResponse)) { - return false; - } - - GetDistributedDatabaseRuChangeLogResponse other = - (GetDistributedDatabaseRuChangeLogResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.distributedDatabaseRuChangeLog, other.distributedDatabaseRuChangeLog); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabaseRuChangeLog == null - ? 43 - : this.distributedDatabaseRuChangeLog.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.java deleted file mode 100644 index de8e9ce55d2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/GetWorkRequestResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * A decimal number representing the number of seconds the client should wait before polling this endpoint again. - */ - private Integer retryAfter; - - /** - * A decimal number representing the number of seconds the client should wait before polling this endpoint again. - * @return the value - */ - public Integer getRetryAfter() { - return retryAfter; - } - - /** - * The returned WorkRequest instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; - - /** - * The returned WorkRequest instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequest getWorkRequest() { - return workRequest; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "retryAfter", - "workRequest" - }) - private GetWorkRequestResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - Integer retryAfter, - com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.retryAfter = retryAfter; - this.workRequest = workRequest; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap headers) { - this.headers = headers; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * A decimal number representing the number of seconds the client should wait before polling this endpoint again. - */ - private Integer retryAfter; - - /** - * A decimal number representing the number of seconds the client should wait before polling this endpoint again. - * @param retryAfter the value to set - * @return this builder - */ - public Builder retryAfter(Integer retryAfter) { - this.retryAfter = retryAfter; - return this; - } - - /** - * The returned WorkRequest instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest; - - /** - * The returned WorkRequest instance. - * @param workRequest the value to set - * @return this builder - */ - public Builder workRequest( - com.oracle.bmc.distributeddatabasev26.model.WorkRequest workRequest) { - this.workRequest = workRequest; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(GetWorkRequestResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - retryAfter(o.getRetryAfter()); - workRequest(o.getWorkRequest()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public GetWorkRequestResponse build() { - return new GetWorkRequestResponse( - __httpStatusCode__, headers, opcRequestId, retryAfter, workRequest); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",retryAfter=").append(String.valueOf(retryAfter)); - sb.append(",workRequest=").append(String.valueOf(workRequest)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetWorkRequestResponse)) { - return false; - } - - GetWorkRequestResponse other = (GetWorkRequestResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.retryAfter, other.retryAfter) - && java.util.Objects.equals(this.workRequest, other.workRequest); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.retryAfter == null ? 43 : this.retryAfter.hashCode()); - result = (result * PRIME) + (this.workRequest == null ? 43 : this.workRequest.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java deleted file mode 100644 index 9f67d4a47d2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedAutonomousDatabasesResponse.java +++ /dev/null @@ -1,237 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedAutonomousDatabasesResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** - * The returned DistributedAutonomousDatabaseCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection; - - /** - * The returned DistributedAutonomousDatabaseCollection instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - getDistributedAutonomousDatabaseCollection() { - return distributedAutonomousDatabaseCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "opcNextPage", - "distributedAutonomousDatabaseCollection" - }) - private ListDistributedAutonomousDatabasesResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcNextPage = opcNextPage; - this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabaseCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection; - - /** - * The returned DistributedAutonomousDatabaseCollection instance. - * @param distributedAutonomousDatabaseCollection the value to set - * @return this builder - */ - public Builder distributedAutonomousDatabaseCollection( - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabaseCollection - distributedAutonomousDatabaseCollection) { - this.distributedAutonomousDatabaseCollection = distributedAutonomousDatabaseCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListDistributedAutonomousDatabasesResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - opcNextPage(o.getOpcNextPage()); - distributedAutonomousDatabaseCollection(o.getDistributedAutonomousDatabaseCollection()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ListDistributedAutonomousDatabasesResponse build() { - return new ListDistributedAutonomousDatabasesResponse( - __httpStatusCode__, - headers, - opcRequestId, - opcNextPage, - distributedAutonomousDatabaseCollection); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",distributedAutonomousDatabaseCollection=") - .append(String.valueOf(distributedAutonomousDatabaseCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListDistributedAutonomousDatabasesResponse)) { - return false; - } - - ListDistributedAutonomousDatabasesResponse other = - (ListDistributedAutonomousDatabasesResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) - && java.util.Objects.equals( - this.distributedAutonomousDatabaseCollection, - other.distributedAutonomousDatabaseCollection); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabaseCollection == null - ? 43 - : this.distributedAutonomousDatabaseCollection.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java deleted file mode 100644 index 12103ddf240..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasePrivateEndpointsResponse.java +++ /dev/null @@ -1,242 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasePrivateEndpointsResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** - * The returned DistributedDatabasePrivateEndpointCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection; - - /** - * The returned DistributedDatabasePrivateEndpointCollection instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - getDistributedDatabasePrivateEndpointCollection() { - return distributedDatabasePrivateEndpointCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "opcNextPage", - "distributedDatabasePrivateEndpointCollection" - }) - private ListDistributedDatabasePrivateEndpointsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcNextPage = opcNextPage; - this.distributedDatabasePrivateEndpointCollection = - distributedDatabasePrivateEndpointCollection; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabasePrivateEndpointCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection; - - /** - * The returned DistributedDatabasePrivateEndpointCollection instance. - * @param distributedDatabasePrivateEndpointCollection the value to set - * @return this builder - */ - public Builder distributedDatabasePrivateEndpointCollection( - com.oracle.bmc.distributeddatabasev26.model - .DistributedDatabasePrivateEndpointCollection - distributedDatabasePrivateEndpointCollection) { - this.distributedDatabasePrivateEndpointCollection = - distributedDatabasePrivateEndpointCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListDistributedDatabasePrivateEndpointsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - opcNextPage(o.getOpcNextPage()); - distributedDatabasePrivateEndpointCollection( - o.getDistributedDatabasePrivateEndpointCollection()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ListDistributedDatabasePrivateEndpointsResponse build() { - return new ListDistributedDatabasePrivateEndpointsResponse( - __httpStatusCode__, - headers, - opcRequestId, - opcNextPage, - distributedDatabasePrivateEndpointCollection); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",distributedDatabasePrivateEndpointCollection=") - .append(String.valueOf(distributedDatabasePrivateEndpointCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListDistributedDatabasePrivateEndpointsResponse)) { - return false; - } - - ListDistributedDatabasePrivateEndpointsResponse other = - (ListDistributedDatabasePrivateEndpointsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpointCollection, - other.distributedDatabasePrivateEndpointCollection); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpointCollection == null - ? 43 - : this.distributedDatabasePrivateEndpointCollection.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java deleted file mode 100644 index 99964747822..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListDistributedDatabasesResponse.java +++ /dev/null @@ -1,234 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListDistributedDatabasesResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** - * The returned DistributedDatabaseCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection; - - /** - * The returned DistributedDatabaseCollection instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - getDistributedDatabaseCollection() { - return distributedDatabaseCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "opcNextPage", - "distributedDatabaseCollection" - }) - private ListDistributedDatabasesResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcNextPage = opcNextPage; - this.distributedDatabaseCollection = distributedDatabaseCollection; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabaseCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection; - - /** - * The returned DistributedDatabaseCollection instance. - * @param distributedDatabaseCollection the value to set - * @return this builder - */ - public Builder distributedDatabaseCollection( - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabaseCollection - distributedDatabaseCollection) { - this.distributedDatabaseCollection = distributedDatabaseCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListDistributedDatabasesResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - opcNextPage(o.getOpcNextPage()); - distributedDatabaseCollection(o.getDistributedDatabaseCollection()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ListDistributedDatabasesResponse build() { - return new ListDistributedDatabasesResponse( - __httpStatusCode__, - headers, - opcRequestId, - opcNextPage, - distributedDatabaseCollection); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",distributedDatabaseCollection=") - .append(String.valueOf(distributedDatabaseCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListDistributedDatabasesResponse)) { - return false; - } - - ListDistributedDatabasesResponse other = (ListDistributedDatabasesResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) - && java.util.Objects.equals( - this.distributedDatabaseCollection, other.distributedDatabaseCollection); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabaseCollection == null - ? 43 - : this.distributedDatabaseCollection.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java deleted file mode 100644 index 76a0b585379..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestErrorsResponse.java +++ /dev/null @@ -1,234 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * The returned WorkRequestErrorCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection; - - /** - * The returned WorkRequestErrorCollection instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - getWorkRequestErrorCollection() { - return workRequestErrorCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcNextPage", - "opcRequestId", - "workRequestErrorCollection" - }) - private ListWorkRequestErrorsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcNextPage, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection) { - super(__httpStatusCode__, headers); - this.opcNextPage = opcNextPage; - this.opcRequestId = opcRequestId; - this.workRequestErrorCollection = workRequestErrorCollection; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 WorkRequestErrorCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection; - - /** - * The returned WorkRequestErrorCollection instance. - * @param workRequestErrorCollection the value to set - * @return this builder - */ - public Builder workRequestErrorCollection( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestErrorCollection - workRequestErrorCollection) { - this.workRequestErrorCollection = workRequestErrorCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListWorkRequestErrorsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcNextPage(o.getOpcNextPage()); - opcRequestId(o.getOpcRequestId()); - workRequestErrorCollection(o.getWorkRequestErrorCollection()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ListWorkRequestErrorsResponse build() { - return new ListWorkRequestErrorsResponse( - __httpStatusCode__, - headers, - opcNextPage, - opcRequestId, - workRequestErrorCollection); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",workRequestErrorCollection=") - .append(String.valueOf(workRequestErrorCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListWorkRequestErrorsResponse)) { - return false; - } - - ListWorkRequestErrorsResponse other = (ListWorkRequestErrorsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.workRequestErrorCollection, other.workRequestErrorCollection); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.workRequestErrorCollection == null - ? 43 - : this.workRequestErrorCollection.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java deleted file mode 100644 index ef3357d2fea..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestLogsResponse.java +++ /dev/null @@ -1,234 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * The returned WorkRequestLogEntryCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - workRequestLogEntryCollection; - - /** - * The returned WorkRequestLogEntryCollection instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - getWorkRequestLogEntryCollection() { - return workRequestLogEntryCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcNextPage", - "opcRequestId", - "workRequestLogEntryCollection" - }) - private ListWorkRequestLogsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcNextPage, - String opcRequestId, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - workRequestLogEntryCollection) { - super(__httpStatusCode__, headers); - this.opcNextPage = opcNextPage; - this.opcRequestId = opcRequestId; - this.workRequestLogEntryCollection = workRequestLogEntryCollection; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 WorkRequestLogEntryCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - workRequestLogEntryCollection; - - /** - * The returned WorkRequestLogEntryCollection instance. - * @param workRequestLogEntryCollection the value to set - * @return this builder - */ - public Builder workRequestLogEntryCollection( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestLogEntryCollection - workRequestLogEntryCollection) { - this.workRequestLogEntryCollection = workRequestLogEntryCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListWorkRequestLogsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcNextPage(o.getOpcNextPage()); - opcRequestId(o.getOpcRequestId()); - workRequestLogEntryCollection(o.getWorkRequestLogEntryCollection()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ListWorkRequestLogsResponse build() { - return new ListWorkRequestLogsResponse( - __httpStatusCode__, - headers, - opcNextPage, - opcRequestId, - workRequestLogEntryCollection); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",workRequestLogEntryCollection=") - .append(String.valueOf(workRequestLogEntryCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListWorkRequestLogsResponse)) { - return false; - } - - ListWorkRequestLogsResponse other = (ListWorkRequestLogsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals( - this.workRequestLogEntryCollection, other.workRequestLogEntryCollection); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = - (result * PRIME) - + (this.workRequestLogEntryCollection == null - ? 43 - : this.workRequestLogEntryCollection.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java deleted file mode 100644 index d658a7f41d1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ListWorkRequestsResponse.java +++ /dev/null @@ -1,234 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the response, - * then a partial list might have been returned. Include this value as the {@code page} parameter for the - * subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** - * The returned WorkRequestSummaryCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - workRequestSummaryCollection; - - /** - * The returned WorkRequestSummaryCollection instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - getWorkRequestSummaryCollection() { - return workRequestSummaryCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "opcNextPage", - "workRequestSummaryCollection" - }) - private ListWorkRequestsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String opcNextPage, - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - workRequestSummaryCollection) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcNextPage = opcNextPage; - this.workRequestSummaryCollection = workRequestSummaryCollection; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 WorkRequestSummaryCollection instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - workRequestSummaryCollection; - - /** - * The returned WorkRequestSummaryCollection instance. - * @param workRequestSummaryCollection the value to set - * @return this builder - */ - public Builder workRequestSummaryCollection( - com.oracle.bmc.distributeddatabasev26.model.WorkRequestSummaryCollection - workRequestSummaryCollection) { - this.workRequestSummaryCollection = workRequestSummaryCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * @return this builder instance - */ - public Builder copy(ListWorkRequestsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - opcNextPage(o.getOpcNextPage()); - workRequestSummaryCollection(o.getWorkRequestSummaryCollection()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ListWorkRequestsResponse build() { - return new ListWorkRequestsResponse( - __httpStatusCode__, - headers, - opcRequestId, - opcNextPage, - workRequestSummaryCollection); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); - sb.append(",workRequestSummaryCollection=") - .append(String.valueOf(workRequestSummaryCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListWorkRequestsResponse)) { - return false; - } - - ListWorkRequestsResponse other = (ListWorkRequestsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) - && java.util.Objects.equals( - this.workRequestSummaryCollection, other.workRequestSummaryCollection); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); - result = - (result * PRIME) - + (this.workRequestSummaryCollection == null - ? 43 - : this.workRequestSummaryCollection.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.java deleted file mode 100644 index b93947aab28..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedAutonomousDatabaseReplicationUnitResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public MoveDistributedAutonomousDatabaseReplicationUnitResponse build() { - return new MoveDistributedAutonomousDatabaseReplicationUnitResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof MoveDistributedAutonomousDatabaseReplicationUnitResponse)) { - return false; - } - - MoveDistributedAutonomousDatabaseReplicationUnitResponse other = - (MoveDistributedAutonomousDatabaseReplicationUnitResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.java deleted file mode 100644 index 086d8514356..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/MoveDistributedDatabaseReplicationUnitResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class MoveDistributedDatabaseReplicationUnitResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private MoveDistributedDatabaseReplicationUnitResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(MoveDistributedDatabaseReplicationUnitResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public MoveDistributedDatabaseReplicationUnitResponse build() { - return new MoveDistributedDatabaseReplicationUnitResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof MoveDistributedDatabaseReplicationUnitResponse)) { - return false; - } - - MoveDistributedDatabaseReplicationUnitResponse other = - (MoveDistributedDatabaseReplicationUnitResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.java deleted file mode 100644 index 6afd51d72d9..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedAutonomousDatabaseResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private PatchDistributedAutonomousDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(PatchDistributedAutonomousDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public PatchDistributedAutonomousDatabaseResponse build() { - return new PatchDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedAutonomousDatabaseResponse)) { - return false; - } - - PatchDistributedAutonomousDatabaseResponse other = - (PatchDistributedAutonomousDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.java deleted file mode 100644 index af18dad0b86..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabasePrivateEndpointResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabasePrivateEndpointResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private PatchDistributedDatabasePrivateEndpointResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(PatchDistributedDatabasePrivateEndpointResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public PatchDistributedDatabasePrivateEndpointResponse build() { - return new PatchDistributedDatabasePrivateEndpointResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedDatabasePrivateEndpointResponse)) { - return false; - } - - PatchDistributedDatabasePrivateEndpointResponse other = - (PatchDistributedDatabasePrivateEndpointResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java deleted file mode 100644 index 8916e5ff54d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/PatchDistributedDatabaseResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class PatchDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private PatchDistributedDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(PatchDistributedDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public PatchDistributedDatabaseResponse build() { - return new PatchDistributedDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PatchDistributedDatabaseResponse)) { - return false; - } - - PatchDistributedDatabaseResponse other = (PatchDistributedDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.java deleted file mode 100644 index 3f7c0b5a4f1..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedAutonomousDatabaseResourceResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 4d278b8be30..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RecreateFailedDistributedDatabaseResourceResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public RecreateFailedDistributedDatabaseResourceResponse build() { - return new RecreateFailedDistributedDatabaseResourceResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RecreateFailedDistributedDatabaseResourceResponse)) { - return false; - } - - RecreateFailedDistributedDatabaseResourceResponse other = - (RecreateFailedDistributedDatabaseResourceResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java deleted file mode 100644 index 7844e242b52..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ReinstateProxyInstanceResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ReinstateProxyInstanceResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ReinstateProxyInstanceResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ReinstateProxyInstanceResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ReinstateProxyInstanceResponse build() { - return new ReinstateProxyInstanceResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ReinstateProxyInstanceResponse)) { - return false; - } - - ReinstateProxyInstanceResponse other = (ReinstateProxyInstanceResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.java deleted file mode 100644 index c845e5f483b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedAutonomousDatabasePasswordsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 3f24548fd9d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/RotateDistributedDatabasePasswordsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public RotateDistributedDatabasePasswordsResponse build() { - return new RotateDistributedDatabasePasswordsResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof RotateDistributedDatabasePasswordsResponse)) { - return false; - } - - RotateDistributedDatabasePasswordsResponse other = - (RotateDistributedDatabasePasswordsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.java deleted file mode 100644 index 1759df874c0..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedAutonomousDatabaseGsmsResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ScaleDistributedAutonomousDatabaseGsmsResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ScaleDistributedAutonomousDatabaseGsmsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ScaleDistributedAutonomousDatabaseGsmsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ScaleDistributedAutonomousDatabaseGsmsResponse build() { - return new ScaleDistributedAutonomousDatabaseGsmsResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ScaleDistributedAutonomousDatabaseGsmsResponse)) { - return false; - } - - ScaleDistributedAutonomousDatabaseGsmsResponse other = - (ScaleDistributedAutonomousDatabaseGsmsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java deleted file mode 100644 index c35d70008b4..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ScaleDistributedDatabaseGsmsResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class ScaleDistributedDatabaseGsmsResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private ScaleDistributedDatabaseGsmsResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(ScaleDistributedDatabaseGsmsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public ScaleDistributedDatabaseGsmsResponse build() { - return new ScaleDistributedDatabaseGsmsResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ScaleDistributedDatabaseGsmsResponse)) { - return false; - } - - ScaleDistributedDatabaseGsmsResponse other = (ScaleDistributedDatabaseGsmsResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.java deleted file mode 100644 index 0300b10993b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedAutonomousDatabaseResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - public StartDistributedAutonomousDatabaseResponse build() { - return new StartDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StartDistributedAutonomousDatabaseResponse)) { - return false; - } - - StartDistributedAutonomousDatabaseResponse other = - (StartDistributedAutonomousDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java deleted file mode 100644 index dc8247b93f8..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StartDistributedDatabaseResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StartDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private StartDistributedDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(StartDistributedDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public StartDistributedDatabaseResponse build() { - return new StartDistributedDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StartDistributedDatabaseResponse)) { - return false; - } - - StartDistributedDatabaseResponse other = (StartDistributedDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.java deleted file mode 100644 index 17c3056393d..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedAutonomousDatabaseResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private StopDistributedAutonomousDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(StopDistributedAutonomousDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public StopDistributedAutonomousDatabaseResponse build() { - return new StopDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StopDistributedAutonomousDatabaseResponse)) { - return false; - } - - StopDistributedAutonomousDatabaseResponse other = - (StopDistributedAutonomousDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java deleted file mode 100644 index db9738d6214..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/StopDistributedDatabaseResponse.java +++ /dev/null @@ -1,177 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class StopDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - */ - private String opcWorkRequestId; - - /** - * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. - * - * @return the value - */ - public String getOpcWorkRequestId() { - return opcWorkRequestId; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcWorkRequestId", - "opcRequestId" - }) - private StopDistributedDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - public Builder copy(StopDistributedDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcWorkRequestId(o.getOpcWorkRequestId()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public StopDistributedDatabaseResponse build() { - return new StopDistributedDatabaseResponse( - __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof StopDistributedDatabaseResponse)) { - return false; - } - - StopDistributedDatabaseResponse other = (StopDistributedDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java deleted file mode 100644 index 142df570a92..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedAutonomousDatabaseResponse.java +++ /dev/null @@ -1,224 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedAutonomousDatabaseResponse - extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedAutonomousDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; - - /** - * The returned DistributedAutonomousDatabase instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - getDistributedAutonomousDatabase() { - return distributedAutonomousDatabase; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedAutonomousDatabase" - }) - private UpdateDistributedAutonomousDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedAutonomousDatabase = distributedAutonomousDatabase; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedAutonomousDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedAutonomousDatabase - distributedAutonomousDatabase; - - /** - * The returned 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 - */ - public Builder copy(UpdateDistributedAutonomousDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedAutonomousDatabase(o.getDistributedAutonomousDatabase()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public UpdateDistributedAutonomousDatabaseResponse build() { - return new UpdateDistributedAutonomousDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedAutonomousDatabase); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedAutonomousDatabase=") - .append(String.valueOf(distributedAutonomousDatabase)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedAutonomousDatabaseResponse)) { - return false; - } - - UpdateDistributedAutonomousDatabaseResponse other = - (UpdateDistributedAutonomousDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedAutonomousDatabase, other.distributedAutonomousDatabase); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedAutonomousDatabase == null - ? 43 - : this.distributedAutonomousDatabase.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java deleted file mode 100644 index a8d829dc282..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabasePrivateEndpointResponse.java +++ /dev/null @@ -1,229 +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.*; - -@javax.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 DistributedDatabasePrivateEndpoint instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; - - /** - * The returned 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__, - javax.ws.rs.core.MultivaluedMap 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 { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabasePrivateEndpoint instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabasePrivateEndpoint - distributedDatabasePrivateEndpoint; - - /** - * The returned 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 - */ - 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 - */ - public UpdateDistributedDatabasePrivateEndpointResponse build() { - return new UpdateDistributedDatabasePrivateEndpointResponse( - __httpStatusCode__, - headers, - opcRequestId, - etag, - distributedDatabasePrivateEndpoint); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedDatabasePrivateEndpoint=") - .append(String.valueOf(distributedDatabasePrivateEndpoint)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedDatabasePrivateEndpointResponse)) { - return false; - } - - UpdateDistributedDatabasePrivateEndpointResponse other = - (UpdateDistributedDatabasePrivateEndpointResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals( - this.distributedDatabasePrivateEndpoint, - other.distributedDatabasePrivateEndpoint); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabasePrivateEndpoint == null - ? 43 - : this.distributedDatabasePrivateEndpoint.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java deleted file mode 100644 index 49838d7524b..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/UpdateDistributedDatabaseResponse.java +++ /dev/null @@ -1,217 +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.*; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260101") -public class UpdateDistributedDatabaseResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact - * Oracle about a particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For optimistic concurrency control. See {@code if-match}. - * - */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** - * The returned DistributedDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; - - /** - * The returned DistributedDatabase instance. - * @return the value - */ - public com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase - getDistributedDatabase() { - return distributedDatabase; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "distributedDatabase" - }) - private UpdateDistributedDatabaseResponse( - int __httpStatusCode__, - javax.ws.rs.core.MultivaluedMap headers, - String opcRequestId, - String etag, - com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.distributedDatabase = distributedDatabase; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 DistributedDatabase instance. - */ - private com.oracle.bmc.distributeddatabasev26.model.DistributedDatabase distributedDatabase; - - /** - * The returned 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 - */ - public Builder copy(UpdateDistributedDatabaseResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - distributedDatabase(o.getDistributedDatabase()); - - return this; - } - - /** - * Build the response object. - * @return the response object - */ - public UpdateDistributedDatabaseResponse build() { - return new UpdateDistributedDatabaseResponse( - __httpStatusCode__, headers, opcRequestId, etag, distributedDatabase); - } - } - - /** - * Return a new builder for this response object. - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",distributedDatabase=").append(String.valueOf(distributedDatabase)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDistributedDatabaseResponse)) { - return false; - } - - UpdateDistributedDatabaseResponse other = (UpdateDistributedDatabaseResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.distributedDatabase, other.distributedDatabase); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = - (result * PRIME) - + (this.distributedDatabase == null - ? 43 - : this.distributedDatabase.hashCode()); - return result; - } -} diff --git a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java b/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.java deleted file mode 100644 index 8c5c951ad34..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseCaBundleResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 6a102fade25..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedAutonomousDatabaseNetworkResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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 b0cd81c81b2..00000000000 --- a/bmc-distributeddatabasev26/src/main/java/com/oracle/bmc/distributeddatabasev26/responses/ValidateDistributedDatabaseNetworkResponse.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.responses; - -import com.oracle.bmc.distributeddatabasev26.model.*; - -@javax.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__, - javax.ws.rs.core.MultivaluedMap headers, - String opcWorkRequestId, - String opcRequestId) { - super(__httpStatusCode__, headers); - this.opcWorkRequestId = opcWorkRequestId; - this.opcRequestId = opcRequestId; - } - - public static class Builder { - private int __httpStatusCode__; - - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private javax.ws.rs.core.MultivaluedMap headers; - - public Builder headers(javax.ws.rs.core.MultivaluedMap 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 - */ - 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 - */ - 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-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java deleted file mode 100644 index 3b98c435e3f..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJob.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface CancelEnrichmentJob extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Cancels an EnrichmentJob resource by identifier. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use CancelEnrichmentJob API. - */ - CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java deleted file mode 100644 index 8630f2cf382..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsync.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface CancelEnrichmentJobAsync extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Cancels an EnrichmentJob resource by identifier. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future cancelEnrichmentJob( - CancelEnrichmentJobRequest request, - com.oracle.bmc.responses.AsyncHandler< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java deleted file mode 100644 index 41a4fca8385..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobAsyncClient.java +++ /dev/null @@ -1,521 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for CancelEnrichmentJob service.
        - * There are two ways to use async client: - * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like - * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, - * because the stream will be closed right after the AsyncHandler is invoked.
        - * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
        - * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, - * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler - * is used, it is still safe to use the Future to determine whether or not the request was completed via - * Future.isDone/isCancelled.
        - * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class CancelEnrichmentJobAsyncClient implements CancelEnrichmentJobAsync { - /** - * Service instance for CancelEnrichmentJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(CancelEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CancelEnrichmentJobAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public CancelEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, CancelEnrichmentJobAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public CancelEnrichmentJobAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new CancelEnrichmentJobAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future cancelEnrichmentJob( - CancelEnrichmentJobRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> - handler) { - LOG.trace("Called async cancelEnrichmentJob"); - final CancelEnrichmentJobRequest interceptedRequest = - CancelEnrichmentJobConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CancelEnrichmentJobConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "CancelEnrichmentJob", - "CancelEnrichmentJob", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); - final java.util.function.Function - transformer = - CancelEnrichmentJobConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CancelEnrichmentJobRequest, CancelEnrichmentJobResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java deleted file mode 100644 index e2677a48d8b..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/CancelEnrichmentJobClient.java +++ /dev/null @@ -1,524 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class CancelEnrichmentJobClient implements CancelEnrichmentJob { - /** - * Service instance for CancelEnrichmentJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(CancelEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(CancelEnrichmentJobClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected CancelEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, CancelEnrichmentJobClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public CancelEnrichmentJobClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new CancelEnrichmentJobClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public CancelEnrichmentJobResponse cancelEnrichmentJob(CancelEnrichmentJobRequest request) { - LOG.trace("Called cancelEnrichmentJob"); - final CancelEnrichmentJobRequest interceptedRequest = - CancelEnrichmentJobConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CancelEnrichmentJobConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "CancelEnrichmentJob", - "CancelEnrichmentJob", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/CancelEnrichmentJob"); - java.util.function.Function - transformer = - CancelEnrichmentJobConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java deleted file mode 100644 index 68926e66211..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJob.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateEnrichmentJob extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Creates a new asynchronous EnrichmentJob. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GenerateEnrichmentJob API. - */ - GenerateEnrichmentJobResponse generateEnrichmentJob(GenerateEnrichmentJobRequest request); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java deleted file mode 100644 index 4735522b534..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsync.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateEnrichmentJobAsync 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); - - /** - * Creates a new asynchronous EnrichmentJob. - * - * - * @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 generateEnrichmentJob( - GenerateEnrichmentJobRequest request, - com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java deleted file mode 100644 index 69ff566a6f8..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobAsyncClient.java +++ /dev/null @@ -1,526 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for GenerateEnrichmentJob service.
        - * There are two ways to use async client: - * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like - * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, - * because the stream will be closed right after the AsyncHandler is invoked.
        - * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
        - * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, - * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler - * is used, it is still safe to use the Future to determine whether or not the request was completed via - * Future.isDone/isCancelled.
        - * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateEnrichmentJobAsyncClient implements GenerateEnrichmentJobAsync { - /** - * Service instance for GenerateEnrichmentJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateEnrichmentJobAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public GenerateEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateEnrichmentJobAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public GenerateEnrichmentJobAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GenerateEnrichmentJobAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future generateEnrichmentJob( - GenerateEnrichmentJobRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> - handler) { - LOG.trace("Called async generateEnrichmentJob"); - final GenerateEnrichmentJobRequest interceptedRequest = - GenerateEnrichmentJobConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateEnrichmentJobConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GenerateEnrichmentJob", - "GenerateEnrichmentJob", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); - final java.util.function.Function - transformer = - GenerateEnrichmentJobConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse> - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getGenerateEnrichmentJobDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateEnrichmentJobRequest, GenerateEnrichmentJobResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.java deleted file mode 100644 index 82cc464d347..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateEnrichmentJobClient.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.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateEnrichmentJobClient implements GenerateEnrichmentJob { - /** - * Service instance for GenerateEnrichmentJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateEnrichmentJobClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected GenerateEnrichmentJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateEnrichmentJobClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public GenerateEnrichmentJobClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GenerateEnrichmentJobClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public GenerateEnrichmentJobResponse generateEnrichmentJob( - GenerateEnrichmentJobRequest request) { - LOG.trace("Called generateEnrichmentJob"); - final GenerateEnrichmentJobRequest interceptedRequest = - GenerateEnrichmentJobConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateEnrichmentJobConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GenerateEnrichmentJob", - "GenerateEnrichmentJob", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GenerateEnrichmentJob"); - java.util.function.Function - transformer = - GenerateEnrichmentJobConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest.getGenerateEnrichmentJobDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java deleted file mode 100644 index ca031226932..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJob.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateSqlFromNlJob 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); - - /** - * Generates a SQL query from a natural language input for the specified SemanticStore. - * - * @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 GenerateSqlFromNl API. - */ - GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java deleted file mode 100644 index 2024f98c63b..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsync.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GenerateSqlFromNlJobAsync 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); - - /** - * Generates a SQL query from a natural language input for the specified SemanticStore. - * - * - * @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 generateSqlFromNl( - GenerateSqlFromNlRequest request, - com.oracle.bmc.responses.AsyncHandler< - GenerateSqlFromNlRequest, GenerateSqlFromNlResponse> - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java deleted file mode 100644 index a28b2aa1957..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobAsyncClient.java +++ /dev/null @@ -1,525 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for GenerateSqlFromNlJob 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateSqlFromNlJobAsyncClient implements GenerateSqlFromNlJobAsync { - /** - * Service instance for GenerateSqlFromNlJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateSqlFromNlJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateSqlFromNlJobAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GenerateSqlFromNlJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GenerateSqlFromNlJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GenerateSqlFromNlJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GenerateSqlFromNlJobAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GenerateSqlFromNlJobAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateSqlFromNlJobAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateSqlFromNlJobAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public GenerateSqlFromNlJobAsyncClient( - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * 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, GenerateSqlFromNlJobAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 GenerateSqlFromNlJobAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GenerateSqlFromNlJobAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future generateSqlFromNl( - GenerateSqlFromNlRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GenerateSqlFromNlRequest, GenerateSqlFromNlResponse> - handler) { - LOG.trace("Called async generateSqlFromNl"); - final GenerateSqlFromNlRequest interceptedRequest = - GenerateSqlFromNlConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateSqlFromNlConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GenerateSqlFromNlJob", - "GenerateSqlFromNl", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); - final java.util.function.Function - transformer = - GenerateSqlFromNlConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GenerateSqlFromNlRequest, GenerateSqlFromNlResponse>, - java.util.concurrent.Future> - futureSupplier = - client.postFutureSupplier( - interceptedRequest, - interceptedRequest.getGenerateSqlFromNlDetails(), - ib, - transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GenerateSqlFromNlRequest, GenerateSqlFromNlResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.java deleted file mode 100644 index dfa2aec687d..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GenerateSqlFromNlJobClient.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.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GenerateSqlFromNlJobClient implements GenerateSqlFromNlJob { - /** - * Service instance for GenerateSqlFromNlJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GenerateSqlFromNlJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GenerateSqlFromNlJobClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected GenerateSqlFromNlJobClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GenerateSqlFromNlJobClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public GenerateSqlFromNlJobClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GenerateSqlFromNlJobClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public GenerateSqlFromNlResponse generateSqlFromNl(GenerateSqlFromNlRequest request) { - LOG.trace("Called generateSqlFromNl"); - final GenerateSqlFromNlRequest interceptedRequest = - GenerateSqlFromNlConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GenerateSqlFromNlConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GenerateSqlFromNlJob", - "GenerateSqlFromNl", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/GenerateSqlFromNlJob/GenerateSqlFromNl"); - java.util.function.Function - transformer = - GenerateSqlFromNlConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest.getGenerateSqlFromNlDetails(), - retriedRequest); - return transformer.apply(response); - }); - }); - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java deleted file mode 100644 index 312c38b589b..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJob.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GetEnrichmentJob extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the service. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets an EnrichmentJob by identifier. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. - * This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. - * The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - * - * Example: Click here to see how to use GetEnrichmentJob API. - */ - GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request); - - /** - * Gets the pre-configured waiters available for resources for this service. - * - * @return The service waiters. - */ - GetEnrichmentJobWaiters getWaiters(); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java deleted file mode 100644 index d04f3dce0dd..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsync.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface GetEnrichmentJobAsync extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Gets an EnrichmentJob by identifier. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future getEnrichmentJob( - GetEnrichmentJobRequest request, - com.oracle.bmc.responses.AsyncHandler - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java deleted file mode 100644 index c0888df964d..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobAsyncClient.java +++ /dev/null @@ -1,519 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for GetEnrichmentJob service.
        - * There are two ways to use async client: - * 1. Use AsyncHandler: using AsyncHandler, if the response to the call is an {@link java.io.InputStream}, like - * getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, - * because the stream will be closed right after the AsyncHandler is invoked.
        - * 2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
        - * Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, - * but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler - * is used, it is still safe to use the Future to determine whether or not the request was completed via - * Future.isDone/isCancelled.
        - * Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobAsyncClient implements GetEnrichmentJobAsync { - /** - * Service instance for GetEnrichmentJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GetEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetEnrichmentJobAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public GetEnrichmentJobAsyncClient( - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator, - com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories, - java.util.List additionalClientConfigurators, - String endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder< - Builder, GetEnrichmentJobAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - requestSignerFactory = - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD); - } - - /** - * Build the client. - * @param authenticationDetailsProvider authentication details provider - * @return the client - */ - public GetEnrichmentJobAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GetEnrichmentJobAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future getEnrichmentJob( - GetEnrichmentJobRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetEnrichmentJobRequest, GetEnrichmentJobResponse> - handler) { - LOG.trace("Called async getEnrichmentJob"); - final GetEnrichmentJobRequest interceptedRequest = - GetEnrichmentJobConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GetEnrichmentJob", - "GetEnrichmentJob", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); - final java.util.function.Function - transformer = - GetEnrichmentJobConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - GetEnrichmentJobRequest, GetEnrichmentJobResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetEnrichmentJobRequest, GetEnrichmentJobResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java deleted file mode 100644 index 0b6e7584af4..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobClient.java +++ /dev/null @@ -1,599 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobClient implements GetEnrichmentJob { - /** - * Service instance for GetEnrichmentJob. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(GetEnrichmentJobClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(GetEnrichmentJobClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final GetEnrichmentJobWaiters waiters; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public GetEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public GetEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public GetEnrichmentJobClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public GetEnrichmentJobClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public GetEnrichmentJobClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GetEnrichmentJobClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public GetEnrichmentJobClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - */ - public GetEnrichmentJobClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param executorService ExecutorService used by the client, or null to use the default configured ThreadPoolExecutor - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected GetEnrichmentJobClient( - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - 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("GetEnrichmentJob-waiters-%d") - .build()); - threadPoolExecutor.allowCoreThreadTimeOut(true); - - executorService = threadPoolExecutor; - } - this.waiters = new GetEnrichmentJobWaiters(executorService, this); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { - private java.util.concurrent.ExecutorService executorService; - - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 GetEnrichmentJobClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new GetEnrichmentJobClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - executorService, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public GetEnrichmentJobResponse getEnrichmentJob(GetEnrichmentJobRequest request) { - LOG.trace("Called getEnrichmentJob"); - final GetEnrichmentJobRequest interceptedRequest = - GetEnrichmentJobConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetEnrichmentJobConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "GetEnrichmentJob", - "GetEnrichmentJob", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJob/GetEnrichmentJob"); - java.util.function.Function - transformer = - GetEnrichmentJobConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public GetEnrichmentJobWaiters getWaiters() { - return waiters; - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java deleted file mode 100644 index 80817ac5c9b..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/GetEnrichmentJobWaiters.java +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different - * resources of GetEnrichmentJob. - *

        - * The default configuration used is defined by {@link com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class GetEnrichmentJobWaiters { - private final java.util.concurrent.ExecutorService executorService; - private final GetEnrichmentJob client; - - public GetEnrichmentJobWaiters( - java.util.concurrent.ExecutorService executorService, GetEnrichmentJob client) { - this.executorService = executorService; - this.client = client; - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. - * - * @param request the request to send - * @param targetState the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter - forEnrichmentJob( - GetEnrichmentJobRequest request, - com.oracle.bmc.generativeaidata.model.LifecycleState... targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); - - return forEnrichmentJob( - 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 - forEnrichmentJob( - GetEnrichmentJobRequest request, - com.oracle.bmc.generativeaidata.model.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { - com.oracle.bmc.util.internal.Validate.notNull( - targetState, "The targetState cannot be null"); - - return forEnrichmentJob( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetState); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states - * @return a new {@code Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter - forEnrichmentJob( - GetEnrichmentJobRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.generativeaidata.model.LifecycleState... targetStates) { - com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); - com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); - - return forEnrichmentJob( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for EnrichmentJob. - private com.oracle.bmc.waiter.Waiter - forEnrichmentJob( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetEnrichmentJobRequest request, - final com.oracle.bmc.generativeaidata.model.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); - - return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( - executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function< - GetEnrichmentJobRequest, GetEnrichmentJobResponse>() { - @Override - public GetEnrichmentJobResponse apply(GetEnrichmentJobRequest request) { - return client.getEnrichmentJob(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetEnrichmentJobResponse response) { - return targetStatesSet.contains( - response.getEnrichmentJob().getLifecycleState()); - } - }, - false), - request); - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java deleted file mode 100644 index 899197890ab..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobs.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface ListEnrichmentJobs 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); - - /** - * Lists EnrichmentJobs in a semantic store. - * - * @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 ListEnrichmentJobs API. - */ - ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request); - - /** - * 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. - */ - ListEnrichmentJobsPaginators getPaginators(); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java deleted file mode 100644 index 04c0433a33f..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsync.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * A description of the ReferenceService API. in progress - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public interface ListEnrichmentJobsAsync extends AutoCloseable { - - /** - * Rebuilds the client from scratch. - * Useful to refresh certificates. - */ - void refreshClient(); - - /** - * Sets the endpoint to call (ex, https://www.example.com). - * @param endpoint The endpoint of the serice. - */ - void setEndpoint(String endpoint); - - /** - * Gets the set endpoint for REST call (ex, https://www.example.com) - */ - String getEndpoint(); - - /** - * Sets the region to call (ex, Region.US_PHOENIX_1). - *

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

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

        - * If no known Region could be determined, it will create an endpoint based on the - * default endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} - * and then call {@link #setEndpoint(String) setEndpoint}. - * @param regionId The public region ID. - */ - void setRegion(String regionId); - - /** - * Determines whether realm specific endpoint should be used or not. - * Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false" - * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template - */ - void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); - - /** - * Lists EnrichmentJobs in a semantic store. - * - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was - * provided. Note, if you provide an AsyncHandler and use the Future, some - * types of responses (like java.io.InputStream) may not be able to be read in - * both places as the underlying stream may only be consumed once. - */ - java.util.concurrent.Future listEnrichmentJobs( - ListEnrichmentJobsRequest request, - com.oracle.bmc.responses.AsyncHandler< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> - handler); -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java deleted file mode 100644 index 7aff9b859f3..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsAsyncClient.java +++ /dev/null @@ -1,519 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -/** - * Async client implementation for ListEnrichmentJobs 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 - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsAsyncClient implements ListEnrichmentJobsAsync { - /** - * Service instance for ListEnrichmentJobs. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(ListEnrichmentJobsClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListEnrichmentJobsAsyncClient.class); - - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public ListEnrichmentJobsAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public ListEnrichmentJobsAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public ListEnrichmentJobsAsyncClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsAsyncClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - public ListEnrichmentJobsAsyncClient( - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.clientConfigurationToUse = configuration; - - this.refreshClient(); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * 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, ListEnrichmentJobsAsyncClient> { - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 ListEnrichmentJobsAsyncClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new ListEnrichmentJobsAsyncClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint); - } - } - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public java.util.concurrent.Future listEnrichmentJobs( - ListEnrichmentJobsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse> - handler) { - LOG.trace("Called async listEnrichmentJobs"); - final ListEnrichmentJobsRequest interceptedRequest = - ListEnrichmentJobsConverter.interceptRequest(request); - final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListEnrichmentJobsConverter.fromRequest(client, interceptedRequest); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "ListEnrichmentJobs", - "ListEnrichmentJobs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); - final java.util.function.Function - transformer = - ListEnrichmentJobsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - com.oracle.bmc.responses.AsyncHandler - handlerToUse = handler; - - java.util.function.Function< - com.oracle.bmc.responses.AsyncHandler< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>, - java.util.concurrent.Future> - futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); - - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { - return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>( - (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) - this.authenticationDetailsProvider, - handlerToUse, - futureSupplier) { - @Override - protected void beforeRetryAction() {} - }; - } else { - return futureSupplier.apply(handlerToUse); - } - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java deleted file mode 100644 index b5333498fa3..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsClient.java +++ /dev/null @@ -1,529 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.internal.http.*; -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; -import com.oracle.bmc.util.CircuitBreakerUtils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsClient implements ListEnrichmentJobs { - /** - * Service instance for ListEnrichmentJobs. - */ - public static final com.oracle.bmc.Service SERVICE = - com.oracle.bmc.Services.serviceBuilder() - .serviceName(ListEnrichmentJobsClient.class.getName()) - .serviceEndpointPrefix("") - .serviceEndpointTemplate( - "https://inference.generativeai.{region}.oci.{secondLevelDomain}") - .build(); - // attempt twice if it's instance principals, immediately failures will try to refresh the token - private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(ListEnrichmentJobsClient.class); - - com.oracle.bmc.http.internal.RestClient getClient() { - return client; - } - - private final ListEnrichmentJobsPaginators paginators; - private final com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider; - private final com.oracle.bmc.retrier.RetryConfiguration retryConfiguration; - private final org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy - apacheConnectionClosingStrategy; - private final com.oracle.bmc.http.internal.RestClientFactory restClientFactory; - private final com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory; - private final java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSignerFactory> - signingStrategyRequestSignerFactories; - private final boolean isNonBufferingApacheClient; - private final com.oracle.bmc.ClientConfiguration clientConfigurationToUse; - private final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - circuitBreakerConfiguration; - private String regionId; - - // This pattern matches substrings that are enclosed within curly braces {} - private static final Pattern PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES = - Pattern.compile("\\{([^}]+)\\}"); - - /** - * Used to synchronize any updates on the `this.client` object. - */ - private final Object clientUpdate = new Object(); - - /** - * Stores the actual client object used to make the API calls. - * Note: This object can get refreshed periodically, hence it's important to keep any updates synchronized. - * For any writes to the object, please synchronize on `this.clientUpdate`. - */ - private volatile com.oracle.bmc.http.internal.RestClient client; - - /** - * Keeps track of the last endpoint that was assigned to the client, which in turn can be used when the client is refreshed. - * Note: Always synchronize on `this.clientUpdate` when reading/writing this field. - */ - private volatile String overrideEndpoint = null; - - /** - * Creates a new service instance using the given authentication provider. - * @param authenticationDetailsProvider The authentication details provider, required. - */ - public ListEnrichmentJobsClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { - this(authenticationDetailsProvider, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - */ - public ListEnrichmentJobsClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration) { - this(authenticationDetailsProvider, configuration, null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - */ - public ListEnrichmentJobsClient( - com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, - com.oracle.bmc.ClientConfiguration configuration, - com.oracle.bmc.http.ClientConfigurator clientConfigurator) { - this( - authenticationDetailsProvider, - configuration, - clientConfigurator, - new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( - com.oracle.bmc.http.signing.SigningStrategy.STANDARD)); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - new java.util.ArrayList()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - additionalClientConfigurators, - null); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory - .createDefaultRequestSignerFactories(), - additionalClientConfigurators, - endpoint); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - */ - public ListEnrichmentJobsClient( - 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( - authenticationDetailsProvider, - configuration, - clientConfigurator, - defaultRequestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); - } - - /** - * Creates a new service instance using the given authentication provider and client configuration. Additionally, - * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. - *

        - * This is an advanced constructor for clients that want to take control over how requests are signed. - * Use the {@link Builder} to get access to all these parameters. - * - * @param authenticationDetailsProvider The authentication details provider, required. - * @param configuration The client configuration, optional. - * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. - * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. - * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer - * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. - * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) - * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} - */ - protected ListEnrichmentJobsClient( - 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, - com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { - this.authenticationDetailsProvider = authenticationDetailsProvider; - java.util.List authenticationDetailsConfigurators = - new java.util.ArrayList<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.ProvidesClientConfigurators) { - authenticationDetailsConfigurators.addAll( - ((com.oracle.bmc.auth.ProvidesClientConfigurators) - this.authenticationDetailsProvider) - .getClientConfigurators()); - } - java.util.List allConfigurators = - new java.util.ArrayList<>(additionalClientConfigurators); - allConfigurators.addAll(authenticationDetailsConfigurators); - java.util.List - additionalSpiClientConfigurators = - com.oracle.bmc.util.internal.SpiClientConfiguratorUtils - .getEnabledSpiClientConfigurators(); - allConfigurators.addAll(additionalSpiClientConfigurators); - this.restClientFactory = - restClientFactoryBuilder - .clientConfigurator(clientConfigurator) - .additionalClientConfigurators(allConfigurators) - .build(); - this.isNonBufferingApacheClient = - com.oracle.bmc.http.ApacheUtils.isNonBufferingClientConfigurator( - this.restClientFactory.getClientConfigurator()); - this.apacheConnectionClosingStrategy = - com.oracle.bmc.http.ApacheUtils.getApacheConnectionClosingStrategy( - restClientFactory.getClientConfigurator()); - - this.clientConfigurationToUse = - (configuration != null) - ? configuration - : com.oracle.bmc.ClientConfiguration.builder().build(); - this.defaultRequestSignerFactory = defaultRequestSignerFactory; - this.signingStrategyRequestSignerFactories = signingStrategyRequestSignerFactories; - this.retryConfiguration = clientConfigurationToUse.getRetryConfiguration(); - final com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration - userCircuitBreakerConfiguration = - CircuitBreakerUtils.getUserDefinedCircuitBreakerConfiguration( - configuration); - if (userCircuitBreakerConfiguration == null) { - this.circuitBreakerConfiguration = - CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION; - } else { - this.circuitBreakerConfiguration = userCircuitBreakerConfiguration; - } - - this.refreshClient(); - - this.paginators = new ListEnrichmentJobsPaginators(this); - - if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RegionProvider) { - com.oracle.bmc.auth.RegionProvider provider = - (com.oracle.bmc.auth.RegionProvider) this.authenticationDetailsProvider; - - if (provider.getRegion() != null) { - this.regionId = provider.getRegion().getRegionId(); - this.setRegion(provider.getRegion()); - if (endpoint != null) { - LOG.info( - "Authentication details provider configured for region '{}', but endpoint specifically set to '{}'. Using endpoint setting instead of region.", - provider.getRegion(), - endpoint); - } - } - } - if (endpoint != null) { - setEndpoint(endpoint); - } - } - - /** - * Create a builder for this client. - * @return builder - */ - public static Builder builder() { - return new Builder(SERVICE); - } - - /** - * Builder class for this client. The "authenticationDetailsProvider" is required and must be passed to the - * {@link #build(AbstractAuthenticationDetailsProvider)} method. - */ - public static class Builder - extends com.oracle.bmc.common.RegionalClientBuilder { - private Builder(com.oracle.bmc.Service service) { - super(service); - 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 ListEnrichmentJobsClient build( - @javax.annotation.Nonnull - com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider - authenticationDetailsProvider) { - if (authenticationDetailsProvider == null) { - throw new NullPointerException( - "authenticationDetailsProvider is marked non-null but is null"); - } - return new ListEnrichmentJobsClient( - authenticationDetailsProvider, - configuration, - clientConfigurator, - requestSignerFactory, - signingStrategyRequestSignerFactories, - additionalClientConfigurators, - endpoint, - restClientFactoryBuilder); - } - } - - @Override - public void refreshClient() { - LOG.info("Refreshing client '{}'.", this.client != null ? this.client.getClass() : null); - com.oracle.bmc.http.signing.RequestSigner defaultRequestSigner = - this.defaultRequestSignerFactory.createRequestSigner( - SERVICE, this.authenticationDetailsProvider); - - java.util.Map< - com.oracle.bmc.http.signing.SigningStrategy, - com.oracle.bmc.http.signing.RequestSigner> - requestSigners = new java.util.HashMap<>(); - if (this.authenticationDetailsProvider - instanceof com.oracle.bmc.auth.BasicAuthenticationDetailsProvider) { - for (com.oracle.bmc.http.signing.SigningStrategy s : - com.oracle.bmc.http.signing.SigningStrategy.values()) { - requestSigners.put( - s, - this.signingStrategyRequestSignerFactories - .get(s) - .createRequestSigner(SERVICE, this.authenticationDetailsProvider)); - } - } - - com.oracle.bmc.http.internal.RestClient refreshedClient = - this.restClientFactory.create( - defaultRequestSigner, - requestSigners, - this.clientConfigurationToUse, - this.isNonBufferingApacheClient, - null, - this.circuitBreakerConfiguration); - - synchronized (clientUpdate) { - if (this.overrideEndpoint != null) { - refreshedClient.setEndpoint(this.overrideEndpoint); - } - - this.client = refreshedClient; - } - - LOG.info("Refreshed client '{}'.", this.client != null ? this.client.getClass() : null); - } - - @Override - public void setEndpoint(String endpoint) { - LOG.info("Setting endpoint to {}", endpoint); - - synchronized (clientUpdate) { - this.overrideEndpoint = endpoint; - client.setEndpoint(endpoint); - } - } - - @Override - public String getEndpoint() { - String value = client.getEndpoint(); - if (value.contains("{")) { - Matcher matcher = PATTERN_FOR_SUBSTRINGS_IN_CURLY_BRACES.matcher(value); - java.lang.StringBuilder params = new java.lang.StringBuilder(); - while (matcher.find()) { - if (params.length() > 0) { - params.append(", "); - } - params.append("{").append(matcher.group(1)).append("}"); - } - LOG.warn( - "Parameters like {} get replaced with appropriate values at request time.", - params.toString()); - } - return client.getEndpoint(); - } - - @Override - public void setRegion(com.oracle.bmc.Region region) { - this.regionId = region.getRegionId(); - java.util.Optional endpoint = - com.oracle.bmc.internal.GuavaUtils.adaptFromGuava(region.getEndpoint(SERVICE)); - if (endpoint.isPresent()) { - setEndpoint(endpoint.get()); - } else { - throw new IllegalArgumentException( - "Endpoint for " + SERVICE + " is not known in region " + region); - } - } - - @Override - public void setRegion(String regionId) { - regionId = regionId.toLowerCase(java.util.Locale.ENGLISH); - this.regionId = regionId; - try { - com.oracle.bmc.Region region = com.oracle.bmc.Region.fromRegionId(regionId); - setRegion(region); - } catch (IllegalArgumentException e) { - LOG.info("Unknown regionId '{}', falling back to default endpoint format", regionId); - String endpoint = com.oracle.bmc.Region.formatDefaultRegionEndpoint(SERVICE, regionId); - setEndpoint(endpoint); - } - } - - @Override - public synchronized void useRealmSpecificEndpointTemplate( - boolean useOfRealmSpecificEndpointTemplateEnabled) { - setEndpoint( - com.oracle.bmc.util.RealmSpecificEndpointTemplateUtils - .getRealmSpecificEndpointTemplate( - useOfRealmSpecificEndpointTemplateEnabled, this.regionId, SERVICE)); - } - - @Override - public void close() { - client.close(); - } - - @Override - public ListEnrichmentJobsResponse listEnrichmentJobs(ListEnrichmentJobsRequest request) { - LOG.trace("Called listEnrichmentJobs"); - final ListEnrichmentJobsRequest interceptedRequest = - ListEnrichmentJobsConverter.interceptRequest(request); - com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListEnrichmentJobsConverter.fromRequest(client, interceptedRequest); - - final com.oracle.bmc.retrier.BmcGenericRetrier retrier = - com.oracle.bmc.retrier.Retriers.createPreferredRetrier( - interceptedRequest.getRetryConfiguration(), retryConfiguration, true); - com.oracle.bmc.http.internal.RetryUtils.setClientRetriesHeader(ib, retrier); - com.oracle.bmc.ServiceDetails serviceDetails = - new com.oracle.bmc.ServiceDetails( - "ListEnrichmentJobs", - "ListEnrichmentJobs", - ib.getRequestUri().toString(), - "https://docs.oracle.com/iaas/api/#/en/generative-ai-nl2sql/20260325/EnrichmentJobCollection/ListEnrichmentJobs"); - java.util.function.Function - transformer = - ListEnrichmentJobsConverter.fromResponse( - java.util.Optional.of(serviceDetails)); - return retrier.execute( - interceptedRequest, - retryRequest -> { - final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = - new com.oracle.bmc.retrier.TokenRefreshRetrier( - authenticationDetailsProvider); - return tokenRefreshRetrier.execute( - retryRequest, - retriedRequest -> { - javax.ws.rs.core.Response response = client.get(ib, retriedRequest); - return transformer.apply(response); - }); - }); - } - - @Override - public ListEnrichmentJobsPaginators getPaginators() { - return paginators; - } -} diff --git a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java b/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java deleted file mode 100644 index 6b1eca1e370..00000000000 --- a/bmc-generativeaidata/src/main/java/com/oracle/bmc/generativeaidata/ListEnrichmentJobsPaginators.java +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - */ -package com.oracle.bmc.generativeaidata; - -import com.oracle.bmc.generativeaidata.requests.*; -import com.oracle.bmc.generativeaidata.responses.*; - -/** - * Collection of helper methods that can be used to provide an {@link java.lang.Iterable} interface - * to any list operations of ListEnrichmentJobs where multiple pages of data may be fetched. - * Two styles of iteration are supported: - * - *

          - *
        • 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. - */ -@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20260325") -public class ListEnrichmentJobsPaginators { - private final ListEnrichmentJobs client; - - public ListEnrichmentJobsPaginators(ListEnrichmentJobs client) { - this.client = client; - } - - /** - * Creates a new iterable which will iterate over the responses received from the listEnrichmentJobs 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 listEnrichmentJobsResponseIterator( - final ListEnrichmentJobsRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseIterable< - ListEnrichmentJobsRequest.Builder, ListEnrichmentJobsRequest, - ListEnrichmentJobsResponse>( - new java.util.function.Supplier() { - @Override - public ListEnrichmentJobsRequest.Builder get() { - return ListEnrichmentJobsRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListEnrichmentJobsResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListEnrichmentJobsRequest.Builder>, - ListEnrichmentJobsRequest>() { - @Override - public ListEnrichmentJobsRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListEnrichmentJobsRequest.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< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>() { - @Override - public ListEnrichmentJobsResponse apply(ListEnrichmentJobsRequest request) { - return client.listEnrichmentJobs(request); - } - }); - } - - /** - * Creates a new iterable which will iterate over the {@link com.oracle.bmc.generativeaidata.model.EnrichmentJobSummary} objects - * contained in responses from the listEnrichmentJobs 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.generativeaidata.model.EnrichmentJobSummary} objects - * contained in responses received from the service. - */ - public Iterable - listEnrichmentJobsRecordIterator(final ListEnrichmentJobsRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< - ListEnrichmentJobsRequest.Builder, ListEnrichmentJobsRequest, - ListEnrichmentJobsResponse, - com.oracle.bmc.generativeaidata.model.EnrichmentJobSummary>( - new java.util.function.Supplier() { - @Override - public ListEnrichmentJobsRequest.Builder get() { - return ListEnrichmentJobsRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListEnrichmentJobsResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListEnrichmentJobsRequest.Builder>, - ListEnrichmentJobsRequest>() { - @Override - public ListEnrichmentJobsRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListEnrichmentJobsRequest.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< - ListEnrichmentJobsRequest, ListEnrichmentJobsResponse>() { - @Override - public ListEnrichmentJobsResponse apply(ListEnrichmentJobsRequest request) { - return client.listEnrichmentJobs(request); - } - }, - new java.util.function.Function< - ListEnrichmentJobsResponse, - java.util.List< - com.oracle.bmc.generativeaidata.model.EnrichmentJobSummary>>() { - @Override - public java.util.List< - com.oracle.bmc.generativeaidata.model.EnrichmentJobSummary> - apply(ListEnrichmentJobsResponse response) { - return response.getEnrichmentJobCollection().getItems(); - } - }); - } -}